:root {
    --secondary-hover: #005fa3;
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-muted: #eef5fc;
    --border: #e3eaf2;
    --text: #333333;
    --text-muted: #666666;
    --footer: #001f3f;
}



/* =================================
   RESET AND GLOBAL STYLES
================================= */









body {
    min-width: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
}









/* =================================
   HEADER
================================= */



header {
    width: 100%;
    background: var(--surface);
}






/* =================================
   LOGO
================================= */



.logo {
    color: var(--primary);
}



.logo span {
    color: var(--secondary);
}



.logo:hover,
.logo:focus-visible {
    color: var(--primary);
    outline: none;
}



/* =================================
   WELCOME MESSAGE
================================= */



.header-welcome {
    color: var(--primary);
    line-height: 1.3;
}






/* =================================
   LOGGED-IN NAVIGATION
================================= */



.main-nav {
    flex-shrink: 0;
}



.main-nav.nav-hidden {
    display: none;
}



.nav-link,
.dropdown-btn {
    color: var(--primary);
    font-family: inherit;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.nav-link:hover,
.nav-link:focus-visible,
.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    background: var(--surface-muted);
    color: var(--secondary);
}



/* =================================
   SUBJECTS DROPDOWN
================================= */












.dropdown-content {
    background: var(--surface);
    border: 1px solid var(--border);
}



.dropdown-content a {
    color: var(--text);
    line-height: 1.4;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: var(--surface-muted);
    color: var(--secondary);
}



.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.mobile-open .dropdown-content {
    display: block;
}



.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow,
.dropdown.mobile-open .dropdown-arrow {
    transform: rotate(180deg);
}



/* =================================
   LOGOUT BUTTON
================================= */



.nav-logout {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: #ffffff;
    font-family: inherit;
    transition: background-color 0.2s ease,
        border-color 0.2s ease;
}



.nav-logout:hover,
.nav-logout:focus-visible {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
}



/* =================================
   LOGGED-OUT AUTH BUTTONS
================================= */






/* =================================
   MOBILE HAMBURGER
================================= */



.mobile-toggle {
    margin-left: auto;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.mobile-toggle:hover,
.mobile-toggle:focus-visible {
    background: var(--surface-muted);
}



/* =================================
   GENERAL BUTTONS
================================= */



.btn {
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}



.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}



.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #ffffff;
}



.btn-secondary {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}



.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    outline: none;
}



/* =================================
   HERO
================================= */



.hero {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: #ffffff;
    text-align: center;
}



.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}



.hero h1 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}



.hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
}



#heroCta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}



/* =================================
   GENERAL PAGE SECTIONS
================================= */



.section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}



.section-title {
    margin-bottom: 50px;
    color: var(--primary);
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
}



/* =================================
   PRICING GRID
================================= */



.pricing-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 30px;
    width: 100%;
    align-items: stretch;
}



.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 40px 30px;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease,
        box-shadow 0.2s ease;
}



.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}



.pricing-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.3;
}



.pricing-card.featured {
    border: 4px solid var(--secondary);
    transform: scale(1.03);
}



.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}



/* =================================
   MOST POPULAR BADGE
================================= */



.badge {
    position: absolute;
    top: -16px;
    left: 50%;
    padding: 8px 16px;
    background: var(--secondary);
    border-radius: 30px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(-50%);
}



/* =================================
   PRICE DETAILS
================================= */



.price {
    margin-top: 8px;
    color: var(--primary);
    font-size: 54px;
    font-weight: bold;
    line-height: 1.2;
}



.billing {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}



/* =================================
   PRICING FEATURE LISTS
================================= */



.pricing-card ul {
    flex-grow: 1;
    margin: 25px 0;
    list-style: none;
    text-align: left;
}



.pricing-card li {
    margin: 12px 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}



.pricing-card > .btn,
.pricing-card > button {
    align-self: center;
    min-width: 190px;
}



/* =================================
   FAQ CARDS
================================= */



.cards {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 30px;
    width: 100%;
}



.card {
    min-width: 0;
    padding: 30px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow-wrap: anywhere;
    transition: transform 0.2s ease,
        box-shadow 0.2s ease;
}



.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.11);
}



.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.3;
}



.card p {
    color: #444444;
}



/* =================================
   COPYRIGHT FOOTER
================================= */



footer {
    width: 100%;
    margin-top: 20px;
    padding: 24px 20px;
    background: var(--footer);
    color: #ffffff;
}












/* =================================
   TABLET AND MOBILE NAVIGATION
================================= */



@media (max-width: 900px) {
/*
       The logged-in renderAuth function adds is-visible.
       Logged-out users continue to see nav-buttons.
    */

    
.mobile-toggle.is-visible {
    display: inline-flex;
    order: 2;
    margin-left: auto;
}


    


    
.main-nav {
    order: 4;
    background: var(--surface);
    border-top: 1px solid var(--border);
}


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


    
.main-nav.nav-hidden {
    display: none;
}


    


    


    


    
.dropdown-content {
    border: 0;
    border-radius: 8px;
}


    
.dropdown.mobile-open .dropdown-content {
    display: block;
}


    


    


    
.pricing-grid {
    grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
}


    
.pricing-card.featured {
    transform: none;
}


    
.pricing-card.featured:hover {
    transform: translateY(-4px);
}


    
.cards {
    grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
}
}



/* =================================
   SMALL MOBILE SCREENS
================================= */



@media (max-width: 600px) {
.mobile-toggle {
    font-size: 22px;
}


    


    


    
.hero {
    padding: 50px 15px;
}


    
.hero h1 {
    font-size: 34px;
}


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


    
#heroCta {
    width: 100%;
    max-width: 360px;
    margin: 22px auto 0;
    flex-direction: column;
}


    
#heroCta .btn,
    #heroCta button {
    width: 100%;
}


    
.section {
    padding: 60px 15px;
}


    
.section-title {
    margin-bottom: 35px;
    font-size: 32px;
}


    
.pricing-grid,
    .cards {
    grid-template-columns: 1fr;
    gap: 24px;
}


    
.pricing-card {
    padding: 35px 22px;
}


    
.pricing-card:hover,
    .pricing-card.featured:hover {
    transform: none;
}


    
.price {
    font-size: 48px;
}


    
.pricing-card > .btn,
    .pricing-card > button {
    width: 100%;
    min-width: 0;
}


    
.card {
    padding: 24px 20px;
}


    
footer {
    margin-top: 10px;
    padding: 22px 15px;
}
}
