/********** Template CSS **********/
:root {
    --primary: #131d3b;
    --secondary: #5B8C51;
    --light: #F7F7F7;
    --dark: #404A3D;
    
    /* Font Family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    letter-spacing: 0.025em;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        padding: 0.5rem;
        min-width: 300px;
        max-width: 400px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        width: auto;
        z-index: 1040;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Ensure parent dropdown stays open when hovering submenu */
    .navbar .nav-item:hover .dropdown-menu,
    .navbar .nav-item .dropdown-menu:hover {
        visibility: visible;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding: 3rem 0;
    background-color: #1a2649;
    background-size: cover;
}

.page-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Section Timeline ***/
/* Timeline Styles */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
    transform: translateY(-50%);
}

.timeline-year {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
}

.timeline-event {
    font-size: var(--text-base);
    color: var(--dark);
    margin-bottom: 0;
    font-weight: var(--font-semibold);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .timeline-content::before {
        left: -40px !important;
    }
}

/*** Section Timeline ***/



/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: var(--font-bold);
    font-size: var(--text-3xl);
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 6px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/*** Service ***/
.service-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 1;
}

.service-item .service-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.service-item:hover .service-img::after {
    width: 0;
    left: auto;
    right: 0;
}

.service-item .service-text .service-icon {
    /* width: 140px; */
    height: 140px;
    padding: 15px;
    margin-top: -70px;
    margin-bottom: 40px;
    background: #FFFFFF;
    border-radius: 140px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .1);
}

/* .service-item .service-text h5,
.service-item .service-text p {
    transition: .5s;
} */

.service-item:hover .service-text h5,
.service-item:hover .service-text p {
    color: #FFFFFF;
}

.service-item .service-text .btn {
    color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.service-item .service-text .btn:hover {
    color: var(--dark);
    background: var(--secondary);
}


/*** Product ***/
.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.product-item:hover .product-overlay {
    opacity: 1;
    padding-top: 0;
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .btn {
    border-color: transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
}

.testimonial-img::after {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 200px;
    color: #EEEEEE;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.testimonial-img img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-img img:nth-child(1) {
    top: 0;
    left: 0;
}

.testimonial-img img:nth-child(2) {
    top: 60%;
    left: 20%;
}

.testimonial-img img:nth-child(3) {
    top: 20%;
    left: 60%;
}

.testimonial-img img:nth-child(4) {
    bottom: 0;
    right: 0;
}

.testimonial-img img .animated.pulse {
    animation-duration: 2s;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 45px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background: #022454 !important;
    padding: 4rem 0;
}

.footer .text-light,
.footer p,
.footer .mb-2 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer h5,
.footer h6 {
    color: #ffffff;
    font-weight: var(--font-semibold);
    margin-bottom: 1.5rem;
}

.footer a.text-light:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-normal);
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    letter-spacing: 1px;
    box-shadow: none;
    text-decoration: none;
}



/********** Template CSS **********/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

h1,
h2,
h3,
.font-heading {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-style: normal;
}

