/* Base Styles and Variables */
:root {
    --primary-color: #3f72af;
    --primary-light: #5a93d1;
    --primary-dark: #2c5282;
    --secondary-color: #f9f7f7;
    --accent-color: #112d4e;
    --text-color: #333;
    --light-text: #f9f7f7;
    --border-color: #dbe2ef;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    
    /* RGB Values for rgba usage */
    --primary-rgb: 63, 114, 175;
    --accent-rgb: 17, 45, 78;
    --success-rgb: 76, 175, 80;
    --warning-rgb: 255, 152, 0;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #112d4e;
    --primary-light: #1a3d68;
    --primary-dark: #091d34;
    --secondary-color: #1f2937;
    --accent-color: #3f72af;
    --text-color: #f9f7f7;
    --light-text: #f9f7f7;
    --border-color: #374151;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* RGB Values for rgba usage in dark mode */
    --primary-rgb: 17, 45, 78;
    --accent-rgb: 63, 114, 175;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input {
    border: none;
    outline: none;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link i {
    margin-right: 0.6rem;
    font-size: 2rem;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-item {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover i, 
.nav-item.active i {
    transform: translateY(-2px);
}

.nav-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-item:hover:before, 
.nav-item.active:before {
    transform: translateX(0);
}

.nav-item:hover, 
.nav-item.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure proper stacking context */
}

/* Add animated background elements to hero section */
.hero:before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: heroBackground 30s linear infinite;
    z-index: -2; /* Push behind content */
}

@keyframes heroBackground {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Add animated gradient bubbles */
.hero:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, var(--primary-light) 0%, transparent 20%),
                radial-gradient(circle at 80% 70%, var(--primary-light) 0%, transparent 20%),
                radial-gradient(circle at 40% 80%, var(--primary-light) 0%, transparent 20%);
    opacity: 0.1;
    animation: gradientShift 15s ease-in-out infinite alternate;
    z-index: -1; /* Push behind content but above pattern */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Above the background elements */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    width: 150px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-origin: center bottom;
    animation: statBoxPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--stat-index, 0) * 0.5s);
}

.stat-box:nth-child(1) {
    --stat-index: 1;
}

.stat-box:nth-child(2) {
    --stat-index: 2;
}

.stat-box:nth-child(3) {
    --stat-index: 3;
}

@keyframes statBoxPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-box i {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    animation: iconFloat 3s ease infinite;
    display: inline-block;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stat-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    background: linear-gradient(120deg, var(--light-text), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.stat-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 4rem; /* Increased to provide more space */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    overflow: hidden;
    animation: ctaButtonPulse 2s infinite alternate;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes ctaButtonPulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 15px 35px rgba(63, 114, 175, 0.5);
    }
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transition: width 0.4s ease-in-out;
    z-index: -1;
    border-radius: 50px;
}

.cta-button:hover {
    color: var(--light-text);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(63, 114, 175, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:hover:before {
    width: 100%;
}

.cta-button i {
    margin-right: 0.8rem;
    animation: iconShake 1s infinite alternate;
    display: inline-block;
}

@keyframes iconShake {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(3px);
    }
}

.cta-button i {
    margin-right: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease-out 1s forwards, float 3s ease-in-out infinite;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--light-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--light-text);
    animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Section Common Styles */
section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.underline {
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Why ExamPath Section */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.5s ease,
                background-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 114, 175, 0.05), rgba(63, 114, 175, 0.1));
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

[data-theme="dark"] .feature-card {
    background-color: var(--primary-dark);
}

[data-theme="dark"] .feature-card::before {
    background: linear-gradient(135deg, rgba(63, 114, 175, 0.1), rgba(63, 114, 175, 0.2));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.5s ease;
    box-shadow: 0 5px 15px rgba(63, 114, 175, 0.2);
    position: relative;
    z-index: 2;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(63, 114, 175, 0.2);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    box-shadow: 0 8px 25px rgba(63, 114, 175, 0.4);
}

