:root {
    --main-color: rgb(15, 11, 231);
    --secondary-color: rgb(90, 87, 249);
    --accent-color: rgb(214, 15, 15);
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    overflow: overlay;
}

.header-logo {
    width: 64px;
    height: 64px;
}

.dropdown-menu {
    background-color: white !important;
    border: 0 !important;
}

.carousel-item img {
    height: 800px !important;
    object-fit: cover;
}

.carousel-item {

}

/* Full-width caption area with small gutters */
.carousel-caption {
    top: 40%;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 0;
    text-align: center;
    animation: text-fade-in-up 1s;
}

/* Headline: scales down to fit, never wraps, never overflows */
.carousel-caption h2 {
    font-weight: 600;
    font-size: clamp(1.25rem, 7vw, 3.5rem);
    line-height: 1.05;
    margin: 0 auto;
    /* Single-line truncation */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ensure it respects container width */
    max-width: 100%;
}





@keyframes text-fade-in-up {
    0% {
        top: 50%;
        opacity: 0%;
    }

    75% {
        opacity: 100%;
    }

    100% {
        top: 40%;
    }
}

@-webkit-keyframes text-fade-in-up {
    0% {
        top: 50%;
        opacity: 0%;
    }

    75% {
        opacity: 100%;
    }

    100% {
        top: 40%;
    }
}

.carousel-caption h2 {
    font-size: 4em;
}

.carousel .carousel-indicators li.active {
    background-color: var(--main-color);
}

.container {
    padding: 5%;
}

.row {
    padding: 0;
}

.news-block {
    margin-bottom: 3rem;
}

    .news-block .bg-primary {
        background-color: #0e0aee !important;
    }

    .news-block h2 {
        font-weight: 600;
    }

    .news-block p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

/* ========= News layout ========= */
.news-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* image / text side-by-side */
    align-items: stretch; /* stretch both to same height */
    gap: clamp(16px, 2vw, 24px); /* space between image and text */
    margin: clamp(16px, 2vw, 24px) 0;
}

/* keep all images same size */
.news-card__img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.news-card__body {
    background: var(--main-color);
    color: #fff;
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px; /* equals image height */
}

/* typography */
.news-card__title {
    font-weight: 800;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    margin: 0 0 12px 0;
}

.news-card__desc {
    font-size: clamp(18px, 1.4vw, 20px);
    line-height: 1.6;
    margin: 0;
    max-width: 60ch;
}

/* alternate image/text sides automatically */
.news-card:nth-of-type(even) .news-card__img {
    order: 2;
}

.news-card:nth-of-type(even) .news-card__body {
    order: 1;
}

/* blue divider between items */
.divider {
    height: 2px;
    background: var(--main-color);
}

.news-divider {
    height: 2px;
    background: var(--main-color);
    margin: clamp(20px, 3vw, 36px) 0;
}

/* responsive: stack on smaller screens */
@media (max-width: 991px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__body {
        min-height: unset;
    }

    .news-card__img img {
        height: 320px;
    }
}



.btn-blue {
    border: 2px solid var(--main-color) !important;
    background-color: var(--main-color) !important;
    border-radius: 0 !important;
    color: white !important;
    margin-top: 1em;
}

    .btn-blue:hover {
        background-color: white !important;
        border: 2px solid var(--main-color) !important;
        color: var(--main-color) !important;
        text-decoration: none;
    }

.btn-white {
    border: 2px solid white !important;
    background-color: white !important;
    border-radius: 0 !important;
    color: var(--main-color) !important;
    margin-top: 1em;
}

    .btn-white:hover {
        background-color: var(--main-color) !important;
        border: 2px solid white !important;
        color: white !important;
        text-decoration: none;
    }

.card-deck .card {
    border: none !important;
}

.card-deck a {
    color: black !important;
    display: block;
}

    .card-deck a:hover {
        text-decoration: none;
    }

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-footer:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none;
}

.resource {
    background-color: var(--main-color);
}

.slide {
    margin: 0 2em;
    position: relative;
}

