@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary-color: #004085;
    --secondary-color: #3094d1;
    --accent-color: #28a745;
    --background-color: #f0f4f8;
    --text-color: #34495e;
    --card-bg-color: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); /* Reverted, maybe user wants shadow back? Keeping original values for now */
    --card-hover-shadow: 0 15px 40px rgba(0, 86, 179, 0.15); /* Reverted */
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
    --error-color: #dc3545;
    --test-primary: #004085;
    --test-secondary: #3094d1;
    --test-correct: #28a745;
    --test-incorrect: #dc3545;
    --test-selected: #e6f7ff;
    --test-selected-border: #b3e0ff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 60px;
    /* Default for desktop */
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        /* Match new header height */
        padding-bottom: 60px;
        /* Footer (60px) + Buffer (30px) */
    }
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    /* Default padding for desktop */
    height: auto;
    /* Default height for desktop */
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.logo img {
    height: 36px;
    width: auto;
    vertical-align: middle;
}

.menu-toggle,
.search-toggle,
.notification-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    transition: color var(--transition-speed);
    z-index: 1001;
    margin-left: 8px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
    border-radius: 4px;
    cursor: pointer;
    /* Added for share link */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:focus-visible {
    color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .menu-backdrop {
        display: none;
    }
}

.hero {
    /* Desktop Image (High-Res) */
    background: linear-gradient(135deg, rgba(0, 64, 133, 0.9), rgba(0, 123, 255, 0.7)), url('https://images.unsplash.com/photo-1556740758-90de374c12ad?q=80&w=2070&auto-format&fit=crop') no-repeat center center/cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero {
        /* Mobile Image (Low-Res) - w=800 */
        background-image: linear-gradient(135deg, rgba(0, 64, 133, 0.9), rgba(0, 123, 255, 0.7)), url('https://images.unsplash.com/photo-1556740758-90de374c12ad?q=80&w=800&auto-format&fit=crop');
    }
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

.tagline {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
}

.search-wrapper {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
}

.search-container {
    width: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 5px;
    overflow: hidden;
}

.search-input-main {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    background: transparent;
    min-width: 50px;
}

.search-button {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.4);
    border-radius: 50px;
}

.search-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.search-button i {
    font-size: 18px;
}

.suggestions-list {
    position: absolute;
    top: 90%;
    /* Hero */
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--card-bg-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 5px;
}

.suggestions-list-modal {
    position: absolute;
    top: 100%;
    /* Modal/Page */
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: var(--card-bg-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 5px;
}

.suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.services-section {
    padding: 40px 0;
}
 @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .section-title {
            /* THE FIX:
              Changed from (A, B, A, B) to (A, B, A).
              This makes the left half (A, B) different from the right half (B, A).
            */
            background: linear-gradient(45deg, 
                #004085, /* (A) Deep Navy/Indigo */
                #3094d1, /* (B) Vibrant Sky Blue */
                #004085  /* (A) Deep Navy/Indigo */
            );

            /* The rest of your code is great */
            background-size: 200% 200%;
            animation: gradientShift 10s ease infinite;
            
            /* Copied all your other styles */
            color: white;
            border-radius: 16px; /* Tailwind 'rounded-2xl' */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Tailwind 'shadow-xl' */
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
            text-align: center;
            font-size: 35px; /* approx Tailwind 'text-4xl' */
            margin-bottom: 50px; /* Tailwind 'mb-12' */
            font-weight: 700; /* Tailwind 'font-bold' */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px; /* Tailwind 'gap-2.5' */
            
            /* Added padding for visual appeal */
            padding: 2rem 4rem;
        }@keyframes wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

.animated-flag {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    font-size: 1em;
    transform-origin: bottom left;
}

@media (min-width: 769px) {
    .animated-flag {
        display: none;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 20px;
    min-height: 300px;
}

.search-results-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.result-box {
    background: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    outline-offset: 2px;
}

.result-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.result-box:focus-visible {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    outline: 2px solid var(--secondary-color);
}

.result-box span {
    font-size: 16px;
    display: block;
}

.result-box i {
    margin-right: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    width: 30px;
    text-align: center;
}

main.search-mode #janseva-section,
main.search-mode #tools-section {
    display: none;
}

.service-category {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-top-color var(--transition-speed);
}

.category-title {
    font-size: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 25px;
    padding: 10px 15px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-category:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category ul li {
    margin-bottom: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-top: 15px;
}

.service-category ul li:first-child {
    margin-top: 0;
}

.service-category ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-category ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed), transform var(--transition-speed);
    border-radius: 4px;
    outline-offset: 2px;
}

