/* Custom Properties */
:root {
 --primary-color: #3f6212; /* Dark Green */
 --accent-color: #84cc16; /* Bright Green */
 --light-bg-color: #f8fafc; /* Light Grayish Blue */
 --white-color: #ffffff;
 --dark-text-color: #333333;
 --gray-text-color: #6b7280;
 --border-color: #e2e8f0;
 --shadow-color: rgba(0, 0, 0, 0.1);
 --header-height: 80px;
 --padding-sm: 1rem;
 --padding-md: 2rem;
 --padding-lg: 3rem;
 --border-radius-sm: 0.25rem;
 --border-radius-md: 0.5rem;
}

/* Base Styles & Reset */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: 'Roboto', sans-serif;
 line-height: 1.6;
 color: var(--dark-text-color);
 background-color: var(--white-color);
 overflow-x: hidden;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 var(--padding-md);
}

h1, h2, h3, h4, h5, h6 {
 font-family: 'Montserrat', sans-serif;
 color: var(--dark-text-color);
 margin-bottom: 1rem;
 line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
 margin-bottom: 1rem;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color 0.3s ease;
}

a:hover {
 color: var(--accent-color);
}

ul {
 list-style: none;
}

img {
 max-width: 100%;
 height: auto;
 display: block;
}

.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 font-weight: 600;
 border-radius: var(--border-radius-md);
 transition: all 0.3s ease;
 text-align: center;
 border: none;
 cursor: pointer;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--white-color);
}

.btn-primary:hover {
 background-color: #5b8719; /* A slightly darker primary */
 color: var(--white-color);
}

.btn-accent {
 background-color: var(--accent-color);
 color: var(--dark-text-color);
}

.btn-accent:hover {
 background-color: #9cd638; /* A slightly lighter accent */
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--white-color);
}

.btn-text {
 color: var(--primary-color);
 font-weight: 500;
 padding: 0.5rem 0;
 transition: color 0.3s ease;
}

.btn-text:hover {
 color: var(--accent-color);
}

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

.mt-xl {
 margin-top: 4rem;
}

/* Header */
.main-header {
 background-color: var(--white-color);
 box-shadow: var(--shadow-color) 0 2px 10px;
 position: sticky;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 1rem var(--padding-md);
 height: var(--header-height);
}

.logo {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700;
 font-size: 1.5rem;
 color: var(--primary-color);
}

.nav-links {
 display: flex;
 align-items: center;
}

.nav-links li {
 margin-left: 1.5rem;
}

.nav-links a {
 font-weight: 500;
 color: var(--dark-text-color);
 padding: 0.5rem 0;
 position: relative;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}
.nav-links a.active {
 color: var(--primary-color);
}

.nav-item-cta .btn {
 padding: 0.6rem 1.2rem;
 margin-left: 1rem;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0.5rem;
 position: relative;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--primary-color);
 margin: 5px 0;
 transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
 position: relative;
 display: flex;
 align-items: center;
 min-height: 600px;
 padding: var(--padding-lg) 0;
 overflow: hidden;
 color: var(--white-color);
}

.hero-home { /* Specific styles for homepage hero if needed */ }

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

.hero-home .hero-image {
 width: 100%;
 height: 100%;
 object-fit: cover;
 filter: brightness(0.4); /* Darken image for better text contrast */
}

.hero-content {
 position: relative;
 z-index: 1;
 max-width: 800px;
 text-align: center;
 margin: 0 auto;
 padding: var(--padding-md);
}

.hero-section h1 {
 font-size: 3.5rem;
 color: var(--white-color);
 margin-bottom: 1.5rem;
}

.hero-section p {
 font-size: 1.25rem;
 color: var(--light-bg-color);
 margin-bottom: 2rem;
}

.hero-buttons .btn {
 margin: 0 0.8rem;
 font-size: 1.1rem;
 padding: 1rem 2.2rem;
}

