:root {
    --mchs-blue: #1b637e; 
    --mchs-dark: #154d62; 
    --mchs-gold: #ff852d; 
    --mchs-gold-hover: #1b637e; 
    --text-muted-gold: #bba351;
    --text-white: #ffffff;
    --bg-light: #f8faf9;
    --transition-speed: 0.3s;
    --secondary-header-bg: #0d3b4b;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mchs-blue);
    font-weight: 800;
    line-height: 1.3;
    font-family: 'Rubik', sans-serif;
}

.hero-title {
    font-family: 'Rubik', sans-serif;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--mchs-gold);
    outline-offset: 2px;
}

/* Skip to main content for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mchs-gold);
    color: white;
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Progress indicator header */
.progress-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.progress-header.visible {
    opacity: 1;
    visibility: visible;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--mchs-gold), var(--mchs-blue));
    width: 0%;
    transition: width 0.1s ease;
}

/* ===========================
    SECONDARY HEADER
   =========================== */
.secondary-header {
    background-color: var(--secondary-header-bg);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    z-index: 10001;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-header a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed);
    font-family: 'Source Sans Pro', sans-serif;
}

.secondary-header a:hover {
    color: var(--mchs-gold);
}

.secondary-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
}

.secondary-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.secondary-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    row-gap: 6px;
    justify-content: flex-end;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-contact-item i {
    color: var(--mchs-gold);
    font-size: 0.9rem;
}

.header-link-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background-color var(--transition-speed);
}

.header-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-link-item i {
    font-size: 0.9rem;
}