.service-category ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.service-category ul li a:focus-visible {
    color: var(--secondary-color);
    transform: translateX(5px);
    outline: 2px solid var(--secondary-color);
}

.service-category ul li i {
    margin-right: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    width: 30px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.service-category ul li a:hover i {
    transform: scale(1.2);
}

footer {
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

#offline-status {
    position: fixed;
    top: 60px;
    /* Default for desktop */
    left: 0;
    width: 100%;
    background-color: var(--error-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    z-index: 999;
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- MOBILE SEARCH MODAL STYLES --- */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1010;
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-search-modal.active {
    transform: translateY(0);
    visibility: visible;
}

.modal-header {
    padding: 8px 8px 8px 12px;
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.close-modal-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1020;
    padding: 5px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 4px;
}

.search-wrapper-modal {
    flex-grow: 1;
    position: relative;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

#mobileSearchButton {
    height: 38px;
    width: 38px;
    padding: 0;
    margin: 0;
}

#mobileSearchButton i {
    font-size: 16px;
    margin: 0;
}

/* --- END MOBILE SEARCH MODAL STYLES --- */


/* --- Page Modal Styles --- */
#pageContainer {
    padding-top: 30px;
    padding-bottom: 30px;
}

#pageModalCard {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    /* border: 1px solid #e5e7eb; */ /* <-- MODIFICATION: Removed border */
    /* Add back the original shadow if desired, or leave it clean */
     box-shadow: var(--card-shadow);
}

#jobArticleCard {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    /* border: 1px solid #e5e7eb; */ /* <-- MODIFICATION: Removed border */
    /* Add back the original shadow if desired, or leave it clean */
     box-shadow: var(--card-shadow);
}

.page-modal-back-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.page-modal-back-button i {
    margin-right: 8px;
}

.page-modal-back-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.page-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
background-image: linear-gradient(to right, 
    transparent, 
    var(--secondary-color) 25%, 
    var(--secondary-color) 75%, 
    transparent
  );

  /* Set the gradient to act like a 2px border */
  background-repeat: no-repeat;
  background-size: 100% 2px; /* 100% wide, 2px tall */
  background-position: bottom;

        padding-bottom: 10px;
}

.page-modal-content {
    font-size: 16px;
    line-height: 1.8;
}

.page-modal-content p {
    margin-bottom: 15px;
}

.page-modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-modal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-modal-content li {
    margin-bottom: 8px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-button i {
    font-size: 22px;
    margin-right: 12px;
}

.whatsapp-button:hover {
    background-color: #1EBE56;
    transform: scale(1.05);
}

/* --- END Page Modal Styles --- */

/* === Right Side Drawer Styles === */
#rightSideBackdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#rightSideBackdrop.active {
    opacity: 1;
    visibility: visible;
}

#rightSideDrawer {
    position: fixed;
    bottom: 70px;
    /* Footer (60px) + Margin (10px) */
    right: 10px;
    width: 50%;
    height: auto;
    max-height: calc(100vh - 150px);
    /* 60px header + 60px footer + 30px buffer */
    background-color: var(--card-bg-color);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 101;
    transform: translateX(110%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

#rightSideDrawer.active {
    transform: translateX(0);
}

