/* --- Variables & Theme --- */
:root {
    /* Colors */
    --primary-blue: #1A3C5E;
    /* Deep trustworthy blue */
    --accent-gold: #D4AF37;
    /* Warm elegant gold */
    --text-dark: #2C3E50;
    /* Dark grey for text */
    --text-light: #F8F9FA;
    /* Off-white for dark backgrounds */
    --bg-warm: #FDFBF7;
    /* Warm paper-like background */
    --bg-white: #FFFFFF;
    --success-green: #28a745;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-warm);
    /* padding-top: var(--header-height); Removed because we have a carousel now often at top, but kept nav fixed */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.center-text {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
}

.btn-secondary.dark-text {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

.btn-secondary.dark-text:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info-top span {
    margin-right: 1.5rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info-top {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .contact-info-top span {
        margin-right: 0;
    }
}

.language-toggle .lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: inherit;
}

.language-toggle .lang-btn.active {
    color: white;
    font-weight: bold;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    /* Changed to row to put logo beside text */
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
}

/* --- Carousel --- */
.hero-carousel {
    height: 80vh;
    /* Reduced height so content shows */
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.carousel-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* --- Quick Links --- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: -3rem;
    /* Overlap hero */
    position: relative;
    z-index: 20;
    margin-bottom: 3rem;
}

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.link-card a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-card.highlight {
    border-top: 4px solid var(--accent-gold);
}

/* --- Page Headers (for sub-pages) --- */
.page-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.page-header h1 {
    color: var(--text-light);
    font-size: 3rem;
}

/* --- Content Sections --- */
.section-padding {
    padding: 4rem 0;
}

.bg-warm {
    background-color: #F3F0EB;
}

.text-block p {
    margin-bottom: 1rem;
}

.large-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Grids --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    /* Increased gap as requested */
    align-items: stretch;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .dual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.card-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    transition: transform 0.3s ease;
    border-top: 5px solid var(--accent-gold);
    /* Add a nice accent top border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card-box:hover {
    transform: translateY(-5px);
}

.card-box h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 600px;
    /* Ensure table doesn't get too squished */
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fee-table th {
    background-color: var(--primary-blue);
    color: white;
}

/* --- Contact Page Improvements --- */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-gold);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-blue);
}

.card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-blue);
}

.card-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* --- Forms --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.map-placeholder {
    height: 250px;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    /* IMPORTANT */
}

/* Make iframe fill the container */
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.qr-code {
    margin: 1rem auto;
    max-width: 200px;
}

.upi-id {
    font-weight: bold;
    background: #eee;
    padding: 5px;
    display: inline-block;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    border-top: 5px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    display: block;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
    color: var(--accent-gold);
}

/* Social Icons */
/* Social Icons */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 1.5rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none !important;
    opacity: 0.8;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.social-icon:hover svg {
    fill: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-carousel {
        height: 60vh;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .container {
        width: 92%;
    }
}

/* --- Stats Section Redesign --- */
.stats-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 94, 0.85);
    /* Primary blue overlay */
}

.relative-z {
    position: relative;
    z-index: 2;
}

.text-white {
    color: white !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
    /* Prevent text overflow */
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    vertical-align: super;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Gallery Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #aaa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-item {
    background-color: #000;
    aspect-ratio: 16/9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.play-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

.video-item:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

.placeholder-text {
    text-align: center;
    color: #666;
    font-weight: 600;
    padding: 1rem;
}

.video-item .placeholder-text {
    position: absolute;
    bottom: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 5px;
}

/* --- Leadership Styles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 5px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-gold);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #666;
    font-size: 1rem;
}

/* --- Genesis Section Styles --- */
.genesis-section {
    padding: 4rem 0;
    position: relative;
}

.genesis-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.genesis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.genesis-card p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .genesis-card {
        padding: 2rem;
    }
}

/* --- Admission Process Improvements --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

/* Connecting line for desktop */
.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Center of the icon */
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--accent-gold);
    opacity: 0.3;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(26, 60, 94, 0.2);
    border: 3px solid white;
}

.step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.step p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 1rem;
}

.step-icon {
    margin-bottom: 1rem;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-gold);
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* --- Support Us Page Improvements --- */
.support-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.support-card .icon-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-size: 2rem;
}

.support-card .icon-circle svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-blue);
}

.support-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.highlight-border {
    border-top: 5px solid var(--accent-gold);
}

.impact-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.impact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
}

/* --- Layout Helpers --- */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Tighter gap as requested */
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}/* --- Academics Responsive Fixes --- */
.content-block-centered {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.custom-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    line-height: 2;
    display: inline-block;
    text-align: left;
}

.check-item {
    background: #fdfdfd;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    white-space: nowrap;
}

.job-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .custom-list {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .check-item {
        width: 100%;
        text-align: center;
        white-space: normal;
        border-radius: 10px;
        padding: 1rem;
    }

    .dual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
