: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;
}

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

.secondary-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.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: 992px) {
    .secondary-header {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .secondary-header .container {
        justify-content: center;
    }
    
    .secondary-header-left, .secondary-header-right {
        justify-content: center;
        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-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

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

.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 10px !important;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

/* 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;
    align-items: flex-end;
    color: white;
    position: relative;
    padding-top: 120px;
    padding-bottom: 100px;
    overflow: hidden;
}

.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;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

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

.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(20px);
    transition: opacity 0.8s ease, transform 0.8s 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;
    }
    .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 (Img 2), Hover: Teal (Img 1) */
.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; /* Adds space above and below the section */
    overflow: hidden;
}

.business-card {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 12px; /* Slight rounding for a modern look */
    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;
}

.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;
}

/* ===========================
    IMPROVED 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; /* Force white text */
    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; /* Force white text */
}

.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: 800px;
    margin: 1.75rem auto;
}

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

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

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

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

.updates-modal .modal-body {
    padding: 2rem 1.5rem;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url(https://mchs.mw/admin/assets/images/sliders/697c6189b5b6e.jpg);
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

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

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

.updates-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    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;
    }
}