.slider button {
    height: 45px;
    width: 47px;
    opacity: .7;
    z-index: 100;
}

    .slider button:hover {
        opacity: 1;
    }

.slide-bg-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg-black {
    background-color: #000;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .3;
}

.slide-text {
    background-color: var(--main-color);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    padding: 2% 5%;
    z-index: 3;
}

.slide-button-explore {
    background-color: white;
    color: white;
    position: absolute;
    padding: 5%;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    z-index: 3;
}

.footer-lg {
    display: block;
}

.footer-sm {
    display: none;
}

.footer-sub-lg {
    display: block;
}

.footer-sub-sm {
    display: none;
}

.footer-btn {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 50px;
}

p a:hover {
    text-decoration: none;
}

.page-title {
    position: relative;
}

.page-title-sm {
    position: relative;
    margin-top: -150px;
}

.page-title-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    z-index: 1;
}

.page-title-bg-black {
    background-color: #000;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 500px;
    opacity: .3;
}

.page-title-bg-blue {
    background-color: var(--main-color);
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 500px;
}

.page-title-text {
    color: white;
    position: absolute;
    font-size: 4.5em;
    text-align: center;
    top: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.page-about h1 {
    font-size: 4em;
}

.page-about p {
    font-size: 1.5em;
}

.page-info h1 {
    font-size: 3em;
}

.page-info p {
    font-size: 1.5em;
}

.project {
    position: relative;
    margin-bottom: 4px;
}

.project-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    z-index: 1;
}

.project-bg-black {
    background-color: #000;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 500px;
    opacity: .3;
}

.project-title {
    color: white;
    font-size: 3.5em;
    position: absolute;
    z-index: 3;
    left: 15%;
    top: 50%;
    transform: translate(0, -50%);
}

.project-link {
    position: absolute;
    z-index: 3;
    right: 10%;
    top: 50%;
    transform: translate(0, -50%);
}

    .project-link a {
        color: white;
        font-size: 2em;
    }

        .project-link a:hover {
            color: white;
            text-decoration: none;
        }

        .project-link a img {
            background-color: white;
            padding: 10%;
            height: 64px;
            width: 64px;
        }

        .project-link a:hover img {
            background-color: var(--main-color);
            content: url("../images/icons/arrow-right-white.png");
        }

.project-img-main {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 600px;
    width: 100%;
}

.project-img-tall {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 900px;
    width: 80%;
    margin: auto;
}

.project-img-sub {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 400px;
    width: 100%;
}

.img-h800 {
    height: 800px;
}

.emp-profile {
    background-color: white;
}

.emp-img {
    border-radius: 50%;
    float: left;
    height: 128px;
    width: 128px;
}

.job-listing h3 {
    font-size: 2em;
}

.job-listing p {
    font-size: 1.5em;
}

.job-details a {
    color: black;
    font-size: 1.2em;
    text-align: right;
    position: absolute;
    z-index: 3;
    right: 0%;
    top: 50%;
    transform: translate(0, -50%);
}

    .job-details a:hover {
        color: black;
        text-decoration: none;
    }

        .job-details a:hover img {
            content: url("../images/icons/arrow-right-white.png");
        }

    .job-details a img {
        background-color: white;
        border: var(--main-color) solid 2px;
        padding: 4%;
        height: 42px;
        width: 42px;
        margin-left: 12px;
    }

    .job-details a:hover img {
        background-color: var(--main-color);
    }

.news-title {
    font-size: 2.5em;
}

.news-text {
    font-size: 1.5em;
}

.contact-info-header {
    color: var(--main-color);
}

.contact-info-text p {
    font-size: 1em;
}





/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent repeat-y !important;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(92, 92, 92, 0.65);
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(47, 47, 47, 0.8);
    }


/* Medium */
@media only screen and (max-width: 991px) {
    .project-title {
        left: 5%;
        top: 33%;
    }

    .project-link {
        right: 5%;
        top: 80%;
    }
}

