/*
Theme Name: SZ Institute
Theme URI: https://szinstitute.bg/
Author: Your Name
Author URI: https://szinstitute.bg/
Description: Custom theme for SZ Institute
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: szinstitute
*/

/* ==================== ROOT VARIABLES ==================== */
:root { --primary: #2a5c45; --secondary: #d4a762; --dark: #1a2e24; --light: #f8f8f8; --text: #333333; --text-light: #777777; --white: #ffffff; --transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1); }

/* ==================== BASE STYLES ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background-color: var(--white); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.bg-light { background: var(--light); }

/* ==================== LAYOUT COMPONENTS ==================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title h2, .farm-title, .achievement-card h2, .contact-form h2, .contact-info h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; position: relative; display: inline-block; }
.section-title h2:after, .farm-title:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--secondary); }
.section-title p { color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* ==================== BUTTONS ==================== */
.btn { display: inline-block; padding: 12px 30px; background-color: var(--secondary); color: var(--dark); border: none; border-radius: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; z-index: 1; }
.btn:before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-color: var(--primary); z-index: -1; transition: var(--transition); }
.btn:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.btn:hover:before { left: 0; }

/* ==================== HEADER & NAVIGATION ==================== */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); padding: 16px 0; background: var(--white); }
header.scrolled { background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); padding: 10px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 10px; }
.logo span { color: var(--secondary); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-menu li { position: relative; margin-left: 30px; list-style: none; }
.nav-menu li a { font-weight: 500; position: relative; padding: 5px 0; }
header.scrolled .nav-menu li a, header.scrolled .mobile-menu-btn { color: var(--text); }
.nav-menu li a:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary); transition: var(--transition); }
.nav-menu li a:hover:after { width: 100%; }
.nav-menu li a:hover { color: var(--secondary); }
.nav-menu li ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 2px 6px rgba(0,0,0,0.15); padding: 10px 0; min-width: 180px; z-index: 1000; }
.nav-menu li:hover > ul.sub-menu { display: block; }
.sub-menu li a { padding: 15px 0; line-height: 2.5; }
.mobile-menu-btn { display: none; cursor: pointer; font-size: 24px; color: var(--white); }

/* ==================== LANGUAGE SWITCHER ==================== */
.language-switcher { display: flex; gap: 5px; padding: 5px 10px; }
.language-btn { background: none; border: none; cursor: pointer; font-size: 20px; padding: 5px; border-radius: 3px; transition: all 0.3s ease; }
.language-btn:hover { transform: scale(1.1); }
.language-btn.active { background: #f0f0f0; box-shadow: 0 0 5px rgba(0,0,0,0.2); }

/* ==================== HERO SECTION ==================== */
.hero { height: 100vh; min-height: 800px; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; color: var(--white); position: relative; overflow: hidden; transition: background-image 1.2s cubic-bezier(0.65, 0, 0.35, 1); }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)); z-index: 0; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 800px; transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);  margin: 0 auto;  }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.3s; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.6s; }
.hero-content .btn { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.9s; }
.hero-images { position: relative; height: 500px; perspective: 1200px; }
.hero-image-container { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; }
.hero-image { position: absolute; width: 300px; height: 400px; border-radius: 15px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); background-size: cover; background-position: center; transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1); cursor: pointer; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
.hero-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); transition: all 0.6s ease; }
.hero-image:hover::after { background: rgba(0, 0, 0, 0.1); }
.hero-image:nth-child(1) { top: 0; left: 0; z-index: 4; transform: rotate(-8deg) translateY(0); background-image: url('https://img.freepik.com/premium-photo/cows-outdoor-farm-cows-eating-hay-stable_109285-8740.jpg'); }
.hero-image:nth-child(2) { top: 30px; left: 80px; z-index: 3; transform: rotate(-4deg) translateY(20px); background-image: url('https://img.freepik.com/free-photo/herd-sheep-grazing-pasture-daytime_181624-13845.jpg'); }
.hero-image:nth-child(3) { top: 60px; left: 160px; z-index: 2; transform: rotate(2deg) translateY(40px); background-image: url('https://img.freepik.com/free-photo/brown-hens-farm_335224-1152.jpg'); }
.hero-image:nth-child(4) { top: 90px; left: 240px; z-index: 1; transform: rotate(6deg) translateY(60px); background-image: url('https://img.freepik.com/premium-photo/view-white-bunnies_1048944-25959728.jpg'); }
.hero-image:hover, .hero-image.active { transform: rotate(0deg) scale(1.05) translateY(-30px); z-index: 5; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.hero-image.swipe-out { transform: translateX(100%) rotate(15deg); opacity: 0; transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.hero-image.swipe-in { transform: translateX(-100%) rotate(-15deg); opacity: 0; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--white); font-size: 1.5rem; animation: bounce 2s infinite; cursor: pointer; z-index: 2; }
.swipe-indicator { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; display: none; z-index: 2; }
.swipe-indicator i { margin: 0 10px; animation: pulse 2s infinite; }

/* ==================== PAGE HERO ==================== */
.page_hero { height: 70vh; min-height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; color: white; text-align: center; padding-top: 80px; transition: background-image 1.2s cubic-bezier(0.65, 0, 0.35, 1); }
.page_hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)); z-index: 0; }
.page_hero .container { z-index: 9; }
.page_hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 20px; }
.page_hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==================== FARMS GRID ==================== */
.farms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 260px)); gap: 30px; margin-top: 50px; justify-content: center; }
.farm-card { position: relative; height: 350px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: var(--transition); }
.farm-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }
.farm-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: var(--transition); }
.farm-card:hover .farm-card-bg { transform: scale(1.1); }
.farm-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: var(--white); opacity: 1; transition: var(--transition); }
.farm-card:hover .farm-card-overlay { background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)); }
.farm-card h3 { font-size: 1.8rem; margin-bottom: 10px; transform: translateY(20px); opacity: 0; transition: var(--transition); }
.farm-card p { transform: translateY(20px); opacity: 0; transition: var(--transition); margin-bottom: 20px; font-size: 0.9rem; }
.farm-card .btn { display: inline-block; width: fit-content; color: var(--white) !important; transform: translateY(20px); opacity: 0; transition: var(--transition); background-color: transparent; border: 2px solid var(--white); padding: 8px 20px; font-size: 0.9rem; }
.farm-card:hover h3, .farm-card:hover p, .farm-card:hover .btn { transform: translateY(0); opacity: 1; }
.farm-card:hover h3 { transition-delay: 0.1s; }
.farm-card:hover p { transition-delay: 0.2s; }
.farm-card:hover .btn { transition-delay: 0.3s; }
.farm-card-content { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px; line-height: 1.4; max-height: 5.6em; }

