/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: auto;
        height: auto;
    }

    .site-heading h1 {
        font-size: 2em;
    }

    .agriculture-section {
        margin: 20px 0;
    }

    .content-image-card {
        margin-bottom: 20px;
    }

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

    .content-text {
        padding: 15px;
    }

    /* Stack columns on mobile */
    .agriculture-section.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Gallery Improvements for Mobile */
    .gallery-item {
        padding: 5px;
        width: 100%;
    }

    .Gallery-item {
        margin-bottom: 10px;
        height: auto;
    }

    .Gallery-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Contact Page Improvements */
    .contact-info {
        margin-bottom: 30px;
    }

    .map-container {
        height: 300px;
        margin-top: 20px;
    }

    /* Navigation Improvements */
    .navbar-toggle {
        margin-right: 15px;
    }

    .navbar-nav {
        margin: 0;
    }

    .navbar-nav > li > a {
        padding: 15px;
        text-align: center;
    }

    /* General Text Improvements */
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .site-heading h1 {
        font-size: 2.5em;
    }

    /* Gallery Improvements */
    .gallery-item {
        padding: 15px;
    }

    /* Navigation Improvements */
    .navbar-nav > li > a {
        padding: 15px 10px;
    }
}

/* Center images on all screen sizes */
.img-responsive.center-block {
    margin: 0 auto;
    display: block;
}

/* Improve spacing for better readability */
.content-text {
    padding: 20px;
}

/* Ensure images don't overflow their containers */
.content-image-card img {
    max-width: 100%;
    height: auto;
}

/* Gallery Grid Improvements */
.gallery-item {
    margin-bottom: 30px;
}

.Gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.Gallery-item:hover {
    transform: translateY(-5px);
}

/* Contact Form Improvements */
.contact-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-control {
    margin-bottom: 15px;
}

/* Improve button responsiveness */
.btn {
    white-space: normal;
    margin: 5px;
}

/* Fix for fixed navigation on mobile */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}
