:root {
    --mchs-blue: #1b637e;
    --mchs-dark: #154d62;
    --mchs-gold: #ff852d;
    --mchs-gold-hover: #1b637e;
    --text-white: #ffffff;
    --bg-light: #f8faf9;
    --transition-speed: 0.3s;
    --secondary-header-bg: #0d3b4b;
}

body {
    font-family: 'Lexend', sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

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

:focus-visible {
    outline: 2px solid var(--mchs-gold);
    outline-offset: 2px;
}

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

/* TOP PROGRESS BAR */
.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: 1001;
    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);
}

.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,
.secondary-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

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

.header-link-item {
    padding: 4px 8px;
    border-radius: 3px;
    transition: background-color var(--transition-speed);
}

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

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

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

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

.navbar-nav .nav-link i {
    color: #fff;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

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

.dropdown-menu {
    background-color: var(--mchs-dark);
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-menu .dropdown-item {
    color: #e0e0e0;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--mchs-gold);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 133, 45, 0.15);
    color: white;
}

.dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: 0.1em;
    border-top-color: white;
}


/* ========== ANNOUNCEMENT MODAL ========== */
.announcement-modal .modal-header {
    background: linear-gradient(135deg, var(--mchs-blue) 0%, var(--mchs-dark) 100%);
    border-bottom: 3px solid var(--mchs-gold);
    justify-content: center;
    position: relative;
    padding: 1rem 1.5rem;
}

.announcement-modal .modal-title {
    color: #ffffff !important;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-modal .btn-close {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    filter: invert(1);
}

.announcement-modal .modal-body {
    padding: 2.5rem 2rem 1.5rem;
}

.main-announcement-title {
    color: var(--mchs-blue);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.sub-announcement-title {
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.orange-pill-badge {
    display: inline-block;
    background: var(--mchs-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.25rem;
}

.callout-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.action-btn-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-action-primary,
.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-action-primary {
    background-color: var(--mchs-gold);
    color: #fff;
    border: 2px solid var(--mchs-gold);
}

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

.btn-action-secondary {
    background-color: transparent;
    color: var(--mchs-blue);
    border: 2px solid var(--mchs-blue);
}

.btn-action-secondary:hover {
    background-color: var(--mchs-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 99, 126, 0.2);
}

.modal-footer-custom {
    border-top: 1px solid #eee;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-footer-close {
    background: none;
    border: none;
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    transition: color 0.3s;
}

.btn-footer-close:hover {
    color: var(--mchs-blue);
}


/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--mchs-gold);
    z-index: 10001;
    padding: 1.25rem 1.5rem;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mchs-blue), var(--mchs-dark));
    color: var(--mchs-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.cookie-text {
    flex: 1 1 320px;
}

.cookie-text h6 {
    color: var(--mchs-blue);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cookie-text p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

.cookie-text p a {
    color: var(--mchs-gold);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.btn-cookie-decline,
.btn-cookie-accept {
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-decline {
    background: transparent;
    border: 2px solid #d1d5db;
    color: #555;
}

.btn-cookie-decline:hover {
    border-color: var(--mchs-blue);
    color: var(--mchs-blue);
}

.btn-cookie-accept {
    background-color: var(--mchs-gold);
    border: 2px solid var(--mchs-gold);
    color: #fff;
}

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

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 1.1rem;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .btn-cookie-decline,
    .btn-cookie-accept {
        flex: 1;
    }
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
    padding-top: 60px;
    padding-bottom: 90px;
    overflow: hidden;
}

/* Dark gradient overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
    z-index: 1;                  
    pointer-events: none;        
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content-col {
    padding-top: 8rem;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    overflow: hidden;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1.08) translate(0, 0);
    animation: kenBurnsDrift 7s ease-in-out forwards paused;
    z-index: -1;
}

.hero-slide.active::before {
    animation-play-state: running;
}

@keyframes kenBurnsDrift {
    0%   { transform: scale(1.08) translate(0, 0); }
    50%  { transform: scale(1.15) translate(-1.5%, -1%); }
    100% { transform: scale(1.1) translate(1%, 1%); }
}

.hero-slide::after {
    content: none;
}

.hero-slide-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.slide-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    backdrop-filter: blur(4px);
}

.slide-arrow:hover {
    background: var(--mchs-gold);
    border-color: var(--mchs-gold);
    transform: scale(1.1);
}

.hero-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.3rem);
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-lead,
.hero-section .d-flex.gap-3 {
    opacity: 0;
    transform: translateY(25px);
}

.hero-lead.animate-in {
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-section .d-flex.gap-3.animate-in {
    animation: heroFadeUp 0.8s ease 0.15s forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-mchs {
    background-color: var(--mchs-gold);
    color: white;
    padding: 14px 35px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    transition: all var(--transition-speed);
    font-size: 1rem;
}

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

.section-padding { padding: 3rem 0; }
.bg-light-custom { background-color: var(--bg-light); }

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

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
}

.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-weight: 700;
}

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

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

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mchs-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Message from Librarian */
.librarian-message {
    background: var(--bg-light);
    padding: 2rem 0;
}

.message-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
}

.message-img {
    flex: 1 1 300px;
    overflow: hidden;
    position: relative;
}

.message-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.message-img:hover img {
    transform: scale(1.08);
}

.message-text {
    flex: 1 1 450px;
    padding: 2rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-text h2 {
    color: var(--mchs-blue);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.message-text .quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
    text-align: justify;
}

.message-text .quote strong {
    color: var(--mchs-dark);
}

.librarian-name {
    font-weight: 700;
    color: var(--mchs-dark);
    font-size: 1rem;
}

.librarian-title {
    color: var(--mchs-gold);
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-outline-mchs {
    border: 2px solid var(--mchs-gold);
    color: var(--mchs-gold);
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    border-radius: 30px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75rem;
}

.btn-outline-mchs:hover {
    background: var(--mchs-gold);
    color: white;
}

/* ========== MISSION SECTION  ========== */
.mission-section {
    position: relative;
    background: url('../images/3.jpg') center/cover no-repeat;
    padding: 5rem 0;
    color: #fff;
    text-align: center;
}

.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.mission-section .container {
    position: relative;
    z-index: 2;
}

.mission-icon {
    font-size: 3rem;
    color: var(--mchs-gold);
    margin-bottom: 1.5rem;
}

.mission-heading {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.mission-text {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-style: italic;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ========== SERVICES SECTION ========== */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--mchs-gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--mchs-blue), #0f4056);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 15px rgba(23,84,109,0.3);
}

.service-card h4 {
    color: var(--mchs-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

/* ========== NEWS SECTION ========== */
.news-section { padding: 3rem 0; }

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.news-grid .news-card {
    flex: 0 0 350px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .news-grid .news-card {
        flex: 0 0 100%;
    }
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; color: #718096; font-size: 0.8rem; }
.news-meta i { color: var(--mchs-gold); }
.news-headline { font-weight: 800; font-size: 1.1rem; color: var(--mchs-blue); margin-bottom: 0.8rem; line-height: 1.3; }
.news-excerpt { color: #4a5568; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; text-align: justify; }
.news-card .read-more-link,
.news-card .read-more-link:hover,
.news-card .read-more-link:focus {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    color: var(--mchs-gold);
    text-decoration: none !important;
    border-bottom: none !important;
}
.news-card .read-more-link:hover {
    color: var(--mchs-gold-hover);
}
.empty-news { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.empty-news i { font-size: 3rem; color: var(--mchs-gold); margin-bottom: 1rem; }
.empty-news h3 { color: var(--mchs-blue); margin-bottom: 0.5rem; }
.empty-news p { color: #555; max-width: 400px; margin: 0 auto; }
.view-more-btn { display: inline-block; margin-top: 1.5rem; padding: 0.6rem 2rem; background: var(--mchs-gold); color: #fff; border-radius: 30px; font-weight: 600; text-decoration: none; transition: background 0.3s; }
.view-more-btn:hover { background: var(--mchs-gold-hover); }

/* ========== LIBRARY HOURS ========== */
.hours-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../images/za.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4.5rem 0;
    color: #fff;
}

.hours-header { text-align: center; margin-bottom: 3rem; }
.hours-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.hours-label i { color: var(--mchs-gold); font-size: 1.4rem; }
.hours-intro { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 1.05rem; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.hours-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    padding: 2.2rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}
.hours-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--mchs-gold);
    transform: translateY(-4px);
}
.hours-card h3 { color: #fff; font-weight: 700; font-size: 1.3rem; margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--mchs-gold); display: inline-block; }
.hours-schedule-item { font-size: 1rem; line-height: 1.5; margin-bottom: 1.1rem; color: rgba(255,255,255,0.92); position: relative; padding-left: 1.5rem; }
.hours-schedule-item:last-child { margin-bottom: 0; }
.hours-schedule-item strong { color: var(--mchs-gold); font-weight: 700; }
.hours-schedule-item::before { content: '▸'; position: absolute; left: 0; color: var(--mchs-gold); font-weight: 700; }

/* ========== COLLECTIONS ========== */
.collection-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--mchs-gold);
}
.collection-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.collection-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collection-card:hover .collection-img-wrapper img {
    transform: scale(1.08);
}
.collection-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.collection-card .card-body h3 {
    color: var(--mchs-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.collection-card .card-body p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

/* button style for collections & services */
.btn-collection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--mchs-blue);
    border: 2px solid var(--mchs-blue);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 1rem;
}
.btn-collection:hover {
    background-color: var(--mchs-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 99, 126, 0.3);
}
.btn-collection i {
    transition: transform 0.3s;
}
.btn-collection:hover i {
    transform: translateX(3px);
}

/* Separator line */
.section-separator {
    border: none;
    border-top: 2px solid #0d3b4b;
    margin: 0;
}

/* ========== reCAPTCHA disclaimer & badge ========== */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-disclaimer {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
}

.recaptcha-disclaimer a {
    color: #6b7280;
    text-decoration: underline;
}

.recaptcha-disclaimer a:hover {
    color: #374151;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--mchs-gold);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 9999;  
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

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

.scroll-top:hover {
    background-color: var(--mchs-gold-hover);
    transform: translateY(-5px) scale(1.05);
}

/* News Modal */
.modal {
    z-index: 1055;
}
.modal-backdrop {
    z-index: 1050;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.modal-header .btn-close {
    filter: invert(1);
}

.news-modal-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.whatsapp { background: #25d366; }

/* Footer */
.footer-modern {
    background: linear-gradient(135deg, #0d3b4b 0%, #0a2a36 100%);
    color: #ccc;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.footer-modern h5 {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-modern h5 i {
    color: var(--mchs-gold);
    font-size: 1.2rem;
}

.footer-modern a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-modern a i {
    width: 16px;
    color: var(--mchs-gold);
}

.footer-modern a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #bbb;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .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;
    }
    .section-padding {
        padding: 2.5rem 0;
    }
    .hero-content-col {
        padding-top: 4rem;
    }
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .collection-img-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        margin-top: 0.5rem;
        justify-content: center;
    }
}