:root {
    /* --bg: #043a45; */
    --bg: #03384D;
    --teal: #0f6b74;
    --accent: #8AAB5E;
    --muted: #7fb3bd;
    --card: #083b3f;
    --glass: rgba(255, 255, 255, 0.03);
    --text-light: #85CEE4;
    --text-dark: #0D7594;
    --text-badge-blue: #03384D;
    --sub: #9fd8d6;
    --dark_blue: #0F7492;
    --light_blue: #2195B8;
    --white: #e6fff6;
    --black: #000000;
    --light-blue-4: #78BAD0;
    --grey-30: #C5C6C6;
    --grey-50: #9D9E9E;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

@font-face {
    font-family: Calibri;
    src: url('../fonts/calibri-regular.ttf') format('truetype');
}

@font-face {
    font-family: Calibri-bold;
    src: url('../fonts/calibri-bold.ttf') format('truetype');
}


html,
body {
    font-family: Calibri, 'Trebuchet MS', sans-serif;
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text-light);
    scroll-behavior: smooth;
}

.wrap {
    max-width: 1100px;
    margin: 24px auto;
    padding: 28px
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100px;
}

/* .home-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
} */

/* .home-slide {
    display: none;
    opacity: 0;
}

.home-slide.active {
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    width: 80%;
    margin: auto;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.home-slide img {
    width: 98%;
    object-fit: cover;
} */

#homeBanner {
    position: relative;
    width: 80%;
    margin: auto;
    min-height: 500px; /* Adjust based on your image aspect ratios */
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    /* Layout styling moved here so it doesn't snap */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    /* Transition setup */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.home-slide.active {
    opacity: 1;
    visibility: visible;
}

.home-slide img {
    width: 98%;
    object-fit: cover;
}

@media(max-width:768px) {
    .home-slide img {
        height: 260px;
    }
}

.logo .mark {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4bb8b1, #2b8f8a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--muted)
}

h4.title {
    color: var(--accent);
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.home-carousel .carousel-item img {
    height: 420px;
    object-fit: cover;
}

@media(max-width:768px) {
    .home-carousel .carousel-item img {
        height: 260px;
    }
}

.feature-section {
    max-width: 1100px;
    margin: 0 auto;
}

.container-fluid {
    position: relative;
}

.enquiry-rail {
    position: absolute;
    top: 42%;
    right: 0;
    transform: translateY(-48%);
    z-index: 10;
}

.enquiry-rail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 9rem;
    padding: 0;
    background: var(--dark_blue);
    color: var(--white);
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    border-radius: 0 1.5rem 1.5rem 0;
    border: 2px solid rgba(166, 236, 254, 0.55);
    font-weight: 700;
    text-transform: uppercase;
}

.feature-card {
    border-radius: 1.25rem;
    min-height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-card h5 {
    color: var(--light_blue);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.05rem;
}

.feature-card p {
    color: var(--light-blue-4);
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 1.15rem;
}

.feature-card p.product-list {
    color: var(--light-blue-4);
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.feature-card .feature-img-container {
    display: flex;
    align-self: end;
}

.w-10 {
    width: 10% !important;
}

.feature-card .feature-img-container img {
    min-width: 100%;
    height: 5rem;
    object-fit: contain;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(70, 177, 191, 0.16);
    color: var(--accent);
    font-size: 1.5rem;
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem;
    }
}

.browse-offerings {
    color: var(--light_blue)
}

.center-badge {
    background: var(--light_blue);
    padding: 5px;
    border-radius: 2px;
    text-align: center
}

.center-badge-green {
    background: var(--accent);
    padding: 5px;
    border-radius: 2px;
    text-align: center
}

.center-badge-green h5 {
    margin: 0;
    font-size: 1.25rem;
    color: #043a45;
}

.center-badge h2 {
    margin: 0;
    font-size: 22px;
    color: #05384B
}

.center-badge p {
    margin: 8px 0 0;
    color: var(--sub)
}

.center-badge-blue {
    background: var(--dark_blue);
    padding: 5px;
    border-radius: 2px;
    text-align: center
}

.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px
}

.contact-email {
    color: var(--black);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.15rem;
    text-align: start;
}

.chemicals {
    color: var(--text-light);
    font-size: 1.30rem;
}

.chemicals_text {
    color: var(--dark_blue);
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

/* Default: Desktop image visible, mobile image hidden */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* When screen width is 768px or less (mobile/tablet) */
@media screen and (max-width: 768px) {
    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }
}

/* Welcome Video Modal Styles */
#welcomeVideoModal .modal-content {
    background: #0F3141;
    border: 2px solid #0F3141;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .85);
}

#welcomeVideoModal .modal-header {
    background: black;
    border-bottom: 1px solid black;
}

#welcomeVideoModal .modal-title {
    color: #d7f5df;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#welcomeVideoModal .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

#welcomeVideoModal .btn-close:hover {
    opacity: 1;
}

#welcomeVideoModal .modal-body {
    background: #000;
    padding: 0;
}

.modal-backdrop.show {
    opacity: 0.75;
}

#welcomeVideoModal .modal-dialog {
    transform: scale(.92);
    transition: transform .35s ease;
}

#welcomeVideoModal.show .modal-dialog {
    transform: scale(1);
}