/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* =========================================================
   DEFAULT THEME
========================================================= */

:root{

    --bg:#f5f5f5;
    --bg2:#ffffff;
    --card:#ffffff;

    --text:#111111;
    --soft:#555555;

    --border:#dddddd;

    --primary:#2563eb;

    --primary2:#1d4ed8;

    --shadow:0 10px 30px rgba(0,0,0,.08);
}


.theme-petrotopic{

    --primary:#3FA652;
    --primary2:#2f8a44;
}

.theme-staymyday{

    --primary:#2563eb;
    --primary2:#1d4ed8;
}

.theme-alocentral{

    --primary:#dc2626;
    --primary2:#b91c1c;
}

.theme-englishjumpstart{

    --primary:#7c3aed;
    --primary2:#6d28d9;
}
/* =========================================================
   DARK MODE
========================================================= */

html.dark{

    --bg:#050505;
    --bg2:#101010;
    --card:#161616;

    --text:#ffffff;
    --soft:#bdbdbd;

    --border:#262626;

    --primary:#3FA652;

    --shadow:0 10px 30px rgba(0,0,0,.35);
}



/* =========================================================
   BODY
========================================================= */

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    transition:
        background .3s ease,
        color .3s ease;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{

    position:sticky;

    top:0;

    z-index:999999;

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border-bottom:1px solid var(--border);

    transition:
        background .3s ease,
        border-color .3s ease;
        
    background:rgba(255,255,255,.92);
}

/* DARK MODE */

html.dark .navbar{

    background:rgba(10,10,10,.88);
}



.nav-container{

    max-width:1400px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 24px;
}

/* =========================================================
   LOGO
========================================================= */

.logo{

    font-size:30px;

    font-weight:900;

    color:var(--primary);

    text-decoration:none;
}

/* =========================================================
   NAV LINKS
========================================================= */

.nav-links{

    display:flex;

    align-items:center;

    gap:30px;
}

.nav-links a{

    color:var(--text);

    text-decoration:none;

    font-size:15px;

    font-weight:600;

    transition:.25s;

    padding:10px 14px;

    border-radius:12px;
}

.nav-links a:hover{

    color:var(--primary);

    background:rgba(63,166,82,.12);

    transform:translateY(-1px);
}

.nav-links a.active{

    background:rgba(63,166,82,.15);

    color:var(--primary);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.nav-links a:focus,
.card-btn:focus,
.icon-btn:focus,
.search-box button:focus{

    outline:2px solid var(--primary);

    outline-offset:3px;
}

/* =========================================================
   DROPDOWN
========================================================= */

.dropdown{

    position:relative;
}

.dropdown-menu{

    position:absolute;

    top:100%;

    left:0;

    z-index:9999;

    min-width:220px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    display:none;

    flex-direction:column;

    overflow:hidden;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

    display:flex !important;
}

.dropdown-menu a{

    padding:14px 18px;
}

.dropdown-menu a:hover{

    background:var(--primary);

    color:#ffffff;
}

/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions{

    display:flex;

    gap:10px;
}

/* =========================================================
   BUTTONS
========================================================= */

.icon-btn{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-size:20px;

    transition:.25s;
}

.icon-btn:hover{

    transform:translateY(-2px);

    background:var(--primary);

    color:#ffffff;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-btn{

    display:none;
}

/* =========================================================
   HERO
========================================================= */

.hero{

    min-height:10vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:10px 20px;

    text-align:center;
}

.hero-inner{

    max-width:950px;

    width:100%;

    padding-top:40px;

    padding-left:10px;

    padding-right:10px;
}

.hero h1{

    font-size:70px;

    line-height:1.05;

    margin-bottom:25px;
}

.hero p{

    font-size:22px;

    color:var(--soft);

    line-height:1.7;

    margin-bottom:35px;
}

/* =========================================================
   SEARCH BOX
========================================================= */

.search-box{

    width:100%;

    max-width:760px;

    margin:30px auto 0 auto;

    display:flex;

    flex-wrap:wrap;

    gap:14px;

    align-items:center;

    justify-content:center;

    position:relative;

    z-index:2;
}

.search-box input,
.search-box select{

    background:var(--card);

    color:var(--text);

    border:1px solid var(--border);

    border-radius:14px;

    outline:none;

    transition:.25s;
}

.search-box input::placeholder{

    color:var(--soft);
}

.search-box input:focus,
.search-box select:focus{

    border-color:var(--primary);

    box-shadow:
    0 0 0 4px rgba(63,166,82,.18);
}

/* SEARCH INPUT */

.search-box input[type="search"]{

    flex:1;

    min-width:280px;

    height:54px;

    padding:0 18px;

    font-size:15px;
}

/* SELECT */

.search-box select{

    min-width:220px;

    height:54px;

    padding:0 16px;

    font-size:15px;

    cursor:pointer;

    appearance:none;

    background-image:
    linear-gradient(
        45deg,
        transparent 50%,
        var(--text) 50%
    ),
    linear-gradient(
        135deg,
        var(--text) 50%,
        transparent 50%
    );

    background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);

    background-size:6px 6px;

    background-repeat:no-repeat;
}

