:root {
    --primary-color: #006E37;
    --primary-color-hover: #005a2d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.primary-text {
    color: var(--primary-color) !important;
    font-weight: 700;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-family);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar refinement */
.navbar-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1100px;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #006E374D;
    border-radius: 100px;
    padding: 4px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #006E377D;
}

.navbar-logo img {
    height: 65px;
    display: block;
}

.navbar-links {
    display: flex;
    gap: 25px;
}

.navbar-links a {
    font-weight: 600;
    font-size: 14px;
    color: #444;
    position: relative;
    padding: 2px 0;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-links a:hover {
    color: var(--primary-color);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-app {
    background: var(--primary-color);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-app:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 110, 55, 0.3);
}

.lang-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 130vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mySwiper,
.swiper-wrapper,
.swiper-slide {
    height: 100% !important;
    width: 100%;
}

.mySwiper .swiper-slide {
    position: relative;
    background: white;
}

.mySwiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/asset/hero_background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.mySwiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/asset/pattern.png');
    background-repeat: repeat;
    opacity: 0.2;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
}

.hero-text-large {
    font-size: 110px;
    font-weight: 800;
    color: #006E37;
    margin-bottom: 20px;
    line-height: 1.1;
}

[dir="rtl"] .hero-text-large {
    font-family: 'Cairo', sans-serif;
    font-size: 100px;
}

.hero-description {
    font-size: 35px;
    font-weight: 500;
    color: #333;
    max-width: 950px;
    margin: 0 auto 50px;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 110, 55, 0.4);
}

.btn-primary i {
    width: 32px;
    height: 32px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    color: #006E37;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
}

.btn-outline:hover {
    background: rgba(0, 110, 55, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Custom Swiper Buttons */
.swiper-button-next,
.swiper-button-prev {
    background: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    color: #006E37 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 50 !important;
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 110, 55, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none !important;
}

.swiper-button-next::before,
.swiper-button-prev::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
}

.swiper-button-next::before {
    content: "\f054";
}

.swiper-button-prev::before {
    content: "\f053";
}

[dir="rtl"] .swiper-button-next::before {
    content: "\f053";
}

[dir="rtl"] .swiper-button-prev::before {
    content: "\f054";
}

/* Mobile Menu Popup Style */
.mobile-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    border-radius: 30px;
    background: #f0f7f3;
    z-index: 2050;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drawer-header img {
    height: 50px;
}

.close-drawer {
    font-size: 35px;
    background: transparent;
    color: var(--primary-color);
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.drawer-content a {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    transition: var(--transition);
}

.drawer-content a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.drawer-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-app-side {
    background: var(--primary-color);
    color: white !important;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
}

.btn-app-side:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 110, 55, 0.3);
}

.lang-side {
    color: var(--primary-color) !important;
    text-align: center;
    font-weight: 800;
    cursor: pointer;
}

/* Partners Section */
.partners {
    padding: 20px 0;
    background: white;
    text-align: center;
}

.partners-title {
    font-size: 42px;
    color: #006E37;
    margin-bottom: 30px;
    font-weight: 400;
}

.partners-title span {
    font-weight: 800;
}

.partners-logos {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 40px;
    margin-top: 30px;
}

.partner-item {
    transition: var(--transition);
    cursor: pointer;
}

.partner-item img {
    height: 70px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition);
}

.partner-item:hover img {
    transform: scale(1.15) translateY(-5px);
    filter: grayscale(0) opacity(1);
}

/* About Section - Matching the Banner Design side-by-side */
.about-section {
    padding: 60px 0;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.about-section-final {
    /* inherits base section styles and uses separate inner classes */
}

.about-section-final .about-content-wrapper {
    flex-direction: row-reverse;
    justify-content: center;
    gap: 60px;
    max-width: 90vw;
    width: 90vw;
    margin: 0 auto;
}

.about-section-final .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-section-final.about-section-copy .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-section-final.about-section-copy .about-content-wrapper,
.about-section-final .about-content-wrapper {
    max-width: 90vw;
    width: 90vw;
    margin: 0 auto;
}

.about-section-final .about-text-content {
    flex-direction: row;
} */

.about-section-final .about-text-content {
    flex: 1 1 0;
    max-width: 640px;
    text-align: right;
}

[dir="ltr"] .about-section-final .about-text-content {
    text-align: left;
}

.about-section-final .about-text-content-final p {
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.01em;
    color: #2b2b2b;
    margin: 0;
}

.about-section-final .about-watermark {
    flex: 0 0 auto;
    justify-content: center;
}

.about-section-final .about-watermark-text {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.fridge-section {
    position: relative;
    width: 100%;
    padding: 0px 0 80px;
    background: #fff;
    overflow: hidden;
}

.fridge-section .fridge-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

.fridge-section .fridge-bg {
    width: 100%;
    height: auto;
    display: block;
}

.fridge-section .shelf-overlay {
    position: absolute;
    top: 21%;
    height: 19%;
    left: 7%;
    right: 7%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.fridge-section .category-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 32%;
    gap: 2px;
}

.fridge-section .category-group img {
    height: auto;
    width: auto;
    max-width: 25%;
    filter: drop-shadow(1px 3px 5px rgba(0,0,0,0.2));
    pointer-events: auto;
    transition: transform 0.2s;
}

.fridge-section .category-group img:hover {
    transform: scale(1.1) translateY(-5px);
}

.fridge-section .h-milk { height: 100% !important; }
.fridge-section .h-cheese1 { height: 50% !important; }
.fridge-section .h-cheese2 { height: 60% !important; }
.fridge-section .h-cheese3 { height: 95% !important; }
.fridge-section .h-ghee2 { height: 85% !important; }
.fridge-section .h-ghee1 { height: 90% !important; }

@media (max-width: 991px) {
    .about-section-final .about-content-wrapper {
        flex-direction: column-reverse;
        gap: 25px;
    }
    .about-section-final .about-text-content {
        max-width: none;
        text-align: center;
    }
    .about-section-final .about-watermark-text {
        font-size: 3rem;
    }
}

.about-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../../images/asset/pattern_2.png');
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
}

.about-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-direction: row-reverse;
}

