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

*{
    box-sizing:border-box;
}

:root{
    --tyt-purple:#5b17d6;
    --tyt-purple-dark:#2f0f73;
    --tyt-purple-soft:#efe7ff;
    --tyt-gold:#f4c21f;
    --tyt-gold-dark:#d9a90a;
    --tyt-text:#1f1f2e;
    --tyt-subtext:#625f74;
    --tyt-white:#ffffff;
    --tyt-border:#ece7f7;
    --tyt-bg:#f7f5fc;
    --tyt-card-shadow:0 14px 34px rgba(63, 24, 132, 0.08);
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    margin:0;
    background:linear-gradient(180deg,#faf8ff 0%, #f6f3fc 100%);
    color:var(--tyt-text);
}

/* NAVBAR */
.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 8%;
    position:sticky;
    top:0;
    z-index:3000;
    background:rgba(255,255,255,0.82);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 6px 24px rgba(53,23,108,0.06);
    border-bottom:1px solid rgba(91,23,214,0.06);
}

.left-section{
    display:flex;
    align-items:center;
    gap:10px;
}

.right-section{
    display:flex;
    align-items:center;
    gap:15px;
    position:relative;
}

.logo img{
    height:45px;
    display:block;
}

/* DESKTOP NAV */
.desktop-nav{
    display:flex;
    align-items:center;
    gap:30px;
}

.desktop-nav a{
    text-decoration:none;
    color:#342d4f;
    font-weight:600;
    position:relative;
    padding-bottom:5px;
    transition:0.25s ease;
}

.desktop-nav a::after{
    content:"";
    position:absolute;
    bottom:-6px;
    left:0;
    width:0%;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--tyt-purple),var(--tyt-gold));
    transition:0.3s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after{
    width:100%;
}

.desktop-nav a.active{
    color:var(--tyt-purple-dark);
}

/* MOBILE MENU */
.nav-center{
    display:none;
}

.nav-center nav{
    display:flex;
    flex-direction:column;
    width:100%;
}

.nav-center nav a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#777;
    font-weight:500;
    width:100%;
}

.nav-center nav a i{
    width:20px;
    height:20px;
    color:#5f4f7f;
    flex-shrink:0;
}

/* SEARCH */
.search-bar{
    padding:10px 15px;
    border-radius:999px;
    border:1px solid #e6def7;
    width:210px;
    transition:0.3s;
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--tyt-text);
}

.search-bar::placeholder{
    color:#8f88a4;
}

.search-bar:focus{
    outline:none;
    border-color:rgba(91,23,214,0.35);
    box-shadow:0 0 0 4px rgba(91,23,214,0.08);
}

.desktop-search{
    display:block;
}

#mobileSearch{
    display:none;
}

.search-icon{
    display:none;
    cursor:pointer;
    align-items:center;
    justify-content:center;
}

.search-icon i{
    width:22px;
    height:22px;
    color:#433d55;
}

