/* ============================================
   ECOBLOX Website - Custom Styles
   Clean, lightweight version with Bootstrap 5
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --white: #ffffff;
    --black: #000000;
    --off-white: #F2F2F2;
    --neutral-grey: #969699;
    --light-grey: #eeeeee;
    --grey-e8: #e8e8e8;
    --neutral-grey-light: #cdcdd1;
    --dark-grey: #54555A;
    --medium-grey: #797979;
    --primary: #1AAE58;
    --primary-hover: #2B9C40;
    --secondary: #007DF0;
    --secondary-hover: #0B4686;
    --background: #0D3251;
    --background-darker: #0F1D3C;
    --background-hover: #0F1E3C;
    --charcoal: #1B1E22;

    /* Fonts */
    --font-titillium: "Titillium Web", sans-serif;
    --font-merriweather: "Merriweather", serif;

    /* Breakpoints */
    --xs: 0;
    --sm: 576px;
    --md: 768px;
    --lg: 992px;
    --xl: 1200px;
    --xxl: 1400px;

    /* Dimensions */
    --header-height: 110px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    margin-top: clamp(60px, 8vw, 110px);
    font-family: var(--font-titillium);
    line-height: 1.6;
}

/* Ensure first section doesn't hide behind fixed navbar */
body > main > section:first-child,
body > section:first-child {
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.module_padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media only screen and (min-width: 576px) {
    .module_padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header-container {
    background-color: var(--background-darker);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
}

.header {
    height: clamp(90px, 8vw, 110px);
    align-items: center;
    position: relative;
}

.header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 8px 0;
}

@media only screen and (max-width: 991px) {
    .header .logo {
        padding: 12px 0;
    }
}

.header .logo img {
    max-width: 100%;
    height: auto;
    max-height: clamp(50px, 8vw, 90px);
}

@media only screen and (max-width: 991px) {
    .header .logo img {
        max-height: 65px;
        min-height: 50px;
        margin: 10px;
    }
}

.header .navbar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    position: static;
    z-index: 10000;
}

@media only screen and (min-width: 992px) {
    .header .navbar {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
        padding: 0;
    }
}

.header .hamburger {
    color: white;
    font-size: 30px;
    margin-right: 20px;
    cursor: pointer;
}

.header .nav-menu {
    display: none;
    gap: 10px;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width: 100%;
    padding: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    list-style: none;
}

