:root {
    --primary-blue: #2563EB;
    /* Vibrant, trustworthy blue */
    --dark-blue: #1E40AF;
    /* Darker shade for hover */
    --accent-blue: #DBEAFE;
    /* Very light blue for backgrounds/icons */
    --text-dark: #1F2937;
    /* Almost black for headings */
    --text-gray: #4B5563;
    /* Softer gray for body text */
    --bg-light: #F9FAFB;
    /* Very light gray background */
    --white: #FFFFFF;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-card: 20px;
    --radius-btn: 50px;

    --transition: all 0.3s ease;
}

/* 
         * UTILITY CLASSES 
         */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-container >.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.cta-container >.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.23);
}

/* 
         * SECTION HEADER 
         */
.academic-section {
    padding: 80px 0 100px;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.subtitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    background-color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* 
         * ACADEMIC PROGRAMS (GRID)
         */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    /* For animation */
    transform: translateY(30px);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.program-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stagger animation delays in CSS via nth-child */
.program-card:nth-child(1) {
    transition-delay: 0.1s;
}

.program-card:nth-child(2) {
    transition-delay: 0.2s;
}

.program-card:nth-child(3) {
    transition-delay: 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes button to bottom */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
    font-size: 0.95rem;
}

.card-link:hover {
    gap: 10px;
    /* Arrow moves right */
    color: var(--dark-blue);
}

/* 
         * ADDITIONAL FEATURES 
         */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-item {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.feature-item:nth-child(1) {
    transition-delay: 0.4s;
}

.feature-item:nth-child(2) {
    transition-delay: 0.5s;
}

.feature-item:nth-child(3) {
    transition-delay: 0.6s;
}

.feature-item:nth-child(4) {
    transition-delay: 0.7s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-blue);
    color: var(--white);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* 
         * CTA AREA
         */
.cta-container {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.cta-container.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.8s;
}

/* 
         * RESPONSIVE DESIGN
         */
@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .features-row {
        grid-template-columns: 1fr;
    }

    .academic-section {
        padding: 60px 0;
    }
}

/* 
         * MOCK HERO & ABOUT (Context for design visualization)
         * This ensures the section doesn't look isolated in the preview
         */
.mock-hero {
    height: 400px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.mock-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.mock-hero p {
    opacity: 0.9;
    font-size: 1.2rem;
}