@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #1A3A6A;
    --secondary-color: #0077BE;
    --light-bg-color: #f8f9fa;
    --dark-bg-color: #2c3e50;
    --text-color: #333;
    --text-muted: #6c757d;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* ----------------------------- */
/* Helper & Bootstrap Overrides  */
/* ----------------------------- */

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    color: var(--white-color) !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}


/* ----------------------------- */
/* Header             */
/* ----------------------------- */

.main-header .logo {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.contact-info a {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#mobileMenu.offcanvas-start {
    width: 60vw !important;
    /* Sets the width to 60% of the viewport width */
}

.navbar-toggler {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    /* Adds a soft shadow */
}

.main-header .dropdown-menu {
    border-radius: 0.5rem;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    /* Adds a little space from the "Products" link */
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-item i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
    width: 20px;
    /* Ensures icons are aligned */
    text-align: center;
}

.dropdown-item:hover {
    background-color: #eaf2f8;
    /* A light blue hover effect */
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-item.active i {
    color: var(--white-color);
}


/* ----------------------------- */
/* Offcanvas (Mobile Menu) Fix   */
/* ----------------------------- */

/* This prevents the offcanvas dropdown from creating a new layer with a shadow */
#mobileMenu .dropdown-menu {
    box-shadow: none;
    border: none;
    background-color: #f1f5f9;
    padding-left: .5rem;
}

/* This removes the extra spacing that causes the overlay issue */
#mobileMenu .nav-item.dropdown {
    margin-bottom: 0;
}


/* ----------------------------- */
/* Hero Section          */
/* ----------------------------- */

/* .hero-swiper {
    width: 100%;
    height: 65vh;
    min-height: 450px;
    position: relative;
    color: var(--white-color);
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 106, 0.7);
}

.hero-swiper .swiper-caption {
    position: relative;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    max-width: 700px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--white-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .hero-swiper {
        height: 50vh;
        min-height: 350px;
    }

    .hero-swiper .swiper-caption h1 {
        font-size: 2rem;
    }

    .hero-swiper .swiper-caption .lead {
        font-size: 1rem;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
}

@media (min-width: 992px) {
    .hero-swiper {
        height: 75vh;
    }
} */

.hero-swiper {
    width: 100%;
    position: relative;
    color: var(--white-color);
}

.hero-swiper .swiper-slide {
    position: relative;
    line-height: 0;
    /* Fixes potential spacing issues with the image */
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-swiper .swiper-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    /* max-width: 700px; */
    margin: 0 auto;
    /* background-color: rgba(26, 58, 106, 0.7); */
    line-height: 1.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--white-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .hero-swiper .swiper-caption h1 {
        font-size: 1.2rem;
    }

    .hero-swiper .swiper-caption .lead {
        font-size: 0.9rem;
    }

    .hero-swiper .swiper-caption {
        padding: 1rem;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
}

/* @media (max-width: 1200px) {
    .hero-swiper .swiper-caption h1 {
        font-size: 1.75rem;
    }
} */

/* ----------------------------- */
/* Who We Are Section            */
/* ----------------------------- */

.who-we-are-container {
    display: flex;
    align-items: center;
    position: relative;
}

.who-we-are-left-box {
    flex-shrink: 0;
    z-index: 2;
}

/* .who-we-are-circular-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    border: 10px solid var(--light-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-we-are-circular-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 106, 0.7);
    border-radius: 50%;
} */

.who-we-are-circular-img {
    width: 400px;
    height: 400px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-we-are-circular-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 106, 0.7);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}


.overlay-content {
    position: relative;
    z-index: 1;
}

.overlay-content .btn-light {
    font-weight: 600;
    color: var(--primary-color);
}

.who-we-are-right-box {
    flex-grow: 1;
    position: relative;
    background-color: var(--white-color);
    border-radius: 0.75rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    z-index: 1;
    margin-left: -150px;
    padding-left: 180px;

    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 2rem;
}

.who-we-are-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    border-radius: 0.75rem;
}

.right-box-content {
    position: relative;
    z-index: 2;
}

.key-highlights-list {
    list-style: none;
    padding-left: 0;
    margin-top: -1rem;
}