#rightSideDrawer nav {
    padding: 15px;
}

#rightSideDrawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#rightSideDrawer li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 15px;
}

#rightSideDrawer li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: var(--primary-color);
}

#rightSideDrawer li a:hover {
    background-color: rgba(0, 64, 133, 0.05);
    color: var(--primary-color);
}

/* === End Right Side Drawer Styles === */


/* --- MOBILE STYLES (Max 768px) --- */
@media (max-width: 768px) {
    /* Mobile Header Styles */
    header {
        padding: 0;
        height: 60px;
        /* New height */
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-bottom: none;
    }
    .container.navbar {
        height: 100%;
        padding: 0 15px;
    }
    .logo img {
        height: 30px;
    }
    .menu-toggle,
    .search-toggle,
    .notification-toggle {
        display: block;
    }
    /* --- End Mobile Header Styles --- */
    .hero {
        padding: 110px 0 60px 0;
        /* Adjust padding due to header height change */
    }
    .hero h1 {
        font-size: 36px;
    }
    .tagline {
        font-size: 18px;
    }
    .services-section {
        padding: 10px 0;
    }
    @media (max-width: 768px) {
        .services-section {
            padding: 25px 0;
        }
    }

@keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
    .section-title {background: linear-gradient(45deg, #004085, /* Deep Navy/Indigo */ #3094d1, /* Vibrant Sky Blue */ #004085, /* Repeat for a smoother loop in animation */ #3094d1);
        background-size: 400% 400%;
        animation: gradientShift 10s ease infinite;
        font-size: 25px;
        margin-bottom: 30px;
        gap: 10px;
        color: white;
        padding: 15px;
        margin: 2rem auto;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.5s ease;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }
    .services-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-category {
        padding: 20px;
        transform: none;
        box-shadow: var(--card-shadow);
        padding-bottom: 20px;
    }
    .category-title {
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -20px;
        border-radius: 12px 12px 0 0;
    }
    .service-category:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    .service-category ul li {
        padding-bottom: 12px;
        margin-top: 12px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 65%;
        height: 100vh;
        background: var(--card-bg-color);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        padding: 60px 0 20px 0;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        z-index: 999;
        overflow-y: auto;
        margin-left: 0;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a i.mobile-icon {
        display: inline-block;
        margin-right: 10px;
        font-size: 16px;
        color: #1f93d0;
        width: auto;
    }
    footer {
        display: none;
    }
    #offline-status {
        top: 60px;
        /* Match new header height */
    }
    #pageContainer {
        padding-top: 20px;
    }
    #pageModalCard {
        padding: 15px;
        border-radius: 16px;
         /* Add back shadow for mobile if desired */
         box-shadow: var(--card-shadow);
         border: none; /* Remove border on mobile */
    }
    #jobArticleCard {
        padding: 15px;
        border-radius: 16px;
         /* Add back shadow for mobile if desired */
         box-shadow: var(--card-shadow);
         border: none; /* Remove border on mobile */
    }
 {
        padding: 15px;
        border-radius: 16px;
         /* Add back shadow for mobile if desired */
         box-shadow: var(--card-shadow);
         border: none; /* Remove border on mobile */
    }

    .page-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    background-image: linear-gradient(to right, 
    transparent, 
    var(--secondary-color) 25%, 
    var(--secondary-color) 75%, 
    transparent
  );

  /* Set the gradient to act like a 2px border */
  background-repeat: no-repeat;
  background-size: 100% 2px; /* 100% wide, 2px tall */
  background-position: bottom;
    padding-bottom: 10px;
    }
    /* Mobile Footer Modern Design */
    .mobile-footer {
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        background-color: #ffffff;
        height: 60px;
        /* New height */
    }
    .mobile-footer > div {
        height: 100%;
    }
    .mobile-footer a,
    .mobile-footer button {
        transition: background-color 0.2s ease, color 0.2s ease;
        padding: 0;
        flex-grow: 1;
        text-align: center;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .mobile-footer a i,
    .mobile-footer button i {
        font-size: 18px;
        /* Adjusted icon size */
        margin-bottom: 2px;
    }
    .mobile-footer a span,
    .mobile-footer button span {
        font-size: 10px;
        /* Adjusted text size */
        line-height: 1;
    }
    .mobile-footer a:hover,
    .mobile-footer button:hover {
        background-color: rgba(48, 148, 209, 0.05);
    }
    .mobile-footer a.active,
    .mobile-footer button.active {
        color: #004085;
        background-color: rgba(48, 148, 209, 0.1);
        border-radius: 16px;
    }
    /* --- End Mobile Footer Design --- */
}

