﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

:root {
    --primary-color: #800020;
    /* Burgundy */
    --primary-dark: #4a0012;
    --primary-light: #a31534;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --text-light: #fff;
    --font-main: 'Raleway', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 100%;
    /* Maximize width */
    margin: 0 auto;
}

.logo {
    animation: logoEntrance 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
    /* Adjust based on actual logo aspect ratio */
}

.logo img:hover {
    transform: scale(1.05);
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.5);
    }

    40% {
        opacity: 0.9;
        /* Hızlıca 'Anasayfa' yazısına doğru sağa kayar ve biraz büyür */
        transform: translateX(30px) scale(1.05);
    }

    100% {
        opacity: 1;
        /* Yavaşça kendi orijinal merkezine oturur */
        transform: translateX(0) scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
/* Hero Section & 3D Slideshow */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    /* Remove top margin, let it go behind header if needed, or stick to nav */
    padding-top: 80px;
    /* Compensation for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('../images/hero_wheat.jpg') no-repeat center center/cover;
    /* Ken Burns Effect */
    animation: kenBurns 30s infinite alternate;
    transform-origin: center center;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slight overlay for text readability */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: transparent;
    /* Transparent bg on hover */
    color: var(--primary-color);
    /* Text becomes primary color */
    transform: translateY(-3px);
    /* Lift effect */
    box-shadow: 0 10px 20px rgba(128, 0, 32, 0.2);
    /* Enhanced shadow */
}

/* Sections General */
section {
    padding: 4rem 2rem;
    max-width: 100%;
    /* Maximize width */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2rem;
    position: relative;
    transition: transform 0.3s ease;
    display: inline-block;
    /* Allow transform */
    width: 100%;
    /* Restore width centering*/
}

.section-title:hover {
    transform: scale(1.02);
    /* Slight pop */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* About Preview */
.about-preview {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    /* Ensure zoom stays within box */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s ease;
    display: block;
    /* Remove bottom space */
}

.about-image:hover img {
    transform: scale(1.05);
    /* Smooth zoom */
}

/* About Page Specific Styles */
.about-content {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1600px;
    /* Wider content but contained for readability */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.about-text-full p {
    margin-bottom: 1.5rem;
}

.about-image-full {
    display: flex;
    gap: 20px;
    width: 100%;
}

.about-image-full img {
    flex: 1;
    width: 100%;
    /* Ensures they take up available space */
    height: 400px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Make sure images are equal width */
    min-width: 0;
}

@media (max-width: 768px) {
    .about-image-full {
        flex-direction: column;
    }

    .about-image-full img {
        height: auto;
        min-height: 300px;
    }
}

/* Swiper 3D Coverflow Styles */
.productSwiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    height: 600px;
}

.productSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    height: 450px;
    filter: blur(2px);
    transition: filter 0.3s;
}

.productSwiper .swiper-slide-active {
    filter: blur(0);
}

.product-3d-card {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    text-align: center;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.productSwiper .swiper-slide-active .product-3d-card {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 20px rgba(128, 0, 32, 0.15);
    border-color: rgba(128, 0, 32, 0.3);
}

.product-3d-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s;
}

.productSwiper .swiper-slide-active .product-3d-card img {
    transform: scale(1.1);
}

.product-3d-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.product-3d-card p {
    font-size: 1.1rem;
    color: #555;
    flex-grow: 1;
}

