﻿/* Overlay color that changes with scroll */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,55,116,0));
    z-index: -1;
}
/**********************************/
/* HERO IMAGE */
/*********************************/
.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center; /* vertically centers content */
    justify-content: flex-start; /* keeps text left-aligned */
    overflow: hidden; /* hides anything outside hero */
    height: 450px; /* fixed height on desktop */
}

.TopLargeImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero text overlay */
.hero-text-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 5%;
    max-width: 900px;
}

/* Main title */
.divLargeText {
    font-family: Lato-bold;
    font-size: clamp(20px, 4vw, 60px);
}

/* Subtitle */
.divLargeText_SubTitle {
    font-family: Lato-bold;
    font-size: clamp(11px, 2.5vw, 30px);
    margin-top: 0.5rem;
}

/* Description */
.divSmallText {
    font-family: Lato-Regular;
    font-size: clamp(10px, 1.5vw, 20px);
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1118px) {
    .hero-wrapper {
        height: 400px; /* slightly shorter for mid-size screens */
    }

    .hero-text-container {
        padding: 0 4%;
    }
}

@media (max-width: 800px) {
    .hero-wrapper {
        height: 300px; /* smaller mobile height */
    }

    .hero-text-container {
        padding: 0 3%;
    }
}

@media (max-width: 500px) {
    .hero-wrapper {
        height: 200px; /* very small mobile height */
    }

    .hero-text-container {
        padding: 0 2%;
    }
}

/*************************************/
/* === HOW DO I – QUICK ACCESS === */
/*************************************/
.how-do-i-section {
    padding: 3.5rem 1rem 2.5rem;
    background: transparent;
}

.how-do-i-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.how-do-i-header {
    margin-bottom: 1.75rem;
}

.how-do-i-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #003774;
    font-size: clamp(1.75rem, 2.5vw, 2.3rem);
    margin-bottom: 0.25rem;
}

.how-do-i-subtitle {
    color: #4a678c;
    font-size: 1rem;
}

.how-do-i-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on desktop */
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch; /* <-- makes all cards equal height */
}

    .how-do-i-grid h3 {
        font-size: 1rem;
    }

.how-do-i-card {
    display: flex;
    align-items: center; /* icon left, text aligned */
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #003774;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,29,90,0.08);
    transition: all 0.2s ease;
    border: 1px solid rgba(0,29,90,0.08);
    height: 100%; /* ensures it stretches to match row */
}

    .how-do-i-card i {
        font-size: 1.25rem;
        color: #0d6efd;
        min-width: 24px;
        flex-shrink: 0;
        align-self: center; /* <-- key line */
        margin-top: -0.4rem;
    }

    .how-do-i-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,29,90,0.18);
        background: #f8fbff;
    }

    .how-do-i-card h3 {
        line-height: 1.3;
        display: block;
    }
/* Tablet */
@media (max-width: 992px) {
    .how-do-i-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .how-do-i-grid {
        grid-template-columns: 1fr;
    }
}

/*************************************/
/* === ONE MNO NAVIGATOR STRIP === */
/*************************************/
.one-mno-navigator {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    border-radius: 14px;
    border: 1px solid rgba(0,29,90,0.08);
    box-shadow: 0 8px 22px rgba(0,29,90,0.08);
}

.navigator-icon {
    background: #003774;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .navigator-icon i {
        font-size: 1.25rem;
    }

.navigator-content h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #003774;
}

.navigator-content p {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.95rem;
    color: #41556f;
}

