:root {
    --color-primary: #4CAF50; /* Green */
    --color-secondary: #8B4513; /* Brown */
    --color-white: #FFFFFF;
    --color-light-gray: #f8f9fa;
    --color-dark-text: #333;
    --color-light-brown: #f5f0eb; /* Lighter brown for backgrounds */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-dark-text);
    line-height: 1.6;
    background-color: var(--color-white);
    scroll-behavior: smooth;
    padding-top: 70px; /* Adjust for fixed navbar */
}
main {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-dark-text);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}
@media screen and (width < 768px) {
    .section-title {
    font-size: 1.8rem;
    }
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #43A047; /* Slightly darker green */
    border-color: #43A047;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: var(--color-white);
}

.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    color: var(--color-white);
}

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

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

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

/* Navbar */
.navbar-brand {
    color: var(--color-secondary) !important;
}

.navbar-brand:hover {
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--color-dark-text) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('graphics/uploads/farm_and_roam_animal_chickens_agriculture_welfare_sustainable_idyllic_symbolizing.jpg') center center / cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.trust-badges .badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    font-size: 0.9rem;
}

.trust-badges .badge-item i {
    margin-bottom: 5px;
}

.hero-image {
    max-height: 450px;
    object-fit: contain;
}

/* About Section */
.about-section img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.about-section ul li {
    margin-bottom: 10px;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.service-video-wrapper {
    height: 200px; /* Fixed height for videos */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.service-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .card-title {
    color: var(--color-primary);
}

/* Features Section */
.feature-item {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    align-items: center;
}

.feature-item:nth-child(even) {
    background-color: var(--color-light-brown);
}

.feature-image-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 50%;
    padding: 1rem;
}

.feature-image {
    border-radius: 0.75rem;
    max-height: 350px;
    width: 100%;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    padding: 1rem;
}

.feature-content h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .feature-item {
        flex-direction: column !important;
    }
    .feature-image-wrapper {
        max-width: 90%;
        margin-bottom: 1.5rem;
    }
    .feature-content {
        text-align: center !important;
    }
}

/* Team Section */
.team-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.team-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

.team-card .card-title {
    color: var(--color-secondary);
}

.team-card .badge {
    font-size: 0.85em;
    padding: 0.5em 0.8em;
}

/* Industries Section */
.industries-section {
    background-image: url('graphics/uploads/of_rooster_closeup.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.industries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(139, 69, 19, 0.7); /* Brown overlay */
    z-index: 1;
}

.industries-section .container, .industries-section .row {
    position: relative;
    z-index: 2;
}

.industries-section .section-title {
    color: var(--color-white);
}

.industries-section .section-title::after {
    background-color: var(--color-white);
}

.industry-badge {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-dark-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.industry-badge i {
    color: var(--color-primary);
}

.industry-badge h4 {
    color: var(--color-secondary);
}

.industry-badge .btn-outline-dark {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.industry-badge .btn-outline-dark:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Contact Section */
.contact-section .card {
    border: none;
    border-radius: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--color-dark-text);
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.testimonial-card::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: 'Georgia', serif;
    font-size: 6rem;
    color: rgba(76, 175, 80, 0.2); /* Semi-transparent green */
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 0;
}

.testimonial-card .quote-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

/* Masonry-like grid for testimonials (using flexbox for simplicity) */
@media (min-width: 768px) {
    .masonry-grid {
        display: flex;
        flex-wrap: wrap;
    }
    .masonry-grid > .col-lg-4 {
        display: flex;
    }
    .masonry-grid > .col-lg-4 > .testimonial-card {
        flex-grow: 1;
    }
}

/* Gallery Section */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    position: relative;
}

.gallery-img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}



/* Footer Section */
.footer-section {
    background-color: var(--color-dark-text);
}

.footer-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
    margin-top: -50px; /* Overlap with previous section */
    position: relative;
    z-index: 10;
    border-radius: 0.75rem;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.footer-cta h3 {
    color: var(--color-white);
}

