/* ===== MOBILE-FIRST DESIGN FOR INTERNATIONAL STUDENT INSURANCE ===== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-container {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-flag-selector {
    display: flex;
    gap: 6px;
}

.lang-flag-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.lang-flag-btn:hover {
    opacity: 0.8;
    background: rgba(0,0,0,0.05);
}

.lang-flag-btn.active {
    opacity: 1;
    border-color: #FF1B6D;
    background: rgba(255,27,109,0.08);
}

.flag-emoji {
    font-size: 20px;
    line-height: 1;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-content {
    padding: 16px 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: #f5f5f5;
    color: #FF1B6D;
}

.menu-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}


/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 20px 50px;
    background: linear-gradient(180deg, #E8F5F2 0%, #F8FFFE 50%, #FFFFFF 100%);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #666;
    margin-bottom: 50px;
}

.hero-illustration {
    max-width: 320px;
    margin: 0 auto;
    padding: 30px;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 340px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: #D4F4DD;
    color: #1B8A6B;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

/* Benefits Section */
.benefits {
    background: #FFFFFF;
}

.chart-illustration {
    max-width: 280px;
    margin: 0 auto;
}

.chart-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Email Section */
.email-section {
    background: #FFF9F0;
}

.email-illustration {
    max-width: 280px;
    margin: 0 auto;
}

.email-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Language Section */
.language-section {
    background: #F0F8FF;
}

.globe-illustration {
    max-width: 280px;
    margin: 0 auto;
}

.globe-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Insurers Section */
.insurers-section {
    background: #FAFAFA;
}

.insurers-section .section-content {
    max-width: 600px !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insurers-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 24px;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.insurers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 450px;
}

.insurer-item {
    aspect-ratio: 1.5;
}

.insurer-logo {
    width: 100%;
    height: 100%;
    background: #FFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.insurer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.insurer-logo:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* PC Responsive for Insurers */
@media (min-width: 768px) {
    .insurers-grid {
        max-width: 500px;
        gap: 16px;
    }

    .insurer-logo {
        padding: 20px;
    }
}


/* Note Section */
.note-section {
    background: #F5F5F5;
    padding-bottom: 120px;
}

.note-box {
    background: #FFF;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.note-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.info-icon {
    flex-shrink: 0;
}

.note-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.note-content {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

.note-content p {
    margin-bottom: 8px;
}

.review-note {
    font-weight: 700;
    color: #000;
    margin-top: 12px;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: #999;
    padding: 40px 20px 120px;
}

.footer-content {
    max-width: 340px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.back-to-top {
    background: none;
    border: 1px solid #FFF;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFF;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #FFF;
    color: #000;
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.footer-info p {
    margin-bottom: 4px;
}

.footer-info strong {
    color: #FFF;
    font-size: 15px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* Fixed CTA Button */
.cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,1) 100%);
    z-index: 999;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF1B6D 0%, #FF4785 100%);
    color: #FFF;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 27, 109, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 27, 109, 0.5);
}

/* ===== RESPONSIVE: TABLET & DESKTOP ===== */
@media (min-width: 768px) {
    .page-wrapper {
        max-width: 768px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 16px;
    }

    .insurers-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .insurer-item {
        aspect-ratio: 1.2;
    }

    .section-content {
        max-width: 500px;
    }

    .cta-fixed {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 768px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }

    .section-title {
        font-size: 44px;
    }
}