/* Sections */
section {
 padding: var(--padding-lg) 0;
 position: relative;
 z-index: 1;
}

.primary-bg {
 background-color: var(--primary-color);
}

.primary-bg-light {
 background-color: #F0F5EB; /* A very light tint of primary-color */
}

.section-title {
 text-align: center;
 margin-bottom: 1rem;
 font-size: 2.5rem;
}

.section-subtitle {
 text-align: center;
 font-size: 1.1rem;
 color: var(--gray-text-color);
 margin-bottom: 3rem;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

.text-white {
 color: var(--white-color) !important;
}

/* Features/Service Cards */
.features-grid, .service-cards-grid, .blog-grid, .team-grid, .gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--padding-md);
}

.feature-card, .service-card, .blog-card {
 background-color: var(--white-color);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-color);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

.feature-card:hover, .service-card:hover, .blog-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-card img, .service-card img, .blog-card img {
 height: 200px;
 object-fit: cover;
 width: 100%;
}

.feature-card h3, .service-card h3 {
 padding: 1.5rem 1.5rem 0.5rem;
 font-size: 1.4rem;
}

.feature-card p, .service-card p {
 padding: 0 1.5rem 1rem;
 color: var(--gray-text-color);
 flex-grow: 1;
}

.feature-card .btn-text, .service-card .btn-text {
 align-self: flex-start;
 margin: 0 1.5rem 1.5rem;
}

/* About Preview Section */
.about-preview-section {
 background-color: var(--white-color);
}
.about-content-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: var(--padding-lg);
 align-items: center;
}

.about-image {
 border-radius: var(--border-radius-md);
 overflow: hidden;
 box-shadow: 0 4px 20px var(--shadow-color);
}

.about-image img {
 width: 100%;
 height: 450px;
 object-fit: cover;
}

.about-text ul {
 list-style: disc;
 padding-left: 1.2rem;
 margin-bottom: 2rem;
}

.about-text ul li {
 margin-bottom: 0.5rem;
 color: var(--gray-text-color);
}

/* Testimonials */
.testimonials-section {
 background-color: var(--primary-bg-light);
}

.testimonials-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--padding-md);
}

.testimonial-card {
 background-color: var(--white-color);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px var(--shadow-color);
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
}

.testimonial-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1rem;
 border: 3px solid var(--accent-color);
}

.testimonial-card p {
 font-style: italic;
 color: var(--gray-text-color);
 margin-bottom: 1.5rem;
 flex-grow: 1;
}

.testimonial-author h4 {
 margin-bottom: 0.2rem;
 color: var(--primary-color);
}

.testimonial-author p {
 font-size: 0.9rem;
 color: var(--dark-text-color);
 margin-bottom: 0;
}

/* Blog Preview */
.blog-card-content {
 padding: 1.5rem;
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}

.blog-card-content h3 {
 font-size: 1.3rem;
 margin-bottom: 0.5rem;
}

.blog-card-content p {
 color: var(--gray-text-color);
 flex-grow: 1;
}