.footer-cta .btn-light {
    color: var(--color-primary);
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.footer-cta .btn-light:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links i {
    color: var(--color-primary);
    margin-right: 5px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--color-white);
    padding: 1rem 0;
    z-index: 1000;
    display: none; /* Hidden by default, shown by JS */
    font-size: 0.9rem;
    text-align: center;
}

.cookie-banner p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner .cookie-policy-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner .cookie-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 767.98px) {
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: 1rem;
    }
    .cookie-banner .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .cookie-banner .cookie-buttons .btn:last-child {
        margin-bottom: 0;
    }
}
/* Styles for content within .lawMatrixNode */
.lawMatrixNode {
    padding-top: 3rem; /* Top padding for the content block */
    padding-left: 1.5rem; /* Left padding for the content block */
    padding-right: 1.5rem; /* Right padding for the content block */
    padding-bottom: 3rem; /* Bottom padding for the content block */
    max-width: 960px; /* Max width to keep content readable */
    margin-left: auto; /* Center the block horizontally */
    margin-right: auto; /* Center the block horizontally */
}

.lawMatrixNode h1 {
    font-size: 2.25rem; /* Moderate font size for H1 */
    margin-top: 2rem; /* Top margin for H1 */
    margin-bottom: 1rem; /* Bottom margin for H1 */
    line-height: 1.2; /* Line height for H1 */
}

.lawMatrixNode h2 {
    font-size: 1.75rem; /* Moderate font size for H2 */
    margin-top: 1.75rem; /* Top margin for H2 */
    margin-bottom: 0.8rem; /* Bottom margin for H2 */
    line-height: 1.3; /* Line height for H2 */
}

.lawMatrixNode h3 {
    font-size: 1.5rem; /* Moderate font size for H3 */
    margin-top: 1.5rem; /* Top margin for H3 */
    margin-bottom: 0.7rem; /* Bottom margin for H3 */
    line-height: 1.4; /* Line height for H3 */
}

.lawMatrixNode h4 {
    font-size: 1.25rem; /* Moderate font size for H4 */
    margin-top: 1.25rem; /* Top margin for H4 */
    margin-bottom: 0.6rem; /* Bottom margin for H4 */
    line-height: 1.5; /* Line height for H4 */
}

.lawMatrixNode h5 {
    font-size: 1.1rem; /* Moderate font size for H5 */
    margin-top: 1rem; /* Top margin for H5 */
    margin-bottom: 0.5rem; /* Bottom margin for H5 */
    line-height: 1.6; /* Line height for H5 */
}

.lawMatrixNode p {
    font-size: 1rem; /* Standard font size for paragraphs */
    line-height: 1.7; /* Good line height for readability */
    margin-bottom: 1rem; /* Bottom margin for paragraphs */
}

.lawMatrixNode ul {
    list-style: disc; /* Default disc style for unordered lists */
    margin-top: 1rem; /* Top margin for unordered lists */
    margin-bottom: 1rem; /* Bottom margin for unordered lists */
    padding-left: 1.5rem; /* Indentation for list items */
}

.lawMatrixNode ol {
    list-style: decimal; /* Default decimal style for ordered lists */
    margin-top: 1rem; /* Top margin for ordered lists */
    margin-bottom: 1rem; /* Bottom margin for ordered lists */
    padding-left: 1.5rem; /* Indentation for list items */
}

.lawMatrixNode li {
    margin-bottom: 0.5rem; /* Bottom margin for individual list items */
    line-height: 1.6; /* Line height for list items */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .lawMatrixNode {
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .lawMatrixNode h1 {
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }

    .lawMatrixNode h2 {
        font-size: 1.5rem;
        margin-top: 1.25rem;
    }

    .lawMatrixNode h3 {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .lawMatrixNode h4 {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }

    .lawMatrixNode h5 {
        font-size: 1rem;
        margin-top: 0.7rem;
    }

    .lawMatrixNode p {
        font-size: 0.95rem;
    }
}
.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-section h5 {
    color: #ffffffac;
}
.hero-section {
    padding-top: 120px !important;
}