/* Base Styles */
:root {
    --primary-bg-dark: #1e0c45;
    --primary-bg-light: #2e0f68;
    --primary-btn: #ff9b00;
    --secondary-btn: #7e57c2;
    --glow-color: #7e57ff;
    --neon-blue: #00b3ff;
    --neon-purple: #7e57ff;
    --text-color: #ffffff;
    --card-bg: rgba(46, 15, 104, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg-dark) 0%, var(--primary-bg-light) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg-dark);
    z-index: 9999;
    transform: translateY(100%);
    animation: pageTransitionIn 1s ease-in-out forwards;
}

@keyframes pageTransitionIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pageTransitionOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glowing Text Effect */
.glow-text {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
    font-weight: 700;
}

.highlight {
    color: #a388ff;
    font-weight: 700;
}

/* Udated Navbar */
.navbar {
            background: linear-gradient(to right, var(--primary-bg-dark), var(--primary-bg-light));
            color: var(--text-color);
            padding: 0 20px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
        }

        .nav-logo i {
            margin-right: 10px;
            font-size: 1.8rem;
            color: white;
        }

        .nav-menu {
            display: flex;
            align-items: center;
        }

        .nav-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            padding: 10px 15px;
            margin: 0 5px;
            border-radius: 5px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
        }

        .nav-link i {
            margin-right: 8px;
        }

        .nav-link:hover, .nav-link.active {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

        .btn-signup {
            background-color: var(--primary-btn);
            color: #1e0c45;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-signup:hover {
            background-color: #ffae2d;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(255, 155, 0, 0.3);
        }

        /* Demo content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
        }

        .section {
            background: rgba(30, 12, 69, 0.5);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--primary-btn);
        }

        h2 {
            font-size: 1.8rem;
            margin: 25px 0 15px;
            color: var(--neon-blue);
        }

        p {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .content-placeholder {
            height: 1000px; /* For demonstration of scrolling */
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 30px 0;
        }

        .feature {
            flex: 1;
            min-width: 250px;
            background: rgba(126, 87, 194, 0.2);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid var(--neon-purple);
        }

        .feature i {
            font-size: 2rem;
            color: var(--neon-purple);
            margin-bottom: 15px;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                height: auto;
                padding: 15px 0;
            }
            
            .nav-menu {
                margin-top: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .nav-link {
                margin: 5px;
                padding: 8px 12px;
                font-size: 0.9rem;
            }

            .navbar {
                position: relative;
            }
            
            body {
                padding-top: 0;
            }
        }

        .scroll-indicator {
            text-align: center;
            padding: 20px;
            color: var(--neon-blue);
            font-style: italic;
        }