.blog-card-content .btn-text {
 align-self: flex-start;
 margin-top: 1rem;
}
.blog-card {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

/* CTA Section */
.cta-section {
 padding: var(--padding-lg) 0;
 text-align: center;
}

.cta-section h2 {
 font-size: 2.8rem;
 margin-bottom: 1.5rem;
}

.cta-section p {
 font-size: 1.2rem;
 margin-bottom: 2.5rem;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

.cta-section .btn {
 padding: 1.1rem 2.8rem;
 font-size: 1.2rem;
 font-weight: 700;
}

/* Footer */
.main-footer {
 background-color: #2F4F24; /* Darker shade of primary */
 color: var(--white-color);
 padding: var(--padding-lg) 0 var(--padding-md);
 font-size: 0.95rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: var(--padding-md);
 margin-bottom: var(--padding-md);
}

.footer-col h3 {
 color: var(--white-color);
 margin-bottom: 1.2rem;
 font-size: 1.3rem;
}

.footer-col p, .footer-col ul li {
 color: var(--light-bg-color);
 margin-bottom: 0.7rem;
}

.footer-col a {
 color: var(--light-bg-color);
 transition: color 0.3s ease;
}

.footer-col a:hover {
 color: var(--accent-color);
}

.social-links {
 margin-top: 1rem;
}

.social-links a {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 38px;
 height: 38px;
 border-radius: 50%;
 background-color: rgba(255, 255, 255, 0.1);
 color: var(--white-color);
 margin-right: 0.8rem;
 transition: background-color 0.3s ease;
}

.social-links a:hover {
 background-color: var(--accent-color);
 color: var(--dark-text-color);
}

.footer-col .fa-phone-alt, .footer-col .fa-envelope, .footer-col .fa-map-marker-alt, .footer-col .fa-clock {
 margin-right: 0.7rem;
 color: var(--accent-color);
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: var(--padding-md);
 text-align: center;
 color: var(--light-bg-color);
 font-size: 0.85rem;
}

/* General Page Headers - For inner pages */
.page-hero-section {
 background-color: var(--primary-color);
 color: var(--white-color);
 padding: 6rem 0 4rem; /* Adjust padding for pages with direct header */
 text-align: center;
 margin-top: var(--header-height); /* Offset for sticky header */
}
.page-hero-section h1 {
 font-size: 3rem;
 color: var(--white-color);
 margin-bottom: 1rem;
}
.page-hero-section p {
 font-size: 1.1rem;
 max-width: 800px;
 margin: 0 auto;
 color: var(--light-bg-color);
}

/* About Page Specific */
.about-intro {
 padding: var(--padding-lg) 0;
 text-align: center;
 background-color: var(--primary-bg-light);
}

.about-content {
 padding: var(--padding-lg) 0;
}

.story-vision-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: var(--padding-lg);
 margin-bottom: var(--padding-lg);
}

.story-vision-grid div {
 background-color: var(--white-color);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px var(--shadow-color);
}
.mission-values, .team-section, .achievements-section {
 padding: var(--padding-lg) 0;
}

.mission-values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--padding-md);
}
.value-card {
 background-color: var(--white-color);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
 text-align: center;
}
.value-card h4 {
 color: var(--primary-color);
 margin-bottom: 0.5rem;
 font-size: 1.25rem;
}
.team-member-card {
 background-color: var(--white-color);
 padding: var(--padding-sm);
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
 text-align: center;
}
.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 3px solid var(--accent-color);
}
.team-member-card h4 {
 margin-bottom: 0.2rem;
 color: var(--primary-color);
}
.team-member-card p {
 font-size: 0.95rem;
 color: var(--gray-text-color);
 margin-bottom: 0.5rem;
}
.achievements-section ul {
 list-style: none;
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: var(--padding-sm);
}
.achievements-section ul li {
 background-color: var(--white-color);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
 margin-bottom: 1rem;
 position: relative;
 padding-left: 3.5rem;
 color: var(--gray-text-color);
 font-weight: 500;
}
.achievements-section ul li::before {
 content: '\f00c'; /* FontAwesome checkmark icon */
 font-family: "Font Awesome 5 Free";
 font-weight: 900;
 color: var(--accent-color);
 position: absolute;
 left: 1.5rem;
 top: 50%;
 transform: translateY(-50%);
 font-size: 1.5rem;
}

