/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
   :root {
    --primary: #8c1537; /* A deep maroon/burgundy */
    --primary-dark: #660d26;
    --secondary: #0A192F; /* Deep Navy Blue */
    --accent: #ECA313; /* Gold/Yellow accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white; /* to override general a:hover */
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title-wrap {
    margin-bottom: 40px;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Changed dynamically if text-center */
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.topbar {
    background-color: var(--secondary);
    color: #e0e0e0;
    padding: 8px 0;
    font-size: 0.85rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span {
    margin-right: 20px;
}

.topbar-left i {
    color: var(--accent);
    margin-right: 5px;
}

.topbar-right a {
    color: #e0e0e0;
    margin-left: 15px;
}

.topbar-right a:hover {
    color: var(--accent);
}

.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    background-color: var(--secondary);
    overflow: hidden;
}

.hero-slider, .slide {
    width: 100%;
    height: 100%;
}

.slide {
    background-size: cover;
    background-position: center 20%; /* Nudging background slightly down since header might obscure faces */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 50%, rgba(10, 25, 47, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    max-width: 700px;
    padding-left: 5%;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 25px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

cite {
    font-size: 1.1rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.rounded {
    border-radius: 10px;
}

.shadow {
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent);
    color: var(--secondary);
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-md);
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: float 4s ease-in-out infinite;
}

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

.experience-badge .number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.2;
}

.mission-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.mv-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.mv-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Benefits / Why Choose Us
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0%;
    background-color: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.benefit-card:hover::before {
    height: 100%;
}

.benefit-card:hover {
    color: white;
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.benefit-card:hover i,
.benefit-card:hover h4,
.benefit-card:hover p {
    color: white;
}

.benefit-card h4 {
    margin-bottom: 15px;
}

/* ==========================================================================
   Programs (Master Study Theme Style)
   ========================================================================== */
.programs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.programs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 15px; /* Alignment fix */
}

.filter-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.course-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.2);
    transition: var(--transition);
}

.course-card:hover .course-img::after {
    background-color: rgba(0,0,0,0.05); /* Lighter on hover */
}

.icon-placeholder {
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
    z-index: 1;
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.course-badge.badge-alt { background-color: var(--accent); color: var(--secondary); }
.course-badge.badge-dark { background-color: var(--secondary); }

.course-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.course-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.course-title a {
    color: var(--secondary);
}

.course-title a:hover {
    color: var(--primary);
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.course-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.course-btn i {
    transition: var(--transition);
}

.course-btn:hover i {
    transform: translateX(5px);
}

.registration-info {
    margin-top: 50px;
}

.reg-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    border-left: 5px solid var(--accent);
}

.reg-box h4 {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-box h4 i {
    color: var(--accent);
}

.reg-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.reg-list li {
    background-color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
}

/* ==========================================================================
   Values & Activities Gallery
   ========================================================================== */
.values-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.value-item {
    background-color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

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

.value-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(140, 21, 55, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.7rem;
}

.value-item:hover span {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    background: white;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.features-list {
    background-color: var(--secondary);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-list h4 {
    color: var(--accent);
    margin-bottom: 20px;
}

.features-list ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list ul li i {
    color: var(--primary);
    margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #030b18; /* Very dark blue/black */
    color: #a0aabf;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 75px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
}

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

.footer-widget h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.links-widget ul li {
    margin-bottom: 10px;
}

.links-widget ul li a {
    color: #a0aabf;
}

.links-widget ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-widget ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-widget ul li i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-bottom {
    background-color: #020710;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .programs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .programs-nav {
        margin-top: 10px;
        flex-wrap: wrap;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav.nav-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title { font-size: 2.8rem; }
    
    .about-inner { grid-template-columns: 1fr; }
    
    .experience-badge {
        right: 10px;
        bottom: -20px;
        width: 120px; height: 120px;
    }

    .experience-badge .number { font-size: 1.8rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
