/* ===============================
   GLOBAL RESET + IMPROVEMENTS
================================ */
* {
    box-sizing: border-box;
}

.skiptranslate {
    display: none;
}

body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   CONTAINER IMPROVEMENT
================================ */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* ===============================
   BUTTON IMPROVEMENTS
================================ */
.btn,
button {
    border-radius: 10px;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ===============================
   HERO SECTION FIX
================================ */
.hero {
    padding: 30px 0;
}

.hero img {
    max-width: 100%;
}

/* ===============================
   CARD DESIGN IMPROVEMENT
================================ */
.card,
.feature-card,
.exam-card,
.plan-card {
    border-radius: 16px;
    transition: 0.3s;
}

.card:hover,
.feature-card:hover,
.exam-card:hover {
    transform: translateY(-6px);
}

/* ===============================
   GRID SYSTEM FIX
================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col {
    flex: 1;
    min-width: 250px;
}

/* ===============================
   HEADER MOBILE FIX
================================ */
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.menu-toggle {
    display: none;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 992px) {

    .hero {
        text-align: center;
    }

    .hero .row {
        flex-direction: column;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        display: none;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Index Hero Fixes */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .visual-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-phone {
        right: -20px !important;
        bottom: 0px !important;
        width: 180px !important;
    }

    .ai-badge {
        right: -10px !important;
        width: 70px !important;
        height: 70px !important;
        font-size: 0.9rem !important;
    }
}

/* ===============================
   SMALL DEVICES
================================ */
@media (max-width: 576px) {

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        width: 100%;
    }

    .row {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* CTA Banner Mobile Fix */
    .cta-banner {
        padding: 40px 15px 260px !important;
    }

    .cta-content h2 {
        font-size: 1.8rem !important;
    }

    .app-buttons {
        gap: 10px !important;
    }

    .app-btn {
        padding: 6px 12px !important;
    }

    .app-btn strong {
        font-size: 0.9rem !important;
    }
}

/* ===============================
   PRICING CARDS FIX
================================ */
.plan-card {
    padding: 20px;
    text-align: center;
}

.plan-card.popular {
    transform: scale(1.05);
    border: 2px solid #ff3b3b;
}

/* ===============================
   FOOTER FIX
================================ */
footer {
    text-align: center;
}

footer .row {
    justify-content: center;
}

/* ===============================
   SMOOTH SCROLL
================================ */
html {
    scroll-behavior: smooth;
}

/* FIX HERO LAYOUT */
.hero .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .hero .row {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        max-width: 300px;
        margin-top: 20px;
    }
}

/* FIX CARD HEIGHT */
.feature-card,
.exam-card,
.plan-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* FIX SECTION SPACING */
section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

/* FIX BUTTON SPACING */
.btn {
    margin: 5px;
}

/* NAVBAR MOBILE FIX */
.nav-menu {
    z-index: 999;
}

/* ===============================
   FIX HERO IMAGES MOBILE
================================ */

.hero-composite {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* student image always visible */
.hc-student {
    position: relative;
    z-index: 2;
    /*max-width: 300px;*/
}

/* phone image */
.hc-phone {
    position: absolute;
    right: -40px;
    bottom: -20px;
    max-width: 220px;
    z-index: 3;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 992px) {
    .feat-hero-actions {
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .ex-hero-actions {
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .hw-hero-actions {
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {

    .hero-composite {
        height: auto;
        max-width: 320px;
        width: 100%;
        display: block;
        margin: 0 auto;
    }

    .hc-phone {
        position: absolute !important;
        right: -20px !important;
        bottom: 0px !important;
        top: auto !important;
        margin: 0 !important;
        width: 180px !important;
        max-width: none !important;
        z-index: 3 !important;
    }

    .hc-student {
        position: relative !important;
        left: -56px !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: var(--radius-xl) !important;
        background-color: #f0f0f0 !important;
        object-fit: cover !important;
        min-height: 350px !important;
        z-index: 1 !important;
    }

    .hc-blob, .hc-dots, .hc-icon {
        display: none !important;
    }

}

.hero,
.feat-hero,
.ex-hero,
.hw-hero,
.pr-hero,
.au-hero {
    overflow: visible !important;
}