.navigator-link {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .navigator-link:hover {
        text-decoration: underline;
    }

/* Mobile polish */
@media (max-width: 576px) {
    .one-mno-navigator {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigator-icon {
        margin-bottom: 0.25rem;
    }
}

/*************************************/
/* === SELF GOVERNANCE === */
/*************************************/

.SG-section {
    padding: 3.5rem 1rem 2.5rem;
    background: #e9effb;
}

.SG-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.SG-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #003774;
    font-size: clamp(1.75rem, 2.5vw, 2.3rem);
    margin-bottom: 0.25rem;
}

.SG-subtitle {
    color: #5e7ca3;
    font-size: 1rem;
}


.SG-header {
    margin-bottom: 1.75rem;
}

.SG-content {
    display: flex;
    align-items: center;
    justify-content: center; /* centers the whole group */
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1000px; /* controls visual width */
    margin: 0 auto;
}

.SG-media img {
    max-width: 280px;
    height: auto;
    display: block;
}

.SG-text {
    max-width: 600px;
    color: #003774;
    font-weight: 600;
}

    .SG-text p {
        margin: 0.5rem 0;
    }

    .SG-text .subtext {
        color: #41556f;
        font-size: 0.90rem;
    }

/* Mobile */
@media (max-width: 768px) {
    .SG-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center; /* keeps block centered */
    }

    .SG-text {
        max-width: 100%;
        text-align: left; /* readable paragraphs */
    }
}

/*************************************/
/* === MAIN EVENTS CARD STYLING === */
/*************************************/
.divider-wrapper {
    display: flex;
    align-items: center;
    width: 85%; /* match section width */
    max-width: 1600px;
    margin: 0 auto -.5rem auto; /* center and space below */
}

/* --- Updated: Title + Subtitle --- */
.main-events-wrapper .divider-wrapper,
.just-added-section .divider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%; /* full width of parent */
    max-width: 1600px; /* same as before */
    margin: 0 auto 1rem auto; /* centers container */
    padding: 0 1rem; /* match HOW DO I / SG padding */
}

.divider-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #003774;
    font-size: clamp(1.75rem, 2.5vw, 2.3rem);
    margin-bottom: 0; /* remove default spacing */
}

/* Subtitle / legend text */
.main-events-wrapper .divider-wrapper p,
.just-added-section .divider-wrapper p {
    color: #5e7ca3; /* subtle blue like HOW DO I */
    font-size: 1rem;
    margin: 0; /* remove extra margin */
}

/* Section spacing */
.main-events-wrapper {
    margin-top: 2.5rem; /* space above section */
    margin-bottom: .1rem; /* space below section */
}

.main-events .card-img-container {
    margin-top: 1.5rem; /* adds space from top border of .main-events */
}

.main-events {
    position: relative; /* needed for z-index stacking */
    padding: 4rem 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
    overflow: hidden;
    z-index: 0; /* base for pseudo-elements */
}

    .main-events .container {
        color: black;
        font-size: 1.3rem;
        position: relative; /* make z-index effective */
        z-index: 10; /* higher than ::before/::after */
    }

.container .subtext {
    color: Black;
    font-size: 1.0rem;
}

.main-events {
    position: relative;
    padding: 2rem 25px;
    border-radius: 12px;
    width: 85% !important;
    margin: 0 auto;
    color: #fff;
    z-index: 3;
}

    /* Fix negative margins of row */
    .main-events .custom-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem; /* optional, space between cards */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

.event-card {
    max-width: 560px;
    background-color: #eff7fb;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 29, 90, 0.15);
}

    .event-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0, 29, 90, 0.25); /* shadow in navy tint */
    }

.card-img-container {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 4; /* preserves 3:4 proportion */
    overflow: hidden;
    margin: 0 auto;
    border-radius: 4px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crops only as needed to fit container */
    display: block;
}

/* Title & text harmonization */
.card-title {
    color: #001d5a;
    font-size: clamp(0.8em, 3.0vw, 1em);
}
.card-subtitle {
    font-size: clamp(0.6em, 2.0vw, 0.7em);
}
.card-date {
    font-size: clamp(0.6em, 2.0vw, 0.7em);
}
.card-location {
    font-size: clamp(0.7em, 2.0vw, 0.8em);
}
.card-description {
    font-size: clamp(0.7em, 2.0vw, 0.8em);
}
.card-text strong {
    color: #003774;
}


hr {
    border-top: 1px solid #5e7ca3;
    opacity: 0.5;
}

.event-card:hover .card-title {
    color: #003774;
}

