/* ==========================================================================
   GIO - Global IELTS Online - Main Stylesheet
   Matched to React GIO Client Design
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---------- Typography ---------- */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: var(--gio-color-surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gio-color-text);
}

a {
    color: var(--gio-color-action);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--gio-color-action);
}

/* ---------- Container ---------- */
.gio-container {
    max-width: var(--gio-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- GIO Buttons ---------- */
/* Base round button (React Button component default) */
.btn-gio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 999999px;
    border: 2px solid var(--gio-color-action);
    background: var(--gio-color-action);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-gio:hover {
    background: var(--gio-color-action-hover);
    border-color: var(--gio-color-action-hover);
    color: #fff;
}

/* Blue outline round */
.btn-gio-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 999999px;
    border: 2px solid var(--gio-color-action);
    background: transparent;
    color: var(--gio-color-action);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-gio-outline:hover {
    background: var(--gio-color-action);
    color: #fff;
}

/* Violet fill (primary action) */
.btn-gio-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 999999px;
    border: 2px solid var(--gio-color-action);
    background: var(--gio-color-action);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-gio-primary:hover {
    background: var(--gio-color-action-hover);
    border-color: var(--gio-color-action-hover);
    color: #fff;
}

/* Blue fill (square variant for admin/internal) */
.btn-gio-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 2px;
    border: 2px solid var(--gio-color-action);
    background: var(--gio-color-action);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-gio-blue:hover {
    background: var(--gio-color-action-hover);
    border-color: var(--gio-color-action-hover);
    color: #fff;
}

/* Small button modifier */
.btn-gio-sm {
    font-size: 12px;
    padding: 6px 14px;
}

/* ---------- Header ---------- */
.gio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--gio-color-surface);
    box-shadow: none;
    height: var(--gio-header-h);
    transition: box-shadow 0.3s;
}
.gio-header.scrolled {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
}

.gio-header .header-inner {
    max-width: var(--gio-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.gio-header .logo-link {
    display: flex;
    align-items: center;
}
.gio-header .logo-link img {
    max-width: 185px;
    height: auto;
}

/* Desktop Nav */
.gio-header .main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gio-header .main-nav > li {
    position: relative;
}
.gio-header .main-nav > li > a {
    display: block;
    padding: 22px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #222222;
    white-space: nowrap;
    transition: color 0.2s, font-weight 0.2s;
}
.gio-header .main-nav > li > a:hover,
.gio-header .main-nav > li.active > a {
    color: var(--gio-color-action);
    font-weight: 600;
}

/* Dropdown */
.gio-header .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--gio-color-surface);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}
.gio-header .main-nav > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.gio-header .nav-dropdown a {
    display: block;
    padding: 8px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    transition: all 0.15s;
}
.gio-header .nav-dropdown a:hover {
    background: var(--gio-color-bg);
    color: var(--gio-color-action);
}

/* Header Auth */
.gio-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gio-header .btn-login {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999999px;
    border: 2px solid var(--gio-color-action);
    background: transparent;
    color: var(--gio-color-action);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.gio-header .btn-login:hover {
    background: var(--gio-color-action);
    color: #fff;
}
.gio-header .btn-register {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999999px;
    border: 2px solid var(--gio-color-action);
    background: var(--gio-color-action);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.gio-header .btn-register:hover {
    background: var(--gio-color-action-hover);
    border-color: var(--gio-color-action-hover);
    color: #fff;
}

/* User Dropdown */
.gio-header .user-dropdown {
    position: relative;
}
.gio-header .user-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}
.gio-header .user-toggle:hover {
    background: var(--gio-color-bg);
}
.gio-header .user-avatar {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: var(--gio-color-action);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
}
.gio-header .user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--gio-color-surface);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    display: none;
    z-index: 1040;
}
.gio-header .user-dropdown.open .user-menu {
    display: block;
}
.gio-header .user-menu .user-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gio-color-border);
}
.gio-header .user-menu .user-info .name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
}
.gio-header .user-menu .user-info .email {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--gio-color-text-muted);
}
.gio-header .user-menu a,
.gio-header .user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
.gio-header .user-menu a:hover,
.gio-header .user-menu button:hover {
    background: var(--gio-color-bg);
    color: var(--gio-color-action);
}

/* Mobile Menu Toggle */
.gio-header .mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Mobile Menu (hidden by default on desktop) ---------- */
.gio-mobile-menu {
    display: none;
}
.gio-mobile-overlay {
    display: none;
}