@media only screen and (max-width: 991px) {
    .header {
        position: relative;
    }

    .header .nav-menu {
        left: 0;
        right: 0;
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .header .nav-menu.display-mobile {
        left: 0;
        right: 0;
        width: calc(100% - 20px);
        margin: 0 auto;
    }
}

@media only screen and (min-width: 992px) {
    .header .nav-menu {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        flex-direction: row;
        justify-content: flex-end;
        gap: clamp(20px, 2vw, 40px);
        position: static;
        padding: 0;
        display: flex !important;
        height: 100%;
        align-items: center;
    }
}

.header .nav-menu.display-mobile {
    display: flex;
    background-color: var(--background-darker);
}



.header .nav-menu > li {
    font-family: var(--font-titillium);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    padding-bottom: 20px;
    cursor: pointer;
}

@media only screen and (min-width: 992px) {
    .header .nav-menu > li {
        font-size: clamp(0.75rem, 1.5vw, 1.2rem);
        text-align: left;
        height: 100%;
        display: flex;
        align-items: center;
        padding-bottom: 0;
    }
}

.header .nav-menu > li.get-in-touch {
    display: flex;
    justify-content: center;
}

.header .nav-menu > li.language-menu img {
    width: 20px;
}

.header .nav-menu > li > span:not(.btn-text) {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

@media only screen and (min-width: 992px) {
    .header .nav-menu > li > span:not(.btn-text) {
        border-bottom: 2px solid transparent;
        transition: color 0.3s ease;
        position: relative;
    }

    .header .nav-menu > li > span:not(.btn-text)::after {
        content: "";
        position: absolute;
        width: 0%;
        bottom: -8px;
        left: 0;
        color: var(--primary);
        border-bottom: 2px solid var(--primary);
        transition: width 0.25s 0.15s ease;
    }

    .header .nav-menu > li > span:not(.btn-text):hover::after {
        width: 50%;
        color: var(--primary);
    }

    .header .nav-menu > li > span:not(.btn-text):hover {
        color: var(--primary);
    }
}

.header .nav-menu > li.dropdown .dropdown-menu {
    display: none;
    flex-direction: column;
    position: static;
    gap: 0;
    background-color: var(--background-darker);
    padding: 0;
    border-radius: 0;
    padding-top: 0;
    margin-top: 5px;
    list-style: none;
    border: none;
}

@media only screen and (min-width: 992px) {
    .header .nav-menu > li.dropdown:hover .dropdown-menu {
        display: flex;
    }

    .header .nav-menu > li.dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: -20px;
        gap: clamp(5px, 0.5vw, 13px);
        padding: clamp(10px, 1vw, 20px);
        padding-top: 0;
        border-radius: 0 0 5px 5px;
        margin-top: 0;
    }
}

.header .nav-menu > li.dropdown .dropdown-menu.show {
    display: flex;
}

.header .nav-menu > li.dropdown .dropdown-menu li {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 150%;
}

@media only screen and (min-width: 992px) {
    .header .nav-menu > li.dropdown .dropdown-menu li {
        font-size: clamp(0.75rem, 1.5vw, 1.2rem);
        line-height: normal;
        padding-bottom: 15px;
    }

    .header .nav-menu > li.dropdown .dropdown-menu li:hover {
        color: var(--primary);
    }
}

.header .nav-menu > li.dropdown .dropdown-menu li a {
    color: white;
}

.header .nav-menu > li.dropdown .dropdown-menu li a:hover {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    font-family: var(--font-titillium);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    padding: 10px 12px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary .btn-text {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: 0.5s;
    color: #fff;
}

.btn-primary .btn-text::after {
    content: "→";
    color: white;
}

.btn-primary .btn-text.no-arrow::after {
    content: "";
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 130%;
    height: 55px;
    transform: translate(-110%, 0);
    transition: 0.5s;
    background-color: var(--secondary);
}

.btn-primary.slide:hover::before {
    transform: translate(-5%, 0);
}

.btn-secondary {
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--white);
}

.btn-secondary .btn-text {
    display: flex;
    align-items: center;
    position: relative;
    transition: 0.5s;
    gap: 5px;
    color: #fff;
}

.btn-secondary .btn-text::after {
    content: "→";
    color: white;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 130%;
    height: 55px;
    transform: translate(-110%, 0);
    transition: 0.5s;
    background-color: var(--primary);
}

.btn-secondary.blue::before {
    background-color: var(--secondary);
}

.btn-secondary.slide:hover::before {
    transform: translate(-5%, 0);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   BANNER HOME (HERO)
   ============================================ */
.banner-home {
    background-color: var(--background);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 500px;
    position: relative;
}

@media only screen and (min-width: 1200px) {
    .banner-home {
        height: 583px;
        overflow: hidden;
    }
}

.banner-home #heroVideo {
    width: 100vw;
    height: inherit;
    object-fit: cover;
    object-position: top;
}

.banner-home .overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding: 20px;
}

@media only screen and (min-width: 992px) {
    .banner-home .overlay {
        gap: clamp(30px, 4vw, 40px);
    }
}

.banner-home .overlay h1 {
    color: white;
    font-family: var(--font-merriweather);
    letter-spacing: 0px;
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    margin: 0;
}

@media only screen and (min-width: 576px) {
    .banner-home .overlay h1 {
        font-size: 61px;
    }
}

@media only screen and (min-width: 992px) {
    .banner-home .overlay h1 {
        font-size: clamp(61px, 0.755rem + 4vw, 91px);
    }
}