/*screen reader only*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*************************************/
/* === WHATS NEW SECTION === */
/*************************************/
.just-added-section .divider-wrapper {
    display: flex;
    flex-direction: column; /* stack title + legend */
    align-items: flex-start;
    gap: 0.5rem; /* spacing between title and legend */
}

.Just-added {
    padding: 2rem 0; /* top/bottom spacing */
}

.just-added-inner {
    max-width: 1200px; /* width of the content section */
    margin: 0 auto; /* center */
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
}

.just-added-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.just-added-legend {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.whats-new-wrapper {
    width: 80%; /* 80% of viewport width */
    max-width: 1200px; /* optional: prevent it from getting too wide */
}

.whats-new-section {
    color: white; /* Ensures text is visible */
    position: relative;
    width: 80%; /* section occupies 80% of viewport width */
    max-width: 1200px; /* optional: prevent it from being too wide */
    margin-left: auto; /* center horizontally */
    margin-right: auto;
    padding: 2rem;
    border-radius: 1rem;
}

    .whats-new-section .card-text {
        margin-right: 8px;
        margin-bottom: 0.10rem; /* smaller gap between paragraphs */
    }

    .whats-new-section .container {
        position: relative;
        z-index: 1; /* Keep content above overlay */
    }

    .whats-new-section .card {
        text-align: left;
        background-color: rgba(255, 255, 255, 0.9); /* slightly transparent cards */
        color: #003774; /* text color inside cards */
    }

.whats-new-legend {
    font-size: 0.85rem; /* slightly smaller than title */
    display: flex;
    justify-content: center;
    gap: 15px; /* spacing between legend items */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px; /* space between box and text */
}

.legend-box {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
}

/* Colors for each type */
.legend-event {
    background-color: #FF4136;
}

.legend-news {
    background-color: #0074D9;
}

.legend-program {
    background-color: #2ECC40;
}

/* Vertical lines for What's New */
.vline {
    width: 4px;
    background: #0d6efd;
    margin-right: 0.75rem;
    align-self: stretch; /* full height */
}

.vline-event {
    background-color: #D32F2F;
}

.vline-news {
    background-color: #1976D2;
}

.vline-program {
    background-color: #388E3C;
}

.update-line:hover .vline-event {
    box-shadow: 0 0 6px rgba(220,53,69,0.6);
}

.update-line:hover .vline-news {
    box-shadow: 0 0 6px rgba(13,110,253,0.6);
}

.update-line:hover .vline-program {
    box-shadow: 0 0 6px rgba(25,135,84,0.6);
}

/* === Responsive for Titles & Subtitles === */
@media (max-width: 992px) {
    .divider-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .main-events-wrapper .divider-wrapper p,
    .just-added-section .divider-wrapper p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .divider-title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .main-events-wrapper .divider-wrapper p,
    .just-added-section .divider-wrapper p {
        font-size: 0.9rem;
    }
}


/*************************************/
/* === SECTION TRANSITION === */
/************************************/

.section-transition {
    height: 50px;
    background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(0,55,116,0.06) );
}