@media (max-width: 1300px) {
    .secondary-header .container {
        justify-content: center;
    }

    .secondary-header-left, .secondary-header-right {
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .secondary-header {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .secondary-header-left, .secondary-header-right {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .secondary-header {
        display: none;
    }
}

/* ===========================
    NAVIGATION BAR
   =========================== */
.navbar {
    background-color: var(--mchs-blue);
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    z-index: 10000;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px !important;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* Icon colors in nav  */
.navbar-nav .nav-link i {
    color: #fff;
    font-size: 0.95rem;
    margin-right: 2px;
    transition: color var(--transition-speed);
}

/* Dropdown toggle arrow */
.navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: 0.1em;
    border-width: 0.2em;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item.show .nav-link {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link:hover i {
    color: var(--mchs-gold);
}


/* Hero section enhancements */
.hero-badge {
    display: inline-block;
    background: var(--mchs-gold);
    color: var(--mchs-blue);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ===========================
    MEGA MENU 
   =========================== */
.navbar-nav .nav-item.dropdown {
    position: static; 
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--mchs-blue) 0%, var(--mchs-dark) 100%);
    border-top: 4px solid var(--mchs-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    display: none;
    margin-top: 0;
    border-radius: 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.megamenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.megamenu-header {
    color: var(--mchs-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.col-header {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.col-header i { 
    margin-right: 10px; 
    color: var(--mchs-gold); 
    transition: transform var(--transition-speed);
}

.megamenu-list { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.megamenu-list li { 
    margin-bottom: 10px; 
}

.megamenu-list li a {
    color: #c0c5e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: block;
    padding: 8px 0;
    transition: all var(--transition-speed);
    position: relative;
    font-family: 'Source Sans Pro', sans-serif;
}

.megamenu-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--mchs-gold);
    transition: width var(--transition-speed);
}

.megamenu-list li a:hover {
    color: var(--mchs-gold);
    transform: translateX(5px);
}

.megamenu-list li a:hover::before {
    width: 20px;
}

/* ===========================
    HERO SECTION WITH SLIDESHOW
   =========================== */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;          
    justify-content: flex-end;        
    color: white;
    position: relative;
    padding-top: 120px;
    padding-bottom: 40px;             
    overflow: hidden;
}

/* Push the text column lower*/
.hero-section .col-lg-7.text-center.text-lg-start {
    margin-bottom: 80px !important;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.08);
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #12103f;
    color: #f1f1f6;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-consent-banner.show-banner {
    transform: translateY(0);
}
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-consent-icon {
    font-size: 1.8rem;
    color: #FF852D;
    flex: 0 0 auto;
}
.cookie-consent-text {
    flex: 1 1 380px;
    min-width: 240px;
}
.cookie-consent-text h6 {
    margin: 0 0 4px;
    font-weight: 700;
    color: #ffffff;
}
.cookie-consent-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cfcfe6;
}
.cookie-consent-text p a {
    color: #FF852D;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.cookie-consent-text p a:hover {
    text-decoration: underline;
}
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: auto;
}
.cookie-btn {
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}
.cookie-btn-accept {
    background: #FF852D;
    color: #ffffff;
}
.cookie-btn-accept:hover {
    background: #e56f1a;
    color: #ffffff;
}
.cookie-btn-reject {
    background: transparent;
    border-color: #6a68a0;
    color: #e5e5f5;
}
.cookie-btn-reject:hover {
    border-color: #ffffff;
    color: #ffffff;
}
.cookie-btn-manage {
    background: transparent;
    color: #e5e5f5;
    text-decoration: none;
    border-color: #6a68a0;
}
.cookie-btn-manage:hover {
    border-color: #ffffff;
    color: #ffffff;
}
.cookie-pref-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
}
.cookie-pref-row .form-check-input {
    width: 2.4em;
    height: 1.3em;
    cursor: pointer;
}
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-consent-actions {
        margin-left: 0;
        width: 100%;
    }
    .cookie-consent-actions .cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Darker overlay for background images */
.hero-slide::after,
.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
}

.hero-slide-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slide-dot.active {
    background: var(--mchs-gold);
    transform: scale(1.2);
}

/* Hero text that changes with slides */
.hero-text-content {
    position: relative;
    min-height: 200px;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* Fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
        transform: none;
    }
    .hero-text {
        transition: none;
    }
}

.hero-title { 
    font-weight: 900; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: white !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span { 
    color: var(--mchs-gold); 
}

.hero-lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 2.5rem;
    max-width: 800px;
    font-family: 'Inter', sans-serif;
}

/* BUTTONS: Orange, Hover: Teal */
.btn-mchs {
    background-color: var(--mchs-gold); 
    color: white;
    padding: 12px 35px; 
    font-weight: 700; 
    border: none; 
    border-radius: 2px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-mchs::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-mchs:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-mchs:hover { 
    background-color: var(--mchs-gold-hover); 
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Business Venture Section Styles */
.business-venture-section {
    background-color: var(--bg-light);
    position: relative;
    padding: 4rem 0; 
    overflow: hidden;
}

.business-card {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 12px; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.business-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.business-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.business-image-wrapper:hover img {
    transform: scale(1.05);
}

.business-content {
    padding: 3.5rem 3rem;
    background: white;
    position: relative;
    z-index: 2;
}

.business-tag {
    display: inline-block;
    color: var(--mchs-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-left: 20px;
}

.business-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--mchs-gold);
}

.business-content h2 {
    color: var(--mchs-blue) !important;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.business-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--mchs-gold);
}

.business-description {
    color: #555 !important;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    text-align: justify;
}

.business-content .btn-mchs {
    background-color: var(--mchs-gold);
    color: white;
    padding: 14px 40px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    transition: all var(--transition-speed);
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.business-content .btn-mchs:hover {
    background-color: var(--mchs-gold-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.business-content .btn-mchs i {
    transition: transform var(--transition-speed);
    font-size: 0.9rem;
}

.business-content .btn-mchs:hover i {
    transform: translateX(8px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .business-venture-section {
        padding: 3rem 0;
    }
    
    .business-image-wrapper {
        min-height: 350px;
    }
    
    .business-content {
        padding: 2.5rem 2rem;
        text-align: center;
    }
    
    .business-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .business-tag {
        padding-left: 0;
    }
    
    .business-tag::before {
        display: none;
    }
    
    .business-content .btn-mchs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .business-venture-section {
        padding: 2.5rem 0;
    }
    
    .business-image-wrapper {
        min-height: 300px;
    }
    
    .business-content {
        padding: 2rem 1.5rem;
    }
    
    .business-content h2 {
        font-size: 1.8rem;
    }
    
    .business-description {
        font-size: 1rem;
    }
    
    .business-card {
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .business-venture-section {
        padding: 2rem 0;
    }
    
    .business-image-wrapper {
        min-height: 250px;
    }
    
    .business-content {
        padding: 1.8rem 1.2rem;
    }
    
    .business-content h2 {
        font-size: 1.6rem;
    }
}

/* ===========================
    SECTIONS & COMPONENTS 
   =========================== */
.section-padding { 
    padding: 3rem 0;
}

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

.bg-dark-custom {
    background-color: var(--mchs-dark);
    color: white;
}

/* Section with background image */
.section-with-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-with-bg .container {
    position: relative;
    z-index: 1;
}

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

.section-header h2 { 
    position: relative; 
    display: inline-block; 
    padding-bottom: 12px; 
    font-family: 'Inter', sans-serif;
}

.section-header h2::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 80px; 
    height: 3px; 
    background: var(--mchs-gold);
}

.section-header p {
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
    NEWS SECTION 
   =========================== */
.news-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.news-section-header h2 {
    margin-bottom: 1rem;
}

.news-view-all {
    margin-top: 2rem;
    margin-bottom: 0;
}

.feature-box {
    background: #fff; 
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: all var(--transition-speed); 
    height: 100%;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
}

.feature-box:hover { 
    transform: translateY(-5px); 
    border-bottom-color: var(--mchs-gold); 
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--mchs-gold); 
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--mchs-blue) 0%, var(--mchs-dark) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Background image for statistics with auto slideshow */
.stats-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stats-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.stats-slide.active {
    opacity: 0.3;
}

.stats-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--mchs-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.event-item {
    background: #fff; 
    display: flex; 
    border-left: 5px solid var(--mchs-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    margin-bottom: 1.5rem; 
    transition: all var(--transition-speed);
    border-radius: 8px;
    overflow: hidden;
}

.event-item:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    transform: translateX(5px);
}

.event-date {
    background: var(--mchs-blue); 
    color: #fff;
    padding: 1rem;
    text-align: center; 
    min-width: 90px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

.event-date .day { 
    font-size: 1.6rem;
    font-weight: 900; 
    line-height: 1; 
}

.event-date .month { 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    font-weight: 600; 
}

.event-content { 
    padding: 1.2rem;
    flex-grow: 1; 
}

/* Programs Section */
.program-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-speed);
    height: 100%;
}

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

.program-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.program-content {
    padding: 1.5rem;
}

.program-category {
    color: var(--mchs-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

/* Campus Life Section */
.campus-life-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-speed);
    height: 100%;
}

.campus-life-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Sustainability Section */
.sdg-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    height: 100%;
}

.sdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sdg-icon {
    font-size: 2.5rem;
    color: var(--mchs-blue);
    margin-bottom: 1rem;
}

/* News Cards */
.news-card { 
    border: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    height: 100%; 
    transition: all var(--transition-speed);
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img { 
    height: 200px;
    object-fit: cover; 
    transition: transform 0.5s;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

/* ===========================
    GALLERY SECTION 
   =========================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white !important;
    padding: 1rem;
    transform: translateY(0);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    background: linear-gradient(transparent, rgba(27, 99, 126, 0.9));
}

.gallery-caption h5 {
    color: white !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-caption small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Source Sans Pro', sans-serif;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--mchs-gold);
    opacity: 0.2;
    position: absolute;
    top: -5px;
    left: 10px;
    font-family: serif;
}

/* ===========================
     MODALS 
   =========================== */
.modal {
    z-index: 10050;
}

.modal-backdrop {
    z-index: 10049;
}

.modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 133, 45, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--mchs-blue) 0%, var(--mchs-dark) 100%);
    color: white !important; 
    border-bottom: 3px solid var(--mchs-gold);
    padding: 1.2rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity var(--transition-speed);
    background-size: 1rem;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: white !important; 
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.social-sharing {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.whatsapp {
    background: #25d366;
}

.gallery-modal-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-modal-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-section { 
    background: var(--mchs-blue); 
    color: white; 
    padding: 3rem 0;
    text-align: center; 
}

/* Virtual Tour Section */
.virtual-tour-container {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.virtual-tour-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--mchs-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--mchs-gold-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

footer { 
    background-color: #0d3b4b; 
    color: #aaa; 
    padding: 3rem 0 2rem;
}

footer h5 { 
    color: white; 
    margin-bottom: 1.5rem; 
    font-family: 'Inter', sans-serif;
}

footer a { 
    color: #aaa; 
    text-decoration: none; 
    transition: color var(--transition-speed); 
}

footer a:hover { 
    color: var(--mchs-gold); 
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Leadership Section */
.leadership-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-speed);
    height: 100%;
}

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

.leadership-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.leadership-content {
    padding: 1.5rem;
}

.leadership-title {
    color: var(--mchs-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

/* ===========================
    LATEST UPDATES MODAL 
   =========================== */
.updates-modal .modal-dialog {
    max-width: 560px;
    margin: 1.75rem auto;
}

.updates-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--mchs-gold);
}

.updates-modal .modal-header {
    background: linear-gradient(135deg, var(--mchs-blue) 0%, var(--mchs-dark) 100%);
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid var(--mchs-gold);
    display: flex;
    align-items: center;
}

.updates-modal .modal-title {
    font-size: 1.15rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.updates-modal .modal-title i {
    color: var(--mchs-gold);
    font-size: 1.3rem;
}

.updates-modal .modal-body {
    padding: 1.5rem 1.25rem;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url(assets/images/board.jpg);
    background-size: cover;
    background-position: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-content {
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
}

.update-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mchs-blue);
    margin-bottom: 0.9rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.update-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.update-date {
    display: inline-block;
    background: var(--mchs-gold);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.update-content .lead {
    font-size: 0.95rem;
    margin-bottom: 1.2rem !important;
}

.update-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.update-buttons .btn {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.9rem;
}

.updates-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    justify-content: flex-end;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .megamenu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding: 1rem 0;
    }
    
    .megamenu.show {
        display: block;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        gap: 8px;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1rem;
        margin-right: 4px;
    }
    
    .navbar-nav .nav-link.dropdown-toggle::after {
        margin-left: 4px;
    }
    
    .updates-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .update-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        align-items: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-text-content {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-lead {
        font-size: 1.1rem;
    }
    
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .hero-slide-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-header {
        padding: 1rem 1.2rem;
    }
    
    .updates-modal .modal-body {
        padding: 1.5rem 1rem;
        min-height: 200px;
    }
    
    .update-title {
        font-size: 1.3rem;
    }
    
    .update-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .update-buttons .btn {
        width: 100%;
    }
    
    .hero-text-content {
        min-height: 160px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 75vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .updates-modal .modal-title {
        font-size: 1.1rem;
    }
    
    .updates-modal .modal-title i {
        font-size: 1.3rem;
    }
    
    .updates-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .hero-text-content {
        min-height: 140px;
    }
    
    .hero-text .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-text .btn {
        width: 100%;
        justify-content: center;
    }
}

.mchs-hamburger {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.mchs-hamburger:hover {
    background: var(--mchs-gold);
    border-color: var(--mchs-gold);
    transform: scale(1.05);
}

.mchs-hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.mchs-hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.mchs-hamburger-line:nth-child(1) { top: 0; }
.mchs-hamburger-line:nth-child(2) { top: 6px; }
.mchs-hamburger-line:nth-child(3) { top: 12px; }

.mchs-hamburger-label {
    display: none;
}

.mchs-hamburger.active .mchs-hamburger-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.mchs-hamburger.active .mchs-hamburger-line:nth-child(2) {
    opacity: 0;
}
.mchs-hamburger.active .mchs-hamburger-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.mchs-hamburger-standalone {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .mchs-hamburger-standalone {
        order: 3;
        margin-left: 16px;
    }
    .navbar-collapse {
        order: 2;
        min-width: 0;
        flex-shrink: 1;
    }
}

.mchs-menu-inner > p {
    color: var(--mchs-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin: 0 0 1rem;
    padding-top: 0.5rem;
    position: relative;
}

.mchs-menu-inner > p::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--mchs-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===========================
    BACKDROP
   =========================== */
.mchs-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 59, 75, 0.45);
    z-index: 10499;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.mchs-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ===========================
    SLIDE-IN PANEL
   =========================== */
.mchs-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; 
    width: 420px;
    max-width: 92vw;
    background: #ffffff;
    z-index: 10500;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mchs-menu-overlay.show {
    transform: translateX(0);
}

.mchs-menu-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: var(--mchs-dark);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
}

.mchs-menu-close:hover {
    background: var(--mchs-gold);
}

.mchs-menu-inner {
    padding: 70px 28px 50px;
}

/* Brand / logo / tagline */
.mchs-menu-brand {
    text-align: center;
    margin-bottom: 1.8rem;
}

.mchs-menu-brand img {
    height: 55px;
    width: auto;
    margin-bottom: 14px;
}

.mchs-menu-tagline {
    color: #666;
    font-size: 0.95rem;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.mchs-menu-feature {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: var(--bg-light);
    min-height: 180px;
}

.mchs-menu-feature img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.mchs-menu-feature-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--mchs-blue);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease, transform 0.3s ease;
}

.mchs-menu-feature-btn:hover {
    background: var(--mchs-gold);
    transform: translateY(-2px);
}

/* Undergraduate / Graduate quick links */
.mchs-menu-quicklinks {
    background: var(--mchs-dark);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.mchs-quicklink {
    display: block;
    padding: 16px 18px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.mchs-quicklink:last-child {
    border-bottom: none;
}

.mchs-quicklink:hover {
    background: rgba(255,255,255,0.08);
}

.mchs-quicklink-title {
    display: block;
    color: #fff !important;
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mchs-quicklink-sub {
    display: block;
    color: #c0c5e0 !important;
    font-size: 0.85rem;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ===========================
    MOBILE-ONLY SITE MENU (inside the slide-in panel)
   =========================== */
.mchs-menu-nav {
    margin-bottom: 0.5rem;
}

.mchs-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mchs-menu-nav > ul > li {
    border-bottom: 1px solid rgba(21, 77, 98, 0.12);
}

.mchs-menu-nav > ul > li:first-child {
    border-top: 1px solid rgba(21, 77, 98, 0.12);
}

.mchs-menu-nav > ul > li > a {
    display: block;
    padding: 14px 4px;
    color: var(--mchs-blue) !important;
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mchs-menu-nav > ul > li > a:hover {
    color: var(--mchs-gold) !important;
    padding-left: 8px;
}

.mchs-menu-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: var(--mchs-blue);
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.mchs-menu-toggle i {
    color: var(--mchs-gold);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.mchs-menu-accordion.open .mchs-menu-toggle i {
    transform: rotate(45deg);
}

.mchs-menu-accordion.open .mchs-menu-toggle {
    color: var(--mchs-gold);
}

.mchs-menu-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mchs-menu-accordion.open .mchs-menu-submenu {
    max-height: 500px;
    padding-bottom: 10px;
}

.mchs-menu-submenu a {
    color: #666 !important;
    text-decoration: none !important;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.92rem;
    padding: 7px 2px 7px 14px;
    border-left: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.mchs-menu-submenu a:hover {
    color: var(--mchs-gold) !important;
    border-left-color: var(--mchs-gold);
}

/* Contact details */
.mchs-menu-contacts {
    margin-bottom: 0.5rem;
}

.mchs-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(21, 77, 98, 0.12);
    text-decoration: none !important;
    color: #444 !important;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.mchs-menu-contact-item:hover {
    color: var(--mchs-gold) !important;
}

.mchs-menu-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mchs-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Follow Us */
.mchs-menu-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(21, 77, 98, 0.12);
}

.mchs-menu-social-label {
    color: var(--mchs-blue);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mchs-menu-social-icons {
    display: flex;
    gap: 10px;
}

.mchs-menu-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mchs-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.mchs-menu-social-icons a:hover {
    background: var(--mchs-gold);
    color: var(--mchs-blue);
    transform: translateY(-2px);
}

/* Apply Now CTA */
.mchs-menu-cta {
    text-align: center;
}

.mchs-menu-cta .btn-mchs {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 30px;
}

@media (max-width: 576px) {
    .mchs-menu-inner {
        padding: 65px 20px 60px;
    }

    .mchs-menu-cta {
        margin-bottom: 10px;
    }
}

/* ===========================
    QUICK LINKS SECTION
   =========================== */
#quick-links-section .quick-link-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

#quick-links-section .quick-link-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#quick-links-section .quick-link-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

#quick-links-section .quick-link-card:hover .quick-link-img-wrapper img {
    transform: scale(1.12);
}

#quick-links-section .quick-link-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.25));
    opacity: 0;
    transition: opacity 0.4s ease;
}

#quick-links-section .quick-link-card:hover .quick-link-img-wrapper::after {
    opacity: 1;
}

#quick-links-section .quick-link-title {
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--mchs-blue);
    transition: color 0.3s ease;
}

#quick-links-section .quick-link-card:hover .quick-link-title {
    color: var(--mchs-gold);
}

@media (max-width: 768px) {
    #quick-links-section .quick-link-title {
        font-size: 1.05rem;
    }
}

/* ============================================================
    LATEST NEWS — FEATURED CARD + 3-UP GRID (home page only)
   ============================================================ */
#news-section .news-section-top {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 2.2rem;
}

#news-section .news-section-top h2 {
    margin: 0;
    padding-bottom: 0;
    font-size: 2.2rem;
}

#news-section .news-section-top h2::after {
    display: none;
}

#news-section .news-all-link {
    color: var(--mchs-blue);
    font-weight: 600;
    text-decoration: none;
    padding-left: 20px;
    border-left: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    transition: color var(--transition-speed);
}

#news-section .news-all-link:hover {
    color: var(--mchs-gold);
}