h4,
h5,
h6,
.font-body {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

@media (min-width: 992px) {
    .display-1 {
        font-size: 7rem;
    }
}

.btn {
    font-family: "Emblema One", system-ui;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 0;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--bs-secondary);
    font-size: 17px;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 10%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.section-title {
    color: var(--bs-primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5rem;
}

.animate-up-down {
    position: relative;
    animation: animateUpDown 1s ease infinite;
}

@keyframes animateUpDown { 
    0% { 
        top: 0px;
    }
    50% { 
        top: 10px;
    }
    100% { 
        top: 0px;
    } 
}

.animate-rotate {
    position: absolute;
    animation: animateRotate 8s linear infinite;
}

@keyframes animateRotate { 
    100% { 
        transform: rotate(360deg); 
    } 
}

.bg-hero {
    background: linear-gradient(rgba(34, 36, 41, .8), rgba(34, 36, 41, .8)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.feature {
    margin-bottom: 135px;
}

.feature::after {
    position: absolute;
    content: "";
    width: 100%;
    height: calc(100% - 45px);
    top: 135px;
    left: 0;
    background: var(--bs-dark);
    z-index: -1;
}

.feature .feature-item {
    background: linear-gradient(var(--bs-light) 50%, var(--bs-dark));
}

.menu .tab-content img {
    transition: .5s;
}

.menu .tab-content img:hover {
    opacity: .7;
}

.team-item img {
    transform: scale(1.2);
    transition: .5s;
}

.team-item:hover img {
    margin-top: -50px;
    margin-bottom: 50px;
}

.team-item .team-overlay {
    position: absolute;
    top: calc(100% - 100px);
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 36, 41, .9);
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-overlay {
    top: 0;
    opacity: 1;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--bs-primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.2);
}

.instagram img {
    transition: .5s;
}

.instagram img:hover {
    opacity: .9;
}

@media (min-width: 991.98px) {
    .credit {
        background: #111111;
    }
}





.supplier-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.supplier-card img {
    transition: all 0.3s ease;
    max-height: 120px;
    object-fit: contain;
}

.supplier-card:hover img {
    transform: scale(1.05);
}

.supplier-card a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Business Line Cards */
.business-line-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.business-line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.business-line-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.business-line-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-line-card:hover .business-line-image img {
    transform: scale(1.05);
}

.business-line-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.business-line-content h2 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: var(--font-bold);
}

.business-line-content h5 {
    font-size: var(--text-lg);
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: var(--font-medium);
}

.business-line-content p {
    color: var(--dark);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

/* Supplier Logo Grid */
.supplier-logo-grid {
    display: grid;
   
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    gap: 2rem;
    padding: 2rem 0;
}

.supplier-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.supplier-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* transition: all 0.3s ease;
    filter: grayscale(100%); */
    opacity: 0.8;
}

.supplier-card:hover .supplier-logo {
    /* filter: grayscale(0%); */
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .business-line-image {
        padding-top: 50%;
    }

    .business-line-content {
        padding: 1.5rem;
    }

    .business-line-content h2 {
        font-size: var(--text-xl);
    }

    .business-line-content h5 {
        font-size: var(--text-base);
    }

    .supplier-logo-grid {
        /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
        gap: 1rem;
    }

    .supplier-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .business-line-image {
        padding-top: 60%;
    }

    .business-line-content {
        padding: 1.25rem;
    }

    .business-line-content h2 {
        font-size: var(--text-lg);
    }

    .business-line-content p {
        font-size: var(--text-sm);
    }

    .supplier-card {
        aspect-ratio: 16/9;
    }
}

/* Loading Animation for Images */
.img-fluid[loading="lazy"] {
    transition: opacity 0.3s ease;
}



.img-fluid[loading="lazy"][data-loaded] {
    opacity: 1;
}

/* Global Typography */
body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--primary);
    margin-bottom: 1rem;
}

h1, .h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.025em;
}

h2, .h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.025em;
}

h3, .h3 {
    font-size: var(--text-2xl);
}

h4, .h4 {
    font-size: var(--text-xl);
}

h5, .h5 {
    font-size: var(--text-lg);
}

h6, .h6 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