.search-box select option{

    background:var(--card);

    color:var(--text);
}

/* BUTTON */

.search-box button{

    height:54px;

    padding:0 24px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );

    color:#ffffff;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

    box-shadow:
    0 10px 24px rgba(37,99,235,.30);
}

.search-box button:hover{

    transform:translateY(-2px);

    box-shadow:
    0 14px 30px rgba(37,99,235,.40);
}

/* =========================================================
   RESET BUTTON
========================================================= */

.reset-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:54px;

    padding:0 22px;

    border-radius:14px;

    text-decoration:none;

    font-size:15px;

    font-weight:600;

    background:var(--card);

    color:var(--text);

    border:1px solid var(--border);

    transition:.25s;
}

.reset-btn:hover{

    background:var(--primary);

    color:#ffffff;

    transform:translateY(-2px);
}

/* =========================================================
   SHARE BUTTON
========================================================= */

.share-btn{

    height:44px;

    padding:0 18px;

    border-radius:12px;

    border:1px solid var(--border);

    background:var(--card);

    color:var(--text);

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;
}

.share-btn:hover{

    background:
    linear-gradient(
        135deg,
        #10b981,
        #059669
    );

    border-color:transparent;

    color:#ffffff;

    transform:translateY(-2px);

    box-shadow:
    0 10px 24px rgba(16,185,129,.30);
}

/* =========================================================
   SECTION
========================================================= */

.section{

    max-width:1400px;

    margin:auto;

    padding:5px 20px;

    width:100%;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-title{

    font-size:42px;

    margin-bottom:50px;
}

/* =========================================================
   GRID
========================================================= */

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

/* =========================================================
   CARD
========================================================= */

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    overflow:hidden;

    transition:.3s;

    box-shadow:var(--shadow);

    display:flex;

    flex-direction:column;
}

.card:hover{

    transform:translateY(-5px);
}

.card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

    transition:.4s ease;
}

.card:hover img{

    transform:scale(1.03);
}

/* =========================================================
   CARD BODY
========================================================= */

.card-body{

    padding:24px;

    display:flex;

    flex-direction:column;

    height:100%;
}

.category{

    display:inline-block;

    margin-bottom:14px;

    color:var(--primary);

    font-size:13px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:1px;
}

.card h3{

    font-size:24px;

    margin-bottom:16px;
}

.card p{

    color:var(--soft);

    line-height:1.7;

    margin-bottom:24px;

    flex:1;
}

.card-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:48px;

    padding:0 20px;

    border-radius:14px;

    background:var(--primary);

    color:#ffffff;

    text-decoration:none;

    font-weight:700;

    transition:.25s;
}

.card-btn:hover{

    transform:translateY(-2px);

    opacity:.92;
}

/* =========================================================
   CARD ACTIONS
========================================================= */

.card-actions{

    display:flex;

    gap:10px;

    margin-top:18px;

    align-items:center;

    flex-wrap:wrap;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{

    border-top:1px solid var(--border);

    padding:40px 20px;

    text-align:center;

    color:var(--soft);
}

.footer a{

    color:var(--soft);

    text-decoration:none;

    transition:.25s;
}

.footer a:hover{

    color:var(--primary);
}

/* =========================================================
   GLOBAL
========================================================= */

a,
button{

    cursor:pointer;
}

img{

    content-visibility:auto;
}

::selection{

    background:var(--primary);

    color:#ffffff;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:var(--bg);
}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

    .mobile-btn{

        display:block;
    }

    .nav-container{

        padding:14px;

        flex-wrap:wrap;

        gap:12px;
    }

    .logo{

        font-size:24px;
    }

    .nav-actions{

        gap:6px;
    }

    .icon-btn{

        width:42px;

        height:42px;

        font-size:18px;
    }

    .nav-links{

        position:absolute;

        top:72px;

        left:0;

        width:100%;

        background:var(--bg2);

        border-top:1px solid var(--border);

        display:none;

        flex-direction:column;

        align-items:flex-start;

        padding:20px;

        max-height:80vh;

        overflow-y:auto;
    }

    .nav-links.show{

        display:flex;
    }

    .nav-links a{

        width:100%;

        padding:14px 12px;

        border-bottom:1px solid var(--border);
    }

    .dropdown{

        width:100%;
    }

    .dropdown-menu{

        display:none;

        position:static;

        border:none;

        box-shadow:none;

        margin-left:10px;

        margin-top:8px;

        width:calc(100% - 10px);
    }

    .dropdown.show .dropdown-menu{

        display:flex;
    }

    .hero{

        min-height:auto;

        padding:10px 20px 10px;
    }

    .hero h1{

        font-size:44px;
    }

    .hero p{

        font-size:18px;
    }

    .search-box{

        flex-direction:column;

        width:100%;

        max-width:100%;
    }

    .search-box input,
    .search-box select,
    .search-box button,
    .reset-btn{

        width:100%;
    }

    .card-actions{

        flex-direction:column;
    }

    .card-actions a,
    .card-actions button{

        width:100%;
    }
}