/* Small */
@media only screen and (max-width: 767px) {
    .page-title-text {
        font-size: 4em;
    }

    .page-about h1 {
        font-size: 3em;
    }

    .page-title-sm {
        margin-top: -225px;
    }

    .carousel-item img {
        height: 600px !important;
    }

    .slide {
        margin: 0 1em;
    }

    .slide-button-explore {
        width: 32px;
        height: 32px;
    }

    .footer-sub-lg {
        display: none;
    }

    .footer-sub-sm {
        display: block;
    }
}

@media only screen and (max-width: 620px) {
    .footer-lg {
        display: none;
    }

    .footer-sm {
        display: block;
    }

    .footer-sub-lg {
        display: block;
    }

    .footer-sub-sm {
        display: none;
    }
}

@media only screen and (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        border-radius: 0 !important;
        display: block;
        margin-top: 0;
    }
}

@media only screen and (max-width: 479px) {
    .page-about h1 {
        font-size: 2.5em;
    }

    .slide-button-explore {
        background-color: white;
        color: white;
        position: absolute;
        padding: 5%;
        bottom: 0;
        right: 0;
        width: 48px;
        height: 48px;
        z-index: 3;
    }
}

@media only screen and (max-width: 379px) {
    .footer-sub-lg {
        display: none;
    }

    .footer-sub-sm {
        display: block;
    }

    .carousel-item img {
        height: 400px !important;
    }

    .carousel-caption h2 {
        font-size: 2em;
    }

    .page-title-text {
        font-size: 3em;
    }
}

/* ===== fixed navbar offset so content doesn't sit under it ===== */
:root {
    --nav-h-desktop: 72px;
    --nav-h-mobile: 60px;
}

/* keep the compact blue title strip tidy */
.page-title-sm {
    position: relative;
    margin-top: 0;
    height: 180px;
    min-height: 180px;
    z-index: 1;
}

.page-title-sm .page-title-bg {
    display: none !important;
}
/* no photo */
.page-title-sm .page-title-bg-blue {
    height: 180px !important;
}

.page-title-sm .page-title-text {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
}

/* Page title styles */
.page-title-text {
    white-space: nowrap;
    text-align: center;
    font-size: clamp(4em, 5vw, 5em);
    line-height: 1.2; /* keeps the blue bar tight around text */
}

/* Optional responsive tweaks */
@media (max-width: 600px) {
    .page-title-text {
        font-size: 2.6em; /* still readable on small screens */
    }
}

/* Hero sizing & centering */
.page-title--hero .page-title-bg,
.page-title--hero .page-title-bg-black {
    height: clamp(360px, 60vh, 680px);
}

.page-title--hero .page-title-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perfect center */
    margin: 0;
    line-height: 1;
    letter-spacing: .02em;
    text-shadow: 0 8px 24px rgba(0,0,0,.35); /* pop against photo */
}

/* Make the image feel less bright on this page only */
.page-title--services .page-title-bg-black {
    opacity: .58;
}

.page-title--services .page-title-bg {
    background-position: center;
    background-size: cover;
}

/* Sticky footer layout */
html, body {
    height: 100%;
    margin: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full height of viewport */
}

.site-main {
    flex: 1; /* main grows to fill space */
}

.site-footer {
    margin-top: auto; /* pushes footer to bottom */
}

/*Google Map sizing*/
/* Default (desktop) */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

/* Tablet */
@media (max-width: 768px) {
    .map-container {
        padding-bottom: 65%; /* a bit taller for readability */
    }
}

/* Mobile */
@media (max-width: 480px) {
    .map-container {
        padding-bottom: 125%; /* taller, but fits smaller screens better */
    }
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* tiny, basic styles */
.section-heading {
    font-weight: 700;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-card {
    border-left: 5px solid var(--main-color);
    background: #fff;
    padding: 8px 16px;
    margin-bottom: 1em;
}

.contact-name {
    font-weight: 700;
}

.contact-role {
    color: #555;
    font-size: .95rem;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

    .contact-meta a {
        color: inherit;
        text-decoration: none;
    }

        .contact-meta a:hover {
            text-decoration: underline;
        }

.news-divider {
    height: 2px;
    background: var(--main-color);
    margin: 18px 0 22px;
}