/* Arabic RTL Logic: Logo on Right, Text on Left for non-final sections */
[dir="rtl"] .about-section:not(.about-section-final) .about-content-wrapper {
    flex-direction: row-reverse;
}

.about-section:not(.about-section-final) .about-text-content {
    flex: 1.5;
    text-align: right;
}

[dir="ltr"] .about-section:not(.about-section-final) .about-text-content {
    text-align: left;
}

.about-text-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #444;
}

.about-watermark {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-watermark img {
    height: 90px;
    width: auto;
    opacity: 1; /* Made clear as in the banner */
    transition: var(--transition);
}

/* Animations */
.animate-fadeInUp {
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-container { width: 90%; }
    .navbar-links, .hide-mobile { display: none !important; }
    .menu-toggle { display: flex; }
    .hero-text-large { font-size: 45px !important; }
    .about-content-wrapper { flex-direction: column-reverse !important; text-align: center; }
    .about-text-content { text-align: center !important; }
    .about-watermark img { height: 100px; }
}

@media (max-width: 768px) {
    .btn-primary, .btn-outline { width: 100%; max-width: 300px; justify-content: center; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-description { font-size: 24px; }
    .hero-text-large { font-size: 38px !important; }
    .partners-title { font-size: 28px !important; }
    .about-text-content p { font-size: 16px; }
}

/* Milk Products Section */
.milk-products-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #fdfdfd;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 110, 55, 0.05);
}

.milk-products-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

/* Reversed Layout for English: Bottle on Left, Cards on Right */
[dir="ltr"] .milk-products-wrapper {
    flex-direction: row-reverse;
}

/* Cards on Left, Bottle on Right for Arabic */
[dir="rtl"] .milk-products-wrapper {
    flex-direction: row-reverse;
}

/* Slider Side (Left in RTL, Right in LTR) */
.slider-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.milkSwiper {
    width: 100%;
    max-width: 400px;
    height: 500px;
    padding: 10px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.milkSwiper .swiper-slide {
    border-radius: 20px;
    background: transparent !important;
    overflow: visible;
}

.milk-card {
    width: 100%;
    height: 100%;
    border: 2.5px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: #fff;
    z-index: 5;
}

.milk-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fdfdfd;
    transition: var(--transition);
}

.milk-card:hover img {
    transform: scale(1.05);
}

/* Slider Navigation */
.milk-slider-nav {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    z-index: 100;
}

.milk-prev, .milk-next {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    background: white;
}

.milk-prev:hover, .milk-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* RTL Arrow Fix */
[dir="rtl"] .milk-slider-nav { flex-direction: row-reverse; }

/* Info Side */
.milk-info-side {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.milk-bottle-wrapper {
    margin-bottom: 30px;
    transition: var(--transition);
}

.milk-bottle-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
}

.milk-bottle-img {
    height: 320px;
    width: auto;
    object-fit: contain;
}

.milk-description {
    max-width: 450px;
    text-align: center;
}

.milk-description p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--primary-color);
}

.milk-description strong {
    font-weight: 800;
}

[dir="rtl"] .milk-description p {
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .milkSwiper { max-width: 400px; height: 500px; }
    .milk-bottle-img { height: 350px; }
}

@media (max-width: 991px) {
    .milk-products-section { min-height: auto; padding: 40px 10px; }
    .milk-products-wrapper { flex-direction: column !important; gap: 30px; align-items: center; padding: 0 10px; }
    .slider-side, .milk-info-side { width: 100%; flex: none; }
    .milkSwiper { width: 100% !important; max-width: 100% !important; height: auto !important; padding: 0; }
    .milkSwiper .swiper-wrapper,
    .milkSwiper .swiper-slide { width: 100% !important; max-width: 100% !important; height: auto !important; }
    .milk-card { min-height: auto; height: auto; }
    .milk-card img { height: auto; }
    .milk-bottle-img { width: 100%; max-width: 320px; height: auto; }
    .milk-info-side { padding: 0; }
    .milk-description { max-width: 100%; padding: 0 10px; }
    .milk-description p { font-size: 16px; }
    .milk-slider-nav { justify-content: center; width: 100%; padding: 0 10px; }
    .milk-prev, .milk-next { min-width: 45px; min-height: 45px; }
}

@media (max-width: 768px) {
    .milk-products-section { padding: 30px 8px; }
    .milk-products-wrapper { gap: 25px; }
    .milkSwiper { padding: 0; }
    .milk-card { min-height: 220px; }
    .milk-bottle-img { max-width: 280px; }
    .milk-description { padding: 0 12px; }
    .milk-description p { font-size: 15px; }
    .milk-prev, .milk-next { width: 45px; height: 45px; font-size: 15px; }
}

@media (max-width: 480px) {
    .milk-products-section { padding: 20px 6px; }
    .milk-products-wrapper { gap: 18px; }
    .milkSwiper { padding: 0; }
    .milk-card { min-height: 200px; border-radius: 18px; }
    .milk-bottle-img { max-width: 240px; }
    .milk-description { padding: 0 8px; }
    .milk-description p { font-size: 14px; }
    .milk-prev, .milk-next { width: 42px; height: 42px; font-size: 14px; }
}