/* General Styles (Keep as is) */
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4; /* Example background for content below header */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px auto;
    max-width: 1200px;
}

.content-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c5e3D;
}

/* Header */
header {
    background-color: #2c5e3d;
    color: white;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
    z-index: 1100;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1100;
}

/* Navigation Links (Desktop) */
nav ul {
    display: flex;
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

nav ul li a:hover {
    color: #afdfa9;
}

/* Navigation Buttons (Desktop) */
.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons .admin-btn,
.nav-buttons .lang-btn {
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: flex; /* To align icon and text */
    align-items: center;
    justify-content: center;
}

.nav-buttons .admin-btn {
    background-color: white;
    color: #2c5e3d;
    margin-right: 10px;
    padding: 8px 15px; /* Increased padding */
    font-weight: bold;
}

.nav-buttons .admin-btn i,
.nav-buttons .lang-btn i {
    margin-right: 5px;
}

.nav-buttons .lang-btn {
    background-color: #5cb85c;
    color: white;
    padding: 8px 15px; /* Increased padding */
    font-weight: bold;
}

.admin-btn:hover {
    color: #afdfa9;
    background-color: rgba(255, 255, 255, 0.9);
}

.lang-btn:hover {
    color: #afdfa9;
    background-color: #45a049;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav {
        flex-wrap: nowrap;
    }

    nav .logo {
        flex-grow: 1;
    }

    /* Show Hamburger and Hide Desktop Nav/Buttons */
    .hamburger {
        display: block; /* Show the hamburger icon */
    }

    nav ul,
    .nav-buttons {
        display: none; /* Hide desktop nav and buttons */
    }

    /* When nav has 'open' class (Mobile Menu Overlay) */
    nav.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #2c5e3d;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        box-shadow: none;
    }

    nav.open .logo {
        position: absolute;
        top: 15px;
        left: 20px;
        font-size: 1.8em; /* Keep original size */
    }

    nav.open .hamburger {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.8em; /* Keep original size */
    }

    nav.open ul,
    nav.open .nav-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav.open ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    nav.open ul li a {
        font-size: 1.2em;
        padding: 10px 0;
        display: block;
    }

    nav.open .nav-buttons {
        margin-top: 20px;
    }

    nav.open .nav-buttons a {
        width: calc(100% - 40px);
        margin: 0 auto 15px auto;
        display: block;
        text-decoration: none;
    }
    nav.open .nav-buttons .admin-btn,
    nav.open .nav-buttons .lang-btn {
        padding: 12px 20px;
        font-size: 1.1em;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(44, 94, 61, 0.7), rgba(44, 94, 61, 0.7)), url('./images/kst_gate.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    color: white;
    text-align: center;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.hero-icons {
    font-size: 2.5em;
    color: #aFdfa9;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hero-content p i {
    color: #aFdfa9;
    margin: 0 8px;
}

.explore-btn {
    background-color: #4CAF50;
    color: white;
    font-size: 1.2em;
    padding: 15px 30px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.explore-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.explore-btn i {
    color: white;
    font-size: 1em;
}

/* Background Story Section */
#background-story {
    background-color: #F8FDF6;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title-with-icons {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2c5e3D;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title-with-icons i {
    color: #aFdfa9;
    font-size: 0.8em;
}

.story-layout-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

.story-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-image-column img {
    height: 250px; /* Set a fixed height for mobile */
    object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
    width: 100%; /* Keep width at 100% of its container */
    flex-shrink: 0; /* ADDED: Prevent image from shrinking smaller than its size if space is constrained */
}

/* For even smaller screens, if 250px is too tall */
@media (max-width: 480px) {
    .story-image-column img {
        height: 200px; /* Adjust height for very small phones */
    }
}

.story-content-column {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    border: 1px solid #eee;
}

.story-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.story-card-header i {
    font-size: 1.8em;
    color: #2c5e3D;
    background-color: #aFdfa9;
    padding: 8px;
    border-radius: 50%;
}

.story-card-header h3 {
    font-size: 1.5em;
    color: #2c5e3D;
    margin: 0;
    font-weight: bold;
}

.story-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.explore-env-btn {
    background-color: #2c5e3D;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    align-self: flex-start;
}

.explore-env-btn:hover {
    background-color: #1e422a;
    transform: translateY(-2px);
}

.explore-env-btn i {
    color: #aFdfa9;
    font-size: 1em;
}


/* Tourism Activities Section */
.activities-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

.activity-card {
    background-color: #fff;
    border: none;
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.activity-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.activity-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Style for the actual IMAGE inside the icon container */
.activity-icon img {
    width: 250px;
    height: 250px;
    display: block;
    object-fit: cover; /* Change from 'contain' to 'cover' to fill the space */
    /* If the cards get smaller than 250px wide, you'll also need to make the image responsive */
    max-width: 100%; /* Add this to ensure it scales down */
    box-sizing: border-box; /* Important if padding is applied to the image's parent */
    flex-shrink: 0; /* ADDED: Prevent image from shrinking smaller than its size */
}


/* Styling for activity titles */
.activity-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}
/* Specific colors for each title as per image */
.fishing-title-color {
    color: #3273c5; /* Blue */
}
.firefly-title-color {
    color: #e67e22; /* Orange */
}
.river-boating-title-color {
    color: #28b485; /* Green */
}


.activity-card p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px; /* More space below paragraph */
    flex-grow: 1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rating {
    margin-bottom: 20px; /* More space below rating */
    color: #666;
    font-size: 0.9em;
    font-weight: bold; /* Ensure bold as per design */
}

.rating .fas, .rating .far {
    color: #FFD700; /* Gold color for filled stars */
    margin: 0 2px;
}
.rating .far { /* For empty stars */
    color: #D3D3D3; /* Light gray for empty stars */
}

/* Common class for all primary action buttons within activity cards */
.activity-card .action-button {
    padding: 12px 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    width: 100%;
}

/* Base styles for all buttons that will inherit from .action-button */
.details-btn, .feedback-btn-link {
    background-color: white;
    color: #555; /* Darker grey text */
}

.download-app-btn {
    background-color: #f39c12; /* Orange/Gold from image */
    color: white;
    border-color: #f39c12; /* Match border to background */
    font-size: 0.9em;
    font-weight: bold;
}

/* Hover effects for buttons */
.details-btn:hover,
.feedback-btn-link:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.download-app-btn:hover {
    background-color: #e67e22; /* Darker orange on hover */
    border-color: #e67e22;
}


/* NEW: Container for buttons within the activity card to manage layout */
.activity-card .button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}


