/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

:root {
    /* Custom Branding & Variables */
    --bs-navy: #002855;
    --bs-orange: #FC8500;
    --bs-light-gray: #F8F8F8;
    --bs-dark-gray: #4A4A4A;
    --bs-subtle-gray: #EEEEEE;
}

/* === Global Font & Reset === */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Saira', sans-serif;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ===============================
   Utility Classes
   =============================== */
.bg-custom-navy {
    background-color: var(--bs-navy) !important;
}

.bg-subtle-gray {
    background-color: var(--bs-subtle-gray) !important; 
}

.bg-custom-orange {
    background-color: var(--bs-orange) !important;
}

.text-custom-navy {
    color: var(--bs-navy) !important;
}

.text-custom-orange {
    color: var(--bs-orange) !important;
}

.text-dark-gray {
    color: var(--bs-dark-gray) !important;
}

.border-custom-navy {
    border-color: var(--bs-navy) !important;
}

.border-custom-orange {
    border-color: var(--bs-orange) !important;
}

.center-page-content {
    height: 100vh; /* Full viewport height */
    display: flex; /* Flexbox layout */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 0; /* Remove extra space */
    padding: 0; /* Remove extra space */
    box-sizing: border-box; /* Include padding in size calc */
}



/* ===============================
   Link Styles
   =============================== */

/* Target navbar links specifically */
.navbar-nav .nav-link {
    color: white !important; /* Default text color */
    transition: color 0.3s ease; /* Smooth transition */
}

.navbar-nav .nav-link:hover {
    color: var(--bs-orange) !important; /* Orange on hover */
}

/* Footer / Quick Links */
.footer-link {
    color: white; /* Default text color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover transition */
}

.footer-link:hover {
    color: var(--bs-orange) !important; /* Orange on hover */
}


/* Footer / Quick Links */
.header-link {
    color: white; /* Default text color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover transition */
}

.header-link:hover {
    color: var(--bs-orange) !important; /* Orange on hover */
}

/* ===============================
   Form Focus States
   =============================== */
input.text-focus-navy,
textarea.text-focus-navy,
select.text-focus-navy,
input[type="date"].text-focus-navy,
input[type="time"].text-focus-navy,
input[type="file"].text-focus-navy {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

    input.text-focus-navy:focus,
    textarea.text-focus-navy:focus,
    select.text-focus-navy:focus,
    input[type="date"].text-focus-navy:focus,
    input[type="time"].text-focus-navy:focus,
    input[type="file"].text-focus-navy:focus {
        color: var(--bs-navy);
        border-color: var(--bs-navy);
        outline: none;
        -webkit-box-shadow: 0 0 0 0.25rem rgba(0, 40, 85, 0.25);
        box-shadow: 0 0 0 0.25rem rgba(0, 40, 85, 0.25);
        background-color: #fff;
    }

input.text-focus-orange,
textarea.text-focus-orange,
select.text-focus-orange,
input[type="date"].text-focus-orange,
input[type="time"].text-focus-orange,
input[type="file"].text-focus-orange {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

    input.text-focus-orange:focus,
    textarea.text-focus-orange:focus,
    select.text-focus-orange:focus,
    input[type="date"].text-focus-orange:focus,
    input[type="time"].text-focus-orange:focus,
    input[type="file"].text-focus-orange:focus {
        color: var(--bs-orange);
        border-color: var(--bs-orange);
        outline: none;
        -webkit-box-shadow: 0 0 0 0.25rem rgba(252, 133, 0, 0.25);
        box-shadow: 0 0 0 0.25rem rgba(252, 133, 0, 0.25);
        background-color: #fff;
    }

/* ===============================
   Card Hover Glow Effects
   =============================== */
.card-glow-effect-navy,
.card-glow-effect-orange {
    position: relative;
}

    .card-glow-effect-navy:hover::after,
    .card-glow-effect-orange:hover::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 4px;
        -webkit-filter: blur(4px);
        filter: blur(4px);
        border-radius: 0 0 50% 50%;
        pointer-events: none;
    }

    .card-glow-effect-navy:hover::after {
        background: rgba(0, 40, 85, 0.8);
    }

    .card-glow-effect-orange:hover::after {
        background: rgba(252, 133, 0, 0.85);
    }

/* ===============================
   Dropdown Styling
   =============================== */
.dropdown-menu {
    background-color: var(--bs-navy);
    border: none;
    border-radius: 0;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
}

.dropdown-item {
    font-size: 1rem;
    height: 36px;
    color: white;
    -webkit-transition: color 0.2s, background-color 0.2s;
    -o-transition: color 0.2s, background-color 0.2s;
    transition: color 0.2s, background-color 0.2s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 1rem;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        color: var(--bs-orange);
        background-color: transparent;
    }

.dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0;
}