.banner-home .overlay h1 span {
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

@media only screen and (min-width: 992px) {
    .banner-home .overlay h1 span {
        display: block;
    }
}

.banner-home .overlay p {
    max-width: 620px;
    color: white;
    letter-spacing: 0px;
    font-size: 15px;
    line-height: 135%;
}

@media only screen and (min-width: 576px) {
    .banner-home .overlay p {
        font-size: 18px;
    }
}

@media only screen and (min-width: 992px) {
    .banner-home .overlay p {
        font-size: clamp(1.313rem, 1.216rem + 0.385vw, 1.563rem);
        line-height: clamp(1.75rem, 1.534rem + 0.865vw, 2.313rem);
    }
}

/* ============================================
   NEWS CAROUSEL
   ============================================ */
.news-carousel {
    background-color: var(--grey-e8);
}

.news-carousel .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.news-carousel .carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
}

.news-carousel .carousel-eco {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.news-carousel .carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: space-between;
    justify-content: center;
}

.news-carousel .carousel-cell {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    padding-inline: 45px;
    justify-content: flex-start;
    row-gap: 20px;
    margin-bottom: 25px;
}

@media only screen and (min-width: 992px) {
    .news-carousel .carousel-cell {
        column-gap: 20px;
        flex-direction: row;
        padding-inline: 100px;
    }
}

.news-carousel .news-cell {
    display: grid;
    place-items: center;
}

.news-carousel .news-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media only screen and (min-width: 992px) {
    .news-carousel .news-box {
        width: 100%;
    }
}

.news-carousel .news-box img {
    width: 100%;
    max-width: 210px;
    display: block;
    border-radius: 10px;
    box-shadow: 0px 3px 10px #00000040;
}

.news-carousel .title-cell .title-box {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5px;
}

@media only screen and (min-width: 992px) {
    .news-carousel .title-cell .title-box {
        gap: 20px;
    }
}

.news-carousel .title-cell .title-box h2 {
    font-family: var(--font-merriweather);
    line-height: 115%;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--secondary);
    text-align: center;
    font-size: clamp(1.25rem, 0.25rem + 3.2vw, 2.25rem);
    margin: 0;
}

@media only screen and (min-width: 992px) {
    .news-carousel .title-cell .title-box h2 {
        text-align: left;
    }
}

.news-carousel .title-cell .title-box h2 a {
    text-decoration: none;
    color: inherit;
}

.news-carousel .title-cell .title-box h2 span {
    color: #1AAE58;
}

.news-carousel .title-cell .title-box p a {
    color: #0D3251;
    font-family: var(--font-titillium);
    font-size: clamp(0.75rem, 1.5vw, 18px);
    font-weight: 600;
    border-radius: 5px;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    display: none;
}

@media only screen and (min-width: 992px) {
    .news-carousel .title-cell .title-box p a {
        display: flex;
    }
}

.news-carousel .title-cell .title-box p a::after {
    content: "→";
    display: flex;
    align-items: center;
    height: 22px;
}

.news-carousel .nav-button {
    position: absolute;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    top: 55%;
}

@media only screen and (min-width: 576px) {
    .news-carousel .nav-button {
        top: 62%;
    }
}

@media only screen and (min-width: 992px) {
    .news-carousel .nav-button {
        top: 40%;
    }
}

.news-carousel .nav-button.prev-button {
    left: 15px;
}

.news-carousel .nav-button.next-button {
    right: 15px;
}

.news-carousel .carousel-indicators-eco {
    display: flex;
    width: fit-content;
    gap: 10px;
    margin: auto;
}

.news-carousel .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    opacity: 0.25;
    cursor: pointer;
}

.news-carousel .indicator.active {
    opacity: 1;
}

/* ============================================
   LEFT RIGHT SECTION
   ============================================ */
.left-right {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.left-right.section-light {
    background-color: var(--white);
}

.left-right.section-dark {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-darker) 100%);
}

.left-right.section-dark .copy h2 {
    color: var(--white);
}

