/* Reset and Base Styles */
:root {
    --primary-color: #1e4c3d;
    --primary-dark: #0f2e22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* --- Global Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: #fff;
    height: 95px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    /* Changed to sticky for consistent behavior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease, height 0.4s ease, background-color 0.4s ease;
    /* Added more transitions */
    display: flex;
    align-items: center;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo .logo {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: #1e4c3d;
    color: white;
}

.language-switch a {
    font-size: 1.2rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-controls {
    display: none;
}

/* --- General Heading Fallback for Lighthouse --- */
/* This rule uses :where() to have zero specificity, so it will not */
/* override any other h1 styles but will satisfy the Lighthouse audit. */
:where(h1) {
    font-size: 2em;
    /* A common browser default for h1 */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

/* Explicitly set font-size for h1 in hero to satisfy Lighthouse best practices */
.hero .hero-content h1.hero-headline {
    font-size: 3.5rem;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out 0.3s;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-headline.active,
.hero-subheadline.active {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #1e4c3d;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Page Header (for subpages) */
.page-header {
    position: relative;
    color: white;
    padding: 120px 20px 60px;
    text-align: center;
    /* margin-top: 82px; */
    /* Removed to fix gap with sticky nav */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f2d21;
    overflow: hidden;
    --header-image: none;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--header-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

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

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.page-about .page-header {
    --header-image: url('assets/banners/about.png');
}

.page-contact .page-header {
    --header-image: url('assets/banners/contact.png');
}

.page-support .page-header {
    --header-image: url('assets/banners/support.png');
}

.page-products .page-header {
    --header-image: url('assets/banners/products.png');
}

.page-blog .page-header {
    --header-image: url('assets/banners/blog.png');
}

.home-products .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e4c3d;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e4c3d 0%, #2d6b57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-products .section-header p {
    font-size: 1.2rem;
    color: #5a6c57;
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.home-products {
    background-color: #fff;
}

.corpofer-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.corpofer-container {
    width: 300px;
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 76, 61, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.corpofer-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(30, 76, 61, 0.2);
}

.corpofer-container-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Products Page Grid Layout --- */
.products-page .corpofer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.products-page .corpofer-container {
    width: 100%;
    /* Take full width of the grid column */
    height: 400px;
}

/* --- MOBILE/TABLET OVERRIDES (< 1024px): Infinite Carousel FOR HOMEPAGE ONLY --- */
@media (max-width: 1024px) {

    /* Apply carousel styles ONLY to the homepage */
    .page-home .corpofer-cards {
        /* Activate scrolling */
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        padding: 40px 0;
        /* Hide scrollbars */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .page-home .corpofer-cards::-webkit-scrollbar {
        display: none;
    }

    .page-home .corpofer-container {
        /* Carousel item properties */
        flex: 0 0 300px;
        margin: 0 15px;
        scroll-snap-align: center;
        transition: transform 0.5s ease, opacity 0.5s ease;
        transform: scale(0.85);
        opacity: 0.7;
    }

    .page-home .corpofer-container:hover {
        /* Disable hover lift on mobile, but keep overlay */
        transform: scale(0.85);
    }

    .page-home .corpofer-container.is-active:hover {
        transform: scale(1);
    }

    .page-home .corpofer-container.is-active {
        /* Active (centered) card */
        transform: scale(1);
        opacity: 1;
    }
}


/* --- MOBILE OVERRIDES for PRODUCTS PAGE GRID --- */
@media (max-width: 768px) {
    .products-page .corpofer-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-page .corpofer-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* --- Category Filter Buttons (Products Page) --- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-filter .filter-btn {
    background: #e8f8f5;
    color: #1e4c3d;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.category-filter .filter-btn:hover {
    background: #d1e7e2;
}

.category-filter .filter-btn.active {
    background: #1e4c3d;
    color: white;
    border-color: #1e4c3d;
}

.corpofer-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 30px;
    box-sizing: border-box;
    background: rgba(30, 76, 61, 0.9);
    color: #ffffff;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    font-family: 'Playfair Display', serif;
}

.corpofer-items {
    padding-left: 0;
    letter-spacing: 2px;
    width: 100%;
}

.corpofer-head {
    font-size: 28px;
    line-height: 1.3;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

.corpofer-head hr {
    display: block;
    width: 0;
    border: none;
    border-bottom: solid 2px #ffffff;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .5s;
}

.corpofer-price {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
    margin-bottom: 20px;
}

.corpofer-price .old {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    font-size: 16px;
}

.corpofer-price .new {
    font-weight: bold;
    font-size: 20px;
}

.corpofer-cart {
    font-size: 14px;
    opacity: 0;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
    transform: translateY(20px);
    transition: all 0.7s ease-in-out;
    margin-top: auto;
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.corpofer-cart i {
    font-size: 14px;
}

.corpofer-cart span {
    margin-left: 8px;
}

.corpofer-container:hover .corpofer-overlay {
    opacity: 1;
}

.corpofer-container:hover .corpofer-head,
.corpofer-container:hover .corpofer-price,
.corpofer-container:hover .corpofer-cart {
    transform: translateY(0px);
    opacity: 1;
}

.corpofer-container:hover .corpofer-head {
    transition-delay: 0.1s;
}

.corpofer-container:hover hr {
    width: 75px;
    transition-delay: 0.4s;
}

.corpofer-container:hover .corpofer-price {
    transition-delay: 0.2s;
}

.corpofer-container:hover .corpofer-cart {
    transition-delay: 0.3s;
}

footer {
    background-color: #1e4c3d;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content p:last-child {
    font-style: italic;
    opacity: 0.8;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

@media (max-width: 1024px) {
    .home-products .corpofer-cards {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .home-products .corpofer-cards::-webkit-scrollbar {
        display: none;
    }

    .home-products .corpofer-cards {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-products .corpofer-container {
        flex-shrink: 0;
        width: 300px;
        max-width: 80vw;
        transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
        transform: scale(0.85);
        opacity: 0.7;
    }

    .home-products .corpofer-container.is-active {
        transform: scale(1.05);
        opacity: 1;
        box-shadow: 0 15px 30px rgba(30, 76, 61, 0.25);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        padding: 1rem;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu.active {
        display: flex;
    }

    .language-switch-desktop {
        display: none;
    }

    .nav-menu.active li {
        margin-bottom: 0.5rem;
    }

    .nav-menu.active li:last-child {
        margin-bottom: 0;
    }

    .nav-menu.active li a {
        display: block;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e8f8f5;
        transition: all 0.2s ease-in-out;
        text-align: center;
    }

    .nav-menu.active li a:hover,
    .nav-menu.active li a.active {
        background: #1e4c3d;
        color: white;
        border-color: #1e4c3d;
        transform: scale(1.02);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .home-products,
    .about-page,
    .mission-vision,
    .values,
    .team,
    .products-page,
    .contact-page {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-subheadline {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .home-products .section-header h2,
    .about-page h2,
    .values h2,
    .team h2 {
        font-size: 2.2rem;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .home-products,
    .about-page,
    .mission-vision,
    .values,
    .team,
    .products-page,
    .contact-page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero {
        min-height: 550px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline {
        font-size: 1.2rem;
    }

    .page-header {
        min-height: 300px;
        padding: 100px 20px 50px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .home-products .section-header h2,
    .about-page h2,
    .values h2,
    .team h2 {
        font-size: 2rem;
    }

    .home-products .section-header p {
        font-size: 1.1rem;
    }

    .corpofer-cards {
        gap: 30px;
    }

    .team-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .support-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-details {
        grid-template-columns: 1fr;
    }

    .whatsapp-float img {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .nav-logo .logo {
        height: 80px;
    }

    .nav-container {
        padding: 0.8rem 20px;
    }

    .nav-menu {
        top: 72px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-headline {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .home-products .section-header h2,
    .about-page h2,
    .values h2,
    .team h2 {
        font-size: 1.8rem;
    }

    .corpofer-container {
        height: 380px;
        width: 280px;
    }

    .corpofer-head {
        font-size: 24px;
    }

    .corpofer-price .new {
        font-size: 18px;
    }

    .whatsapp-float {
        right: 20px;
        bottom: 20px;
    }

    .whatsapp-float img {
        width: 65px;
        height: 65px;
    }

    .home-products,
    .about-page,
    .mission-vision,
    .values,
    .team,
    .products-page,
    .contact-page {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .contact-form,
    .contact-info .info-card,
    .contact-info .working-hours {
        padding: 1.5rem;
    }

    .support-cards {
        margin: 2rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

.product-detail-content {
    padding: 60px 0 80px;
    background-color: #fff;
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.product-image-container {
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image-container img:hover {
    transform: scale(1.03);
}

.product-info-container h2,
.product-full-width-section h2 {
    color: #1e4c3d;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-bottom: 2px solid #e8f8f5;
    padding-bottom: 1rem;
}

.product-info-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.product-info-container li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.product-info-container li i {
    color: #28a745;
    margin-right: 1rem;
    margin-top: 5px;
}

.product-content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.product-content-table th,
.product-content-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e8f8f5;
}

.product-content-table th {
    background-color: #f8f9fa;
    color: #1e4c3d;
    font-weight: 600;
}

.product-content-table td:last-child {
    font-weight: 500;
}

.product-full-width-section {
    margin-top: 4rem;
}

.product-full-width-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

@media (min-width: 992px) {
    .product-detail-main {
        grid-template-columns: 1fr 1.5fr;
    }
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.info-section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.page-home .values-section {
    background-color: #f8f9fa;
}

.page-home .home-products {
    background-color: #f0f7f0;
}

.page-home .innovation-section {
    background-color: #f8f9fa;
}

.page-home .blog-section {
    background-color: #f0f7f0;
}

.info-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-home .info-section {
    position: relative;
}

.page-home .info-section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), transparent);
    z-index: 2;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e4c3d;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.values-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.values-section .container {
    text-align: center;
}

.values-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 50px;
}

.value-card {
    position: relative;
    /* Required for the shine pseudo-element */
    overflow: hidden;
    /* Hides the shine when it's off-screen */
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f8f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 400px;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(30, 76, 61, 0.1), transparent);
    transition: left 0.6s ease;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(30, 76, 61, 0.15);
}

.value-card:hover::before {
    left: 100%;
    /* Move shine effect across the card */
}

.value-card .value-icon {
    font-size: 2.5rem;
    color: #1e4c3d;
    /* Theme's dark green */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

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

.value-card h3 {
    font-size: 1.5rem;
    color: #1e4c3d;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.innovation-section {
    background-color: #fff;
}

.innovation-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.innovation-image,
.innovation-text {
    flex: 1;
    min-width: 300px;
}

.innovation-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.innovation-text .section-title {
    text-align: left;
}

.innovation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.innovation-text .btn {
    display: inline-block;
    background-color: #1e4c3d;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.innovation-text .btn:hover {
    background-color: #0f2e22;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .innovation-text .section-title {
        text-align: center;
    }

    .innovation-content {
        text-align: center;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(30, 76, 61, 0.1);
    border: 1px solid rgba(30, 76, 61, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 65px rgba(30, 76, 61, 0.15);
}

.blog-card-image {
    width: 100%;
    padding-top: 55%;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #5c5c5c;
}

.blog-badge {
    background: rgba(30, 76, 61, 0.12);
    color: #1e4c3d;
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-content h3 {
    font-size: 1.35rem;
    margin: 0;
    color: #1e4c3d;
}

.blog-card-content p {
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-tag {
    background: #f4f9f6;
    color: #1e4c3d;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(30, 76, 61, 0.15);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1e4c3d;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-link:hover {
    color: #113226;
    gap: 0.6rem;
}

.blog-placeholder,
.blog-fallback {
    text-align: center;
    width: 100%;
    padding: 3rem;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed rgba(30, 76, 61, 0.2);
    color: #555;
}

.blog-detail-section {
    background: #f8f9fa;
    padding-top: 40px;
}

.blog-detail {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 30px 60px rgba(30, 76, 61, 0.08);
    border: 1px solid rgba(30, 76, 61, 0.08);
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-detail h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: #1e4c3d;
}

.blog-detail-excerpt {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.blog-detail-image {
    width: 100%;
    padding-top: 45%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
}

.blog-detail-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.blog-detail-body p {
    margin: 0;
}

.blog-detail-actions {
    margin-top: 2rem;
}

.blog-detail-empty {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed rgba(30, 76, 61, 0.2);
}

.page-blog main {
    background: #f8f9fa;
}

.page-blog .blog-card-content h3 {
    color: #1e4c3d;
}

.page-blog .blog-card-content p {
    color: #4a4a4a;
}

.page-blog .blog-detail-body,
.page-blog .blog-detail-body p,
.page-blog .blog-detail-body h3 {
    color: #2b3a32;
}

.page-blog .blog-detail-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-content {
        padding: 1.5rem;
    }
}


.about-page {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-page h2 {
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-vision {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mv-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mv-card h3 {
    color: #1e4c3d;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.values {
    padding: 80px 0;
    background-color: #ffffff;
}

.values h2 {
    text-align: center;
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.values-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.value-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 400px;
}

.value-card h3 {
    color: #1e4c3d;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

.team {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team h2 {
    text-align: center;
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.team-content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.products-page {
    padding: 80px 0;
}

.products-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.products-intro h2 {
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.products-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq-page {
    padding: 80px 0;
}

.faq-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-intro h2 {
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.faq-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq-categories {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-categories h3 {
    color: #1e4c3d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-links a {
    background: #e8f8f5;
    color: #1e4c3d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-links a:hover {
    background: #1e4c3d;
    color: white;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    color: #1e4c3d;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-bottom: 2px solid #e8f8f5;
    padding-bottom: 0.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: #1e4c3d;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-help {
    padding: 60px 0;
    text-align: center;
    background-color: white;
    border-radius: 15px;
    margin-top: 4rem;
}

.faq-help h2 {
    color: #1e4c3d;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-page {
    padding: 80px 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-intro h2 {
    color: #1e4c3d;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info .info-card,
.contact-info .working-hours,
.contact-info .departments {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.contact-info h4 {
    color: #1e4c3d;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #1e4c3d;
}

.hours-item,
.dept-item {
    margin-bottom: 0.5rem;
}

.dept-item a {
    color: #1e4c3d;
    text-decoration: none;
}

.dept-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: #1e4c3d;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e4c3d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e4c3d;
    box-shadow: 0 0 0 2px rgba(30, 76, 61, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-label input {
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: #1e4c3d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0f2e22;
}

@media (min-width: 768px) {
    .mv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.support-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.support-card {
    background: #e8f8f5;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 76, 61, 0.1);
}

.support-card h3 {
    color: #1e4c3d;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-link {
    color: #1e4c3d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.support-link:hover {
    text-decoration: underline;
}

.location-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.location-section h3 {
    color: #1e4c3d;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.location-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.location-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.location-item strong {
    color: #1e4c3d;
    display: block;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .support-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (min-width: 1024px) {
    .location-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    /* Remove background, shadow, and sizing from the container */
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
}

.whatsapp-float img {
    width: 100px;
    /* Control size from the image */
    height: 100px;
    display: block;
    /* Remove any background or radius that might be inherited */
    background-color: transparent;
    border-radius: 0;
}

/* On home page, hide the button initially */
.page-home .whatsapp-float {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* On home page, make it visible and animate it */
.page-home .whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
    animation: shake-float 0.8s 1 ease-out;
}

@media (max-width: 768px) {
    .whatsapp-float img {
        width: 60px;
        height: 60px;
    }

    .support-chat-section {
        padding: 2rem 0;
    }

    .chat-container {
        width: min(520px, 94vw);
        margin: 1rem auto;
        height: clamp(460px, 75vh, 560px);
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-header {
        padding: 0.85rem 1rem;
    }

    .chat-input-area {
        padding: 1rem;
    }

    .message {
        font-size: 0.95rem;
        max-width: 85%;
        padding: 0.7rem 1rem;
        border-radius: 16px;
    }

    .message-content {
        max-width: 90%;
        font-size: 0.95rem;
    }
}

@keyframes shake-float {
    0% {
        transform: translateY(0)
    }

    25% {
        transform: translateY(-6px) rotate(2deg);
    }

    50% {
        transform: translateY(3px) rotate(-1deg);
    }

    75% {
        transform: translateY(-3px) rotate(1deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

.support-chat-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.chat-container {
    width: min(720px, 95vw);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: clamp(520px, 70vh, 620px);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1E8449, #2ECC71);
    color: white;
    border-bottom: 1px solid #ddd;
}

.chat-header .mascot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 1rem;
    background-image: url('assets/mascot/assistant.png');
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.chat-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #fff;
    min-height: 0;
}

.message {
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.35;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
}

.message.user {
    background-color: #1E8449;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.ai {
    background-color: #f1f3f5;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.typing {
    font-style: italic;
    color: #888;
    background-color: #e9ecef;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
}

.message.typing .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888;
    margin: 0 2px;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.message.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}


.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

#chat-input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 1rem;
}

#send-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: #1E8449;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

#send-btn:hover {
    background-color: #145A32;
}

.chat-options {
    padding: 1rem;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.chat-option-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #1E8449;
    color: #1E8449;
    background-color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    animation: fadeIn 0.4s ease-out;
}

.chat-option-btn:hover {
    background-color: #1E8449;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes typing-bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

/* Add a class for mobile touch to trigger the hover state */
.corpofer-container.mobile-hover .corpofer-overlay {
    opacity: 1;
}

.corpofer-container.mobile-hover .corpofer-head,
.corpofer-container.mobile-hover .corpofer-price,
.corpofer-container.mobile-hover .corpofer-cart {
    transform: translateY(0px);
    opacity: 1;
}