/* Leave Feedback Section */
.form-section {
    background-color: white;
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: none;
}

#feedbackForm {
    background-color: #fff;
    padding: 25px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: none;
    text-align: left;
}

.form-section h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #6a0dad;
    font-weight: bold;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    color: #555;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.star-rating {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
}

.star-rating .far, .star-rating .fas {
    font-size: 1.6em;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .fas {
    color: #FFD700;
}


.star-rating .fa-star:hover,
.star-rating .fa-star:hover ~ .fa-star {
    color: #FFD700;
}

.star-rating .fas:hover {
    color: #FFD700;
}


.form-group.captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.form-group.captcha label {
    margin-bottom: 0;
    font-size: 1em;
    font-weight: bold;
}

.form-group.captcha input[type="text"] {
    width: 70px;
    padding: 10px;
    font-size: 0.95em;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(to right, #8e24aa, #d81b60);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.25);
}

.submit-btn:hover {
    background: linear-gradient(to right, #7b1fa2, #c2185b);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(142, 36, 170, 0.35);
}

/* NEW: Style for the disabled state of the submit button */
.submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Responsive adjustments for form (fine-tuned) */
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
        max-width: 90%;
    }
    #feedbackForm {
        padding: 15px;
    }
    .form-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .form-group.captcha {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .form-group.captcha input[type="text"] {
        width: 80px;
    }
    .form-group.captcha .submit-btn {
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section h2 {
        font-size: 1.8em;
    }
    .form-group label {
        font-size: 0.95em;
    }
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .form-group input[type="text"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }
    .star-rating .far, .star-rating .fas {
        font-size: 1.5em; /* Smallest stars */
    }
}

/* Community Section */
#community {
    background-color: #f7fffb;
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background leaves (similar to the image) */
#community::before,
#community::after {
    content: '\f1bb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 8em;
    color: rgba(163, 230, 184, 0.2);
    z-index: 0;
    transform: rotate(15deg);
}

#community::before {
    top: 5%;
    left: -3%;
}

#community::after {
    bottom: 5%;
    right: -3%;
    transform: rotate(-30deg);
}