/* Featured story card */
#news-section .news-featured-card {
    display: grid;
    grid-template-columns: 42% 58%;
    background: #fdf3e2;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 45px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

#news-section .news-featured-card:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

#news-section .news-featured-img {
    overflow: hidden;
    min-height: 340px;
}

#news-section .news-featured-img img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

#news-section .news-featured-card:hover .news-featured-img img {
    transform: scale(1.05);
}

#news-section .news-featured-body {
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#news-section .news-featured-tag {
    color: var(--mchs-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

#news-section .news-featured-headline {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--mchs-blue);
    line-height: 1.3;
    margin-bottom: 12px;
}

#news-section .news-featured-time {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    font-family: 'Source Sans Pro', sans-serif;
}

#news-section .news-featured-excerpt {
    color: #444;
    line-height: 1.7;
    margin-bottom: 22px;
    font-family: 'Source Sans Pro', sans-serif;
}

/* corner accent triangle, bottom-right of the featured card */
#news-section .news-featured-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 56px 56px;
    border-color: transparent transparent var(--mchs-blue) transparent;
    pointer-events: none;
}

/* Grid of up to 3 more stories */
#news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

#news-section .news-grid-card {
    cursor: pointer;
}

#news-section .news-grid-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

#news-section .news-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

#news-section .news-grid-card:hover .news-grid-img img {
    transform: scale(1.07);
}