.feature-icon i {
    font-size: 1.8rem;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon i {
    transform: rotateY(-180deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Categories Section */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.6s ease,
                background-color 0.4s ease,
                color 0.4s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .category-card {
    background-color: var(--primary-dark);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: var(--light-text);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .category-icon {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: rotate(360deg) scale(1.2);
}

.category-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(63, 114, 175, 0.2);
    position: relative;
    z-index: 2;
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(63, 114, 175, 0.2);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover .category-icon::after {
    opacity: 1;
    transform: scale(1.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.category-icon i {
    font-size: 1.5rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover .category-icon i {
    font-size: 1.8rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Exams Section */
.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    flex: 1;
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    max-width: 500px;
    background-color: white;
}

[data-theme="dark"] .search-box {
    background-color: var(--accent-color);
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-color);
}

[data-theme="dark"] .search-box input {
    color: var(--light-text);
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--primary-dark);
}

.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    z-index: 10;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

[data-theme="dark"] .filter-menu {
    background-color: var(--accent-color);
}

.filter-option {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    background-color: var(--border-color);
}

.hidden {
    display: none;
}

.filter-status {
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.exams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.exam-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .exam-card {
    background-color: var(--primary-dark);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.exam-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.exam-header:after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.exam-card:hover .exam-header:after {
    transform: rotate(30deg) translateX(-15%);
}

.exam-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.exam-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.exam-body {
    padding: 1.5rem;
    flex: 1;
}

.exam-description {
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exam-meta-item {
    display: flex;
    align-items: center;
}

.exam-meta-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.exam-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applicants {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.applicants i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.view-details-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn:hover {
    background-color: var(--primary-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 4% auto;
    border-radius: var(--border-radius);
    width: 92%;
    max-width: 850px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-content {
    background-color: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes modalAnimation {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.8rem;
    position: relative;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-header .exam-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.5s ease-out;
}

.modal-header .exam-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.modal-header .conducting-body {
    font-size: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    background-color: rgba(248, 250, 252, 0.5);
}

[data-theme="dark"] .modal-body {
    background-color: rgba(25, 30, 35, 0.3);
}

.tab-container {
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding-bottom: 5px;
    gap: 0.2rem;
}

.tabs::-webkit-scrollbar {
    height: 5px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    background-color: transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(63, 114, 175, 0.05);
    color: var(--primary-color);
}

.tab-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(63, 114, 175, 0.2);
}

.tab-btn.active i {
    opacity: 1;
}

[data-theme="dark"] .tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.tab-pane h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane h5 {
    margin: 1.8rem 0 1rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.tab-pane h6 {
    margin: 1.2rem 0 0.6rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.tab-pane p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Basic Details Section */
.basic-details {
    background-color: rgba(63, 114, 175, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

[data-theme="dark"] .basic-details {
    background-color: rgba(255, 255, 255, 0.05);
}

.details-grid, .eligibility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item, .eligibility-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .detail-item, 
[data-theme="dark"] .eligibility-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.detail-item:hover, .eligibility-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-item span, .eligibility-item span {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Dates Items */
.important-dates-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-item {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .date-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.date-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.date-item span:first-child {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.syllabus-section {
    margin-bottom: 1.5rem;
}

.syllabus-section h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.fees-table th, .fees-table td {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.fees-table th {
    background-color: var(--primary-color);
    color: white;
}

.fees-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

[data-theme="dark"] .fees-table tr:nth-child(even) {
    background-color: var(--primary-dark);
}

.official-website {
    margin-top: 1.5rem;
}

.official-website a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .modal-footer {
    background-color: rgba(255, 255, 255, 0.02);
}

.close-btn, .website-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.website-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(63, 114, 175, 0.2);
}

.website-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(63, 114, 175, 0.3);
    transform: translateY(-2px);
}

.close-btn {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .close-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

[data-theme="dark"] .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced Modal Content Styles */
.dates-info, .pattern-info, .fees-info, .colleges-info, .cutoffs-info, .application-info, .preparation-info {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

[data-theme="dark"] .dates-info,
[data-theme="dark"] .pattern-info,
[data-theme="dark"] .fees-info,
[data-theme="dark"] .colleges-info,
[data-theme="dark"] .cutoffs-info,
[data-theme="dark"] .application-info,
[data-theme="dark"] .preparation-info {
    background: rgba(255, 255, 255, 0.03);
}

.dates-note, .common-pattern-info, .fees-note, .payment-methods, .common-colleges, .common-posts,
.cutoffs-notes, .competition-info, .application-steps, .documents-required, .important-dates,
.general-tips, .recommended-resources, .important-note, .resources-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dates-note, 
[data-theme="dark"] .common-pattern-info, 
[data-theme="dark"] .fees-note, 
[data-theme="dark"] .payment-methods,
[data-theme="dark"] .common-colleges,
[data-theme="dark"] .common-posts,
[data-theme="dark"] .cutoffs-notes,
[data-theme="dark"] .competition-info,
[data-theme="dark"] .application-steps,
[data-theme="dark"] .documents-required,
[data-theme="dark"] .important-dates,
[data-theme="dark"] .general-tips,
[data-theme="dark"] .recommended-resources,
[data-theme="dark"] .important-note,
[data-theme="dark"] .resources-section {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.website-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.website-link:hover {
    color: var(--accent-color);
}

.common-stages, .fees-categories, .pattern-categories {
    margin-top: 1rem;
    list-style-type: none;
    padding-left: 0.5rem;
}

.common-stages li, .fees-categories li {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
}

.common-stages li:before, .fees-categories li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.pattern-category {
    background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pattern-category h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.next-exam-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border-radius: 8px;
    text-align: center;
}

.next-exam-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tab-pane ul:not(.common-stages, .fees-categories) {
    padding-left: 1.5rem;
}

.tab-pane ul:not(.common-stages, .fees-categories) li {
    margin: 0.5rem 0;
}

.tab-pane h5 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.tab-pane p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Cutoff Table Styles */
.cutoff-table {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .cutoff-table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cutoff-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cutoff-row:last-child {
    border-bottom: none;
}

.cutoff-row.header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.cutoff-cell {
    padding: 0.8rem 1rem;
    flex: 1;
    text-align: center;
}

.cutoff-cell:first-child {
    text-align: left;
    font-weight: 500;
}

.resources-section h6 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.important-note {
    background: linear-gradient(45deg, rgba(var(--warning-rgb), 0.05), rgba(var(--warning-rgb), 0.1));
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Approach Section */
.approach-section {
    padding: 4rem 2rem;
    background-color: var(--background-secondary);
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 10px 0 0 10px;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.approach-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.approach-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Statistics Section */
.stats-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
