@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #2E7D32; 
    --primary-dark: #1b5e20;
    --accent-color: #FBC02D; 
    --text-dark: #1e293b; 
    --text-light: #ffffff;
    --bg-light: #f8fafc;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.custom-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary-color);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 1.1rem; /* Increased size for better visibility */
    position: relative; /* Required to position the underline */
    padding-bottom: 5px; /* Adds breathing room between text and the line */
    transition: color 0.3s ease;
}

/* The animated underline (starting state) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; /* Starts at 0 width */
    height: 2px; /* Thickness of the underline */
    bottom: 0;
    left: 50%; /* Positions it in the center */
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%); /* Keeps it perfectly centered as it grows */
}

/* Text color change on hover */
.nav-links a:hover {
    color: var(--primary-color);
}

/* The animated underline (hover state - expands to 100%) */
.nav-links a:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-block;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

/* --- Hero Section --- */
.hero {
    padding: 20px 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 85vh;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.badge {
    background-color: rgba(251, 192, 45, 0.2);
    color: #b48600;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #475569;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* --- Custom Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .image-placeholder {
        height: 350px;
    }
}

/* --- About & Benefits Section --- */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.title-underline {
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
    border-radius: 4px;
}

.about-text {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 35px;
}

/* Vision and Mission Styling */
.vision-mission-box {
    background: var(--bg-light);
    padding: 35px;
    border-left: 6px solid var(--primary-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.vision-mission-box h3, .mission-box h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.5rem;
}

.mission-box {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
    height: 100%;
}

.mission-box h3 {
    color: var(--accent-color);
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    margin-bottom: 18px;
    position: relative;
    padding-left: 35px;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

.mission-list li::before {
    content: '✦';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* --- Benefit Cards --- */
.benefit-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.benefit-card h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 800;
}

.benefit-card p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* --- Exam Details & Schedule Section --- */
.exam-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-light), #ffffff);
}

.exam-section p {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-card, .schedule-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    height: 100%;
    border-top: 6px solid var(--primary-color);
}

.info-card h3, .schedule-card h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 1.5rem;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
}

.info-list li::before {
    content: '▹';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    font-weight: bold;
}

.info-card h4 {
    color: var(--text-dark);
    font-weight: 800;
    margin: 30px 0 20px 0;
    font-size: 1.3rem;
}

.pattern-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 16px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    font-size: 1.1rem;
}

.pattern-item span { color: #64748b; font-weight: 600; }
.pattern-item strong { color: var(--primary-dark); font-weight: 800; }

/* Table Styling */
.table-responsive {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.schedule-table th, .schedule-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1.05rem;
}

.schedule-table th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 800;
    border-bottom: 2px solid #cbd5e1;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background-color: #f8fafc; 
    color: var(--primary-dark);
    font-weight: 600;
}

/* --- Syllabus Section --- */
.syllabus-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.pdf-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.pdf-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-weight: 800;
}

.pdf-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.download-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.download-text span {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.pdf-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.12);
}

.pdf-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.pdf-card:hover .download-text {
    color: var(--primary-dark);
}

.pdf-card:hover .download-text span {
    transform: translateX(8px); 
}

/* --- Footer Section (Redesigned) --- */
.footer {
    background-color: #0f172a; /* Deeper, richer modern dark */
    color: #94a3b8;
    padding: 80px 0 25px;
    margin-top: 0;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 90%;
}

/* Modern Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(6px);
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    font-size: 1rem;
    align-items: flex-start;
    line-height: 1.5;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}