/* Paragraphs and Body Text */
p {
    margin-bottom: 1rem;
    line-height: var(--leading-relaxed);
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-lg {
    font-size: var(--text-lg);
}

/* Navigation */
.navbar .navbar-nav .nav-link {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

.dropdown-item {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
}

/* Buttons */
.btn {
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    letter-spacing: 0.025em;
}

/* Section Titles */
.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: -0.025em;
}

/* Cards and Features */
.service-item .service-text h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.feature-item h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

/* Footer */
.footer h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.footer .btn.btn-link {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.5rem;
        --text-xl: 1.25rem;
        --text-lg: 1.125rem;
    }
    
    /* Responsive h5 styles for mobile */
    .impact-highlight h5 {
        font-size: var(--text-lg) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
}

@media (max-width: 576px) {
    /* Extra small devices */
    .impact-highlight h5 {
        font-size: var(--text-base) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .impact-highlight .d-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .impact-highlight .icon-box {
        margin: 0 auto 1rem auto !important;
    }
    
    .impact-highlight p {
        font-size: var(--text-sm) !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    /* Very small devices */
    .impact-highlight h5 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }
    
    .impact-highlight p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .impact-highlight {
        padding: 1rem !important;
    }
}

/* Header Fixes */
.navbar {
    background: #022454

    ;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
    background: transparent !important;
    padding: 0;
    border: none;
    box-shadow: none;
}

.navbar-brand {
    background: transparent !important;
    padding: 0;
}

/* Layout Consistency */
.section {
    padding: 5rem 0;
}

/* Card Layouts */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Supplier Logo Grid */
.supplier-logo-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    gap: 2rem;
    padding: 2rem;
}

.supplier-logo {
    aspect-ratio: 16/9;
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

/* Dropdown Menu Styles */
.navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: auto;
}

.navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
    color: var(--dark);
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    font-weight: var(--font-normal);
    white-space: normal;
    word-wrap: break-word;
    min-width: 280px;
    max-width: 350px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(19, 29, 59, 0.05);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--primary);
    color: #ffffff;
}

/* Dropdown Toggle Arrow */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.navbar .nav-item:hover .dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* Nested Dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: -5px; /* Overlap to prevent gap */
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 400px;
    width: auto;
    z-index: 1050; /* Ensure submenu appears above parent */
}

/* Show submenu on hover of parent item or submenu itself */
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Keep parent dropdown visible when hovering submenu */
.dropdown-submenu:hover > .dropdown-toggle,
.dropdown-submenu .dropdown-menu:hover ~ .dropdown-toggle {
    background-color: rgba(19, 29, 59, 0.05);
    color: var(--primary);
}

.dropdown-submenu > .dropdown-toggle::after {
    content: "\f105";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Add hover bridge to prevent gap issues */
.dropdown-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    background: transparent;
    z-index: 1049;
}

/* Ensure submenu stays visible when moving mouse over the bridge */
.dropdown-submenu:hover::before {
    background: transparent;
}

/* Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar .nav-item .dropdown-menu {
        padding: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: rgba(19, 29, 59, 0.05);
        transform: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
        margin-left: 1rem;
        margin-top: 0.5rem;
        position: static;
    }

    .dropdown-submenu .dropdown-menu {
        margin-left: 1rem;
        display: none;
        position: static;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Small Screen Dropdown Styles */
@media (max-width: 768px) {
    .navbar .nav-item .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        max-width: none;
    }

    .navbar .nav-item .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.75rem 1.5rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: var(--text-sm);
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        min-width: auto;
        max-width: none;
    }

    .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-left-color: var(--secondary);
        transform: translateX(5px);
    }

    .dropdown-menu .dropdown-item.active,
    .dropdown-menu .dropdown-item:active {
        background: var(--secondary);
        color: #ffffff;
        border-left-color: var(--primary);
    }

    .navbar .dropdown-toggle::after {
        margin-left: 0.5rem;
        font-size: 0.875rem;
    }

    /* Improve dropdown toggle button on mobile */
    .navbar .nav-item.dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .navbar .nav-item.dropdown > .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar .nav-item.dropdown > .nav-link[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.15);
        border-left: 3px solid var(--secondary);
    }
}

/* Extra Small Screen Dropdown Styles */
@media (max-width: 576px) {
    .navbar .nav-item .dropdown-menu {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.625rem 1.25rem;
        font-size: var(--text-xs);
        margin: 0.125rem 0;
    }

    .navbar .nav-item.dropdown > .nav-link {
        padding: 0.625rem 1rem;
        font-size: var(--text-sm);
    }

    .navbar .dropdown-toggle::after {
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }
}