#news-section .news-grid-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mchs-blue);
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color var(--transition-speed);
}

#news-section .news-grid-card:hover .news-grid-headline {
    color: var(--mchs-gold);
}

#news-section .news-grid-time {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    font-family: 'Source Sans Pro', sans-serif;
}

#news-section .news-read-more {
    color: var(--mchs-blue) !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: color var(--transition-speed);
}

#news-section .news-read-more:hover {
    color: var(--mchs-gold) !important;
}

#news-section .news-read-more i {
    transition: transform var(--transition-speed);
}

#news-section .news-read-more:hover i {
    transform: translateX(4px);
}

@media (max-width: 991.98px) {
    #news-section .news-featured-card {
        grid-template-columns: 1fr;
    }
    #news-section .news-featured-img,
    #news-section .news-featured-img img {
        min-height: 280px;
    }
    #news-section .news-featured-body {
        padding: 32px 28px;
    }
    #news-section .news-featured-headline {
        font-size: 1.5rem;
    }
    #news-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    #news-section .news-section-top {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    #news-section .news-section-top h2 {
        font-size: 1.7rem;
    }
    #news-section .news-featured-headline {
        font-size: 1.3rem;
    }
    #news-section .news-featured-body {
        padding: 26px 20px;
    }
    #news-section .news-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================
    EVENTS SECTION
   =========================== */