/*************************************/
/* === LINK VOYAGEUR AND YOUTUBE === */
/************************************/
.media-section {
    background-image: url('../images/homepage/eventbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* ✅ No repeat */
    color: #fff;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 29, 90, 0.1);
}

    .media-section h3 {
        color: #b9d9fd; /* Dark blue title */
        font-family: 'Lato-Bold', sans-serif;
        margin-bottom: 1rem;
    }

    .media-section p {
        font-family: 'Lato-Regular', sans-serif;
        color: #fff;
        margin-bottom: 1rem;
    }

    .media-section .btn-outline-primary {
        border-color: #b9d9fd;
        color: #fff;
    }

        .media-section .btn-outline-primary:hover {
            background-color: #3c6fa8;
            color: #fff;
            border-color: #003774;
        }

.media-section2 {
    background-image: url('../images/homepage/eventbgb.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* ✅ No repeat */
    color: #fff;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 29, 90, 0.1);
}

    .media-section2 h3 {
        color: #b9d9fd; /* Dark blue title */
        font-family: 'Lato-Bold', sans-serif;
        margin-bottom: 1rem;
    }

    .media-section2 p {
        font-family: 'Lato-Regular', sans-serif;
        color: #fff;
        margin-bottom: 1rem;
    }

    .media-section2 .btn-outline-primary {
        border-color: #b9d9fd;
        color: #fff;
    }

        .media-section2 .btn-outline-primary:hover {
            background-color: #3c6fa8;
            color: #fff;
            border-color: #003774;
        }

.media-section3 {
    background-image: url('../images/homepage/eventbg2a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* ✅ No repeat */
    color: #fff;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 29, 90, 0.1);
}

    .media-section3 h3 {
        color: #b9d9fd !important; /* Dark blue title */
        font-family: 'Lato-Bold', sans-serif;
        margin-bottom: 1rem;
    }

    .media-section3 p {
        font-family: 'Lato-Regular', sans-serif;
        color: #fff;
        margin-bottom: 1rem;
    }

    .media-section3 .btn-outline-primary {
        border-color: #b9d9fd;
        color: #fff;
    }

        .media-section3 .btn-outline-primary:hover {
            background-color: #3c6fa8;
            color: #fff;
            border-color: #003774;
        }

.media-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 770px) {
    .media-section3 {
        background-image: url('../images/homepage/eventbg2.png');
        flex-direction: column !important;
    }
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .media-section {
        flex-direction: column !important;
    }

    .media-image,
    .media-text {
        text-align: center;
    }

        .media-text .btn {
            margin-left: auto;
            margin-right: auto;
        }
}
/*************************************/
/* ===OUR MISSION === */
/************************************/
.mission-section {
    background-color: transparent;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: none;
    color: #fff;
}

    .mission-section .media-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #b9d9fd !important;
    }

.mission-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .mission-thumb:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,29,90,0.3);
    }

#missionImage {
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .media-section3 {
        max-width: 95%;
    }
}

@media (max-width: 767px) {
    .media-section,
    .media-section2,
    .media-section3 {
        max-width: 95%; /* 95% of screen width */
    }
}


/*TEST SECTION*/
.media-section4 {
    background-image: url('../images/homepage/eventbg3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* ✅ No repeat */
    color: #fff;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 29, 90, 0.1);
}

.update-line {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

    .update-line:hover {
        background: #f8f9fa;
    }

.update-date {
    font-size: 0.75rem;
    color: #6c757d;
    min-width: 44px;
    margin-right: 0.75rem;
}


.desc {
    flex: 1 1 auto;
    text-align: left;
    font-weight: 700;
}

.mission-section a {
    color: #e3b23c;
}

.mission-list {
    list-style: none; /* remove default bullets */
    padding-left: 0;
    margin-top: 1rem;
}

    .mission-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem; /* space between icon and text */
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

        .mission-list li i {
            color: #e3b23c; /* matches the link/accent color */
            min-width: 24px; /* keeps icons aligned */
        }

/*************************************/
/* === JUST ADDED : 2026 FEED STYLE === */
/*************************************/
.just-added-section {
    padding: 4rem 1rem;
}

.just-added-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    /* stronger but still modern surface */
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 50px rgba(0,29,90,0.12), inset 0 0 0 1px rgba(0,29,90,0.06);
}

/* Header */
.just-added-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.just-added-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003774;
    margin: 0;
}

/* Legend */
.just-added-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

    .legend-dot.event {
        background: #D32F2F;
    }

    .legend-dot.news {
        background: #1976D2;
    }

    .legend-dot.program {
        background: #388E3C;
    }

/* Feed container */
.just-added-feed {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden; /* KILLS horizontal scroll */
}

/*************************************/
/* Feed item polish (your existing markup) */
/*************************************/
.update-line {
    padding: 10px 4px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .update-line:hover {
        background: rgba(0,29,90,0.04);
        transform: translateX(2px);
    }