/* Enhanced Mobile Dropdown Animations */
@media (max-width: 768px) {
    .navbar .nav-item .dropdown-menu {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .navbar .nav-item .dropdown-menu.show {
        max-height: 500px;
        opacity: 1;
        transform: scaleY(1);
    }

    .navbar .nav-item .dropdown-menu:not(.show) {
        transform: scaleY(0);
    }

    /* Dropdown arrow rotation animation */
    .navbar .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .navbar .dropdown-toggle[aria-expanded="false"]::after {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    /* Improve dropdown item spacing and visual hierarchy */
    .dropdown-menu .dropdown-item {
        position: relative;
        overflow: hidden;
    }

    .dropdown-menu .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--secondary), var(--primary));
        transition: width 0.3s ease;
        z-index: -1;
    }

    .dropdown-menu .dropdown-item:hover::before {
        width: 100%;
    }

    .dropdown-menu .dropdown-item:hover {
        color: #ffffff;
        transform: translateX(8px);
    }

    /* Active state styling */
    .dropdown-menu .dropdown-item.active::before,
    .dropdown-menu .dropdown-item:active::before {
        width: 100%;
    }
}

/* Copyright Section */
.bg-secondary.copyright {
    background: #0f1730 !important;
}

.copyright {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright .text-body,
.copyright .text-center,
.copyright .text-md-start,
.copyright .text-md-end {
    color: rgba(255, 255, 255, 0.85) !important;
}

.copyright a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s;
}

.copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Trading Page Refined Styles */
.trading-hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(45deg, var(--primary), #1a2649);
    overflow: hidden;
}

.trading-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/overlay-pattern.png') repeat;
    opacity: 0.1;
}

.trading-hero h1 {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.company-overview {
    position: relative;
    padding: 5rem 0;
    background: #ffffff;
}

.company-overview-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
}

.company-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.company-overview-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 1.5rem;
}

.company-overview-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.company-overview-card:hover .company-overview-image img {
    transform: scale(1.05);
}

.company-overview-content {
    padding: 2rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary);
    color: #ffffff;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item:hover .number {
    color: #ffffff;
}

.stat-item .label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-line-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.business-line-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.business-line-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.business-line-image {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.business-line-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-line-card:hover .business-line-image img {
    transform: scale(1.1);
}

.business-line-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.business-line-content h2 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: var(--font-bold);
    position: relative;
    padding-bottom: 1rem;
}

.business-line-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.business-line-content h5 {
    font-size: var(--text-lg);
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: var(--font-medium);
}

.business-line-content p {
    color: var(--dark);
    line-height: var(--leading-relaxed);
    margin-bottom: 1.5rem;
}

.supplier-section {
    padding: 5rem 0;
    background: #ffffff;
}

.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.supplier-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.supplier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.supplier-card:hover::before {
    opacity: 0.05;
}

.supplier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.supplier-logo {
    max-width: 80%;
    max-height: 80%;
    min-width: 250px;
    min-height: 250px;
    object-fit: contain;
    transition: all 0.4s ease;
    /* filter: grayscale(100%); */
    /* opacity: 0.7;
    z-index: 1; */
}