/* Services Page Specific */
.detailed-service-section {
 padding: var(--padding-lg) 0;
}
.service-item {
 display: flex;
 align-items: center;
 gap: var(--padding-md);
 padding: var(--padding-md);
 margin-bottom: var(--padding-xl);
 background-color: var(--white-color);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.service-item:nth-child(even) {
 flex-direction: row-reverse;
 background-color: var(--primary-bg-light);
}
.service-item img {
 width: 40%;
 border-radius: var(--border-radius-md);
 object-fit: cover;
 height: 300px;
}
.service-item-text {
 width: 60%;
}
.service-item-text h3 {
 color: var(--primary-color);
 font-size: 1.8rem;
 margin-bottom: 1rem;
}
.service-item-text p {
 color: var(--gray-text-color);
}
.process-section {
 padding: var(--padding-lg) 0;
 background-color: var(--primary-bg-light);
}
.process-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--padding-md);
}
.process-step-card {
 background-color: var(--white-color);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
 text-align: center;
 position: relative;
 padding-top: 4rem;
}
.process-step-card .step-number {
 position: absolute;
 top: 1rem;
 left: 50%;
 transform: translateX(-50%);
 background-color: var(--accent-color);
 color: var(--dark-text-color);
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 justify-content: center;
 align-items: center;
 font-weight: 700;
 font-size: 1.25rem;
}
.process-step-card h4 {
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}
.process-step-card p {
 color: var(--gray-text-color);
}

/* Contact Page Specific */
.contact-grid {
 display: grid;
 grid-template-columns: 1.5fr 1fr;
 gap: var(--padding-lg);
 padding: var(--padding-lg) 0;
}
.contact-info-block {
 background-color: var(--primary-bg-light);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px var(--shadow-color);
}
.contact-info-block h3 {
 margin-bottom: 1.5rem;
 color: var(--primary-color);
}
.contact-info-block p {
 display: flex;
 align-items: center;
 margin-bottom: 1rem;
 color: var(--dark-text-color);
}
.contact-info-block p i {
 color: var(--accent-color);
 margin-right: 1rem;
 font-size: 1.2rem;
 width: 25px; /* Fixed width for icon alignment */
}
.contact-form-section {
 background-color: var(--white-color);
 padding: var(--padding-lg) 0;
}
.contact-form {
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-color);
}
.contact-form label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 color: var(--dark-text-color);
}
.contact-form input,
.contact-form textarea {
 width: 100%;
 padding: 0.8rem;
 margin-bottom: 1.5rem;
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-sm);
 font-family: 'Roboto', sans-serif;
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(63, 98, 18, 0.2);
 outline: none;
}
.contact-form textarea {
 min-height: 150px;
 resize: vertical;
}
.contact-form .btn-primary {
 width: auto;
 padding: 1rem 2.5rem;
 font-size: 1.1rem;
}
.map-section {
 padding: var(--padding-lg) 0;
 background-color: var(--primary-bg-light);
}
.map-container {
 height: 450px;
 border-radius: var(--border-radius-md);
 overflow: hidden;
 box-shadow: 0 4px 20px var(--shadow-color);
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: 0;
}

/* Blog List Page Specific */
.blog-list-section {
 padding: var(--padding-lg) 0;
}
.blog-post-meta {
 font-size: 0.9rem;
 color: var(--gray-text-color);
 margin-top: 0.5rem;
 margin-bottom: 1rem;
}
.blog-post-meta span {
 margin-right: 1rem;
}
.blog-post-meta i {
 margin-right: 0.5rem;
}