@media(max-width:480px){

    .nav-container{

        padding:12px;
    }

    .logo{

        font-size:20px;
    }

    .icon-btn{

        width:38px;

        height:38px;

        font-size:16px;
    }

    .hero h1{

        font-size:34px;
    }

    .section-title{

        font-size:30px;
    }
}


/* =====================================================
   LOGIN + REGISTER FORM DESIGN
===================================================== */

/* Wrapper */

.page-wrapper {
    padding: 60px 20px;
}

/* Login Box + Register Box */

.login-box,
.glass-card {
    max-width: 460px;
    margin: 60px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);
}

/* Title */

.login-box h2,
.glass-card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
}

/* Form Group */

.form-group {
    margin-bottom: 22px;
}

/* Labels */

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Focus */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* Button */

.primary-btn {
    width: 100%;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Alert */

.alert {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Links */

.login-box a,
.glass-card a,
.form-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.login-box a:hover,
.glass-card a:hover,
.form-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Link Container */

.form-links {
    text-align: center;
    margin-top: 18px;
}

/* Login bottom links */

.login-box div[style*="text-align:center"] {
    margin-top: 18px !important;
}

/* Mobile */

@media (max-width: 768px) {

    .page-wrapper {
        padding: 30px 15px;
    }

    .login-box,
    .glass-card {
        margin: 30px auto;
        padding: 25px;
        border-radius: 16px;
    }

    .login-box h2,
    .glass-card h2 {
        font-size: 24px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .primary-btn {
        padding: 13px 18px;
        font-size: 14px;
    }

}

/* =====================================================
   FORGOT PASSWORD PAGE
   Match Login + Register Style
===================================================== */

.auth-card {
    max-width: 460px;
    margin: 60px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);
}

/* Title */

.auth-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Subtitle */

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Form Group */

.auth-card .form-group {
    margin-bottom: 22px;
}

/* Labels */

.auth-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* Inputs */

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Input Focus */

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* Buttons */

.auth-card .btn,
.auth-card .btn-primary {
    width: 100%;
    display: inline-block;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
}

.auth-card .btn:hover,
.auth-card .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Alerts */

.auth-card .alert {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-card .alert.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-card .alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Links */

.auth-card a {
    color: #2563eb;
    text-decoration: none;
    transition: 0.2s ease;
}

.auth-card a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Back Link */

.btn-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

/* Guest Link */

.guest-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #64748b;
}

/* Mobile */

@media (max-width: 768px) {

    .auth-card {
        margin: 30px 15px;
        padding: 25px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-card input,
    .auth-card select,
    .auth-card textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .auth-card .btn,
    .auth-card .btn-primary {
        padding: 13px 18px;
        font-size: 14px;
    }

}

/* =========================================================
   CARD LINK
========================================================= */

.card-link{

    text-decoration:none;

    color:inherit;

    display:block;
}

/* CLICKABLE FEEL */

.card{

    cursor:pointer;
}

/* STRONGER HOVER */

.card:hover{

    transform:
    translateY(-8px);

    box-shadow:
    0 18px 40px rgba(0,0,0,.12);
}

/* DARK MODE */

html.dark .card:hover{

    box-shadow:
    0 18px 40px rgba(0,0,0,.45);
}

/* =========================================================
   CARD Add animated border glow on hover
========================================================= */
.card{

    position:relative;
}

.card::before{

    content:'';

    position:absolute;

    inset:0;

    border-radius:24px;

    padding:1px;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        transparent
    );

    opacity:0;

    transition:.3s;

    pointer-events:none;
}

.card:hover::before{

    opacity:1;
}

/* =========================================================
   CARD prevent all child elements from becoming blue/purple link colors:
========================================================= */

.card-link{

    text-decoration:none;

    color:inherit;

    display:block;
}

.card-link *{

    color:inherit;
}