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

*{
    margin:0;
    padding:0;
    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);
    overflow-x:hidden;
}

button,
input{
    font-family:inherit;
}


/* 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
========================================================= */

.hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 75px 8%;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.12;
    font-weight: 700;
    color: #28135f;
    max-width: 750px;
}

.hero h1 span {
    color: #6d28d9;
}

.hero-sub {
    margin-top: 22px;
    max-width: 650px;
    font-size: 17px;
    line-height: 1.7;
    color: #5d5575;
}

.hero-small {
    margin-top: 10px;
    color: #6d28d9;
    font-weight: 600;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn {
    height: 50px;
    border-radius: 14px;
    padding: 0 23px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
    /* The hero buttons are links (set in admin Banner & Content) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.primary-btn {
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.2);
}

.secondary-btn {
    background: #ffffff;
    color: #6d28d9;
    border: 1px solid #ded3f5;
}

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


/* =========================================================
   STATS
========================================================= */

.stats-strip {
    width: 84%;
    margin: -55px auto 0;
    position: relative;
    z-index: 5;
    background: #ffffff;
    border: 1px solid #eee8f8;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(38, 23, 77, 0.16);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 20px;
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 15px;
    border-right: 1px solid #eeeaf5;
}

.stat-box:last-child {
    border-right: none;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.25);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.stat-box h3 {
    font-size: 24px;
    line-height: 1.15;
    color: #4c1d95;
    margin-bottom: 3px;
}

.stat-box p {
    color: #77708c;
    font-size: 13px;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section {
    width: 84%;
    margin: 90px auto 0;
}

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

.section-head h2 {
    color: #35107e;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-head p {
    color: #746c88;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   DYNAMIC CATEGORY TABS
========================================================= */

/* Category tabs: single-row slider with arrows */
.category-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.category-tabs {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.category-slider.at-start .category-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
}

.category-slider.at-end .category-tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px);
}

.category-slider.at-start.at-end .category-tabs {
    -webkit-mask-image: none;
    mask-image: none;
    justify-content: center;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs.dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
    cursor: grabbing;
}

.category-tabs.dragging .category-chip {
    pointer-events: none;
}

.cat-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5def3;
    background: #ffffff;
    color: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.cat-arrow:hover {
    background: #f5f0ff;
    border-color: #c9b8f1;
}

.cat-arrow svg {
    width: 18px;
    height: 18px;
}

.cat-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.category-slider.at-start.at-end .cat-arrow {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #e5def3;
    background: #ffffff;
    color: #3f3855;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.category-chip:hover {
    color: #6d28d9;
    border-color: #c9b8f1;
    background: #f8f5ff;
    transform: translateY(-1px);
}

.category-chip.active-chip {
    color: #ffffff;
    border-color: #6d28d9;
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.18);
}


/* =========================================================
   EXAM GRID
========================================================= */

/* Exam filter (applies to the active category tab) */
.exam-filter {
    position: relative;
    max-width: 420px;
    margin: -12px auto 22px;
}

.exam-filter > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #9a8fb5;
    pointer-events: none;
}

.exam-filter input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 40px;
    border: 1px solid #e5def3;
    border-radius: 999px;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    color: #2a1f45;
    outline: none;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.exam-filter input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.exam-filter button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f3eefc;
    color: #6d28d9;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.exam-filter.has-value button {
    display: flex;
}

.exam-filter button svg {
    width: 14px;
    height: 14px;
}

.exam-card.extra-card,
.exam-card.filtered-out {
    display: none;
}

.exam-panels.filtering .exam-card.extra-card:not(.filtered-out) {
    display: flex;
}

/* Category panels: slide between categories without reloading */
.exam-panels {
    overflow: hidden;
    margin: -4px;
    padding: 4px;
    transition: height 0.35s ease;
}

.exam-panels-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.exam-panels-track.no-anim {
    transition: none;
}

.exam-panel {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
}

.exam-panel:not(.active-panel) {
    visibility: hidden;
    transition: visibility 0s 0.4s;
}

.exam-panels.sliding .exam-panel {
    visibility: visible;
    transition: none;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.exam-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.exam-card:hover {
    border-color: #c9b6f2;
    background: #fbf9ff;
}

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

.exam-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.exam-card-icon svg {
    width: 20px;
    height: 20px;
    color: #6d28d9;
}

.exam-card h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #2a1f45;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.exam-card:hover .exam-card-arrow {
    color: #6d28d9;
    transform: translateX(3px);
}

.empty-db-card {
    grid-column: 1 / -1;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 18px;
    padding: 45px 20px;
    color: #77708c;
    font-size: 14px;
}


/* =========================================================
   TEST SERIES
========================================================= */

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

.series-card {
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(44, 24, 87, 0.06);
    transition: 0.25s ease;
}

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

.series-badge {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
}

.series-card h3 {
    color: #35107e;
    font-size: 20px;
    margin-bottom: 10px;
}

.series-card p {
    color: #77708c;
    font-size: 13px;
    line-height: 1.6;
}

.series-card ul {
    list-style: none;
    margin: 20px 0;
    display: grid;
    gap: 9px;
}

.series-card li {
    font-size: 13px;
    color: #4f4961;
}

.series-card li::before {
    content: "✓";
    color: #6d28d9;
    font-weight: 700;
    margin-right: 8px;
}

.series-card button {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 13px;
    background: #f3f0ff;
    color: #6d28d9;
    font-weight: 600;
    cursor: pointer;
}