/* Single Blog Post Page Specific */
.blog-article-section {
 padding: var(--padding-lg) 0;
}
.blog-article {
 max-width: 800px;
 margin: 0 auto;
 background-color: var(--white-color);
 padding: var(--padding-lg);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-color);
}
.blog-article-header {
 text-align: center;
 margin-bottom: 2rem;
}
.blog-article-header h1 {
 font-size: 2.8rem;
 margin-bottom: 1rem;
}
.blog-article-header .meta {
 color: var(--gray-text-color);
 font-size: 0.95rem;
}
.blog-article-header .meta span {
 margin: 0 0.5rem;
}
.blog-article-header .meta a {
 color: var(--primary-color);
 font-weight: 500;
}
.blog-article-content img {
 margin: 2rem auto;
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
}
.blog-article-content p {
 margin-bottom: 1.5rem;
 font-size: 1.05rem;
 color: var(--dark-text-color);
}
.blog-article-content h2, .blog-article-content h3 {
 margin-top: 2.5rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
}
.blog-article-content ul {
 list-style: disc;
 padding-left: 1.5rem;
 margin-bottom: 1.5rem;
 color: var(--dark-text-color);
}
.blog-article-content ol {
 list-style: decimal;
 padding-left: 1.5rem;
 margin-bottom: 1.5rem;
 color: var(--dark-text-color);
}
.author-box {
 display: flex;
 align-items: center;
 background-color: var(--primary-bg-light);
 padding: var(--padding-md);
 border-radius: var(--border-radius-md);
 margin-top: 3rem;
}
.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 1.5rem;
 border: 2px solid var(--primary-color);
}
.author-box h4 {
 margin-bottom: 0.2rem;
 color: var(--primary-color);
}
.author-box p {
 font-size: 0.9rem;
 color: var(--gray-text-color);
 margin-bottom: 0;
}
.related-posts {
 margin-top: 3rem;
 padding-top: 2rem;
 border-top: 1px solid var(--border-color);
}
.related-posts h3 {
 text-align: center;
 margin-bottom: 2rem;
 color: var(--primary-color);
}
.related-posts .blog-card {
 max-width: 350px; /* Adjust for better layout of related posts */
 margin: 0 auto;
}

/* Gallery Page Specific */
.gallery-section {
 padding: var(--padding-lg) 0;
}
.gallery-grid {
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1rem;
}
.gallery-item {
 position: relative;
 overflow: hidden;
 border-radius: var(--border-radius-md);
 box-shadow: 0 2px 10px var(--shadow-color);
 cursor: pointer;
}
.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 transition: transform 0.3s ease;
}
.gallery-item:hover img {
 transform: scale(1.05);
}
.gallery-item::after {
 content: '\f002'; /* FontAwesome search icon */
 font-family: "Font Awesome 5 Free";
 font-weight: 900;
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 font-size: 2rem;
 color: var(--white-color);
 background-color: rgba(63, 98, 18, 0.7); /* Primary with transparency */
 width: 60px;
 height: 60px;
 border-radius: 50%;
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity 0.3s ease;
}
.gallery-item:hover::after {
 opacity: 1;
}

/* Lightbox styles (simplified as JS handles most of the logic) */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed;
 z-index: 9999;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
 justify-content: center;
 align-items: center;
}

.lightbox.active {
 display: flex;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 border-radius: var(--border-radius-md);
 overflow: hidden;
 position: relative;
}

.lightbox-image {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: var(--white-color);
 font-size: 40px;
 font-weight: bold;
 cursor: pointer;
 font-family: Arial, sans-serif;
}

.lightbox-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 font-size: 50px;
 color: var(--white-color);
 cursor: pointer;
 padding: 10px;
 user-select: none;
}

.lightbox-prev {
 left: 20px;
}

.lightbox-next {
 right: 20px;
}

/* FAQ Page Specific */
.faq-section {
 padding: var(--padding-lg) 0;
}
.faq-accordion {
 max-width: 900px;
 margin: 0 auto;
}
.accordion-item {
 background-color: var(--white-color);
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-md);
 margin-bottom: 1rem;
 overflow: hidden;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 1.2rem 1.5rem;
 font-weight: 600;
 color: var(--primary-color);
 cursor: pointer;
 background-color: var(--primary-bg-light);
 border-bottom: 1px solid transparent;
 transition: background-color 0.3s ease;
}
.accordion-header:hover {
 background-color: rgba(63, 98, 18, 0.1);
}
.accordion-header.active {
 border-bottom-color: var(--primary-color);
}
.accordion-header h4 {
 margin: 0;
 font-size: 1.15rem;
 flex-grow: 1;
}
.accordion-icon {
 font-size: 1.5rem;
 transition: transform 0.3s ease;
}
.accordion-header.active .accordion-icon {
 transform: rotate(45deg);
}
.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 padding: 0 1.5rem;
 color: var(--gray-text-color);
}
.accordion-content.active {
 max-height: 500px; /* Sufficiently large value */
 padding: 1rem 1.5rem 1.5rem;
}

