/* ------------------------------
   General Colors and Buttons
---------------------------------*/
.main-menu-color {
    color: #183f72 !important;
}

.topbar-color {
    color: #183f72 !important;
}

.slider-button {
    --hover: var(--secondary--200);
    background-color: #00a1cd !important;
    border-color: var(--secondary) var(--secondary) var(--secondary-300);
    color: var(--secondary-inverse);
}

.text-color-custom {
    color: #ff5f58 !important;
}

.custom-line {
    border-bottom-color: #00a1cd !important;
}

/* ------------------------------
   Stat Boxes (Numbers Section)
---------------------------------*/
.stat-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9e9e9;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.number-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #00a1cd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon-inside {
    font-size: 42px;
    color: #fff;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #183f72;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ------------------------------
   Partner Boxes
---------------------------------*/
.partner-box {
    width: 100%;
    height: 120px; /* uniform height */
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-box img {
    max-width: 100%;
    max-height: 100%;
}

.partner-box:hover {
    transform: scale(1.05);
}


/* ------------------------------
   Slider
---------------------------------*/
/* Make sure slider container allows visible overflow */
.swiper.homepage-slider {
    position: relative;
    overflow: visible; /* important for arrows outside */
}

/* Arrows styling */
.swiper-button-prev.custom-nav,
.swiper-button-next.custom-nav {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;           /* white circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;              /* above everything */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Arrow color */
.swiper-button-prev.custom-nav::after,
.swiper-button-next.custom-nav::after {
    color: #001f4d; /* dark blue arrow */
    font-size: 20px;
}

/* Position arrows outside */
.swiper-button-prev.custom-nav { left: -90px; }
.swiper-button-next.custom-nav { right: -90px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .swiper-button-prev.custom-nav { left: 10px; }
    .swiper-button-next.custom-nav { right: 10px; }
}

/* General styling for description content */
.news-description {
    line-height: 1.6;
    font-size: 16px;
}

/* Make all images in the description full width and max 500-600px height, centered */

.news-description img {
    display: block;
    max-width: 95%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Videos should also be responsive and centered */
.news-description video,
.news-description iframe {
    display: block;
    max-width: 90%;
    max-height: auto;
    margin: 15px auto;   /* vertical spacing + horizontal centering */
}

/* Optional: links in description */
.news-description a {
    color: #007bff;
    text-decoration: underline;
}


/*@media print {

    html, body, body * {
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    header, footer,
    nav, .nav, .navbar, .navbar*, 
    .menu, .menu*, 
    .header, .header*, 
    .topbar, .topbar*,
    .sidebar, .sidebar* {
        display: none !important;
        visibility: hidden !important;
    }

    *[style*="position: fixed"],
    *[style*="position:sticky"],
    .fixed-top, .sticky-top, .fixed, .sticky {
        display: none !important;
        visibility: hidden !important;
    }

    #printArea, #printArea * {
        visibility: visible !important;
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
    }

    #printArea {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        padding: 20px !important;
    }
}*/
/* Ensure the brand text doesn't wrap awkwardly on smaller screens */
.brand-text {
    white-space: nowrap;
}

.full-name {
    display: block;
    font-family: 'Poppins', sans-serif; /* Or your site's professional font */
}

.short-name {
    letter-spacing: -0.5px;
}

/* Vertical line separation between logo and text */
.border-start {
    border-left: 2px solid #002e5b !important;
    height: 45px;
}

/* Adjust for mobile: Hide the long text if the screen is too small */
@media (max-width: 576px) {
    .full-name {
        display: none;
    }
}

/* Ensure the header columns allow the logo enough room */
.header-column:first-child {
    flex: 0 0 auto !important;
    max-width: none !important;
}

/* Make sure the text scales down on small tablets */
@media (max-width: 991px) {
    .header-logo span:first-child {
        font-size: 10px !important;
    }
    .header-logo span:last-child {
        font-size: 22px !important;
    }
}

.stat-title {
    font-size: 1.25rem;
    color: #002e5b; /* Your brand dark blue */
    margin-bottom: 5px;
}

.stat-subtitle {
    font-size: 0.95rem; /* Smaller than the title */
    line-height: 1.4;
    max-width: 90%; /* Prevents text from hitting the edges */
    margin: 0 auto;
    color: #6c757d; /* Professional grey */
    letter-spacing: 0.2px;
    font-style: italic;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: #0088cc; /* Primary blue */
}
.custom-track-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
}

.custom-track-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-box-wrapper i {
    transition: transform 0.4s ease;
}

.custom-track-card:hover .icon-box-wrapper i {
    transform: scale(1.1);
}

.bg-light-5 {
    background-color: #f4f4f4 !important;
}

/* Match the blue tones from the Track B image */
.btn-outline-info {
    color: #4b92db;
    border-color: #4b92db;
}
.btn-outline-info:hover {
    background-color: #4b92db;
    border-color: #4b92db;
}

/* Card Container Styling */
.custom-track-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Image Frame with 10px Padding */
.image-frame {
    padding: 10px; /* The 10px padding from the card border */
    background: #fdfdfd; 
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Internal Wrapper for Hover Zoom */
.image-wrapper {
    overflow: hidden; /* Clips the image when it zooms */
    border-radius: 4px;
    height: 220px; /* Fixed height for consistency */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images don't look stretched */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Effects */
.custom-track-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.custom-track-card:hover .image-wrapper img {
    transform: scale(1.1); /* Nice subtle zoom */
}

/* Text spacing and polish */
.tracking-wide {
    letter-spacing: 1.5px;
}

.line-height-5 {
    line-height: 1.6 !important;
}

/* Card Container */
.custom-site-card {
    transition: all 0.3s ease-in-out;
    border-radius: 15px !important;
    background: #ffffff;
    overflow: hidden;
}

/* 10px Image Inset */
.card-img-container {
    padding: 10px;
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

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

/* Typography Polish */
.tracking-wide {
    letter-spacing: 1px;
}

.text-2-5 {
    font-size: 0.85rem;
}

/* Hover Effects */
.custom-site-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.custom-site-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.custom-site-card:hover .btn-primary {
    background-color: #0088cc !important;
    border-color: #0088cc !important;
}

/* Ensure buttons align if titles are different lengths */
.card-body {
    min-height: 200px;
}


/* Color Palette Add-on */
.text-primary-light { color: #0088cc !important; }

/* The Tag Badge */
.custom-badge-featured {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

/* Image Styling */
.featured-image-wrapper {
    position: relative;
    z-index: 2;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-border-radius-1 {
    border-radius: 20px;
}

/* Floating Info Box on Image */
.image-floating-info {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    z-index: 3;
    min-width: 180px;
    text-align: center;
}

/* Back Decoration */
.featured-image-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Pill Button */
.border-radius-pill {
    border-radius: 50px !important;
}

/* Funder Badge */
.custom-badge-funder {
    background-color: #183f72;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Funder Highlight Card */
.funder-highlight-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.border-end-md {
    border-right: 1px solid #eee;
}

@media (max-width: 767px) {
    .border-end-md { border-right: none; }
}

/* Partner Logo Boxes */
.partner-box-refined {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.partner-box-refined img {
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    border-color: #0088cc;
}

.shadow-hover:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.appear-animation {
    opacity: 1 !important;
}
.hover-translate-y-n10 {
    transition: all 0.3s ease;
}
.hover-translate-y-n10:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}