/* ---------- Mobile Responsive Header ---------- */
@media (max-width: 991px) {
    .gio-header .main-nav { display: none; }
    .gio-header .mobile-toggle { display: block; }

    .gio-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--gio-color-surface);
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    }
    .gio-mobile-menu.open { left: 0; }
    .gio-mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
    .gio-mobile-overlay.open { display: block; }
    .gio-mobile-menu .mobile-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--gio-color-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .gio-mobile-menu .mobile-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    .gio-mobile-menu .mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .gio-mobile-menu .mobile-nav > li > a {
        display: block;
        padding: 12px 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #222222;
        border-bottom: 1px solid #f0f0f0;
    }
    .gio-mobile-menu .mobile-nav > li > a:hover {
        color: var(--gio-color-action);
        font-weight: 600;
    }
    .gio-mobile-menu .mobile-nav .sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        background: var(--gio-color-bg);
    }
    .gio-mobile-menu .mobile-nav .sub-menu a {
        display: block;
        padding: 10px 20px 10px 36px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #eee;
    }
}

/* ---------- Footer ---------- */
.gio-footer {
    background: var(--gio-color-surface-inverse);
    color: var(--gio-color-text-muted);
    padding: 48px 0 0;
    margin-top: 60px;
}
.gio-footer a {
    color: var(--gio-color-text-muted);
    font-family: 'Montserrat', sans-serif;
    transition: color 0.2s;
}
.gio-footer a:hover {
    color: #fff;
}
.gio-footer .footer-inner {
    max-width: var(--gio-container);
    margin: 0 auto;
    padding: 0 20px;
}
.gio-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gio-color-border);
}
.gio-footer .footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}
.gio-footer .footer-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 20px;
    color: var(--gio-color-text-muted);
    margin-top: 12px;
    max-width: 300px;
}
.gio-footer .footer-links {
    display: flex;
    gap: 40px;
}
.gio-footer .footer-links h6 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}
.gio-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gio-footer .footer-links li {
    margin-bottom: 6px;
}
.gio-footer .footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}
.gio-footer .footer-social {
    display: flex;
    gap: 12px;
}
.gio-footer .footer-social a {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--gio-color-surface-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
}
.gio-footer .footer-social a:hover {
    background: var(--gio-color-action);
    color: #fff;
}
.gio-footer .footer-social a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 0;
}

/* Footer sitemap (mirrors header nav structure) */
.gio-footer .footer-sitemap {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gio-footer .footer-sitemap a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--gio-color-text-muted);
}
.gio-footer .footer-sitemap a:hover {
    color: #fff;
}

/* Footer bottom / copyright bar */
.gio-footer .footer-bottom {
    background: var(--gio-navy-800);
    margin-top: 32px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--gio-color-text-muted);
}
/* Full-bleed copyright bar: applied on the outer wrapper */
.gio-footer-copyright {
    background: var(--gio-navy-800);
    padding: 16px 0;
}
.gio-footer-copyright .footer-inner {
    max-width: var(--gio-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--gio-color-text-muted);
}

@media (max-width: 767px) {
    .gio-footer .footer-top { flex-direction: column; gap: 24px; }
    .gio-footer .footer-links { flex-direction: column; gap: 20px; }
    .gio-footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .gio-footer .footer-sitemap { flex-direction: column; gap: 8px; }
    .gio-footer-copyright .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Content Area ---------- */
main {
    padding-top: var(--gio-header-h);
    min-height: calc(100vh - var(--gio-header-h) - 200px);
}

/* ---------- Cards ---------- */
.gio-card {
    border: 1px solid var(--gio-color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--gio-color-surface);
}
.gio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.gio-card .card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--gio-color-bg);
}
.gio-card .card-body {
    padding: 16px;
}
.gio-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gio-color-text);
}
.gio-card .card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--gio-color-text-muted);
}

/* ---------- Badges ---------- */
.badge-academic {
    background: var(--gio-color-action);
    color: #fff;
}
.badge-general {
    background: var(--gio-color-success);
    color: #fff;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--gio-color-text-muted);
    text-align: center;
    margin-bottom: 40px;
}

/* ---------- Utility ---------- */
.text-violet { color: var(--gio-color-action) !important; }
.bg-violet { background-color: var(--gio-color-action) !important; }
.text-gio-blue { color: var(--gio-color-action) !important; }
.text-gio-green { color: var(--gio-color-success) !important; }
.bg-gio-blue { background-color: var(--gio-color-action) !important; }