ul.dropdown-menu.shadow-custom.show {
    top: 60px;
}

@media (max-width: 767.98px) {
    .dropdown-item {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

/* ===============================
   Buttons
   =============================== */
.btn {
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.btn-outline-navy {
    color: var(--bs-navy);
    border-color: var(--bs-navy);
}

    .btn-outline-navy:hover,
    .btn-outline-navy:focus {
        background-color: var(--bs-navy);
        color: white;
        -webkit-box-shadow: 0 0.5rem 1rem rgba(0,40,85,0.25);
        box-shadow: 0 0.5rem 1rem rgba(0,40,85,0.25);
        -webkit-transform: scale(1.02);
        -ms-transform: scale(1.02);
        transform: scale(1.02);
    }

.hero-container .btn-outline-navy {
    color: white;
    border-color: white;
    background-color: transparent;
}

    .hero-container .btn-outline-navy:hover,
    .hero-container .btn-outline-navy:focus {
        background-color: var(--bs-orange);
        color: var(--bs-navy);
        -webkit-box-shadow: 0 1rem 1.5rem rgba(252,133,0,0.4);
        box-shadow: 0 1rem 1.5rem rgba(252,133,0,0.4);
        -webkit-transform: translateY(-3px);
        -ms-transform: translateY(-3px);
        transform: translateY(-3px);
    }

.btn-outline-orange {
    color: var(--bs-orange);
    border-color: var(--bs-orange);
}

    .btn-outline-orange:hover,
    .btn-outline-orange:focus {
        background-color: var(--bs-orange);
        color: var(--bs-navy);
        -webkit-box-shadow: 0 0.25rem 0.5rem rgba(252,133,0,0.4);
        box-shadow: 0 0.25rem 0.5rem rgba(252,133,0,0.4);
        -webkit-transform: translateY(-2px);
        -ms-transform: translateY(-2px);
        transform: translateY(-2px);
    }

/* ===============================
   Layout & Hero
   =============================== */
.top-bar-height {
    min-height: 2.5rem;
}

.custom-navbar {
    min-height: 5rem;
}

h1, h2, h3, h4, h5, h6, .hero-title, .navbar-brand {
    font-family: 'Saira', sans-serif;
}

.hero-container {
    height: 70vh;
}

@media (min-width: 768px) {
    .hero-container {
        height: 70vh;
    }
}

.hero-title {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* ===============================
   Card Hover Lift
   =============================== */
.card-hover-lift {
    -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    -o-transition: transform 0.3s, box-shadow 0.3s;
    transition: transform 0.3s, box-shadow 0.3s;
    transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    cursor: default;
    border-radius: 20px;
    overflow: hidden;
}

    .card-hover-lift:hover {
        -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        transform: translateY(-5px);
        -webkit-box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    }

/* ===============================
   Partner Circle
   =============================== */
.partner-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 10px;
    border: 2px solid #ddd;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keeps proportions */
    padding: 10px;
}

.partner-circle:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

@media (max-width: 575.98px) {
    .partner-circle {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        margin: 10px;
        border: 2px solid #ddd;
    }

    .partner-logo {
        width: 100%;
        height: 100%;
        object-fit: contain; /* keeps proportions */
        padding: 10px;
    }
}

/* ===============================
   Pagination
   =============================== */
.pagination .page-link {
    color: white;
    background-color: var(--bs-navy);
    border-color: rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    margin: 0 0.5px 20px 0.5px !important; /* 1px total space between links */
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.5rem;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    color: var(--bs-navy);
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
    -webkit-box-shadow: 0 0.2rem 0.5rem rgba(252,133,0,0.4);
    box-shadow: 0 0.2rem 0.5rem rgba(252,133,0,0.4);
}

.pagination .page-item.active .page-link {
    color: var(--bs-navy);
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
    font-weight: bold;
}


/* ===============================
   Misc Styling
   =============================== */
.text-justify-custom {
    text-align: justify;
}

.ultra-thin-divider {
    border: none;
    border-top: 0.2px solid #dee2e6;
    margin: 0.25rem 0;
}

/* ===============================
   Carousel & Owl Carousel
   =============================== */


.carousel-item img {
    -o-object-position: center 10%;
    object-position: center 10% ;
}

/* Ensure indicators are clickable above overlay/text layers */
.carousel-indicators {
    z-index: 3 !important;
}

/* Optional: move indicators higher above the bottom edge */
.carousel-indicators [data-bs-target] {
    background-color: var(--bs-orange) !important; /* Custom orange color */
}

.crud-btn {
    align-content: center !important;
    width: 110px !important;
}

.owl-carousel .item {
    padding: 5px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.shadow-custom {
    -webkit-box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
}

/* ===============================
   Marquee
   =============================== */
.marquee-strip {
    height: 2rem;
    line-height: 2rem;
    overflow: hidden;
    white-space: nowrap;
    -webkit-box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    -webkit-animation: marquee 50s linear infinite;
    animation: marquee 50s linear infinite;
}

.marquee-strip:hover .marquee-content {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

@-webkit-keyframes marquee {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

@keyframes marquee {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

/* ===============================
   DataTables Overrides
   =============================== */
div.dt-container div.dt-search input,
div.dt-container div.dt-length select {
    display: inline-block;
    width: auto;
    height: 35px;
}

div.dt-container div.dt-search input {
    margin-left: 0.5em;
}

div.dt-container div.dt-length select {
    margin-right: 0.5em;
}

@media (max-width: 768px) {
    div.dt-container {
        padding: 0;
    }

        div.dt-container div.dt-length,
        div.dt-container div.dt-search {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: flex-start;
            width: 100%;
            margin: 0;
            padding: 0;
        }

            div.dt-container div.dt-length label,
            div.dt-container div.dt-search label {
                margin: 0 0 0.25em 0;
                text-align: left;
            }

            div.dt-container div.dt-length select,
            div.dt-container div.dt-search input {
                width: 100%;
                margin: 0;
                height: 35px;
                -webkit-box-sizing: border-box;
                box-sizing: border-box;
            }

    div.table-responsive > div.dt-container > div.row > div[class^=col-]:last-child {
        padding-left: 0;
        padding-right: 0;
    }
}

.event-card-description {
    min-height: 50px !important;
    max-height: 50px !important;
}

.mission-card-description {
    min-height: 70px !important;
    max-height: 70px !important;
}


.mission-sub-header, .events-sub-header 
.trustees-sub-header .partners-sub-header .contacts-sub-header {
    max-width: 700px !important;
}

.blinking {
    color: red; /* ensures the text stays red */
    font-weight: 600; /* keeps it semi-bold like fw-semibold */
    animation: blink 2s step-start infinite;
}

@keyframes blink {
    50% {
        visibility: hidden;
    }

    0%, 100% {
        visibility: visible;
    }
}

/* =======================================
   GLOBAL NAVY SCROLLBAR STYLING
   ======================================= */

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 15px; /* vertical scrollbar width */
    height: 15px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* track color */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bs-navy); /* scrollbar thumb color */
    border-radius: 10px; /* rounded corners */
    border: 2px solid #f1f1f1; /* contrast border */
} 

::-webkit-scrollbar-thumb:hover {
    background-color: #001f3f; /* dark navy blue on hover */
}

/* For Firefox */
* {
    scrollbar-width: auto; /* makes scrollbar thinner */
    scrollbar-color: var(--bs-navy) #f1f1f1; /* thumb and track colors */
}


.event-description-box {
    max-height: 170px !important;
    overflow-y: auto !important;
}

/* CSS class for centered loading spinner */
.loading-spinner {
    display: none; /* hidden by default */
    position: fixed; /* fixed relative to viewport */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* optional overlay */
    z-index: 1050; /* above other content */
    display: flex;
    justify-content: center;
    align-items: center;
}