/* =========================================================
   WHY SECTION
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(44, 24, 87, 0.05);
}

.feature-card svg {
    width: 32px;
    height: 32px;
    color: #6d28d9;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #35107e;
    font-size: 17px;
    margin-bottom: 9px;
}

.feature-card p {
    color: #77708c;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   PASS
========================================================= */

.pass-section {
    margin-bottom: 90px;
}

.pass-box {
    background: linear-gradient(120deg, #321064, #6d28d9);
    border-radius: 26px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

.pass-left {
    max-width: 700px;
}

.pass-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pass-left h2 {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.pass-left p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.pass-right .primary-btn {
    background: #facc15;
    color: #241900;
    white-space: nowrap;
}


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

.site-footer {
    background: #171127;
    color: #ffffff;
    padding: 60px 8% 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 45px;
    padding-bottom: 45px;
}

.footer-brand img {
    width: 140px;
    height: auto;
    margin-bottom: 17px;
}

.footer-brand p {
    max-width: 310px;
    color: #aaa3bb;
    font-size: 13px;
    line-height: 1.8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.footer-col a {
    text-decoration: none;
    color: #aaa3bb;
    font-size: 13px;
    transition: 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    text-align: center;
}

.footer-bottom p {
    color: #888197;
    font-size: 12px;
}


/* =========================================================
   BIG CONTAINERS (popular exams and test series)
========================================================= */

.popular-exams-section,
.test-series-section {
    margin-top: 40px;
}

.home-panel {
    padding: 36px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--tyt-border);
    box-shadow: var(--tyt-card-shadow);
}

.home-panel .section-head {
    margin-bottom: 28px;
}

.home-panel .section-head h2 {
    font-size: 30px;
}

/* A single series sits in the middle instead of filling one side */
.series-grid:has(> .series-card:only-child) {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

.series-card p s {
    color: #a7a1b8;
    font-weight: 400;
}


/* =========================================================
   VIEW ALL LINKS
========================================================= */

.section-more {
    text-align: center;
    margin-top: 28px;
}

.section-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.section-more a:hover {
    color: #35107e;
}

.section-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.section-more a:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   HOW IT WORKS
========================================================= */

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

.step-card {
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(44, 24, 87, 0.05);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card h3 {
    color: #35107e;
    font-size: 17px;
    margin-bottom: 9px;
}

.step-card p {
    color: #77708c;
    font-size: 13px;
    line-height: 1.7;
}


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

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #eee8f7;
    border-radius: 14px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    color: #2a1f45;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: #6d28d9;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 20px 16px;
    color: #77708c;
    font-size: 13px;
    line-height: 1.7;
}

.faq-item a {
    color: #6d28d9;
    font-weight: 600;
}


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

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

/* =========================================================
   RESPONSIVE — LARGE TABLET
========================================================= */

@media (max-width: 1200px) {

    .section,
    .stats-strip {
        width: 90%;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
        gap: 25px;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

}

/* 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;
    }

    .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);
    }

    .site-footer{
        padding-bottom:90px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 650px) {

    .hero {
        min-height: 430px;
    }

    .hero-overlay {
        padding: 55px 22px;
    }

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

    .hero-sub {
        font-size: 14px;
    }

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

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .stats-strip {
        width: calc(100% - 30px);
        margin-top: -20px;
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 10px;
    }

    .stat-box {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #eeeaf5;
        padding: 13px 8px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .stat-icon svg {
        width: 19px;
        height: 19px;
    }

    .popular-exams-section,
    .test-series-section {
        margin-top: 28px;
    }

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

    .home-panel .section-head {
        margin-bottom: 20px;
    }

    .home-panel .section-head h2 {
        font-size: 24px;
    }

    .stat-box:nth-child(3),
    .stat-box:nth-child(4) {
        border-bottom: none;
    }

    .section {
        width: calc(100% - 30px);
        margin-top: 65px;
    }

    .section-head {
        margin-bottom: 27px;
    }

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

    .section-head p {
        font-size: 13px;
    }

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

    .category-slider {
        margin-bottom: 22px;
    }

    .cat-arrow {
        width: 32px;
        height: 32px;
    }

    .category-chip {
        flex-shrink: 0;
        min-height: 43px;
        padding: 0 16px;
        font-size: 13px;
    }

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

    .pass-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .pass-left h2 {
        font-size: 25px;
    }

    .pass-right {
        width: 100%;
    }

    .pass-right .primary-btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer {
        padding: 45px 20px 90px;
    }

}

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

    .logo img{
        height:40px;
    }

    .nav-center{
        width:72%;
    }
}


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

@media (max-width: 400px) {

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

    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }

    .stat-box h3 {
        font-size: 21px;
    }

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

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

    .footer-brand {
        grid-column: auto;
    }

}

/* =========================================================
   PHONE HERO: hero-mobile.png on top, text below (nothing overlapping)
========================================================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        background: linear-gradient(180deg, #f4efff 0%, #faf8ff 100%);
    }

    .hero-picture {
        display: block;
        padding: 14px 18px 0;
    }

    .hero .hero-bg {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
        margin: 0 auto;
    }

    .hero-overlay {
        padding: 8px 18px 28px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(26px, 7.4vw, 34px);
        line-height: 1.2;
        max-width: none;
    }

    .hero-sub {
        margin: 12px auto 0;
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-small {
        margin-top: 8px;
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .hero-actions .primary-btn,
    .hero-actions .secondary-btn {
        width: 100%;
        height: 48px;
        justify-content: center;
    }
}