@media (min-width: 769px) {
    .nav-links a i.mobile-icon {
        display: none;
    }
    .search-toggle,
    .notification-toggle {
        display: none;
    }
    .navbar .menu-toggle {
        display: none;
    }
    #offline-status {
        top: 75px;
    }
    /* Hide right side drawer on desktop */
    #rightSideBackdrop,
    #rightSideDrawer {
        display: none;
    }
}

.header-icons {
    display: flex;
    align-items: center;
}

.menu-toggle:focus-visible,
.search-toggle:focus-visible,
.notification-toggle:focus-visible,
.close-modal-button:focus-visible,
.search-button:focus-visible,
.page-modal-back-button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}



 #category-index-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .test-category-card {
            background: var(--card-bg-color);
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            padding: 25px;
            text-align: center;
            transition: transform var(--transition-speed), box-shadow var(--transition-speed);
            cursor: pointer;
            text-decoration: none;
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .test-category-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--card-hover-shadow);
        }

        .test-category-card i {
            font-size: 3em;
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--test-primary), var(--test-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .test-category-card h3 {
            font-size: 1.5em;
            font-weight: 700;
            color: var(--test-primary);
            margin-bottom: 10px;
        }

        .test-category-card p {
            font-size: 1em;
            line-height: 1.5;
        }

        /* [NEW] टेस्ट लिस्ट के लिए CSS */
        #test-list-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .test-list-item {
            background-color: #f8f9fa;
            border: 1px solid #eee;
            border-radius: var(--border-radius);
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all var(--transition-speed);
        }
        
        .test-list-item:hover {
            background-color: #fff;
            box-shadow: var(--card-shadow);
            border-color: var(--test-secondary);
        }
        
        .test-list-item h3 {
            font-size: 1.3em;
            font-weight: 600;
            color: var(--test-primary);
        }
        
        .test-list-item i {
            font-size: 1.5em;
            color: var(--test-secondary);
        }
        
        .test-list-item.disabled {
            background-color: #f8f8f8;
            cursor: not-allowed;
            opacity: 0.6;
        }
        .test-list-item.disabled h3 {
            color: #888;
        }

        /* [NEW] लॉक आइकॉन के लिए स्टाइल */
        .test-list-item i.fa-lock {
            color: #aaa;
        }
        .test-list-item:not(.disabled):hover i.fa-lock {
            color: var(--test-secondary);
        }


        /* [NEW] निर्देश स्क्रीन के लिए CSS */
        #test-instruction-container {
            text-align: center;
            padding: 20px;
            background-color: #fdfdfd;
            border: 1px solid #eee;
            border-radius: var(--border-radius);
        }
        #test-instruction-container h2 {
            font-size: 2em;
            font-weight: 700;
            color: var(--test-primary);
            margin-bottom: 25px;
        }
        #test-instruction-container ul {
            list-style: none;
            padding: 0;
            margin: 0 auto 30px auto;
            max-width: 400px;
            text-align: left;
        }
        #test-instruction-container li {
            font-size: 1.2em;
            line-height: 1.8;
            padding: 10px 0;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #f0f0f0;
        }
        #test-instruction-container li:last-child {
            border-bottom: none;
        }
        #test-instruction-container li i {
            color: var(--test-secondary);
            font-size: 1.3em;
            width: 40px;
            text-align: center;
            margin-right: 15px;
        }
        #start-quiz-btn {
            background-color: var(--test-correct);
            color: white;
            padding: 15px 40px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.3em;
            font-weight: 700;
            transition: background-color 0.3s;
        }
        #start-quiz-btn:hover:not(:disabled) {
            background-color: #218838;
        }
        #start-quiz-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        /* क्विज़ के लिए CSS */
        #quiz-container {
           
            /* background: var(--card-bg-color); */
            /* border-radius: var(--border-radius); */
            /* box-shadow: var(--card-shadow); */
            /* padding: 30px; */
            max-width: 800px;
            margin: 0 auto;
        }
        #quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f4f8;
        }
        #question-counter {
            font-size: 1.2em;
            font-weight: 600;
            color: var(--test-primary);
        }
        #timer-display {
            font-size: 1.5em;
            font-weight: 700;
            color: var(--test-primary);
            border: 3px solid var(--test-primary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        #question-text {
            font-size: 1.4em;
            font-weight: 600;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        #options-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 5px;
            margin-bottom: 25px;
        }
        .quiz-option {margin: 5px 0px;
            width: 100%;
            padding: 15px;
            font-size: 1.1em;
            text-align: left;
            background-color: #f0f4f8;
            border: 2px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .quiz-option:hover:not(:disabled) {
            background-color: var(--test-selected);
            border-color: var(--test-secondary);
        }
        .quiz-option:disabled {
            cursor: not-allowed;
            opacity: 0.8;
        }
        /* [UPDATED] .selected class ab instant feedback ke liye use nahi hogi */
        /* .quiz-option.selected {
            background-color: var(--test-selected);
            border-color: var(--test-selected-border);
            color: var(--test-primary);
            font-weight: 600;
        } */
        
        /* [UPDATED] Ye classes ab instant feedback dengi */
        .quiz-option.correct {
            background-color: #e9f7ef;
            border-color: var(--test-correct);
            color: #155724;
            font-weight: 600;
            opacity: 1 !important; /* Ensure it's fully visible */
        }
        .quiz-option.incorrect {
            background-color: #f8d7da;
            border-color: var(--test-incorrect);
            color: #721c24;
            font-weight: 600;
            opacity: 1 !important; /* Ensure it's fully visible */
        }
        
        #quiz-navigation {
            display: flex;
            justify-content: space-between; /* [UPDATED] flex-end to space-between */
            align-items: center;
            margin-top: 20px;
        }
        .quiz-nav-btn {
            background-color: var(--test-primary);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        .quiz-nav-btn:hover:not(:disabled) {
            background-color: var(--test-secondary);
        }
        .quiz-nav-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        
        /* [NEW] Skip Button Style */
        #skip-question-btn {
            background-color: #777;
            margin-right: auto; /* Pushes it to the left */
        }
        #skip-question-btn:hover:not(:disabled) {
            background-color: #555;
        }

        #submit-quiz-btn {
            background-color: var(--test-correct);
        }
        #submit-quiz-btn:hover:not(:disabled) {
            background-color: #218838;
        }

        /* रिजल्ट स्क्रीन */
        #result-container {
            text-align: center;
        }
        #result-container h2 {
            font-size: 2.5em;
            font-weight: 700;
            color: var(--test-primary);
            margin-bottom: 20px;
        }
        #score-text {
            font-size: 1.5em;
            margin-bottom: 15px; 
        }
        #total-time-text {
            font-size: 1.2em;
            margin-bottom: 30px;
            color: var(--text-color);
        }
        #score-text strong {
            font-size: 1.8em;
            color: var(--test-correct);
        }
        #restart-quiz-btn {
            background-color: var(--test-primary);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        /* रिजल्ट रिव्यू स्टाइल */
        #quiz-results-review {
            margin-top: 40px;
            text-align: left;
        }
        #quiz-results-review h3 {
            font-size: 1.8em;
            font-weight: 700;
            color: var(--test-primary);
            text-align: center;
            border-bottom: 2px solid #f0f4f8;
            padding-bottom: 15px;
            margin-bottom: 25px;
        }
        .review-question {
            background-color: #fdfdfd;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .review-question p {
            font-size: 1.1em;
            margin-bottom: 10px;
            line-height: 1.6;
        }
        .review-question .correct {
            color: var(--test-correct);
            font-weight: 600;
        }
        .review-question .incorrect {
            color: var(--test-incorrect);
            font-weight: 600;
            text-decoration: line-through;}
}


 @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .category-title {
            /* Override from style.css */
            background: linear-gradient(45deg, #004085, #3094d1, #004085, #3094d1) !important;
            background-size: 400% 400% !important;
            animation: gradientShift 10s ease infinite !important;
            color: white !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
        }

        /* --- Icon Grid Styles --- */
        .icon-grid-ul {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 20px;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .icon-grid-li {
            text-decoration: none;
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background-color: #ffffff; /* Changed from #fafafa */
            border-radius: var(--border-radius);
            padding: 15px 10px;
            transition: transform 0.2s ease, box-shadow 0.2s ease; /* Faster transition */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            font-size: 14px;
            font-weight: 600;
            line-height: 1.4;
            border: 1px solid #f0f0f0; /* Added subtle border */
        }

        .icon-grid-li:hover {
            transform: scale(1.02) translateY(-3px); /* Subtle scale and lift */
            box-shadow: var(--card-hover-shadow);
            color: var(--primary-color);
        }

        .icon-grid-li i {
            font-size: 28px;
            margin-bottom: 10px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            height: 30px; /* Fixed height for icon */
        }

        .icon-grid-li span {
            /* Allow text to wrap if needed */
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
        }

        /* 'More' button style */
        .icon-grid-li.more-link {
            background-color: #e6f7ff; /* Lighter blue */
            border: 1px solid var(--secondary-color); /* Solid border */
            color: var(--primary-color);
            justify-content: center;
        }
        .icon-grid-li.more-link i {
            font-size: 24px;
             background: none;
            -webkit-text-fill-color: var(--primary-color);
        }
        .icon-grid-li.more-link:hover {
            background-color: #d0eeff; /* Slightly darker on hover */
            border-style: solid;
        }

        @media (max-width: 768px) {
            .icon-grid-ul {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 15px;
            }
            .icon-grid-li {
                font-size: 13px;
                padding: 12px 5px;
            }
            .icon-grid-li i {
                font-size: 24px;
                margin-bottom: 8px;
            }
        }
         /* --- End Icon Grid Styles --- */

        /* --- Notification Popup Styles --- */
        #notification-popup-backdrop {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        #notification-popup-backdrop.visible {
            opacity: 1;
            pointer-events: auto;
        }

        #notification-popup {
            position: fixed;
            bottom: -100%; /* Start off-screen */
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            background-color: #fff;
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            z-index: 1051;
            padding: 25px;
            text-align: center;
            transition: bottom 0.4s ease-out;
        }
        
        #notification-popup-backdrop.visible #notification-popup {
             bottom: 0; /* Slide in */
        }

        #notification-popup h3 {
            font-size: 1.5em;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        #notification-popup p {
            font-size: 1.1em;
            margin-bottom: 25px;
            line-height: 1.6;
        }
        #notification-popup-icon {
            font-size: 3em;
            color: var(--secondary-color);
            margin-bottom: 15px;
        }
        #notification-popup-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        .popup-action-btn {
            flex-grow: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
        }
        .popup-action-btn:hover {
            transform: scale(1.03);
        }
        #popup-subscribe-btn {
            background-color: var(--accent-color);
            color: #fff;
        }
        #popup-close-btn {
            background-color: #f0f4f8;
            color: var(--text-color);
        }
        /* --- End Notification Popup Styles --- */

        /* --- Notification Modal Styles --- */
        #notification-actions {
            margin-bottom: 20px;
            text-align: center;
        }
        #subscribe-btn {
            background-color: var(--primary-color);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        #subscribe-btn:hover {
            background-color: var(--secondary-color);
        }
        #subscribe-btn.subscribed {
            background-color: var(--error-color);
        }
        #subscribe-btn.subscribed:hover {
            background-color: #c82333;
        }
        #subscribe-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        #notification-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 400px;
            overflow-y: auto;
        }
        #notification-list li {
            background-color: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
        }
        #notification-list li strong {
            display: block;
            font-size: 1.1em;
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        #notification-list li p {
            margin: 0;
            line-height: 1.6;
        }
        #no-notification-msg {
            display: none; /* बदला हुआ: डिफ़ॉल्ट रूप से छिपा हुआ */
            text-align: center;
            padding: 20px;
            font-size: 1.1em;
            color: #777;
        }

        /* (नया) Notification Badge */
        .notification-toggle {
            position: relative;
        }
        #notification-badge {
            position: absolute;
            top: 2px;
            right: 0px;
            width: 10px;
            height: 10px;
            background-color: var(--error-color);
            border-radius: 50%;
            border: 1px solid white;
            display: none; /* डिफ़ॉल्ट रूप से छिपा हुआ */
        }
        #notification-badge.visible {
            display: block;
        }
        
         
        .slideshow-container {
            position: relative;
            margin: auto;
            aspect-ratio: 16 / 6; /* Responsive aspect ratio - बदला हुआ (16/6 से 16/7) */
            /* max-height: 400px; /* Max height */  /* <--- यह लाइन हटा दी गई है */
            background-color: #eee; /* Placeholder bg */
        }
        .slide {
            display: none;
            width: 100%;
            height: 100%;
        }
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image covers the area */
            vertical-align: middle;
        }
        .slide-caption {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            background-color: rgba(0, 0, 0, 0.6);
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            text-shadow: 1px 1px 2px black;
            z-index: 10;
        }
        
        /* Fading animation */
        .fade {
            animation-name: fade;
            animation-duration: 1.5s;
        }
        @keyframes fade {
            from {opacity: .4} 
            to {opacity: 1}
        }

        /* Next & previous buttons */
        .prev, .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            padding: 16px;
            margin-top: -22px;
            color: white;
            font-weight: bold;
            font-size: 24px;
            transition: 0.3s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
            background-color: rgba(0,0,0,0.3);
            z-index: 10;
        }
        .next {
            right: 0;
            border-radius: 3px 0 0 3px;
        }
        .prev:hover, .next:hover {
            background-color: rgba(0,0,0,0.6);
        }

        /* Dots */
        .dots-container {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
        }
        .dot {
            cursor: pointer;
            height: 13px;
            width: 13px;
            margin: 0 3px;
            background-color: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(0,0,0,0.2);
            border-radius: 50%;
            display: inline-block;
            transition: background-color 0.3s ease;
        }
        .active, .dot:hover {
            background-color: rgba(255, 255, 255, 1);
        }
        
             @media (max-width: 768px) {
             .slideshow-container {
                aspect-ratio: 16 / 10; /* Taller on mobile */
                /* नोट: हीरो सेक्शन हटाने के बाद यह नेगेटिव मार्जिन 
                  हेडर के ऊपर स्लाइडशो को खींच लेगा।
                  अगर यह नहीं चाहिए, तो 'margin-top' हटा दें।
                */
                margin-top: -15px;                 border-radius: 0;
             }
             .slide-caption {
                font-size: 14px;
                padding: 6px 10px;
                bottom: 30px; /* डॉट्स के लिए जगह */
             }
             .prev, .next {
                font-size: 18px;
                padding: 10px;
             }
             .dot {
                height: 10px;
                width: 10px;
             }
             .dots-container {
                 bottom: 8px;
             }
        }