/* Legal Pages & Thanks page */
.legal-page-content, .thanks-page-content {
 background-color: var(--white-color);
 padding: var(--padding-lg) 0;
 max-width: 900px;
 margin: 0 auto;
}
.legal-page-content h2, .thanks-page-content h2 {
 color: var(--primary-color);
 margin-bottom: 2rem;
 text-align: center;
}
.legal-page-content h3 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
}
.legal-page-content p, .legal-page-content ul li, .legal-page-content ol li, .thanks-page-content p {
 color: var(--dark-text-color);
 margin-bottom: 1rem;
}
.legal-page-content ul, .legal-page-content ol {
 padding-left: 1.5rem;
 margin-bottom: 1.5rem;
}
.legal-page-content ul li {
 list-style: disc;
}
.legal-page-content ol li {
 list-style: decimal;
}

/* Thanks Page */
.thanks-page-content {
 text-align: center;
 min-height: 50vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}
.thanks-page-content h1 {
 color: var(--primary-color);
 font-size: 3rem;
 margin-bottom: 1.5rem;
}
.thanks-page-content p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
}

/* 404 Page */
.error-page-content {
 text-align: center;
 padding: var(--padding-lg) 0;
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}
.error-page-content h1 {
 font-size: 6rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
 line-height: 1;
}
.error-page-content h2 {
 font-size: 2.5rem;
 color: var(--dark-text-color);
 margin-bottom: 1.5rem;
}
.error-page-content p {
 font-size: 1.1rem;
 color: var(--gray-text-color);
 margin-bottom: 2rem;
 max-width: 600px;
}
.error-page-content .btn {
 padding: 1rem 2.5rem;
}