/* LOGIN BUTTON */
.login-btn a{
    text-decoration:none;
    background:linear-gradient(135deg,var(--tyt-gold),#ffd95a);
    color:#221b07;
    padding:11px 20px;
    border-radius:999px;
    font-weight:700;
    transition:0.25s ease;
    box-shadow:0 10px 20px rgba(244,194,31,0.22);
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.login-btn a:hover{
    transform:translateY(-1px);
    background:linear-gradient(135deg,var(--tyt-purple),#7b39f2);
    color:white;
    box-shadow:0 12px 22px rgba(91,23,214,0.22);
}

/* HAMBURGER */
.hamburger{
    display:none;
    cursor:pointer;
    align-items:center;
    justify-content:center;
}

.hamburger i{
    width:24px;
    height:24px;
    color:#433d55;
}

/* HERO */
.exam-hero{
    padding:36px 8% 10px;
}

.exam-hero-content{
    background:
        radial-gradient(circle at top right, rgba(244,194,31,0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(91,23,214,0.16), transparent 24%),
        linear-gradient(145deg, #ffffff 0%, #f2ebff 40%, #e7d6ff 100%);
    border-radius:34px;
    padding:46px 38px;
    box-shadow:0 22px 44px rgba(63,24,132,0.12);
    position:relative;
    overflow:hidden;
    border:1px solid rgba(91,23,214,0.06);
}

.exam-hero-content::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(circle at top right, rgba(255,255,255,0.34), transparent 30%),
      radial-gradient(circle at bottom left, rgba(91,23,214,0.08), transparent 28%);
    pointer-events:none;
}

.exam-hero-content > *{
    position:relative;
    z-index:2;
}

.hero-badge{
    display:inline-block;
    background:linear-gradient(135deg,#f7ecff,#fff7d7);
    color:var(--tyt-purple-dark);
    padding:9px 15px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:16px;
    border:1px solid rgba(91,23,214,0.08);
    box-shadow:0 8px 20px rgba(91,23,214,0.06);
}

.exam-hero-content h1{
    font-size:50px;
    line-height:1.08;
    margin:0 0 14px;
    font-weight:800;
    color:var(--tyt-purple-dark);
    max-width:760px;
    letter-spacing:-0.8px;
}

.exam-hero-content p{
    font-size:16px;
    line-height:1.9;
    color:var(--tyt-subtext);
    max-width:760px;
    margin:0 0 24px;
}

.hero-search-box{
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,0.96);
    border-radius:20px;
    padding:12px 14px;
    max-width:780px;
    margin-bottom:20px;
    border:1px solid #e4daf8;
    box-shadow:0 12px 22px rgba(91,23,214,0.06);
}

.hero-search-box i{
    width:22px;
    height:22px;
    color:#6b7280;
    flex-shrink:0;
}

.hero-search-box input{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    font-size:15px;
    color:#111827;
    font-family:'Poppins',sans-serif;
}

.hero-search-box button{
    border:none;
    background:linear-gradient(135deg,var(--tyt-gold),#ffd54e);
    color:#111827;
    padding:12px 18px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
    flex-shrink:0;
    box-shadow:0 10px 20px rgba(244,194,31,0.18);
    transition:0.25s ease;
    font-family:'Poppins',sans-serif;
}

.hero-search-box button:hover{
    transform:translateY(-1px);
}

.quick-tags{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.quick-tags span{
    font-size:13px;
    color:#5f5872;
    font-weight:700;
}

.quick-tag{
    border:none;
    background:#fff;
    color:var(--tyt-purple-dark);
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    border:1px solid rgba(91,23,214,0.10);
    box-shadow:0 8px 18px rgba(66,22,145,0.04);
    transition:0.25s ease;
    font-family:'Poppins',sans-serif;
}

.quick-tag:hover{
    transform:translateY(-1px);
    background:linear-gradient(135deg,var(--tyt-purple),#7b39f2);
    color:#fff;
    border-color:transparent;
}

/* COMMON SECTION */
.section{
    padding:72px 8%;
}

.section-head{
    text-align:center;
    margin-bottom:36px;
}

.section-head h2{
    font-size:36px;
    color:var(--tyt-purple-dark);
    margin:0 0 10px;
    font-weight:800;
}

.section-head p{
    color:#6f6a82;
    font-size:15px;
    margin:0;
    line-height:1.8;
}

/* EXAM GRID */
.exam-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}

.exam-card{
    background:#fff;
    border:1px solid var(--tyt-border);
    border-radius:26px;
    padding:24px;
    box-shadow:var(--tyt-card-shadow);
    transition:0.25s ease;
    display:flex;
    flex-direction:column;
}

.exam-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 34px rgba(63,24,132,0.11);
}

.exam-card.hidden-card{
    display:none;
}

.exam-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
    gap:14px;
}

.exam-top i{
    width:24px;
    height:24px;
    color:var(--tyt-purple);
    flex-shrink:0;
}

.exam-badge{
    display:inline-block;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.exam-badge.gov{
    background:linear-gradient(135deg,#fff3bf,#ffe070);
    color:#855f00;
}

.exam-badge.board{
    background:linear-gradient(135deg,#dff4ff,#edf9ff);
    color:#0b5f80;
}

.exam-badge.entrance{
    background:linear-gradient(135deg,#f1e8ff,#ede3ff);
    color:#6d28d9;
}

.exam-card h3{
    font-size:22px;
    margin:0 0 10px;
    color:var(--tyt-purple-dark);
    font-weight:700;
}

.exam-card p{
    color:#6b667d;
    font-size:14px;
    line-height:1.8;
    margin:0 0 16px;
}

.exam-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.exam-meta span{
    background:#f7f3ff;
    color:#4c4461;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    border:1px solid #ede6fb;
}

.exam-card button{
    margin-top:auto;
    border:none;
    background:linear-gradient(135deg,var(--tyt-purple),#7c3cff);
    color:#fff;
    padding:12px 16px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 18px rgba(91,23,214,0.16);
    transition:0.25s ease;
    font-family:'Poppins',sans-serif;
}

.exam-card button:hover{
    transform:translateY(-1px);
}

/* CTA */
.cta-section{
    padding-top:20px;
}

.cta-box{
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 24%),
        linear-gradient(135deg,var(--tyt-purple),#3c148f 70%);
    border-radius:34px;
    padding:50px 30px;
    text-align:center;
    color:white;
    box-shadow:0 22px 40px rgba(63,24,132,0.2);
}

.cta-box h2{
    font-size:38px;
    margin:0 0 12px;
    font-weight:800;
}

.cta-box p{
    color:#ece4ff;
    margin:0 0 24px;
    line-height:1.8;
    font-size:15px;
}

.cta-actions{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.primary-btn{
    padding:15px 28px;
    border:none;
    background:linear-gradient(135deg,var(--tyt-gold),#ffd54e);
    color:#111827;
    font-size:15px;
    font-weight:700;
    border-radius:14px;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(244,194,31,0.24);
    transition:0.25s ease;
    font-family:'Poppins',sans-serif;
}

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

.secondary-btn{
    padding:15px 28px;
    border:2px solid rgba(255,255,255,0.65);
    background:transparent;
    color:#fff;
    font-size:15px;
    font-weight:700;
    border-radius:14px;
    cursor:pointer;
    transition:0.25s ease;
    font-family:'Poppins',sans-serif;
}

.secondary-btn:hover{
    background:rgba(255,255,255,0.08);
}

/* FOOTER */
footer{
    background:#12092a;
    color:#cfc7e7;
    text-align:center;
    padding:22px 20px;
    margin-top:50px;
}

/* BOTTOM NAV */
.bottom-nav{
    display:none;
}

.bottom-item{
    text-decoration:none;
}

/* MOBILE */
@media (max-width:768px){

    .desktop-nav{
        display:none;
    }

    .hamburger{
        display:flex;
    }

    .search-icon{
        display:flex;
    }

    .desktop-search{
        display:none;
    }

    .nav-center{
        display:flex;
        position:fixed;
        top:82px;
        left:-100%;
        width:50%;
        height:calc(100vh - 82px);
        background:white;
        flex-direction:column;
        justify-content:flex-start;
        align-items:flex-start;
        gap:10px;
        padding:20px 15px;
        border-top-right-radius:25px;
        border-bottom-right-radius:25px;
        box-shadow:2px 0 20px rgba(0,0,0,0.1);
        transition:0.3s ease;
        z-index:5000;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }

    .nav-center.active{
        left:0;
    }

    .nav-center nav{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        width:100%;
    }

    .nav-center nav a{
        display:flex;
        align-items:center;
        gap:12px;
        margin:0 0 18px 0;
        font-size:14px;
        color:#777;
        width:100%;
        text-align:left;
        padding:8px 5px;
        border-bottom:1px solid #f2f2f2;
    }

    #mobileSearch{
        display:none;
        position:absolute;
        top:55px;
        right:0;
        width:180px;
        z-index:6000;
        background:white;
    }

    #mobileSearch.active{
        display:block;
    }

    .exam-hero{
        padding:28px 6% 6px;
    }

    .exam-hero-content{
        padding:28px 22px;
        border-radius:26px;
    }

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

    .exam-hero-content p{
        font-size:15px;
    }

    .hero-search-box{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-search-box button{
        width:100%;
    }

    .exam-grid{
        grid-template-columns:1fr;
    }

    .section{
        padding:56px 6%;
    }

    .bottom-nav{
        position:fixed;
        bottom:0;
        width:100%;
        background:white;
        display:flex;
        justify-content:space-around;
        padding:10px 0;
        box-shadow:0 -2px 10px rgba(0,0,0,0.1);
        z-index:1000;
        border-top:1px solid #eee7fb;
    }

    .bottom-item{
        text-align:center;
        font-size:12px;
        color:#777;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
    }

    .bottom-item i{
        width:22px;
        height:22px;
        color:#6b6383;
        margin-bottom:3px;
    }

    .bottom-item p{
        margin:0;
        color:#6b6383;
        font-size:12px;
    }

    .active-bottom i,
    .active-bottom p{
        color:var(--tyt-purple);
    }

    footer{
        margin-bottom:70px;
    }
}

@media (max-width:480px){
    .navbar{
        padding:15px 5%;
    }

    .logo img{
        height:40px;
    }

    .nav-center{
        width:72%;
    }

    .section{
        padding:55px 5%;
    }

    .section-head h2{
        font-size:28px;
    }

    .exam-hero-content h1{
        font-size:29px;
    }

    .cta-box h2{
        font-size:29px;
    }

    .exam-card{
        padding:20px;
    }
}
/* =========================================================
   EXAMS LIST PAGE (database-driven, Public/exams.php)
========================================================= */
.xl-page{
    max-width:1200px;
    margin:0 auto;
    padding:28px 5% 20px;
}

.xl-head{
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    padding:36px 40px;
    margin-bottom:28px;
    border-radius:24px;
    color:#fff;
    background:linear-gradient(120deg,#2f0f73,var(--tyt-purple) 75%,#7b39f2);
    box-shadow:0 18px 40px rgba(63,24,132,0.2);
}

/* Gold and white rings in the corner */
.xl-head::before,
.xl-head::after{
    content:"";
    position:absolute;
    border-radius:50%;
    pointer-events:none;
}

.xl-head::before{
    width:220px;
    height:220px;
    top:-110px;
    right:-50px;
    border:32px solid rgba(244,194,31,0.22);
}

.xl-head::after{
    width:150px;
    height:150px;
    bottom:-95px;
    right:320px;
    border:22px solid rgba(255,255,255,0.08);
}

.xl-head-text,
.xl-head .xl-search{
    z-index:1;
}

.xl-head-text{
    position:relative;
}

.xl-crumbs{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    font-size:13px;
    color:rgba(255,255,255,0.72);
}

.xl-crumbs a{
    color:rgba(255,255,255,0.72);
    text-decoration:none;
}

.xl-crumbs a:hover{
    color:#fff;
}

.xl-head h1{
    font-size:36px;
    font-weight:700;
    line-height:1.2;
    color:#fff;
    margin:0 0 8px;
}

.xl-head p{
    font-size:15px;
    line-height:1.6;
    color:rgba(255,255,255,0.82);
    margin:0;
}

.xl-search{
    position:relative;
    flex:0 1 380px;
    min-width:0;
}

/* Big container around the category chips and exam cards */
.xl-panel{
    padding:32px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--tyt-border);
    box-shadow:var(--tyt-card-shadow);
}

.xl-panel .xl-group:last-child{
    margin-bottom:0;
}

.xl-search > svg{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    color:#9a8fb5;
    pointer-events:none;
}

.xl-search input{
    width:100%;
    height:48px;
    padding:0 46px;
    border:1px solid var(--tyt-border);
    border-radius:999px;
    background:#fff;
    font-family:inherit;
    font-size:14px;
    color:var(--tyt-text);
    outline:none;
    box-sizing:border-box;
    transition:0.2s ease;
}

.xl-search input:focus{
    border-color:#fff;
    box-shadow:0 0 0 3px rgba(255,255,255,0.28);
}

.xl-search button{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:30px;
    height:30px;
    border:none;
    border-radius:50%;
    background:var(--tyt-purple-soft);
    color:var(--tyt-purple);
    display:none;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.xl-search.has-value button{
    display:flex;
}

.xl-search button svg{
    width:15px;
    height:15px;
}

/* Category chips */
.xl-cats{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-bottom:30px;
}

.xl-chip{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 14px;
    border:1px solid var(--tyt-border);
    border-radius:999px;
    background:#fff;
    color:#3f3855;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    flex-shrink:0;
    transition:0.2s ease;
}

.xl-chip span{
    font-size:11px;
    font-weight:600;
    color:#8a82a3;
    background:#f3eefc;
    border-radius:999px;
    padding:1px 7px;
}

.xl-chip:hover{
    border-color:#c9b8f1;
    color:var(--tyt-purple);
}

.xl-chip.active{
    background:var(--tyt-purple);
    border-color:var(--tyt-purple);
    color:#fff;
}

.xl-chip.active span{
    background:rgba(255,255,255,0.2);
    color:#fff;
}

/* Groups + cards */
.xl-group{
    margin-bottom:30px;
}

.xl-group[hidden],
.xl-card[hidden],
.xl-empty[hidden]{
    display:none;
}

.xl-group h2{
    font-size:17px;
    font-weight:700;
    color:var(--tyt-text);
    margin:0 0 14px;
}

.xl-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.xl-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    min-height:92px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--tyt-border);
    border-radius:16px;
    box-shadow:0 4px 14px rgba(63,24,132,0.04);
    text-decoration:none;
    transition:border-color 0.2s ease, background 0.2s ease;
}

.xl-card:hover{
    border-color:#c9b6f2;
    background:#fbf9ff;
    box-shadow:0 10px 24px rgba(63,24,132,0.08);
}

.xl-card-icon{
    width:56px;
    height:56px;
    border-radius:14px;
    background:#f5f0ff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
}

.xl-card-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px;
    box-sizing:border-box;
}

.xl-card-icon svg{
    width:26px;
    height:26px;
    color:var(--tyt-purple);
}

.xl-card-text{
    flex:1;
    min-width:0;
}

.xl-card-text h3{
    margin:0;
    font-size:16px;
    font-weight:600;
    color:#2a1f45;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.xl-card-text p{
    margin:4px 0 0;
    font-size:12.5px;
    line-height:1.5;
    color:#8a82a3;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.xl-card-arrow{
    width:20px;
    height:20px;
    color:#b3a8c9;
    flex-shrink:0;
    transition:transform 0.2s ease, color 0.2s ease;
}

.xl-card:hover .xl-card-arrow{
    color:var(--tyt-purple);
    transform:translateX(3px);
}

.xl-empty{
    text-align:center;
    padding:50px 20px;
    color:#8a82a3;
}

.xl-empty svg{
    width:34px;
    height:34px;
    color:#c4bbd8;
}

.xl-empty p{
    margin:8px 0 0;
    font-size:14px;
}

@media (max-width:1000px){
    .xl-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:650px){
    .xl-page{
        padding:18px 16px 10px;
    }

    .xl-head{
        flex-direction:column;
        align-items:stretch;
        gap:20px;
        padding:24px 20px;
        margin-bottom:18px;
        border-radius:20px;
    }

    .xl-head h1{
        font-size:28px;
    }

    .xl-head p{
        font-size:14px;
    }

    .xl-search{
        flex:none;
    }

    .xl-panel{
        padding:22px 16px;
        border-radius:20px;
    }

    .xl-cats{
        flex-wrap:nowrap;
        justify-content:flex-start;
        overflow-x:auto;
        scrollbar-width:none;
        margin:0 -16px 24px;
        padding:2px 16px;
    }

    .xl-cats::-webkit-scrollbar{
        display:none;
    }

    .xl-grid{
        grid-template-columns:1fr;
    }
}

/* "Pick your exam to see its subject-wise tests" (exams.php?type=...) */
.xl-head .xl-section-hint{
    display:inline-block;
    margin:8px 0 2px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.16);
    font-size:13px;
    color:#fff;
    font-weight:500;
}
.xl-section-hint a{ margin-left:6px; font-weight:700; color:#f4c21f; }