.left-right.section-dark .copy h2 span {
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.left-right.section-dark .copy p {
    color: var(--light-grey);
}

.left-right.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.left-right.section-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.left-right .left-right-area.media-right {
    flex-direction: column;
    gap: 40px;
}

@media only screen and (min-width: 992px) {
    .left-right .left-right-area.media-right {
        flex-direction: row-reverse;
        gap: 60px;
    }
}

.left-right .left-right-area.media-left {
    gap: 40px;
}

@media only screen and (min-width: 992px) {
    .left-right .left-right-area.media-left {
        gap: 60px;
    }
}

.left-right .media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.left-right .media img {
    width: 100%;
}

.left-right .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-right .image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.left-right .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.left-right .image-wrapper:hover img {
    transform: scale(1.05);
}

.left-right .copy {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.left-right .copy h3 {
    font-family: var(--font-titillium);
    font-size: clamp(12px, 3vw, 18px);
    font-weight: 700;
    line-height: 135%;
    letter-spacing: 0px;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.left-right .copy h2 {
    font-family: var(--font-merriweather);
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--black);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.left-right .copy h2 span {
    display: block;
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.left-right .copy p {
    font-family: var(--font-titillium);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0px;
    color: var(--dark-grey);
    margin-bottom: clamp(12px, 3vw, 20px);
}

@media only screen and (min-width: 992px) {
    .left-right .copy p {
        font-size: 18px;
    }
}

/* ============================================
   ABOUT THE FOUNDRY SECTION
   ============================================ */
.about-foundry {
    background-color: var(--off-white);
}

.about-foundry h2 {
    font-family: var(--font-merriweather);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.about-foundry p.lead {
    font-family: var(--font-titillium);
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-grey);
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   THREE ICONS SECTION
   ============================================ */
.three-icons {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-darker) 100%);
}

.three-icons .icon-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 80px;
}

.three-icons .icon-area i {
    transition: transform 0.3s ease;
}

.three-icons .icon-area i:hover {
    transform: scale(1.1);
}

.three-icons .icon-item {
    text-align: center;
}

.three-icons .icon-item h3 {
    font-family: var(--font-merriweather);
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.three-icons .icon-item p {
    font-family: var(--font-titillium);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-grey);
}

.three-icons .three-icons-area {
    row-gap: 20px;
}

.three-icons .icon-item {
    text-align: center;
}

.three-icons .icon-area {
    height: clamp(112px, 7vw, 129px);
}

.three-icons .icon-area img {
    display: inline;
}

.three-icons .icon-item h3 {
    font-size: 18px;
    font-family: var(--font-merriweather);
    line-height: 135%;
    font-weight: 600;
    letter-spacing: 0px;
    color: var(--primary);
    margin-bottom: 10px;
}

.three-icons .icon-item p {
    font-family: var(--font-titillium);
    font-size: 17px;
    font-weight: 400;
    line-height: 135%;
    letter-spacing: 0px;
    color: #000000;
}

/* Manufacturing Process Section - White Background Version */
.manufacturing-process {
    background-color: var(--white);
}

.manufacturing-process .icon-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 80px;
}

.manufacturing-process .icon-area i {
    transition: transform 0.3s ease;
}

.manufacturing-process .icon-area i:hover {
    transform: scale(1.1);
}

.manufacturing-process .icon-item {
    text-align: center;
}

.manufacturing-process .three-icons-area {
    row-gap: 20px;
}

.manufacturing-process .icon-area {
    height: clamp(112px, 7vw, 129px);
}

.manufacturing-process .icon-area img {
    display: inline;
}

.manufacturing-process .icon-item h3 {
    font-size: 18px;
    font-family: var(--font-merriweather);
    line-height: 135%;
    font-weight: 600;
    letter-spacing: 0px;
    color: var(--primary);
    margin-bottom: 10px;
}

.manufacturing-process .icon-item p {
    font-family: var(--font-titillium);
    font-size: 17px;
    font-weight: 400;
    line-height: 135%;
    letter-spacing: 0px;
    color: #000000;
}

/* ============================================
   TITLE STYLES
   ============================================ */
.title-right-line {
    justify-content: center;
    align-items: end;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media only screen and (min-width: 992px) {
    .title-right-line {
        grid-template-columns: auto 1fr;
    }
}

.title-right-line .line {
    height: 2px;
    margin: 0 10px;
    width: auto;
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    margin-bottom: 10px;
}

@media only screen and (min-width: 992px) {
    .title-right-line .line {
        height: 4px;
        width: 100%;
        margin: 0;
        margin-bottom: 13px;
    }
}

.title-right-line h2 {
    font-family: var(--font-merriweather);
    font-size: clamp(25px, 5vw, 40px);
    line-height: 115%;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--background);
    text-align: center;
}

.title-right-line h2 span {
    color: var(--primary);
}

.title-right-left-line {
    justify-content: center;
    align-items: end;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

@media only screen and (min-width: 992px) {
    .title-right-left-line {
        grid-template-columns: 1fr auto 1fr;
    }
}

.title-right-left-line .line {
    height: 2px;
    margin: 0 10px;
    width: auto;
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    margin-bottom: 10px;
}

@media only screen and (min-width: 992px) {
    .title-right-left-line .line {
        height: 4px;
        width: 100%;
        margin: 0;
        margin-bottom: 15px;
    }
}

.title-right-left-line .line:first-of-type {
    display: none;
}

@media only screen and (min-width: 992px) {
    .title-right-left-line .line:first-of-type {
        display: block;
    }
}

.title-right-left-line h2 {
    font-family: var(--font-merriweather);
    font-size: clamp(25px, 5vw, 40px);
    line-height: 115%;
    font-weight: 700;
    letter-spacing: 0px;
    text-align: center;
}

.title-right-left-line h2.white {
    color: var(--white);
}

.title-right-left-line h2 span {
    color: var(--primary);
}

.title-right-left-line h2 br {
    display: none;
}

@media only screen and (min-width: 992px) {
    .title-right-left-line h2 br {
        display: block;
    }
}

.title-no-line {
    justify-content: center;
    align-items: end;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

@media only screen and (min-width: 992px) {
    .title-no-line {
        grid-template-columns: max(700px);
    }
}

.title-no-line h2 {
    font-family: var(--font-merriweather);
    font-size: clamp(25px, 5vw, 40px);
    line-height: 115%;
    font-weight: 700;
    letter-spacing: 0px;
    text-align: center;
}

.title-no-line h2.gradient {
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   TITLE DESCRIPTION SECTION
   ============================================ */
.title-desc {
    background-color: var(--black);
}

.title-desc .desc {
    padding-bottom: clamp(13px, 2.7vw, 40px);
}

.title-desc .desc p {
    font-family: var(--font-titillium);
    font-size: 17px;
    font-weight: 400;
    line-height: 135%;
    letter-spacing: 0px;
    color: var(--white);
    width: 100%;
    margin: auto;
}

@media only screen and (min-width: 992px) {
    .title-desc .desc p {
        width: 80%;
    }
}

.title-desc .video {
    padding-bottom: clamp(13px, 2.7vw, 40px);
}

.title-desc .video video {
    margin: auto;
    width: 100%;
    display: block;
}

@media only screen and (min-width: 992px) {
    .title-desc .video video {
        width: 80%;
    }
}

/* ============================================
   CONTACT PAGE SECTIONS
   ============================================ */
.contact-form-section {
    background-color: var(--white);
}

.contact-form-section h2 {
    font-family: var(--font-merriweather);
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.contact-form-section .contact-form .form-label {
    font-family: var(--font-titillium);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.contact-form-section .contact-form .form-control {
    font-family: var(--font-titillium);
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid var(--light-grey);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.contact-form-section .contact-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-info h3 {
    font-family: var(--font-merriweather);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info p {
    font-family: var(--font-titillium);
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-grey);
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
}

.regional-hubs-section {
    background-color: var(--off-white);
}

.hub-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hub-card h3 {
    font-family: var(--font-merriweather);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.hub-card p {
    font-family: var(--font-titillium);
    font-size: 16px;
    color: var(--dark-grey);
    margin: 0;
}

/* ============================================
   PREFABRICATED MODULES GALLERY SECTION
   ============================================ */
.prefab-modules {
    background-color: var(--white);
}

.prefab-modules .modules-gallery {
    display: flex;
    flex-wrap: wrap;
}

.prefab-modules .module-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.prefab-modules .module-card a {
    display: block;
    text-decoration: none;
    position: relative;
}

.prefab-modules .module-card a::after {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 107, 53, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.prefab-modules .module-card:hover a::after {
    opacity: 1;
}

.prefab-modules .module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.prefab-modules .module-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.prefab-modules .module-card:hover img {
    transform: scale(1.05);
}

/* ============================================
   PARTNER LOGOS SECTION
   ============================================ */
.partner-logos {
    background-color: linear-gradient(135deg, var(--background) 0%, var(--background-darker) 100%);
}

.partner-logos .partner-logos-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media only screen and (min-width: 992px) {
    .partner-logos .partner-logos-area {
        align-items: center;
        justify-content: center;
    }
}

.partner-logos .partner-logos-area a {
    flex-basis: 157px;
    flex-grow: 0;
    flex-shrink: 1;
}

@media only screen and (min-width: 576px) {
    .partner-logos .partner-logos-area a {
        flex-basis: 250px;
    }
}

.partner-logos .partner-logos-area a img {
    max-width: 100%;
}

.partner-logos .partner-logos-area .partner-logo {
    width: 75%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.partner-logos .partner-logos-area .partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ============================================
   NEWS AND EVENTS SECTION
   ============================================ */
.news-events {
    background-color: var(--white);
}

.news-events .news-events-area {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(4, auto);
    column-gap: 20px;
    row-gap: 20px;
}

@media only screen and (min-width: 768px) {
    .news-events .news-events-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1200px) {
    .news-events .news-events-area {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 0;
    }
}

.news-events .item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.27);
    cursor: pointer;
}

.news-events .item:hover {
    background-color: var(--light-grey);
}

.news-events .item .img img {
    width: 100%;
    height: auto;
}

.news-events .item .tag h4 {
    background-color: var(--neutral-grey);
    border-radius: 2px;
    opacity: 1;
    font-family: var(--font-titillium);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0px;
    color: var(--white);
    display: inline-block;
}

.news-events .item h3 {
    font-size: 18px;
    font-family: var(--font-merriweather);
    line-height: 135%;
    font-weight: 600;
    letter-spacing: 0px;
    color: var(--black);
}

.news-events .item p {
    font-family: var(--font-titillium);
    font-size: 17px;
    font-weight: 400;
    line-height: 135%;
    letter-spacing: 0px;
    color: #000000;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(to top, var(--background) 50%, #ffffff 50%);
    display: flex;
    justify-content: center;
}

.cta .cta-area {
    background-color: var(--primary);
    height: auto;
    display: flex;
    border-radius: 5px;
    max-width: 100%;
    margin: auto;
}

@media only screen and (min-width: 768px) {
    .cta .cta-area {
        max-width: 80%;
    }
}

.cta .cta-text {
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .cta .cta-text {
        width: 60%;
    }
}

.cta .cta-text h2 {
    font-family: var(--font-merriweather);
    letter-spacing: 0px;
    color: #FFFFFF;
    font-size: 30px;
    line-height: 135%;
    max-width: 607px;
}

.cta .cta-image {
    width: 30%;
    position: relative;
    display: none;
}

@media only screen and (min-width: 768px) {
    .cta .cta-image {
        display: block;
    }
}

.cta .cta-image img {
    position: absolute;
    width: clamp(310px, 31vw, 450px);
    left: 0;
    filter: drop-shadow(10px 10px 5px);
    top: 50%;
    transform: translate(0, -50%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-container {
    background-color: var(--background-darker);
}

.footer .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

@media only screen and (min-width: 992px) {
    .footer .logo {
        justify-content: flex-start;
        margin-bottom: 0;
    }
}

.footer .logo img {
    max-width: 100%;
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

@media only screen and (min-width: 576px) {
    .footer .links {
        gap: 30px;
    }
}

@media only screen and (min-width: 992px) {
    .footer .links {
        flex-wrap: nowrap;
        gap: 20px;
    }
}

.footer .links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .links ul li {
    font-family: var(--font-titillium);
    color: var(--white);
    letter-spacing: 0px;
    text-transform: uppercase;
    line-height: 175%;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    font-size: clamp(1rem, 0.904rem + 0.385vw, 1rem);
}

.footer .links ul li h2 {
    font-weight: bold;
    font-size: clamp(1rem, 0.904rem + 0.385vw, 1rem);
    margin-bottom: 10px;
}

.footer .links ul li a {
    color: inherit;
    text-decoration: inherit;
    display: block;
}

.footer .links ul li a:hover {
    color: var(--primary);
}

.footer .social {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

@media only screen and (min-width: 992px) {
    .footer .social {
        justify-content: flex-end;
    }
}

.footer .social a {
    width: 35px;
    height: 35px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
}

.footer .social a.linkedin {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/LinkedIn-Icon.svg');
}

.footer .social a.linkedin:hover {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/Linkedin-Hover.svg');
}

.footer .social a.youtube {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/YouTube-Icon.svg');
}

.footer .social a.youtube:hover {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/YouTube-Hover.svg');
}

.footer .social a.email {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/Email-Icon.svg');
}

.footer .social a.email:hover {
    background-image: url('https://ecoblox.com/wp-content/themes/ecoblox/assets/images/svg/Email-Hover.svg');
}

.footer .copyright {
    text-align: center;
    color: var(--medium-grey);
}

.footer .copyright a {
    color: var(--medium-grey);
    text-decoration: underline;
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    right: 50px;
    bottom: 30px;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1000;
}

.btn-back-to-top {
    border: 1px solid #E55A2B;
    border-radius: 2px;
    display: inline-flex;
    padding: 10px;
}

.btn-back-to-top:hover {
    border: 1px solid var(--off-white);
    background-color: var(--off-white);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 991px) {
    body {
        margin-top: 60px;
    }
}

/* Factory Guarantee Section */
.factory-guarantee {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-darker) 100%);
}

.factory-guarantee h2 {
    color: var(--white);
}

.factory-guarantee h2 span {
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guarantee-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 25px;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.guarantee-card .card-title {
    font-family: var(--font-merriweather);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.guarantee-card .card-text {
    font-family: var(--font-titillium);
    font-size: 16px;
    color: var(--dark-grey);
    margin: 0;
}

/* Video playback speed adjustment */
.title-desc video {
    /* Speed controlled via JavaScript */
}

/* Capacity and Facility Section */
.capacity-facility {
    background-color: var(--off-white);
}

.capacity-facility .title-left-line {
    justify-content: center;
    align-items: end;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media only screen and (min-width: 992px) {
    .capacity-facility .title-left-line {
        grid-template-columns: 1fr auto;
    }
}

.capacity-facility .title-left-line .line {
    height: 2px;
    margin: 0 10px;
    width: auto;
    background: transparent linear-gradient(90deg, #045ECB 0%, #0CBACC 25%, #16A185 50%, #1CB136 75%, #E9F7F4 100%) 0% 0% no-repeat padding-box;
    margin-bottom: 10px;
}

@media only screen and (min-width: 992px) {
    .capacity-facility .title-left-line .line {
        height: 4px;
        width: 100%;
        margin: 0;
        margin-bottom: 13px;
    }
}

.capacity-facility .title-left-line h2 {
    font-family: var(--font-merriweather);
    font-size: clamp(25px, 5vw, 40px);
    line-height: 115%;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--background);
    text-align: center;
}

.capacity-facility .title-left-line h2 span {
    color: var(--primary);
}

.capacity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media only screen and (min-width: 768px) {
    .capacity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media only screen and (min-width: 992px) {
    .capacity-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.capacity-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capacity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.counter {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.counter .number {
    font-family: var(--font-merriweather);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.counter .plus {
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 24px;
    color: var(--primary);
}

.capacity-card h3 {
    font-family: var(--font-merriweather);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin: 15px 0 10px 0;
}

.capacity-card p {
    font-family: var(--font-titillium);
    font-size: 16px;
    color: var(--dark-grey);
    line-height: 1.6;
    margin: 0;
}

.capacity-card .small {
    font-size: 14px;
    color: var(--medium-grey);
    font-style: italic;
}

/* ============================================
   FLOATING CHAT BOT
   ============================================ */

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.floating-chat-btn:focus {
    outline: none;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Chat Modal */
/* Old custom modal styles - commented out since using Bootstrap 5 modal */
/* .chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
} */

/* .chat-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
} */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-header h3 i {
    margin-right: 10px;
}

/* .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-chat:hover {
    background-color: rgba(255, 255, 255, 0.2);
} */

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-messages {
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.received {
    align-items: flex-start;
}

.message.sent {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.received .message-content {
    background-color: white;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    padding: 0 5px;
}

.message.sent .message-time {
    text-align: right;
    color: #adb5bd;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 15px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Chat Footer */
.chat-footer {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #e9ecef;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: var(--font-titillium);
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox styling */
.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #6c757d;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark,
.checkmark.checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after,
.checkmark.checked::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* .optional-fields {
    display: none;
    gap: 10px;
    flex-direction: column;
}

.optional-fields.show {
    display: flex;
} */

.send-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-titillium);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #28a745;
}

.success-message p {
    margin: 0;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .floating-chat-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .chat-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .chat-header {
        padding: 15px;
    }

    .chat-header h3 {
        font-size: 16px;
    }

    .chat-body {
        padding: 15px;
    }

    .chat-footer {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .send-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ============================================
   CHAT MODAL CUSTOMIZATION FOR BOOTSTRAP
   ============================================ */

/* Customize Bootstrap modal header */
#chatModal .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1rem;
}

#chatModal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

#chatModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make close button white */
}

/* Customize modal body */
#chatModal .modal-body {
    padding: 0;
}

/* Chat messages container */
#chatMessages {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
}

/* Message styling */
#chatMessages .message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

#chatMessages .message.received {
    align-items: flex-start;
}

#chatMessages .message.sent {
    align-items: flex-end;
}

#chatMessages .message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

#chatMessages .message.received .message-content {
    background-color: white;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#chatMessages .message.sent .message-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

#chatMessages .message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    padding: 0 5px;
}

#chatMessages .message.sent .message-time {
    text-align: right;
    color: #adb5bd;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 18px;
    width: fit-content;
    margin: 15px 15px 0 auto;
}

/* Form styling inside modal */
#chatModal .modal-body form {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #e9ecef;
}

/* ============================================
   CONTACT FORM ALERTS
   ============================================ */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--font-titillium);
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert strong {
    font-weight: 600;
}

/* Factory Gallery Section */
.factory-gallery {
    background-color: var(--white);
}

.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    text-align: center;
}

.gallery-caption h4 {
    font-family: var(--font-merriweather);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.gallery-caption p {
    font-family: var(--font-titillium);
    font-size: 15px;
    color: var(--dark-grey);
    margin: 0;
}

/* Gallery Modal Styles */
.modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-darker) 100%);
    color: var(--white);
    border: none;
}

.modal-header .modal-title {
    font-family: var(--font-merriweather);
    font-weight: 700;
    color: var(--white);
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 25px;
}

.modal-body img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.modal-details h6 {
    font-family: var(--font-titillium);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.modal-details p {
    font-family: var(--font-titillium);
    color: var(--dark-grey);
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-details p:last-child {
    margin-bottom: 0;
}

.modal-xl {
    max-width: 70%;
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
    }
}

/* Contact form specific styles */
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.contact-form .btn-primary {
    margin-top: 10px;
}

/* Custom styles for chat modal to use original design */
#chatModal .modal-dialog {
    max-width: 400px; /* Small modal width */
}

#chatModal .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

#chatModal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: var(--font-titillium);
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#chatModal .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#chatModal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

#chatModal .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-titillium);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#chatModal .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4) !important;
}

#chatModal .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Checkbox styling inside modal */
#chatModal .form-check-input {
    display: none;
}

#chatModal .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #6c757d;
}

#chatModal .form-check-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

#chatModal .form-check-input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

#chatModal .form-check-input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive adjustments for smaller modal */
@media (max-width: 576px) {
    #chatModal .modal-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    #chatModal .modal-content {
        min-height: 70vh;
    }

    #chatMessages {
        max-height: 200px;
    }
}
