/**
 * Shared styles for USA robotics summer camp pages:
 * - robotics-summer-camp-for-kids/usa/index.html (directory)
 * - robotics-summer-camp-for-kids/usa/jacksonville/index.html (city page)
 */

/* ========== USA directory page ========== */
body {
    font-family: 'Montserrat', sans-serif;
}

.dir-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fc 100%);
    padding: 50px 0 40px;
}

.dir-banner h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.dir-banner h1 .red {
    color: #FF0000;
    font-weight: 700;
}

.dir-banner h1 .blue {
    color: #1e5a8a;
    font-weight: 700;
}

.dir-banner .subtitle {
    font-size: 17px;
    color: #4a5568;
    margin-bottom: 0;
}

.dir-section {
    padding: 50px 0 60px;
}

.dir-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 24px;
}

.state-block {
    margin-bottom: 36px;
}

.state-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e5a8a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #73A8D4;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list li {
    margin-bottom: 10px;
}

.city-list a {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.city-list a:hover {
    border-color: #73A8D4;
    box-shadow: 0 2px 8px rgba(115, 168, 212, 0.2);
    color: #1e5a8a;
}

.city-list a i {
    margin-right: 10px;
    color: #73A8D4;
}

.dir-extra {
    padding: 50px 0 60px;
    background: #fff;
}

.dir-extra:nth-of-type(2) {
    background: #f8fafc;
}

.dir-extra h2 {
    font-size: 22px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 24px;
    text-align: center;
}

.dir-extra .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dir-extra .step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e5a8a;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.dir-extra .step p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

.dir-extra .learn-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.dir-extra .learn-list li {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.dir-extra .learn-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #1e5a8a;
}

/* ========== City page: buttons & form ========== */
.theme-btn {
    width: auto;
}

.form_button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form_button p {
    width: 100%;
    display: block;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .form_button {
        align-items: center;
    }

    .form_button p {
        font-size: 11px !important;
        text-align: center !important;
        margin-top: 6px !important;
        line-height: 1.4;
    }

    .form_button p i {
        margin-right: 4px !important;
    }

    .main_popup .modal-content {
        background: linear-gradient(to right, #FFD978, #FFD978, #FFD978) !important;
    }
}

/* ========== City page: learning cards ========== */
.last-multiple-section .last-section-two .col-md-4 {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 10px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.learning-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #73A8D4;
}

.learning-card p {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.card-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background-color: #73A8D4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    opacity: 0.5;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* ========== City page: journey section ========== */
.journey-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fcfcfc, #f4f8fb);
    position: relative;
}

.journey-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.journey-line {
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(to bottom, #73A8D4, #a1c4fd, #c2e9fb);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(115, 168, 212, 0.3);
}

.journey-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
}

.journey-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.journey-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.journey-number {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: #73A8D4;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    font-weight: 800;
    font-size: 20px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #e0e0e0, 0 4px 10px rgba(115, 168, 212, 0.4);
    z-index: 10;
    transition: transform 0.3s ease;
}

.journey-item:hover .journey-number {
    transform: scale(1.1);
    background: #5b92c4;
    box-shadow: 0 0 0 4px #c2e9fb, 0 6px 15px rgba(115, 168, 212, 0.6);
}

.journey-item:nth-child(odd) .journey-number {
    right: -25px;
}

.journey-item:nth-child(even) .journey-number {
    left: -25px;
}

.journey-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    border-top: 5px solid #73A8D4;
}

.journey-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(115, 168, 212, 0.15);
    border-color: #dbeafe;
}

.journey-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.journey-item:nth-child(odd) .journey-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #73A8D4;
}

.journey-item:nth-child(even) .journey-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #73A8D4 transparent transparent;
}

.journey-title {
    font-weight: 800;
    color: #2d3748;
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .journey-line {
        left: 30px;
    }

    .journey-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 40px;
    }

    .journey-item:nth-child(odd) .journey-number,
    .journey-item:nth-child(even) .journey-number {
        left: 5px;
        right: auto;
    }

    .journey-item:nth-child(odd) .journey-content::before {
        right: auto;
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #73A8D4 transparent transparent;
    }
}

/* ========== City page: comparison table ========== */
.aesthetic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.aesthetic-table th,
.aesthetic-table td {
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.aesthetic-table th {
    background: #f8fafc;
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
    text-align: left;
    letter-spacing: -0.3px;
    border-bottom: 2px solid #e2e8f0;
}

.col-factor {
    width: 20%;
    font-weight: 700;
    color: #4a5568;
    background: #fff;
}

.col-offline {
    width: 40%;
    background: #fff;
    color: #718096;
    border-left: 1px solid #e2e8f0;
}

.col-playto {
    width: 40%;
    background: #fdfdfd;
    position: relative;
    border-left: 1px solid #e2e8f0;
}

.th-playto {
    color: #1e5a8a !important;
    border-bottom: 2px solid #1e5a8a !important;
    background-color: #f0f9ff !important;
}

.status-icon {
    display: inline-block;
    margin-right: 12px;
    font-size: 20px;
    vertical-align: top;
    margin-top: 3px;
    flex-shrink: 0;
}

.icon-check {
    color: #48bb78;
}

.icon-cross {
    color: #e53e3e;
}

.cell-content {
    display: flex;
    align-items: flex-start;
}

.cell-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.col-playto .cell-text {
    color: #2d3748;
    font-weight: 500;
}