/* Navbar */
.navbar {
    top: 0;
    background: rgba(30, 12, 69, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.8s ease-in-out;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(126, 87, 255, 0.5);
    transition: var(--transition);
}

.logo a:hover {
    text-shadow: 0 0 15px rgba(126, 87, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-btn);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-btn);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.admin-link {
    color: var(--primary-btn) !important;
    text-shadow: 0 0 10px rgba(255, 155, 0, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Premium Test Link*/
/* Rainbow glowing text only for Premium Test */
.premium-link {
  color: #fff; /* white text */
  font-weight: bold;
  position: relative;
  text-decoration: none;
}

.premium-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  border-radius: 2px;
  animation: rainbow-glow 4s linear infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@keyframes rainbow-glow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.rainbow-glow {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  background: linear-gradient(270deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00ab, #ff0000);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 6s linear infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #ff00de, 0 0 20px #ff00de;
  }
  to {
    text-shadow: 0 0 20px #00cfff, 0 0 30px #00cfff, 0 0 40px #00cfff;
  }
}

.premium-link {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  position: relative;
  animation: neon-rainbow 3s linear infinite;
}

@keyframes neon-rainbow {
  0%   { color: #FF3C3C; text-shadow: 0 0 5px #FF3C3C, 0 0 10px #FF3C3C, 0 0 20px #FF3C3C, 0 0 40px #FF3C3C; } /* bright red */
  14%  { color: #FF9F3C; text-shadow: 0 0 5px #FF9F3C, 0 0 10px #FF9F3C, 0 0 20px #FF9F3C, 0 0 40px #FF9F3C; } /* neon orange */
  28%  { color: #FFFF3C; text-shadow: 0 0 5px #FFFF3C, 0 0 10px #FFFF3C, 0 0 20px #FFFF3C, 0 0 40px #FFFF3C; } /* bright yellow */
  42%  { color: #3CFF3C; text-shadow: 0 0 5px #3CFF3C, 0 0 10px #3CFF3C, 0 0 20px #3CFF3C, 0 0 40px #3CFF3C; } /* neon green */
  57%  { color: #3CFFFF; text-shadow: 0 0 5px #3CFFFF, 0 0 10px #3CFFFF, 0 0 20px #3CFFFF, 0 0 40px #3CFFFF; } /* neon cyan */
  71%  { color: #9F3CFF; text-shadow: 0 0 5px #9F3CFF, 0 0 10px #9F3CFF, 0 0 20px #9F3CFF, 0 0 40px #9F3CFF; } /* neon purple */
  85%  { color: #FF3CFF; text-shadow: 0 0 5px #FF3CFF, 0 0 10px #FF3CFF, 0 0 20px #FF3CFF, 0 0 40px #FF3CFF; } /* neon pink */
  100% { color: #FF3C3C; text-shadow: 0 0 5px #FF3C3C, 0 0 10px #FF3C3C, 0 0 20px #FF3C3C, 0 0 40px #FF3C3C; }
}


/* Main Content */
.main-content {
    padding-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

/* Countdown Section */
.countdown-section {
    padding: 15px 0;
}

.countdown-box {
    background: linear-gradient(135deg, rgba(255, 155, 0, 0.2) 0%, rgba(255, 155, 0, 0.1) 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 155, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 155, 0, 0.1);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 155, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 155, 0, 0.5);
    }
}

.countdown-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-btn);
    text-shadow: 0 0 10px rgba(255, 155, 0, 0.5);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.countdown-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* NEET Tip Card */
.tip-section {
    padding: 20px 0;
}

.tip-card {
    background: rgba(126, 87, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 87, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 87, 255, 0.2);
}

.tip-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.3);
}

.tip-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #d4c6ff;
}

.tip-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Filters Section */
.filters-section {
    padding: 0px 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    z-index: 1;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 15px rgba(126, 87, 255, 0.3);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-dropdowns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-dropdown {
    flex: 1;
    min-width: 200px;
}

.filter-dropdown select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1.5px solid var(--neon-blue);
    background: var(--primary-bg-dark);
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237e57ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(126, 87, 255, 0.2);
    cursor: pointer;
    z-index: 10;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(126, 87, 255, 0.5);
}

.filter-dropdown select:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(126, 87, 255, 0.4);
    transform: translateY(-2px);
}

/* Custom styling for dropdown options */
.filter-dropdown select option {
    background-color: var(--primary-bg-dark);
    color: #fff;
    padding: 10px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* Force webkit browsers to show custom styling */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .filter-dropdown select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .filter-dropdown {
        position: relative;
    }
    
    .filter-dropdown::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--neon-purple);
        pointer-events: none;
    }
}

/* Animation for dropdown */
@keyframes selectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling for active dropdown */
.filter-dropdown select.dropdown-active {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(126, 87, 255, 0.6);
}

/* Style for dropdown options when visible */
.filter-dropdown select.dropdown-active option {
    animation: selectFadeIn 0.3s ease-out forwards;
    padding: 12px;
    border-bottom: 1px solid rgba(126, 87, 255, 0.2);
}

.filter-dropdown select.dropdown-active option:hover {
    background-color: rgba(126, 87, 255, 0.3);
}

.clear-filters {
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.clear-filters:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(126, 87, 255, 0.2);
    border: 1px solid rgba(126, 87, 255, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--glow-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #a388ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Test Papers Section */
.test-papers-section {
    padding: 0px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.test-papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.test-paper-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.test-paper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(126, 87, 255, 0.2);
    border: 1px solid rgba(126, 87, 255, 0.3);
}

.test-paper-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.test-paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coaching-tag, .test-type-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.coaching-tag {
    background: rgba(126, 87, 255, 0.2);
    color: #d4c6ff;
    border: 1px solid rgba(126, 87, 255, 0.3);
}

.test-type-tag {
    background: rgba(0, 179, 255, 0.2);
    color: #a8e6ff;
    border: 1px solid rgba(0, 179, 255, 0.3);
}

.test-paper-badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.test-paper-badge.new {
    background: rgba(255, 155, 0, 0.2);
    color: var(--primary-btn);
    border: 1px solid rgba(255, 155, 0, 0.3);
    animation: pulse 2s infinite;
}

.test-paper-content {
    padding: 20px 15px;
}

.test-paper-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.test-paper-size {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.test-paper-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-unlock {
    padding: 12px;
    border-radius: 50px;
    border: none;
    background: var(--primary-btn);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 155, 0, 0.3);
}

.btn-unlock:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 155, 0, 0.4);
}

.btn-download {
    padding: 12px;
    border-radius: 50px;
    border: 1px solid #ffffff33;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-download.unlocked {
    background: rgba(126, 87, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(126, 87, 255, 0.3);
    cursor: pointer;
}

.btn-download.unlocked:hover {
    background: rgba(126, 87, 255, 0.3);
    transform: translateY(-3px);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 60px 0 30px;
    background: rgba(30, 12, 69, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-btn);
    box-shadow: 0 0 10px var(--primary-btn);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(126, 87, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(126, 87, 255, 0.3);
    box-shadow: 0 0 15px rgba(126, 87, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(126, 87, 255, 0.3);
    box-shadow: 0 0 20px rgba(126, 87, 255, 0.4);
}

.coaching-thanks {
    text-align: center;
    margin-bottom: 30px;
}

.coaching-thanks h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.coaching-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.coaching-badge {
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coaching-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 251, 251, 0.945);
}

.copyright p {
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 155, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 155, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 155, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .test-papers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .tip-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .filter-dropdowns {
        flex-direction: column;
    }
    
    .test-papers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .countdown-box h2 {
        font-size: 1.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .coaching-badges {
        gap: 10px;
    }
    
    .coaching-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #1a102d;
  border-radius: 15px;
  padding: 30px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid #7e57ff;
  box-shadow: 0 0 30px rgba(126, 87, 255, 0.4);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  padding: 8px;
  background: rgba(126, 87, 255, 0.2);
  border: 1px solid #7e57ff;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(126, 87, 255, 0.3);
  box-shadow: 0 0 15px #7e57ff;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 60px 0 30px;
    background: rgba(30, 12, 69, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-btn);
    box-shadow: 0 0 10px var(--primary-btn);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(126, 87, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(126, 87, 255, 0.3);
    box-shadow: 0 0 15px rgba(126, 87, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(126, 87, 255, 0.3);
    box-shadow: 0 0 20px rgba(126, 87, 255, 0.4);
}

.coaching-thanks {
    text-align: center;
    margin-bottom: 30px;
}

.coaching-thanks h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.coaching-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.coaching-badge {
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coaching-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 155, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 155, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 155, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .test-papers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .tip-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .filter-dropdowns {
        flex-direction: column;
    }
    
    .test-papers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .countdown-box h2 {
        font-size: 1.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .coaching-badges {
        gap: 10px;
    }
    
    .coaching-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Error Messages */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    margin: 20px 0;
}

.error-message i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    display: block;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.retry-btn {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 155, 0, 0.3);
}

.retry-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 155, 0, 0.4);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 20px 0;
}

.no-results i {
    font-size: 4rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-results p:last-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Infinite Scroll Loading Styles */
.load-more-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}

/* Load More Button */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  background: var(--primary-btn);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 155, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(255, 155, 0, 0.45);
}

.load-more-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.load-more-btn:focus {
  outline: 2px solid rgba(255, 155, 0, 0.6);
  outline-offset: 3px;
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top: 4px solid var(--primary-btn);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.test-paper-card {
  transition: all 0.3s ease;
  will-change: transform, opacity;
}

/* Remove the old load more button styles if they exist */
/* Mobile Menu Button */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-icon {
    transition: transform 0.3s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
    
    .navbar-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link.active {
        border-bottom: 2px solid #3498db;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: 20px;
        background: rgba(30, 12, 69, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: none;
        flex-direction: column;
        width: 150px;
        z-index: 100;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-links a {
        padding: 12px 20px;
        text-align: left;
        color: white;
    }
    
    .nav-links a:hover {
        background: rgba(126, 87, 255, 0.2);
    }
    
    .admin-link {
        background: rgba(231, 76, 60, 0.2) !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add this to your home-styles.css */
.test-paper-card {
    margin-bottom: 20px; /* Add consistent bottom margin */
    display: block; /* Ensure it's a block element */
    overflow: visible; /* Prevent margin collapse */
}

.test-papers-grid {
    display: grid;
    gap: 20px; /* Modern way to space grid items */
    /* OR if you need to keep flexbox: */
    /* display: flex;
    flex-direction: column;
    gap: 20px; */
}

/* Add to your home-styles.css */
.error-message {
  text-align: center;
  padding: 2rem;
  background: #fff8f8;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  margin: 1rem 0;
}

.error-message h3 {
  color: #d32f2f;
}

.retry-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.retry-btn:hover {
  background: #b71c1c;
}

/* Premium Error Message */
.premium-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.premium-error-message .error-icon {
    font-size: 3rem;
    color: #ff4a00;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

.premium-error-message .error-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

/* Subtle animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .premium-error-message {
        padding: 30px 20px;
    }
    .premium-error-message .error-icon {
        font-size: 2.5rem;
    }
    .premium-error-message .error-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .premium-error-message {
        padding: 20px 15px;
    }
    .premium-error-message .error-icon {
        font-size: 2rem;
    }
    .premium-error-message .error-text {
        font-size: 1rem;
    }
}