/* Responsive styles for mobile and tablet */
@media (max-width: 991.98px) {
    .who-we-are-redesigned {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .who-we-are-container {
        flex-direction: column;
    }

    .who-we-are-right-box {
        width: 100%;
        margin-left: 0;
        margin-top: -80px;
        /* Pulls the box up behind the circle */
        padding: 100px 1.5rem 1.5rem 1.5rem;
        /* Top padding creates space for circle */
        /* text-align: center; */
    }

    .who-we-are-circular-img {
        width: 250px;
        height: 250px;
        margin: 0 auto;
        border-width: 5px;
    }

    .who-we-are-bg-img {
        display: none;
    }

    .key-highlights-list li {
        position: relative;
        padding-left: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .key-highlights-list li::before {
        content: '\f054';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 8px;
        color: var(--secondary-color);
        font-size: 0.8rem;
    }
}

.key-highlights-masonry {
        column-count: 1; 
    }

    @media (min-width: 992px) {
        .key-highlights-masonry {
            column-count: 2; 
            column-gap: 3rem; 
        }
    }

    .key-highlights-masonry li {
        break-inside: avoid;
        page-break-inside: avoid;
        /* margin-bottom: 1rem; */
    }

/* ----------------------------- */
/* Divisions Section        */
/* ----------------------------- */
.divisions-interactive-section {
    background-color: var(--white-color);
}

.divisions-main-box {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

/* LEFT navigation column */
.left-divisions-box {
    flex: 0 0 50%;
    /* Set to 50% width */
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

/* RIGHT content column */
.right-divisions-box {
    flex: 0 0 50%;
    /* Set to 50% width */
    position: relative;
    background-color: var(--light-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.division-content {
    display: none;
    width: 100%;
}

.division-content.active {
    display: block;
}

.division-sub-list.card {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
}

.division-sub-list ul {
    list-style: none;
    padding-left: 0;
    column-count: 1;
    column-gap: 2rem;
}

.division-sub-list.has-more-than-10 ul {
    column-count: 2;
}


.division-sub-list ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.division-sub-list ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.division-sub-list .btn-explore {
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.division-sub-list .btn-explore:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.vertical-scroll {
    padding: 1rem 0;
}

.division-main-title {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
}

.division-main-title:hover {
    background-color: #e9ecef;
}

.division-main-title.active {
    border-right-color: var(--primary-color);
    background-color: var(--white-color);
}

.division-main-title.active .side-head {
    color: var(--primary-color);
}

.slider-text {
    display: flex;
    align-items: center;
}

.side-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
}

.side-text {
    flex-grow: 1;
}

.side-head {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

.side-para {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.rightarrow {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.division-main-title.active .rightarrow {
    opacity: 1;
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .divisions-accordion .accordion-item {
        border-radius: 0.5rem !important;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .divisions-accordion .accordion-button {
        background-color: var(--white-color);
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .divisions-accordion .accordion-button:not(.collapsed) {
        background-color: #eaf2f8;
        box-shadow: none;
    }

    .divisions-accordion .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(0, 0, 0, .125);
    }

    .divisions-accordion .accordion-body {
        background-color: #f8f9fa;
    }

    .divisions-accordion .accordion-body ul {
        padding-left: 1.25rem;
        list-style-type: '✓  ';
        margin-bottom: 0;
    }
}

/* ----------------------------- */
/* Accreditations Section        */
/* ----------------------------- */

/* .accreditations-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-scroller {
    overflow-x: auto;
    scrollbar-width: none;
}

.logo-scroller::-webkit-scrollbar {
    display: none;
}

.logo-scroller-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    padding: 1rem;
}

.logo-scroller img {
    height: 80px;
    max-width: none;
}

@media (min-width: 992px) {
    .logo-scroller {
        overflow-x: hidden;
    }

    .logo-scroller-inner {
        justify-content: center;
    }
} */

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
}

/* Track that moves */
.marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 35s linear infinite;
}

/* Logo styling */
.marquee-track img {
    height: 100px;
    /* Smaller logo size */
    margin: 0 50px;
    /* Spacing between logos */
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-track img {
        height: 50px;
        margin: 0 30px;
    }

    .marquee-track {
        animation-duration: 25s;
        /* Slightly faster on mobile */
    }
}

/* ---------------------------------- */
/* Why Choose Us Section */
/* ---------------------------------- */
.why-choose-us-section {
    background-color: var(--white-color);
    /* padding: 4rem 0 3rem 0; */
    overflow: hidden;
}

.why-choose-us-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-diamond-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.feature-diamond-card {
    position: absolute;
    width: 260px;
    height: 260px;

}

.feature-diamond-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A3A6A 0%, #2d5a9e 100%);
    color: var(--white-color);
    transform: rotate(45deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--white-color);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-diamond-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.3) 0%, rgba(0, 119, 190, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-diamond-card:hover {
    z-index: 10;
}

.feature-diamond-card:hover .feature-diamond-inner {
    background: linear-gradient(135deg, #0077BE 0%, #1A3A6A 100%);
    transform: rotate(45deg) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 119, 190, 0.3);
}

.feature-diamond-card:hover .feature-diamond-inner::before {
    opacity: 1;
}

.feature-icon-diamond,
.feature-title-diamond {
    transform: rotate(-45deg);
    position: relative;
    z-index: 2;
}

.feature-icon-diamond {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    opacity: 0.95;
}

.feature-title-diamond {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 160px;
}

/* Positioning individual cards - No overlap */
.card-1 {
    left: 0%;
    top: 50%;
    transform: translateY(-50%);
}

.card-2 {
    left: 22%;
    top: 5%;
}

.card-3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.card-4 {
    right: 22%;
    top: 5%;
}

.card-5 {
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
}

/* Large Desktop */
@media (min-width: 1400px) {
    .features-diamond-container {
        max-width: 1800px;
    }

    .card-1 {
        left: 8%;
    }

    .card-2 {
        left: 25%;
    }

    .card-4 {
        right: 25%;
    }

    .card-5 {
        right: 8%;
    }
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .features-diamond-container {
        height: 350px;
        max-width: 1200px;
    }

    .feature-diamond-card {
        width: 220px;
        height: 220px;
    }

    .feature-diamond-inner {
        padding: 2rem;
    }

    .feature-icon-diamond {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .feature-title-diamond {
        font-size: 0.8rem;
        max-width: 140px;
    }

    .card-1 {
        left: -1%;
    }

    .card-2 {
        left: 19%;
    }

    .card-4 {
        right: 19%;
    }

    .card-5 {
        right: -1%;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .features-diamond-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        height: auto;
        padding: 4rem 4rem;
        margin: 0;
        gap: 4.5rem;
    }

    /* Hide the scrollbar for a clean interface */
    .features-diamond-container::-webkit-scrollbar {
        display: none;
    }

    .features-diamond-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .feature-diamond-card {
        flex: 0 0 240px;
        /* A slightly smaller, fixed width for the slider */
        height: 240px;
        scroll-snap-align: center;

        /* Override all absolute positioning styles from the desktop view */
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }

    /* Ensure inner content remains centered as before */
    .feature-diamond-inner {
        padding: 2rem;
    }

    .feature-icon-diamond {
        font-size: 2.2rem;
        margin-bottom: 1.3rem;
    }

    .feature-title-diamond {
        font-size: 0.85rem;
        max-width: 150px;
    }

    /* --- FIX: Disable complex hover effects on touch devices --- */
    .feature-diamond-card:hover {
        z-index: 1;
        /* Prevent z-index change on hover */
    }

    .feature-diamond-card:hover .feature-diamond-inner {
        /* Reset transform and shadow to their non-hover state */
        transform: rotate(45deg) scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        background: linear-gradient(135deg, #1A3A6A 0%, #2d5a9e 100%);
    }

    .feature-icon-diamond {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-title-diamond {
        font-size: 0.9rem;
        max-width: 160px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .feature-diamond-card {
        max-width: 240px;
        height: 240px;
    }

    .feature-diamond-inner {
        padding: 2rem;
    }

    .feature-icon-diamond {
        font-size: 2.2rem;
        margin-bottom: 1.3rem;
    }

    .feature-title-diamond {
        font-size: 0.85rem;
        max-width: 150px;
    }
}


/* ----------------------------- */
/* Global Reach Section    */
/* ----------------------------- */

/* .stat-item .stat-number {
    color: var(--primary-color);
}

.stat-item .lead {
    color: var(--text-muted);
    font-weight: 500;
} */

.global-reach-section {
    background-color: var(--light-bg-color);
    position: relative;
    overflow: hidden;
}

.global-reach-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.stat-item-reimagined {
    width: 100%;
    background-color: var(--white-color);
    padding: 2rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-item-reimagined i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item-reimagined .stat-number {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item-reimagined .lead {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {

    .global-reach-section .row {
        flex-wrap: nowrap;
        gap: 0.75rem;
        /* This creates the space between the cards */
        margin: 0;
        /* This is the key: it overrides Bootstrap's negative margins */
    }

    .global-reach-section .col-6 {
        flex: 1;
        /* This tells all 4 columns to share the space equally */
        max-width: none;
        /* Lets flexbox control the width instead of a fixed percentage */
        padding: 0;
    }

    .stat-item-reimagined {
        padding: 1rem 0.25rem;
    }

    .stat-item-reimagined i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .stat-item-reimagined .stat-number {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .stat-item-reimagined .lead {
        font-size: 0.7rem;
        line-height: 1.2;
        /* display: block !important; */
    }

}

/* ----------------------------- */
/* Footer             */
/* ----------------------------- */

.main-footer {
    background-color: #0e5079;
}

.footer-logo {
    height: 60px;
    filter: none;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.main-footer .text-uppercase {
    color: var(--secondary-color);
}

.footer-link {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.main-footer .fa-map-marker-alt,
.main-footer .fa-phone,
.main-footer .fa-envelope {
    color: var(--secondary-color) !important;
}

.footer-link.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.main-footer h5 {
    color: var(--white-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    /* Standardized size for all screens */
}

/* Styles the child links under "Quick Links" and "Products" */
.footer-links-column .list-unstyled .footer-link {
    color: rgba(255, 255, 255, 0.7);
    /* Makes child links slightly transparent */
}

/* Makes child links fully white on hover or when active */
.footer-links-column .list-unstyled .footer-link:hover,
.footer-links-column .list-unstyled .footer-link.active {
    color: var(--white-color);
}

@media (max-width: 767.98px) {
    .footer-title {
        color: var(--white-color) !important;
        /* Change text color to white */
        font-weight: 700;
        /* Make the font bold */
        font-size: 1rem;
        /* Decrease the font size */
    }

    .footer-links-column .list-unstyled .footer-link {
        color: rgba(255, 255, 255, 0.7);
        /* Make child links slightly transparent */
    }

    .footer-links-column .list-unstyled .footer-link.active {
        color: var(--white-color);
        /* Make the active child link fully white */
    }
}


/* ----------------------------- */
/* Responsive Design      */
/* ----------------------------- */

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 1rem;
    }

    .carousel-item {
        height: 90vh;
    }
}

/* ----------------------------- */
/* Mobile Bottom Navigation      */
/* ----------------------------- */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* High z-index to ensure it's on top of other content */
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--white-color);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    height: 65px;
    padding-top: 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    /* Larger, more tappable icons */
    margin-bottom: 4px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* This media query applies the body padding ONLY on mobile/tablet views */
@media (max-width: 991.98px) {
    body {
        /* Prevents content at the bottom of the page from being hidden by the nav bar */
        padding-bottom: 65px;
        /* This value MUST match the height of the .mobile-bottom-nav */
    }
}


/* news page */

.page-header {
    /* Replaced the image with a theme-based gradient */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
    color: var(--white-color);
    border-bottom: 5px solid var(--secondary-color);
}

.news-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-card-img {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
}

.news-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.news-card .card-text {
    color: var(--text-muted);
    flex-grow: 1;
}

.news-card .news-meta {
    font-size: 0.85rem;
    color: #999;
}

.news-card .btn-primary {
    background-color: var(--primary-color) !important;
}

.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
    /* Adjust based on your line-height if needed */
}

.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* news detail page */
.news-detail-header {
    padding: 4rem 0;
    background-color: var(--light-bg-color);
    border-bottom: 1px solid #dee2e6;
}

.news-detail-title {
    color: var(--primary-color);
    font-weight: 700;
}

.news-meta-detail {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-content {
    background-color: var(--white-color);
}

.news-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 2.5rem;
}

.news-content {
    background-color: #fdfdff;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

@media (max-width: 992px) {
    .news-content {
        padding: 0rem;
        border:none;
    }
}

.news-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #495057;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* Styled "Back to News" button */
.back-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}


/* Contact page */

.contact-section {
    background-color: var(--light-bg-color);
}

.contact-form-wrapper {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: var(--text-color);
}

.contact-form-wrapper .form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 106, 0.25);
}

.contact-details-wrapper .contact-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-details-wrapper .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-details-wrapper .contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.contact-details-wrapper .contact-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details-wrapper .contact-info p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-details-wrapper .contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-details-wrapper .contact-info a:hover {
    text-decoration: underline;
}

.map-container iframe {
    border-radius: 0.75rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.contact-person a[href^="tel"],
.contact-info a[href^="tel"] {
    text-decoration: none;
    color: inherit;
}

/* Accordion Styles for Department Contacts */
.department-accordion .accordion-item {
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.department-accordion .accordion-button {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.department-accordion .accordion-button:not(.collapsed) {
    background-color: #eaf2f8;
    box-shadow: none;
}

.department-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.department-accordion .accordion-body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.8;
}

.department-accordion .accordion-body a {
    color: var(--secondary-color);
    text-decoration: none;
}

.department-accordion .accordion-body a:hover {
    text-decoration: underline;
}

.responsibilities h6 {
    color: var(--primary-color);
    font-weight: 700;
}


/* About Page */
.about-header {
    position: relative;
    color: var(--white-color);
    line-height: 0;
    /* Prevents extra space below the image */
}

.about-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* background-color: rgba(26, 58, 106, 0.7); */
    padding: 2rem;
    line-height: 1.6;
}

/* .about-header .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(26, 58, 106, 0.7);
    padding: 2rem;
} */

/* Introduction Section with Image */
.about-intro-image {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 100%;
    /* min-height: 350px; */
}

/* Stats Section */
.about-stats {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.about-stat-item {
    text-align: center;
    padding: 1rem;
}

.about-stat-item .about-stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.about-stat-item .about-stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.about-team {
    background-color: var(--light-bg-color);
}

.about-team-image {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Group Companies Section */
.about-group-card {
    background-color: var(--white-color);
    border-radius: 0.75rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.about-group-card img {
    max-height: 100px;
    margin-bottom: 1.5rem;
}

.about-group-card a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.about-group-card a:hover {
    text-decoration: underline;
}

.certifications-section {
    /* This prevents the horizontal scrollbar from affecting the page layout on mobile */
    overflow-x: hidden;
}

.certification-logo {
    height: 100px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.3s ease;
}

.certification-logo:hover {
    transform: scale(1.1);
}

/* Base styles for the logo container (Desktop First) */
.logo-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
    /* Increased gap for desktop view */
}

.logo-carousel>div {
    flex: 0 1 auto;
    text-align: center;
}

/* Swiping behavior strictly for tablet and mobile */
@media (max-width: 991.98px) {
    .logo-carousel {
        flex-wrap: nowrap;
        /* Force logos into a single line */
        justify-content: flex-start;
        /* Align to the start for scrolling */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory;
        /* Snap items into view */
        gap: 2rem;
        /* Adjust gap for the slider */
        padding: 0 24px;
        /* Add padding to see the start and end of the slider */
    }

    /* Hide the scrollbar for a clean swiping interface */
    .logo-carousel::-webkit-scrollbar {
        display: none;
    }

    .logo-carousel {
        -ms-overflow-style: none;
        /* for Internet Explorer, Edge */
        scrollbar-width: none;
        /* for Firefox */
    }

    .logo-carousel>div {
        flex-shrink: 0;
        /* Prevent logos from shrinking */
        width: 33.33%;
        /* Show 3 logos at a time */
        scroll-snap-align: start;
    }
}

/* Adjustments for small mobile phones */
@media (max-width: 576px) {
    .logo-carousel>div {
        width: 45%;
        /* Show just over 2 logos at a time */
    }

    .certification-logo {
        height: 85px;
        /* Slightly smaller logos for small screens */
    }
}



@media (min-width: 992px) and (max-width: 1280px) {
    .who-we-are-container {
        align-items: flex-start; 
    }

    .who-we-are-left-box {
        margin-top: 2rem; 
        position: relative;
        z-index: 2; 
    }

    .who-we-are-circular-img, 
    .who-we-are-circular-img::before {
        width: 320px;
        height: 320px;
    }

    .who-we-are-right-box {
        padding-left: 2rem; 
        padding-top: 2rem; 
        margin-left: -280px;
    }

    .about-description {
        padding-left: 280px; 
        min-height: 320px;  
        display: flex;       
        flex-direction: column;
        justify-content: center;
    }

    .about-highlights {
        width: 100%;
        margin-top: 1rem;
        padding-left: 0;
    }
}

@media (min-width: 992.98px) {
    .about-description p{ 
        font-size: 1.1rem; 
        line-height: 1.8;
    }
}