/* NEW CSS for the large leaf icon above the main Community title */
.section-main-leaf-icon {
    font-size: 3.5em;
    color: #aFdfa9;
    margin-bottom: 10px;
    display: block;
    text-align: center;
    z-index: 1;
}
.section-main-leaf-icon i {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Section Title for Community */
#community h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #2c5e3D;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Community Intro text */
.community-intro {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.community-intro .fas.fa-leaf {
    color: #aFdfa9;
    font-size: 0.9em;
    margin-right: 5px;
}
.community-intro .fas.fa-puzzle-piece {
    color: #2c5e3D;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Community Item Container (Desktop/Base styles) */
.community-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    width: 100%;
}

.community-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-align: left;
    margin-bottom: 0;
    background-color: white;
    padding: 0;
    border-radius: 25px;
    border: none;
    box-shadow: 0 18px 45px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

/* Reverse order for the second community item on Desktop */
.community-item:nth-of-type(2) {
    flex-direction: row-reverse;
}

.community-image {
    flex: 1;
    min-width: 40%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: none;
    flex-shrink: 0; /* ADDED: Prevent image from shrinking */
}

.community-text {
    flex: 1.5;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community-text h3 {
    font-size: 2em;
    color: #2c5e3D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.community-item:nth-of-type(1) .community-text h3::before {
    content: '\f1bb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2em;
    color: #aFdfa9;
    margin-right: 5px;
}

.community-item:nth-of-type(2) .community-text h3::before {
    content: '\f021';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2em;
    color: #aFdfa9;
    margin-right: 5px;
}

.community-text p {
    line-height: 1.7;
    margin-bottom: 30px;
    color: #666;
}

/* Buttons within Community items (Base styles) */
.community-text button {
    width: 100%;
    max-width: 300px;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.learn-more-btn {
    background-color: #4CAF50;
    color: white;
    margin-bottom: 15px;
    border: none;
    box-shadow: none;
}
.learn-more-btn::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9em;
}
.learn-more-btn:hover {
    background-color: #388e3c; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: none;
}

.download-app-btn-secondary {
    background-color: white; /* White background */
    color: #2c5e3D; /* Dark green text */
    border: 1px solid #aFdfa9; /* Light green border */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 0;
}
.download-app-btn-secondary::before {
    content: '\f17b'; /* Font Awesome Android icon */
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400; /* Regular weight for brand icons */
    font-size: 1.1em;
}
.download-app-btn-secondary::after {
    content: '\f019'; /* Font Awesome download icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 5px;
}
.download-app-btn-secondary:hover {
    background-color: #aFdfa9;
    color: white; /* White text on hover */
    border-color: #aFdfa9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 230, 184, 0.4);
}

/* Define common colors for consistency */
:root {
    --primary-green-vibrant: #29b67a;
    --gallery-shadow-color: rgba(0,0,0,0.08);
    --image-shadow-color: rgba(0,0,0,0.1);
    --white: #ffffff;
}

/* === Responsive Adjustments for Community Section === */

/* Target screens up to 768px (common breakpoint for tablets/larger mobiles) */
@media (max-width: 768px) {
    .community-content-wrapper {
        gap: 30px;
    }

    /* All community items should stack vertically in natural order on mobile */
    .community-item {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    /* Adjust image container for mobile */
    .community-image {
        min-width: unset;
        width: 100%;
        height: 250px;
        padding: 0;
    }

    .community-image img {
        border-radius: 15px 15px 0 0; /* Rounded top corners only for the stacked image */
    }

    /* Adjust text container for mobile */
    .community-text {
        flex: unset;
        width: 100%;
        padding: 0 15px 15px 15px;
        align-items: center;
        text-align: center;
    }

    /* Adjust headings within community items for mobile */
    .community-text h3 {
        justify-content: center;
        font-size: 1.8em;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    /* Adjust paragraph text within community items for mobile */
    .community-text p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* Adjust buttons within community items for mobile to be same size */
    .community-text button {
        width: 100%;
        display: flex;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Ensure the <a> tag wrapping the first button also behaves correctly */
    .community-text a {
        display: block;
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .activity-card {
        width: 90%;
        max-width: 300px; /* Adjust max-width if needed to give more room for image scaling */
    }
    .activity-icon img {
        width: 100%; /* Make it responsive to its card's width */
        height: 200px; /* Give it a consistent height on mobile */
        object-fit: cover; /* Ensure it covers the new height */
    }

    .community-image {
        min-width: unset;
        width: 100%;
        height: 250px; /* This sets a fixed height for mobile */
        padding: 0;
    }
}

/* Target screens up to 480px (for smaller mobiles) */
@media (max-width: 480px) {
    #community {
        padding: 50px 15px;
    }

    #community h2 {
        font-size: 2.2em;
        gap: 10px;
    }

    .community-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .community-item {
        gap: 15px;
        padding: 15px;
    }

    .community-image {
        height: 200px;
    }

    .community-text {
        padding: 0 10px 10px 10px;
    }

    .community-text h3 {
        font-size: 1.6em;
        gap: 8px;
    }

    .community-text p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    /* Adjust buttons within community items for very small screens to be same size */
    .community-text button {
        width: 100%;
        max-width: 100%;
        padding: 10px 15px;
        font-size: 0.9em;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure the <a> tag wrapper also behaves correctly for very small screens */
    .community-text a {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
    }

    .community-image {
        height: 200px; /* Adjusted height for smaller mobiles */
    }
}

/* Community Gallery */
.community-gallery {
    margin-top: 100px;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--gallery-shadow-color);

    max-width: 100vw;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    box-sizing: border-box;
    overflow: hidden;
}

/* NEW CSS for the leaf icon above the gallery title */
.gallery-top-icon {
    font-size: 2.8em;
    color: var(--primary-green-vibrant);
    margin-bottom: 10px;
    display: block;
    text-align: center;
}
.gallery-top-icon i {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.community-gallery h3 {
    font-size: 2.5em;
    color: var(--primary-green-vibrant);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
}

/* Styles for the icons within the h3 */
.community-gallery h3 .fas.fa-leaf,
.community-gallery h3 .fas.fa-puzzle-piece {
    font-size: 0.8em;
    color: var(--primary-green-vibrant);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    padding: 0 20px; 
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 8px 20px var(--image-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.gallery-grid img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    .community-gallery {
        padding: 30px 15px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-top-icon {
        font-size: 2.2em;
        margin-bottom: 8px;
    }
    .community-gallery h3 {
        font-size: 1.8em;
        gap: 8px;
        margin-bottom: 25px;
    }
    .community-gallery h3 .fas.fa-leaf,
    .community-gallery h3 .fas.fa-puzzle-piece {
        font-size: 0.7em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .gallery-grid img {
        height: 150px;
        border-radius: 20px;
        box-shadow: 0 5px 15px var(--image-shadow-color);
    }
}

@media (max-width: 480px) {
    .gallery-top-icon {
        font-size: 1.8em;
        margin-bottom: 5px;
    }
    .community-gallery h3 {
        font-size: 1.5em;
        gap: 6px;
        margin-bottom: 20px;
    }
    .community-gallery h3 .fas.fa-leaf,
    .community-gallery h3 .fas.fa-puzzle-piece {
        font-size: 0.6em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .gallery-grid img {
        height: 100px;
        border-radius: 15px;
        box-shadow: 0 3px 10px var(--image-shadow-color);
    }
}

/* Footer (Modified to match new design) */
footer {
    background-color: #1a4d2e;
    color: #e0e0e0; 
    padding: 30px 20px 20px 20px; 
    position: relative; 
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 40px auto; 
    gap: 25px; 
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px; 
    max-width: 280px; 
    background-color: #2c5e3D; 
    padding: 25px; 
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column;
    align-items: flex-start; 
}

.footer-column h4 {
    font-size: 1.4em; 
    color: white; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center;
    gap: 10px; 
    font-weight: bold; 
}

/* Specific icons for each footer column heading */
.footer-column:nth-of-type(1) h4::before { 
    content: '\f041'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #aFdfa9; 
    font-size: 1.2em; 
}

.footer-column:nth-of-type(2) h4::before { /* Categories */
    content: '\f542'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #aFdfa9; 
    font-size: 1.2em;
}

.footer-column:nth-of-type(3) h4::before { /* Get the Android app */
    content: '\f17b'; 
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400; 
    color: #aFdfa9; 
    font-size: 1.2em;
}

.footer-column:nth-of-type(4) h4::before { /* Follow Us */
    content: '\f16d'; 
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    color: #aFdfa9; 
    font-size: 1.2em;
}

.footer-column p {
    font-size: 0.95em; 
    line-height: 1.6; 
    margin-bottom: 15px; 
    color: #e0e0e0; 
}

.footer-column p b {
    color: white; 
}

.footer-column ul {
    width: 100%; 
}

.footer-column ul li {
    font-size: 0.95em; 
    margin-bottom: 12px; 
}

.footer-column ul li a {
    color: #aFdfa9; 
    transition: color 0.3s ease;
    text-decoration: none;
    display: flex; 
    align-items: center;
    gap: 8px; 
}

.footer-column ul li a:hover {
    color: white; 
    text-decoration: none; 
}

/* Specific icons for Categories links */
.footer-column:nth-of-type(2) ul li:nth-of-type(1) a::before { content: '\f015'; /* Home */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(2) ul li:nth-of-type(2) a::before { content: '\f008'; /* Activities (Movie icon, adjust if needed) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(2) ul li:nth-of-type(3) a::before { content: '\f279'; /* Map */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(2) ul li:nth-of-type(4) a::before { content: '\f0c0'; /* Community (Users icon) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(2) ul li:nth-of-type(5) a::before { content: '\f570'; /* Visitor Info (Info Circle) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(2) ul li:nth-of-type(6) a::before { content: '\f1bb'; /* Biodiversity (Leaf) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }

/* Specific icons for Android app links */
.footer-column:nth-of-type(3) ul li:nth-of-type(1) a::before { content: '\f1bb'; /* Mangrove (Leaf) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(3) ul li:nth-of-type(2) a::before { content: '\f06d'; /* GIS Game (Puzzle Piece or similar) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }
.footer-column:nth-of-type(3) ul li:nth-of-type(3) a::before { content: '\f0eb'; /* Firefly (Lightbulb) */ font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #aFdfa9; }


.social-links li a {
    color: #aFdfa9; 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 8px; 
}

.social-links i {
    font-size: 1.2em; /* Icon size */
    margin-right: 0; 
}

.social-links li a:hover {
    color: white; 
}


.footer-bottom {
    text-align: center;
    padding-top: 25px; 
    border-top: 1px solid #3c825a; 
    font-size: 0.9em;
    color: #aFdfa9; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.footer-bottom p {
    margin: 0; 
    display: flex;
    align-items: center;
    gap: 8px; 
}

.footer-bottom p:first-of-type::before {
    content: '\f1f9'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #aFdfa9; 
    font-size: 1.1em;
}

.footer-bottom p:first-of-type::after { 
    content: '\f1bb'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #aFdfa9; 
    margin-left: 10px; 
    font-size: 1em;
}


.footer-bottom a {
    color: #aFdfa9;
    text-decoration: none; 
    display: flex; 
    align-items: center;
    gap: 8px; 
}
.footer-bottom a::before { 
    content: '\f21b'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #aFdfa9;
    font-size: 1.1em;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: none; 
}


/* Responsive adjustments */
@media (max-width: 992px) {
    nav ul {
        display: none;
    }
    .story-layout-container, .community-item {
        flex-direction: column;
        align-items: center;
    }
    .story-image-column img, .community-image img {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .story-content-column {
        width: 100%;
        max-width: 600px;
    }
    .explore-env-btn {
        align-self: center;
    }
    .footer-container {
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
    }
    .footer-column {
        min-width: unset; 
        width: 90%; 
        max-width: 400px;
        padding: 20px; 
        text-align: left; 
    }
    .footer-bottom {
        flex-direction: column; 
        gap: 10px; 
        padding-top: 15px; 
    }
    .footer-bottom p, .footer-bottom a {
        width: 100%; 
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .content-section h2, .section-title-with-icons {
        font-size: 2em;
    }
    .activities-container {
        flex-direction: column;
        align-items: center;
    }
    .activity-card {
        width: 90%;
        max-width: 350px;
    }
    .form-group.captcha {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group.captcha .submit-btn {
        margin-top: 10px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .story-card {
        padding: 20px;
    }
    .story-card-header i {
        font-size: 1.5em;
        padding: 6px;
    }
    .story-card-header h3 {
        font-size: 1.3em;
    }

    .footer-column h4 {
        font-size: 1.3em; /* Adjusted heading size for smaller screens */
    }
    .footer-column h4::before {
        font-size: 1.1em; /* Adjusted icon size */
    }
    .footer-column p, .footer-column ul li, .footer-bottom p, .footer-bottom a {
        font-size: 0.9em; /* Slightly smaller text for better fit */
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1.5em;
    }
    .nav-buttons .admin-btn, .nav-buttons .lang-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .explore-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .section-title-with-icons {
        font-size: 1.8em;
        gap: 10px;
    }
    .section-title-with-icons i {
        font-size: 0.7em;
    }
    .story-layout-container {
        gap: 30px;
    }
    .explore-env-btn {
        font-size: 1em;
        padding: 10px 20px;
    }
    .activity-card {
        padding: 25px;
    }

    .footer-column {
        padding: 15px; 
    }
    .footer-column h4 {
        font-size: 1.2em;
    }
    .footer-column h4::before {
        font-size: 1em;
    }
    .footer-bottom {
        padding: 10px;
    }
}