.events-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.events-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e1b70; /* Using a dark blue */
    margin: 0;
    position: relative;
}

.events-section-header h2::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--mchs-gold);
    border-radius: 2px;
}

.events-all-link {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.events-all-link:hover {
    color: var(--mchs-gold);
}

.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.event-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    bottom: 0;
    left: 20px;
    background: #2a2d64; /* Dark navy blue */
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1;
}

.event-day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.event-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b70;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: var(--mchs-gold);
}

.event-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta i {
    color: #94a3b8;
}

.event-read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e1b70;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.event-read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.event-read-more:hover {
    color: var(--mchs-gold);
}

.event-read-more:hover::after {
    transform: translateX(4px);
}

#mchs-loader {
    position: fixed;
    inset: 0;
    z-index: 20000; /* above modals (10050) and slide-in menu (10500) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #154d62 0%, #1b637e 60%, #2a8aae 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#mchs-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    padding: 0 20px;
    animation: loaderFadeUp 0.8s ease both;
}

/* Logo circle + spinning ring */
.loader-logo {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.loader-logo img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.loader-logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ff852d;
    animation: loaderSpin 1.1s linear infinite;
}

.loader-title {
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.loader-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.loader-text {
    color: #fff;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 14px;
}

/* animated dots: Loading. -> Loading.. -> Loading... */
.loader-dots::after {
    content: '.';
    animation: loaderDots 1.4s steps(1) infinite;
}

/* Progress bar */
.loader-bar {
    width: 260px;
    max-width: 80vw;
    height: 4px;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 4px;
    background: #fff;
    transition: width 0.4s ease;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderDots {
    0%   { content: '.'; }
    33%  { content: '..'; }
    66%  { content: '...'; }
}
@keyframes loaderFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lock scrolling while loading */
body.is-loading { overflow: hidden; }

@media (max-width: 576px) {
    .loader-title { font-size: 1.4rem; }
    .loader-logo  { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .loader-logo::before,
    .loader-content { animation: none; }
}


/* =====================================================================
   WIDE-SCREEN LAYOUT 
   ===================================================================== */

/* 1. Scale the whole page up on big screens (rem-based sizes grow together) */
@media (min-width: 1920px) { html { font-size: 17px; } }
@media (min-width: 2400px) { html { font-size: 18.5px; } }
@media (min-width: 3000px) { html { font-size: 21px; } }

/* 2. Container grows with the screen (replaces Bootstrap's 1320px cap) */
.container {
    width: 100%;
    padding-left: clamp(1rem, 3vw, 3.5rem);
    padding-right: clamp(1rem, 3vw, 3.5rem);
}

@media (min-width: 1400px) { .container { max-width: 1440px; } }
@media (min-width: 1700px) { .container { max-width: 1600px; } }
@media (min-width: 1920px) { .container { max-width: 1760px; } }
@media (min-width: 2400px) { .container { max-width: 2100px; } }
@media (min-width: 3000px) { .container { max-width: 2600px; } }

/* Navbar and secondary header line up with the container edges */
.navbar { padding-left: clamp(1rem, 3vw, 3.5rem); padding-right: clamp(1rem, 3vw, 3.5rem); }
.secondary-header .container { max-width: 100%; }

/* 3. Section headings and intro text */
.section-header p { max-width: 820px; }

@media (min-width: 1700px) {
    .section-header h2 { font-size: 2.4rem; }
    .section-header p { max-width: 900px; font-size: 1.1rem; }
}

/* 4. Hero + stats */
@media (min-width: 1700px) {
    .hero-section { min-height: 80vh; }
    .hero-lead { max-width: 950px; font-size: 1.5rem; }
    .hero-text-content { min-height: 240px; }
    .stat-number { font-size: 3.6rem; }
}

/* 5. Quick links (6 cards: always 3 across so rows stay even) */
@media (min-width: 1700px) {
    #quick-links-section .quick-link-img-wrapper { aspect-ratio: 16 / 10; }
    #quick-links-section .quick-link-title { font-size: 1.3rem; }
}

/* 6. Executive Director welcome (higher specificity beats the inline <style> in index.php) */
section.ed-welcome-section .ed-welcome-card { width: 100%; }
section.ed-welcome-section .ed-welcome-image-col { flex: 0 0 38%; min-height: 420px; }
section.ed-welcome-section .ed-welcome-content-col {
    padding: clamp(2rem, 3.5vw, 4rem) clamp(1.5rem, 4vw, 5rem);
}
section.ed-welcome-section .ed-welcome-message { max-width: 85ch; font-size: 1.05rem; }

@media (min-width: 1700px) {
    section.ed-welcome-section { padding: 100px 0; }
    section.ed-welcome-section .ed-welcome-image-col { min-height: 520px; }
    section.ed-welcome-section .ed-welcome-heading { font-size: 2.4rem; }
    section.ed-welcome-section .ed-welcome-message { font-size: 1.15rem; }
}

@media (max-width: 992px) {
    section.ed-welcome-section .ed-welcome-image-col { flex: 0 0 100%; min-height: 300px; max-height: 420px; }
    section.ed-welcome-section .ed-welcome-message { max-width: none; }
}

/* 7. Why Choose MCHS */
@media (min-width: 1700px) {
    .feature-box { padding: 2.8rem 2.2rem; }
    .feature-icon { font-size: 3rem; }
}

/* 8. Business venture */
@media (min-width: 1700px) {
    .business-image-wrapper { min-height: 500px; }
    .business-content { padding: 4.5rem 4.5rem; }
    .business-content h2 { font-size: 2.6rem; }
    .business-description { font-size: 1.2rem; max-width: 60ch; }
}

/* 9. About MCHS */
@media (min-width: 1700px) {
    #about-section { padding: 5rem 0; }
    #about-section p { font-size: 1.15rem; }
}

/* 10. Downloads */
@media (min-width: 1700px) {
    #downloads-section .download-card { padding: 36px 30px 28px; }
    #downloads-section .download-title { font-size: 1.35rem; }
    #downloads-section .download-description { font-size: 1rem; }
}

/* 11. Academic programs */
.program-img { height: 240px; }
@media (min-width: 1700px) {
    .program-img { height: 300px; }
    .program-content { padding: 2rem; }
}
@media (min-width: 2400px) { .program-img { height: 360px; } }

/* 12. Sustainability */
@media (min-width: 1700px) {
    .sdg-card { padding: 2.2rem; }
    .sdg-icon { font-size: 3rem; }
}

/* 13. Latest news */
@media (min-width: 1700px) {
    #news-section .news-featured-img,
    #news-section .news-featured-img img { min-height: 440px; }
    #news-section .news-featured-body { padding: 4rem 5rem; }
    #news-section .news-featured-headline { font-size: 2.3rem; }
    #news-section .news-featured-excerpt { font-size: 1.1rem; max-width: 70ch; }
    #news-section .news-grid { gap: 40px; }
    #news-section .news-grid-headline { font-size: 1.3rem; }
}

/* 14. Contact */
@media (min-width: 1700px) {
    #contact-section { padding: 5rem 0; }
    #contact-section .card-body { padding: 2.5rem !important; }
}

/* 15. Events */
@media (min-width: 1700px) {
    .event-img-wrapper { height: 280px; }
    .event-title { font-size: 1.25rem; }
}

/* 16. Call to action */
.cta-section .lead { max-width: 1000px; margin-left: auto; margin-right: auto; }
@media (min-width: 1700px) {
    .cta-section { padding: 4.5rem 0; }
    .cta-section h2 { font-size: 2.4rem; }
}

/* 17. Section spacing on big screens */
@media (min-width: 1700px) { .section-padding { padding: 4.5rem 0; } }
@media (min-width: 2400px) { .section-padding { padding: 5.5rem 0; } }

/* 18. Zoomed images
@media (min-width: 2400px), (hover: none) {
    .section-with-bg { background-attachment: scroll; }
}