/* Scroll animation classes */
.fade-in {
 opacity: 0;
 transform: translateY(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
 opacity: 1;
 transform: translateY(0);
}
.slide-in-left {
 opacity: 0;
 transform: translateX(-50px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-in-left.appear {
 opacity: 1;
 transform: translateX(0);
}
.slide-in-right {
 opacity: 0;
 transform: translateX(50px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-in-right.appear {
 opacity: 1;
 transform: translateX(0);
}

/* Media Queries */
@media (max-width: 1024px) {
 .container {
 padding: 0 var(--padding-sm);
 }
 h1 { font-size: 2.5rem; }
 h2 { font-size: 2rem; }
 h3 { font-size: 1.6rem; }

 .nav-links li {
 margin-left: 1rem;
 }
 .nav-item-cta .btn {
 padding: 0.5rem 0.9rem;
 }

 .hero-section h1 {
 font-size: 3rem;
 }
 .hero-section p {
 font-size: 1.1rem;
 }
 .hero-buttons .btn {
 margin: 0 0.5rem;
 padding: 0.9rem 1.8rem;
 font-size: 1rem;
 }

 .feature-card h3, .service-card h3 {
 font-size: 1.3rem;
 }

 .about-content-grid, .story-vision-grid, .contact-grid {
 grid-template-columns: 1fr;
 }
 .about-image {
 margin-bottom: var(--padding-md);
 }
 .about-image img {
 height: 350px;
 }
 .service-item img {
 width: 100%;
 height: 250px;
 margin-bottom: var(--padding-md);
 }
 .service-item-text {
 width: 100%;
 }
 .service-item {
 flex-direction: column !important; /* Override even/odd reversal */
 }

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

@media (max-width: 768px) {
 .main-header {
 padding-bottom: 0;
 }
 .navbar {
 padding: 1rem var(--padding-sm);
 }
 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: var(--header-height);
 left: 0;
 width: 100%;
 background-color: var(--primary-color);
 box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
 padding: var(--padding-md) 0;
 z-index: 999;
 max-height: calc(100vh - var(--header-height));
 overflow-y: auto;
 }

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

 .nav-links li {
 margin: 0;
 width: 100%;
 text-align: center;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 .nav-links li:last-child {
 border-bottom: none;
 }

 .nav-links a {
 color: var(--white-color);
 padding: 1rem 0;
 display: block;
 width: 100%;
 }
 .nav-links a::after {
 background-color: var(--accent-color);
 }
 .nav-links a:hover {
 background-color: rgba(255, 255, 255, 0.1);
 color: var(--accent-color);
 }
 .nav-item-cta {
 margin-top: 1rem;
 }
 .nav-item-cta .btn {
 width: 80%;
 margin: 1rem auto;
 padding: 0.8rem 1.5rem;
 }

 .nav-toggle {
 display: block;
 }

 .hero-section h1 {
 font-size: 2.5rem;
 }
 .hero-section p {
 font-size: 1rem;
 }
 .hero-buttons {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 }
 .hero-buttons .btn {
 margin: 0;
 width: 90%;
 max-width: 300px;
 align-self: center;
 }

 .section-title {
 font-size: 2rem;
 }
 .section-subtitle {
 font-size: 1rem;
 margin-bottom: 2rem;
 }

 .feature-card, .service-card, .blog-card, .testimonial-card {
 padding: var(--padding-sm);
 }
 .feature-card h3, .service-card h3 {
 padding-top: 1rem;
 }

 .team-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col {
 margin-bottom: var(--padding-md);
 }
 .footer-col h3 {
 margin-bottom: 0.8rem;
 }
 .social-links {
 justify-content: center;
 display: flex;
 }
 .social-links a {
 margin: 0 0.5rem;
 }
 .footer-col p {
 justify-content: center;
 }

 .page-hero-section {
 margin-top: var(--header-height); /* Ensure page content starts below sticky header */
 padding: 4rem 0 2rem;
 }
 .page-hero-section h1 {
 font-size: 2.5rem;
 }

 .blog-article {
 padding: var(--padding-md);
 }
 .blog-article-header h1 {
 font-size: 2rem;
 }
 .author-box {
 flex-direction: column;
 text-align: center;
 }
 .author-box img {
 margin: 0 auto 1rem;
 }
 .related-posts .blog-card {
 max-width: 100%;
 }

 .error-page-content h1 {
 font-size: 4rem;
 }
 .error-page-content h2 {
 font-size: 1.8rem;
 }
}

@media (max-width: 480px) {
 h1 { font-size: 2rem; }
 h2 { font-size: 1.8rem; }
 h3 { font-size: 1.4rem; }

 .hero-section h1 {
 font-size: 2rem;
 }
 .hero-section p {
 font-size: 0.95rem;
 }

 .section-title {
 font-size: 1.8rem;
 }
 .section-subtitle {
 font-size: 0.9rem;
 }

 .page-hero-section h1 {
 font-size: 2rem;
 }
 .page-hero-section p {
 font-size: 0.9rem;
 }

 .achievements-section ul li {
 padding-left: 2.5rem;
 }
 .achievements-section ul li::before {
 left: 0.8rem;
 font-size: 1.2rem;
 }

 .blog-article {
 padding: var(--padding-sm);
 }
 .blog-article-header h1 {
 font-size: 1.6rem;
 }

 .accordion-header {
 padding: 1rem;
 }
 .accordion-header h4 {
 font-size: 1rem;
 }
 .accordion-icon {
 font-size: 1.2rem;
 }
 .accordion-content {
 padding: 0 1rem;
 }
 .accordion-content.active {
 padding: 0.8rem 1rem 1.2rem;
 }
 .error-page-content h1 {
 font-size: 3rem;
 }
 .error-page-content h2 {
 font-size: 1.5rem;
 }
}