.supplier-card:hover .supplier-logo {
    /* filter: grayscale(0%); */
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .trading-hero h1 {
        font-size: 2.5rem;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .supplier-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .trading-hero {
        padding: 4rem 0;
    }

    .company-overview {
        padding: 3rem 0;
    }

    .business-line-content {
        padding: 1.5rem;
    }

    .supplier-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .trading-hero h1 {
        font-size: 2rem;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }

    .supplier-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.contact-info-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-item .btn-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-info-item h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-info-item p {
    font-size: var(--text-base);
    margin-bottom: 0;
    color: var(--dark);
}

.contact-form-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-container .form-control {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    font-size: var(--text-base);
}

.contact-form-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.contact-form-container .form-floating label {
    padding: 1rem;
}

.contact-form-container .btn-primary {
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 991px) {
    .contact-info-item {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem !important;
    }
}

.banner {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.banner .container {
    position: relative;
    z-index: 2;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.impact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.impact-card:hover .icon-box {
    transform: scale(1.1);
}

.impact-highlight {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.impact-highlight:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.impact-initiatives {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
}

.initiative-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.initiative-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.initiative-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.initiative-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.initiative-highlight {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.initiative-highlight:hover {
    background: rgba(var(--primary-rgb), 0.4) !important;
}

/* Responsive styles for impact cards */
@media (max-width: 768px) {
    .impact-card {
        margin-bottom: 1rem;
    }
    
    .impact-card .d-flex {
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }
    
    .impact-card .icon-box {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .impact-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .impact-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .impact-card {
        padding: 1.5rem !important;
    }
    
    .impact-card .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .impact-card .icon-box i {
        font-size: 1.5rem !important;
    }
    
    .impact-card h5 {
        font-size: 1rem;
    }
    
    .impact-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .impact-card {
        padding: 1rem !important;
    }
    
    .impact-card .icon-box {
        width: 45px;
        height: 45px;
    }
    
    .impact-card .icon-box i {
        font-size: 1.25rem !important;
    }
    
    .impact-card h5 {
        font-size: 0.95rem;
    }
    
    .impact-card p {
        font-size: 0.8rem;
    }
}

/* Ensure proper spacing on larger screens */
@media (min-width: 769px) {
    .impact-card .d-flex {
        align-items: center;
    }
    
    .impact-card .icon-box {
        margin-right: 1rem;
    }
}

/* Facility Logo Responsive Styles */
.facility-logo.enhanced-facility-logo {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.facility-logo.enhanced-facility-logo img {
    transition: all 0.3s ease;
}

/* Tablet and smaller desktop screens */
@media (max-width: 991px) {
    .facility-logo.enhanced-facility-logo {
        width: 160px !important;
        height: 130px !important;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .facility-logo.enhanced-facility-logo {
        width: 140px !important;
        height: 110px !important;
    }
    
    .facility-content .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }
    
    .facility-content .d-flex.align-items-center > div:first-child {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .facility-logo.enhanced-facility-logo {
        width: 120px !important;
        height: 95px !important;
    }
    
    .facility-content .d-flex.align-items-center {
        margin-bottom: 1.5rem;
    }
    
    .facility-content .d-flex.align-items-center > div:first-child {
        margin-bottom: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .facility-logo.enhanced-facility-logo {
        width: 100px !important;
        height: 80px !important;
    }
    
    .facility-content .d-flex.align-items-center {
        margin-bottom: 1rem;
    }
    
    .facility-content .d-flex.align-items-center > div:first-child {
        margin-bottom: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .facility-logo.enhanced-facility-logo {
        width: 90px !important;
        height: 72px !important;
    }
}

/* Enhanced Tab and Product Card Styles */
.nav-pills .nav-link {
    background: transparent !important;
    border: 2px solid transparent;
    font-weight: 600;
}

.nav-pills .nav-link:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(45deg, #3498db, #2ecc71) !important;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-card .btn:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.badge {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Smooth animations */
.product-card,
.product-card img,
.product-overlay,
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background gradient for the section */
.menu {
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Placeholder image styling */
.product-card img[src*="data:image/svg+xml"] {
    border: 2px dashed #d3d3d3;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Image error handling */
.product-card img {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
}

.product-card img:after {
    content: "Image not available";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: rgba(248, 249, 250, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
}

/* Show fallback text when image fails to load */
.product-card img[src=""]:after,
.product-card img:not([src]):after {
    display: block;
}

/* Placeholder image class added by JavaScript */
.product-card img.placeholder-image {
    border: 2px dashed #d3d3d3;
    opacity: 0.8;
}

.product-card:hover img.placeholder-image {
    opacity: 1;
    border-color: #3498db;
}

/* Poultry Farm product grid enhancements */
.menu .tab-content .row.g-0 .position-relative {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.menu .tab-content .row.g-0 .position-relative img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .menu .tab-content .row.g-0 .position-relative img {
        height: 180px;
    }
}