/* ==================== SINGLE FARM PAGE ==================== */
.farm-single { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.farm-header { text-align: center; margin-bottom: 40px; position: relative; }
.farm-title { font-size: 2.5rem; color: var(--primary); }
.farm-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.farm-content { font-size: 1.1rem; line-height: 1.6; }
.farm-content p { margin-bottom: 20px; }
.farm-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* ==================== ABOUT SECTION ==================== */
.about { background-color: var(--light); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.about-img img { width: 100%; height: auto; transition: var(--transition); }
.about-img:hover img { transform: scale(1.05); }
.about-text h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: var(--text-light); }
.about-features { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-item { display: flex; align-items: flex-start; }
.feature-icon { font-size: 1.5rem; color: var(--secondary); margin-right: 15px; margin-top: 5px; }
.feature-text h4 { font-size: 1.1rem; margin-bottom: 5px; }
.feature-text p { font-size: 0.9rem; }

/* ==================== ABOUT US PAGE ==================== */
.mission-vision-section { background-color: var(--light); }
.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.mission-card, .vision-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.5s ease, box-shadow 0.5s ease; position: relative; overflow: hidden; }
.mission-card:hover, .vision-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.mission-card .icon, .vision-card .icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
.mission-card h3, .vision-card h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; position: relative; z-index: 2; }
.mission-card p, .vision-card p { position: relative; z-index: 2; }
.history-section { position: relative; }
.milestones-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 260px)); gap: 30px; margin-top: 40px; justify-content:center; }
.milestone-card { background: var(--light); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; transition: all 0.3s ease; border-top: 5px solid var(--secondary); }
.milestone-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.milestone-year { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.milestone-card h4 { color: var(--primary); margin-bottom: 10px; }
.achievements-section { background-color: var(--light); }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.achievement-card { text-align: center; padding: 40px 30px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.5s ease; position: relative; overflow: hidden; }
.achievement-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.achievement-card:hover .counter { color: var(--secondary); }
.achievement-card .icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
.achievement-card .counter { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 15px 0; transition: color 0.5s ease; display: block; }
.team-section { background-color: white; }
.team-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.team-leader { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; width: 100%; max-width: 800px; display: flex; }
.team-leader:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.leader-img { width: 300px; height: 100%; object-fit: cover; }
.leader-info { padding: 30px; text-align: left; flex: 1; }
.leader-info h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.8rem; }
.leader-info .position { color: var(--secondary); font-weight: 600; margin-bottom: 20px; display: block; }
.leader-info p { margin-bottom: 20px; color: var(--text-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 260px)); gap: 30px; margin-top: 40px; justify-content: center; }
.team-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.team-img { height: 250px; width: 100%; object-fit: cover; }
.team-info { padding: 20px; }
.team-info h4 { color: var(--primary); margin-bottom: 5px; }
.team-info p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }
.values-section { background-color: var(--primary); color: white; }
.values-section .section-title h2 { color: white; }
.values-section .section-title p { color: rgba(255,255,255,0.8); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.value-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 10px; text-align: center; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.value-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.value-card .icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.value-card h4 { margin-bottom: 15px; }

/* ==================== ACTIVITIES PAGE ==================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { height: 180px; overflow: hidden; border-radius: 10px; position: relative; }
.activities-tabs { margin-bottom: 50px; }
.tab-buttons { display: flex; overflow-x: auto; padding-bottom: 10px; margin-bottom: 30px; gap: 10px; justify-content: center; }
.tab-btn { flex: 0 0 auto; padding: 10px 20px; background: #f0f0f0; color: #333; border: none; border-radius: 30px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.tab-btn.active { background: var(--primary); color: white; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.activity-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.activity-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.activity-card img { width: 100%; height: 200px; object-fit: cover; }
.activity-card-content { padding: 20px; }
.activity-tag { display: inline-block; background: #f0f0f0; color: var(--primary); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; }
.activity-card h3 { color: var(--primary); margin-bottom: 15px; }
.activity-card p { margin-bottom: 20px; font-size: 0.9rem; }
.activity-card .btn { padding: 8px 20px; font-size: 0.8rem; }

/* ==================== SERVICES SECTION ==================== */
.services { position: relative; background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover; color: var(--white); padding: 100px 0; }
.services .section-title { text-align: center; margin-bottom: 60px; }
.services .section-title h2 { color: var(--white); margin-bottom: 15px; }
.services .section-title .section-subtitle { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); gap: 30px; justify-content: center; }
.service-card { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 10px; padding: 40px 30px; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--white); }
.service-card p { margin-bottom: 20px; color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.service-card .btn-service { display: inline-block; width: fit-content; background-color: transparent; border: 2px solid var(--secondary); color: var(--white) !important; padding: 10px 25px; text-decoration: none; transition: var(--transition); margin: 0 auto; }
.service-card .btn-service:hover { background-color: var(--secondary); color: var(--white) !important; }
.service-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; transition: all 0.3s ease; display: inline-block; width: 80px; height: 80px; line-height: 80px; text-align: center; background: rgba(255, 255, 255, 0.1); border-radius: 50%; border: 2px solid var(--secondary); }
.service-card:hover .service-icon { transform: translateY(-5px) scale(1.1); background: var(--secondary); color: var(--white); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }

/* ==================== DEPARTMENTS SECTION ==================== */
.departments { background-color: var(--light); }
.departments-tabs { display: flex; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.department-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.department-text h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.department-text p { margin-bottom: 20px; color: var(--text-light); }
.department-features { margin-top: 30px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; }
.feature-list li i { color: var(--secondary); margin-right: 10px; }

/* ==================== EXPERIMENTAL BASE SECTION ==================== */
.experimental-base { position: relative; }
.base-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.base-item { background-color: var(--light); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: var(--transition); }
.base-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.base-img { height: 200px; overflow: hidden; }
.base-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.base-item:hover .base-img img { transform: scale(1.1); }
.base-content { padding: 30px; }
.base-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }
.base-content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.base-content .btn { padding: 8px 20px; font-size: 0.8rem; }

/* ==================== ACCORDION STYLES ==================== */
.accordion-item { background: white; border-radius: 10px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.accordion-header { width: 100%; padding: 20px; text-align: left; border: none; background: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.accordion-header h3 { color: var(--primary); margin: 0; font-size: 1.1rem; }
.accordion-header i { transition: transform 0.3s ease; }
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.accordion-content-inner { padding: 0 20px 20px; }
.accordion-item.active .accordion-content { max-height: 500px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

/* ==================== CONTACT SECTION ==================== */
.contact { background-color: var(--light); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.contact-details { margin-bottom: 30px; margin-top: 30px ; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { font-size: 1.2rem; color: var(--secondary); margin-right: 15px; margin-top: 5px; }
.contact-text h4 { font-size: 1.1rem; margin-bottom: 5px; }
.contact-text p, .contact-text a { font-size: 0.9rem; color: var(--text-light); }
.contact-text a:hover { color: var(--secondary); }
.social-links { display: flex; margin-top: 30px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--primary); color: var(--white); border-radius: 50%; margin-right: 10px; transition: var(--transition); }
.social-links a:hover { background-color: var(--secondary); color: var(--dark); transform: translateY(-5px); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Montserrat', sans-serif; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(212, 167, 98, 0.2); }
.contact-form textarea { height: 150px; resize: none; }

/* ==================== FOOTER ==================== */
footer { background-color: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 60px 0 20px; }
.footer-logo { display: flex; font-size: 1.3rem;  font-weight: 600; font-family: 'Playfair Display', serif; color: var(--secondary); align-items: center; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; flex-wrap: wrap;}
.footer-col h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--secondary); }
.footer-col p { margin-bottom: 20px; color: rgba(255, 255, 255, 0.7); }
.footer-links li { margin-bottom: 10px; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-bottom { text-align: center; color: rgba(255, 255, 255, 0.7); }
/* Make first column (logo + intro) stay on left */
.footer-container > .footer-col:first-child {
  flex: 1 1 40%; /* or any width you want */
}

/* Group Quick Links and Services on the right side */
.footer-container > .footer-col:nth-child(2),
.footer-container > .footer-col:nth-child(3) {
  flex: 1 1 25%; /* or appropriate width */
  text-align: right; /* right align text inside */
  margin-left: auto; /* push these columns to the right */
}

/* Optional: on small screens stack vertically */
@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
  }
  .footer-container > .footer-col:nth-child(2),
  .footer-container > .footer-col:nth-child(3),
  .footer-container > .footer-col:first-child {
    flex: 1 1 100%;
    text-align: left; /* left align on mobile */
    margin-left: 0;
  }
}
/* ==================== TESTIMONIALS ==================== */
.testimonials-section { padding: 60px 0; background: #f9f9f9; }
.testimonials-section .section-title { text-align: center; margin-bottom: 40px; }
.testimonial-carousel { padding: 0 20px; }
.testimonial-card { background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 25px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card .testimonial-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; }
.testimonial-card .message { font-style: italic; font-size: 16px; color: #555; margin-bottom: 20px; }
.testimonial-card .name { font-weight: bold; font-size: 18px; margin: 0; }
.testimonial-card .designation { color: #888; font-size: 14px; }
.testimonial-carousel .swiper-wrapper.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); gap: 30px; justify-content: center; }
.footer-bottom a { color: var(--secondary); }

/* ==================== CUSTOM CONTACT FORM ==================== */
.custom-contact-form { max-width: 600px; margin-top: 20px; }
.custom-contact-form input, .custom-contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; }
.custom-contact-form .notice { padding: 10px 15px; margin-bottom: 20px; border-radius: 5px; }
.notice.success { background: #dff0d8; color: #3c763d; }
.notice.error { background: #f2dede; color: #a94442; }

/* ==================== CONTACT INFO LINE ==================== */
.contact-info-line { display: flex; justify-content: start; flex-wrap: wrap; gap: 25px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.contact-info-line span { color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 8px; }
.contact-info-line i { font-size: 0.9rem; }
.contact-info-line a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s ease; }
.contact-info-line a:hover { color: var(--secondary); }

/* ==================== FOOTER LEGAL ==================== */
.footer-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.legal-links { display: flex; align-items: center; gap: 20px; }
.legal-links span, .legal-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.legal-links a:hover { color: var(--secondary); }
.footer-credit { color: rgba(255,255,255,0.7); }

/* ==================== TRANSPORT CARDS ==================== */
.transport-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.transport-card { background: white; border-radius: 10px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.transport-card:hover { transform: translateY(-10px); }
.transport-card .icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.transport-card h3 { color: var(--primary); margin-bottom: 15px; }

/* ==================== REGULATION CARDS ==================== */
.regulation-cards { display: flex; flex-wrap: wrap; justify-content: center;  gap: 30px; margin-top: 40px; }
.regulation-card:hover { transform: translateY(-10px); }
.regulation-card { background: white; border-radius: 10px; flex: 1 1 calc(33.333% - 20px);  max-width: 260px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.5s ease; }
.card-content { display: flex; align-items: flex-start; flex-direction: column; }
.card-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 20px; }
.regulation-card h3 { color: var(--primary); margin-bottom: 15px; }
.regulation-card p { margin-bottom: 15px; }
.card-btn { padding: 8px 20px; font-size: 0.9rem; }
section#governance {background: var(--light);}

/* ==================== DOCUMENTS SECTION ==================== */
.section-documents { background-color: var(--light); }
.documents-table { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.documents-table table { width: 100%; border-collapse: collapse; }
.documents-table th { padding: 15px; text-align: left; background: var(--primary); color: white; }
.documents-table td { padding: 15px; border-bottom: 1px solid #eee; }
.documents-table a { color: var(--primary); }
.documents-table i { margin-right: 5px; }
.info-box { text-align: center; margin-top: 50px; }
.info-box h3 { color: var(--primary); margin-bottom: 20px; }
.info-box p { max-width: 700px; margin: 0 auto 30px; }
.table-responsive {   width: 100%;  overflow-x: auto;  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */  -ms-overflow-style: -ms-autohiding-scrollbar; /* IE 10+ */}
.table {  width: 100%;  min-width: 600px;  table-layout: auto; }
.table th,.table td {  white-space: nowrap;  padding: 12px 15px;}
@media (max-width: 400px) {
  .table th,
  .table td {
    white-space: normal;
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-20px) translateX(-50%); } 60% { transform: translateY(-10px) translateX(-50%); } }

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-images { height: 400px; margin-top: 50px; }
  .swipe-indicator { display: block; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .team-leader { flex-direction: column; }
  .leader-img { width: 100%; height: 300px; }

  .about-content, .department-content, .contact-container { grid-template-columns: 1fr; }
  .about-img, .department-img { order: -1; }
  .section { padding: 70px 0; }
  .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-menu {  display: flex !important; position: fixed; top: 60px; left: -100%; width: 100%; height: calc(100vh - 60px); background-color: var(--white); flex-direction: column; align-items: center; justify-content: center; transition: var(--transition);}
  .mobile-menu-btn { display: block; color: var(--pirmary);}
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .farm-content-wrapper { grid-template-columns: 1fr; }
  .farm-image { order: -1; margin-bottom: 30px; }

  .hero-image { width: 250px; height: 350px; }
  .hero-image:nth-child(1) { left: 0; }
  .hero-image:nth-child(2) { left: 60px; }
  .hero-image:nth-child(3) { left: 120px; }
  .hero-image:nth-child(4) { left: 180px; }

  .mobile-menu-btn { display: block; }

  .nav-menu.active { left: 0; }
  .nav-menu li { margin: 15px 0; }
  .nav-menu li a { color: var(--text); font-size: 1.2rem; }
  header.scrolled .nav-menu { top: 70px; height: calc(100vh - 70px); }
  .hero { min-height: 700px; }
  .hero-content h1 { font-size: 2.5rem; }
  .section-title h2 { font-size: 2rem; }
  .about-features { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .service-card { padding: 30px 20px; }
  .contact-info-line { justify-content: flex-start; gap: 15px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-links { flex-wrap: wrap; gap: 10px 20px; }
  .footer-container{align-items: flex-start;}
}
@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-images { height: 350px; }
  .hero-image { width: 200px; height: 300px; }
  .hero-image:nth-child(2) { left: 50px; }
  .hero-image:nth-child(3) { left: 100px; }
  .hero-image:nth-child(4) { left: 150px; }
  .farms-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .farm-card { height: 300px; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: translateX(0); } 50% { opacity: 1; transform: translateX(10px); } }

/* ==================== CUSTOMIZER BUTTONS ==================== */
.customize-control-button .button { margin-top: 10px; width: 100%; text-align: center; padding: 10px; }
.customize-control-button .button-primary { background: #0073aa; border-color: #006799; box-shadow: 0 1px 0 #006799; color: #fff; text-decoration: none; text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799; }
.customize-control-button .button-primary:hover { background: #0085ba; border-color: #006799; color: #fff; }

/* ==================== PAGE HEADER ==================== */
section.page-header { min-height: 100vh; align-items: center; justify-content: center; display: flex; }

.language-switcher { display: flex; gap: 5px; }
.lang-btn { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; font-size: 14px; }
.lang-btn img { width: 20px; height: auto; }
.lang-btn.active { background: #f0f0f0; font-weight: bold; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card { background-color: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-info { padding: 20px; }
.project-tags { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; color: #777; }
.project-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0px; }
.project-budget { font-weight: bold; color: #333; }
.project-year { background: var(--light); color: var(--primary); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.project-type { color: var(--secondary); font-weight: 600; font-size: 16px; }

.page-content .container {  display: flex;  gap: 40px;  align-items: flex-start;  flex-wrap: wrap;}
.page-content .content-text,.page-content .content-image {  flex: 1 1 50%;   box-sizing: border-box;}

@media (max-width: 767px) {
  .page-content .container {
    flex-direction: column; /* stack vertically on mobile */
    gap: 20px;
  }
  .page-content .content-text,
  .page-content .content-image {
    flex: 1 1 100%; /* full width on mobile */
  }
}