.btn-3d {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

.btn-3d:hover {
    background: #a00028;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.4);
    color: white;
}

/* Pagination tuning */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* Responsive Fallback */
@media (max-width: 768px) {
    .productSwiper {
        height: 550px;
    }

    .productSwiper .swiper-slide {
        width: 280px;
        height: 420px;
    }

    .product-3d-card {
        padding: 20px;
    }

    .product-3d-card img {
        height: 180px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    /* Changed to match logo/primary color as requested */
    color: var(--text-light);
    padding: 3rem 5% 1rem;
    margin-top: auto;
    font-family: 'Roboto', sans-serif;
    /* Updated font as requested */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    margin-left: -15px;
    /* Offset the padding to align with text below */
}

.footer-section h4:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle light background to contrast the dark footer */
    transform: scale(1.05);
    color: #fff;
    /* Ensure text stands out cleanly on hover */
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-section p {
    margin-bottom: 1rem;
    /* Added spacing as requested */
}

.footer-address {
    transition: color var(--transition-speed);
}

.footer-address:hover {
    color: #ffd700;
    text-decoration: none;
}

.footer-btn {
    border: 2px solid #fff !important;
    background-color: transparent !important;
    color: #fff !important;
}

.footer-btn:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-slogan {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-top: 1rem;
    font-style: italic;
    color: #fff;
    /* White to match footer text */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
/* Language Dropdown */
.lang-dropdown a {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between flag and arrow */
}

.lang-flag {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    /* 3D Button Effect */
    box-shadow: 0 3px 0 #bbb;
    transition: all 0.1s;
}

.lang-flag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #bbb;
}

.lang-flag:active,
.lang-dropdown a:active .lang-flag {
    transform: translateY(3px);
    box-shadow: none;
}

.lang-dropdown {
    position: relative;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    border-radius: 4px;
    z-index: 1001;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}

.lang-menu li {
    margin: 0;
}

.lang-menu a {
    display: block;
    padding: 10px;
    font-size: 0.9rem;
}

.lang-menu a:hover {
    background-color: var(--secondary-color);
}

/* Page Header */
.page-header {
    text-align: center;
    background-color: var(--primary-color);
    padding: 4rem 2rem;
    margin-top: 80px;
}

.page-header.info-bg,
.page-header.about-bg,
.page-header.hr-bg,
.page-header.products-bg {
    background: var(--primary-color);
    min-height: 300px;
    /* Use min-height to allow expansion on mobile */
    height: auto;
    padding: 6rem 2rem 4rem;
    /* Add more padding for spacing */
    display: flex;
    flex-direction: column;
    /* This fixes the overlap */
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Contact page header (no specific background class yet) */
.page-header:not(.info-bg):not(.about-bg):not(.hr-bg):not(.products-bg) {
    background: var(--primary-color);
    min-height: 300px;
    height: auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* Ensure H1 and divider match */
.page-header .section-title h1,
.page-header.info-bg .section-title h1,
.page-header.about-bg .section-title h1,
.page-header.hr-bg .section-title h1,
.page-header.products-bg .section-title h1 {
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-header .section-title::after,
.page-header.info-bg .section-title::after,
.page-header.about-bg .section-title::after,
.page-header.hr-bg .section-title::after,
.page-header.products-bg .section-title::after {
    background-color: #fff;
}

/* Form Page Styles */
.form-section {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
    min-height: 60vh;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input[type="file"] {
    padding: 5px;
}

/* Products Page Layout */
.products-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Single row */
    justify-content: flex-start;
    /* Align start to allow scrolling */
    gap: 1rem;
    overflow-x: auto;
    /* Horizontal scroll on small screens */
    padding-bottom: 2rem;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
}

.product-card {
    flex: 1 1 calc(20% - 1rem);
    /* 5 items roughly fit 100% and grow to fill space */
    min-width: 250px;
    /* Ensure they don't get too small */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    text-align: center;
    display: flex;
    /* Flex column to stretch content */
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 250px;
    /* Fixed height for uniformity */
    object-fit: contain;
    /* Ensure the entire bag fits in the square */
    object-position: center bottom;
    /* Align bag to the bottom like it's resting on the ground */
    background-color: transparent;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

/* Dynamic Zoom Effect */
.product-card:hover {
    transform: scale(1.05);
    /* Zoom in */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow */
    z-index: 10;
    /* Bring to front */
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-submit:hover {
    background-color: #a00014;
    /* Darker shade of secondary */
}

.page-header.products-bg .section-title::after {
    background-color: #fff;
}

/* Products Info & Usage Styling (Enhanced) */
.product-info {
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    text-align: left;
    border-top: 1px solid #f0f0f0;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    text-align: center;
    font-family: var(--font-heading);
}

.product-info .purpose {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.product-desc {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    background: rgba(128, 0, 32, 0.04);
    padding: 12px 15px;
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    font-style: auto;
}

.usage {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.usage strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.usage ul {
    list-style: none;
    /* remove default bullets for custom ones */
    padding-left: 0;
    margin-top: 0;
    font-size: 0.9rem;
    color: #444;
}

.usage ul li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}

.usage ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* About Full */
.about-container {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    align-items: center;
}

.about-text-full {
    flex: 1;
}

.about-text-full p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image-full {
    flex: 1;
}

.about-image-full img {
    width: 100%;
    border-radius: 10px;
}

/* HR Grid */
.hr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.hr-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.hr-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Info Grid */
.info-section {
    padding: 2rem 5%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

/* Info Layout Adjustments */
.info-card,
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(128, 0, 32, 0.2) !important;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.btn-text {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column;
    }
}



/* Contact Page Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info .contact-item {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.contact-info .contact-item:nth-child(1) {
    animation-delay: 0.2s;
}

/* Address */
.contact-info .contact-item:nth-child(2) {
    animation-delay: 0.5s;
}

/* Phone */
.contact-info .contact-item:nth-child(3) {
    animation-delay: 0.8s;
}


/* Email */
.contact-info .contact-item:nth-child(4) {
    animation-delay: 1.1s;
}

/* Social Media */

/* --- Products Page Sequential Loading --- */
.products-grid .product-card {
    opacity: 0;
    animation: fadeInUpProduct 0.6s ease-out forwards;
}

.products-grid .product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.3s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.5s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.7s;
}

.products-grid .product-card:nth-child(5) {
    animation-delay: 0.9s;
}

.products-grid .product-card:nth-child(6) {
    animation-delay: 1.1s;
}

.products-grid .product-card:nth-child(7) {
    animation-delay: 1.3s;
}

.guide-section {
    opacity: 0;
    animation: fadeInUpProduct 0.8s ease-out forwards;
    animation-delay: 1.4s;
    /* Ensures this loads last */
}

@keyframes fadeInUpProduct {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Post Formatting */
.post-body {
    text-align: justify;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.post-body th,
.post-body td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Custom Dropdown for Subsidiaries */
.nav-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
    padding: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    margin: 0;
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    color: #333 !important;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}


/* --- Products Page Grid Layout --- */
.products-list {
    padding: 3rem 2%;
    max-width: 98%;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    padding: 30px;
    /* Safely accommodates the 30px-40px box shadow without overflowing */
}

/* Ensure long text drops lines rather than pushing layout out */
.product-card {
    word-break: break-word;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpProduct 0.6s ease forwards;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 2rem;
    background-color: #ffffff;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUpProduct {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for 5 products */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.3s;
}

.product-card:nth-child(3) {
    animation-delay: 0.5s;
}

.product-card:nth-child(4) {
    animation-delay: 0.7s;
}

.product-card:nth-child(5) {
    animation-delay: 0.9s;
}

/* Hide Windows Native Horizontal Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 0px;
    /* Hide horizontal scrollbar completely */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}