.hero {
    min-height: 561px;
    height: 561px;
    position: relative;
    background: #000000;
    z-index: 1;
    overflow: hidden;
    /* Structural flush: eliminate all spacing between carousel and quote section */
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    line-height: 0;
    /* Force GPU compositing to prevent subpixel rendering gaps
       and isolate from navbar reflow during shrink transition */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    /* Ensure bottom edge is fully opaque to prevent white gaps */
    box-shadow: 0 1px 0 0 #000000;
}

.read-more-link {
    color: var(--ipn-text-secondary);
    transition: color 0.25s ease;
}

.read-more-link:hover {
        color: var(--ipn-primary);
}

.read-more-link i {
    transition: transform 0.2s ease;
}

.read-more-link:hover i {
    transform: translateX(4px);
}

/* Date Styling - IPN Yellow */
.news-date {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-self: flex-start !important;  /* don't stretch across the column — keeps row compact on the left */
    gap: 0.35rem !important;
    width: auto !important;
    color: var(--ipn-primary) !important;
    font-weight: 600;
}

.news-date i,
.news-date time {
    color: var(--ipn-primary) !important;
}


.carousel {
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.carousel-inner {
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.carousel-item {
    height: 100%;
    min-height: 100%;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.carousel-item .container {
    height: 100%;
    display: flex;
    align-items: center;
    line-height: normal;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*Related to Mobile hero banner?*/
    background: #000000;
 
    z-index: -1;
    will-change: opacity;
}

/* Carousel background images */
    .hero-background[data-bg="caro1"] {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/CarouselImages/HOME - Caro 1.webp') center/cover no-repeat;
        background-attachment: scroll;
    }

    .hero-background[data-bg="caro2"] {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/CarouselImages/HOME - Caro 2.webp') center/cover no-repeat;
        background-attachment: scroll;
    }

    .hero-background[data-bg="caro3"] {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/CarouselImages/HOME - caro 3.webp') center/cover no-repeat;
        background-attachment: scroll;
    }

/* Smooth fade transition optimization */
.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.carousel-fade .carousel-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 0.6s;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

/* Hardware acceleration for smooth transitions */
#heroCarousel {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

    /* Decorative circles in hero */
    .hero-background::before,
    .hero-background::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        opacity: 0.15;
        will-change: opacity;
        pointer-events: none;
    }

    .hero-background::before {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(var(--ipn-primary-rgb), 0.3) 0%, transparent 70%);
        top: -100px;
        right: -100px;
    }

    .hero-background::after {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(var(--ipn-accent-rgb), 0.3) 0%, transparent 70%);
        bottom: -50px;
        left: -50px;
    }

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade));
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.carousel-control-prev i,
.carousel-control-next i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--ipn-secondary);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Carousel indicators */
.carousel-indicators {
    z-index: 20 !important;
    pointer-events: auto !important;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 2px solid white !important;
    opacity: 0.5 !important;
    padding: 0 !important;
    margin: 0 4px !important;
}

    .carousel-indicators button.active {
        width: 14px !important;
        height: 14px !important;
        background-color: white !important;
        border: none !important;
        opacity: 1 !important;
        border-radius: 50% !important;
    }

/* Mobile adjustments */
/* ===================================
   Quote Section
   =================================== */

.quote-section {
    background: linear-gradient(90deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%);
    padding: 60px 0;
    /* Structural flush: pull quote section tight against carousel */
    margin: 0 !important;
    display: block;
    position: relative;
    /* Force GPU compositing and eliminate subpixel gaps
       Isolate from navbar shrink reflow */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    /* Pull up by 2px to guarantee overlap during all navbar states
       and prevent flashing white lines during navbar shrink transition */
    margin-top: -2px !important;
    /* Extend top edge to fully cover any gap */
    box-shadow: 0 -1px 0 0 #000000;
}

.quote-section .container {
    line-height: normal;
}

.quote-icon {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 0.8;
    flex-shrink: 0;
}

.quote-text {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

    .quote-text cite {
        color: rgba(255, 255, 255, 0.8);
        font-style: normal;
        font-size: 16px;
    }

/* Confidence divider (same look as quote section: gradient, spacing, one statement) */
/*.confidence-divider {
    padding: 80px 0;
}

.confidence-divider__line {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    margin: 2.5rem 0;
}

.confidence-divider__statement {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    margin: 0;
}*/

/* ===================================
   CTA Banner (after Partners) - matches News section style
   =================================== */

.cta-banner {
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner__title {
    color: var(--ipn-secondary-dark);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.cta-banner__description {
    color: var(--ipn-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   About Section
   =================================== */

.about-ipn {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-ipn iframe {
    border: 0;
}

/* ===================================
   Timeline Cards
   =================================== */

.timeline-card {
    background-color: var(--ipn-bg-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .timeline-card:hover {
        transform: translateY(-5px);
    }

.timeline-year {
    flex-shrink: 0;
    min-width: 80px;
}

/* ===================================
   News Section – overlay image (8% opacity)
   =================================== */

.news {
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.news .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   News Cards
   =================================== */

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .news-card .card-img-top {
        height: 250px;
        object-fit: cover;
    }

    .news-card .card-body {
        display: flex;
        flex-direction: column;
    }

    .news-card .card-title {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    .news-card a {
        margin-top: auto;
        transition: gap 0.3s ease;
    }

        .news-card a:hover {
            gap: 0.75rem !important;
        }

/* ===================================
   Logo Grid (Stakeholders/Partners)
   =================================== */

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10em;
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 200px;
    width: auto;
}

.logo-item:hover .grayscale-hover {
    filter: grayscale(0%);
    opacity: 1;
}