:root {
    /* Updated color palette - more refined and modern */
    --patriotic-red: #D22630;
    --patriotic-blue: #002D62;
    --hunting-green: #2A6E37;
    --hunting-brown: #4A3C31;
    --hunting-tan: #E5DED1;
    --light-gray: #F7F7F7;
    --dark-text: #333333;
    --medium-gray: #757575;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
}

.header {
    background: var(--patriotic-blue);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 100px;
}

.nav-container {
    background-color: rgba(255,255,255,0.1);
    padding: 12px 0;
    border-radius: 5px;
    margin: 0 15px;
    display: flex;         /* Add flex display */
    justify-content: center;
    align-items: center;   /* Center items vertically */
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;   /* Center items vertically */
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 10px;
    display: flex;         /* Add flex display */
    align-items: center;   /* Align items inside each list item */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background-color: var(--patriotic-red);
    transform: translateY(-2px);
}

.social-btn {
    background-color: #1877f2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-btn:hover {
    transform: scale(1.1);
}

.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/backgrounds/ln-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--patriotic-red), white, var(--patriotic-blue));
}

.hero-content {
    max-width: 900px;
    padding: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 800;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    background-color: var(--patriotic-red);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    background-color: var(--hunting-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.main-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

.section {
    margin-bottom: 70px;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    color: var(--patriotic-blue);
    margin-bottom: 35px;
    position: relative;
    font-size: 2.2em;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.section p {
    font-size: 1.1em;
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Featured Hunting Trip Section */
.featured-trip {
    padding: 60px 30px;
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.trip-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.trip-content {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.trip-content h2 {
    font-size: 2em;
    color: var(--patriotic-blue);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.trip-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.trip-content p {
    font-size: 1.1em;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.donate-btn {
    display: inline-block;
    background-color: var(--patriotic-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.donate-btn:hover {
    background-color: var(--patriotic-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.image-grid {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 15px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.grid-item img:hover {
    transform: scale(1.05);
}

/* What We Offer Section */
.offerings {
    padding: 60px 30px;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.offerings-title {
    text-align: center;
    color: var(--patriotic-blue);
    margin-bottom: 50px;
    position: relative;
    font-size: 2.5em;
    font-weight: 700;
}

.offerings-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offering-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--patriotic-blue);
}

.hunting-bg::before {
    background-color: var(--hunting-brown);
}

.fishing-bg::before {
    background-color: var(--patriotic-blue);
}

.shooting-bg::before {
    background-color: var(--patriotic-red);
}

.offering-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.offering-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offering-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Remove the unused pseudo elements that were causing issues */
.offering-icon:after {
    display: none;
}

.hunting-bg .offering-icon:after {
    content: "🔫";
}

.fishing-bg .offering-icon:after {
    content: "🎣";
}

.shooting-bg .offering-icon:after {
    content: "🎯";
}

.hunting-bg .offering-icon img {
    filter: invert(18%) sepia(17%) saturate(743%) hue-rotate(341deg) brightness(91%) contrast(83%);
}

.fishing-bg .offering-icon img {
    filter: invert(10%) sepia(86%) saturate(3465%) hue-rotate(202deg) brightness(95%) contrast(102%);
}

.shooting-bg .offering-icon img {
    filter: invert(15%) sepia(71%) saturate(4643%) hue-rotate(346deg) brightness(91%) contrast(89%);
}

.offering-card h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1.5em;
    font-weight: 600;
}

.offering-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.offering-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-top: auto;
}

.offering-link:hover {
    color: var(--patriotic-blue);
}

.hunting-bg .offering-link:hover {
    color: var(--hunting-brown);
}

.fishing-bg .offering-link:hover {
    color: var(--patriotic-blue);
}

.shooting-bg .offering-link:hover {
    color: var(--patriotic-red);
}

/* Media query for responsive layout */
@media (max-width: 900px) {
    .offerings-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

.footer {
    background-color: var(--patriotic-blue);
    color: white;
    padding: 70px 0 30px;
    border-top: 5px solid var(--patriotic-red);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 30px;
}

.footer-section {
    flex: 1;
    min-width: 320px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Email styling in footer */
.footer-section p {
    font-size: 0.95em;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Email container class for all email links */
.email-container {
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.email-container a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--patriotic-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.footer a:hover {
    color: var(--patriotic-red);
}

.footer input[type="email"] {
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    border: none;
    font-size: 0.9em;
}

.footer button[type="submit"] {
    background-color: var(--patriotic-red);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer button[type="submit"]:hover {
    background-color: var(--hunting-green);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons i {
    margin-right: 6px;
}

.footer-logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo {
    height: 60px; /* Smaller version of the logo */
    filter: brightness(1.2); /* Makes the logo slightly brighter against the dark background */
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 5px 0;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .section {
        padding: 25px;
    }

    .trip-container {
        flex-direction: column;
    }
    
    .trip-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About Us Section with Video and Mission */
.about-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/backgrounds/mission-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    position: relative;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--patriotic-red), white, var(--patriotic-blue));
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 30px;
    gap: 40px;
}

.about-video-column {
    flex: 1;
    min-width: 300px;
}

.about-subtitle {
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--patriotic-red);
    margin-bottom: 15px;
    display: block;
}

.about-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-credit {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
    margin-top: 10px;
}

.about-mission-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.mission-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    color: var(--dark-text);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    height: fit-content;
}

.mission-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--patriotic-blue);
    position: relative;
    padding-bottom: 15px;
}

.mission-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.mission-content p {
    font-size: 1.1em;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.donate-button {
    display: inline-block;
    background-color: var(--patriotic-red);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.donate-button:hover {
    background-color: #b01b25; /* Slightly darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Media query for responsive layout */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-video-column, 
    .about-mission-column {
        width: 100%;
    }
    
    .about-title {
        font-size: 2em;
    }
    
    .video-wrapper {
        margin-bottom: 30px;
    }
    
    .about-section {
        padding: 50px 0;
    }
}

/* Gallery and Donation Section */
.gallery-donation {
    background-color: white;
    padding-bottom: 60px;
}

.horizontal-gallery {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--patriotic-blue) #f1f1f1;
    display: flex;
    justify-content: center; /* Center the gallery container */
}

.gallery-container {
    display: flex;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px; /* Match other containers max-width */
    margin: 0 auto; /* Help with centering */
    justify-content: center;
}

.gallery-item {
    margin-right: 15px;
    height: 250px;
    width: 350px; /* Set a fixed width */
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item:first-child {
    margin-left: 30px;
}

.gallery-item:last-child {
    margin-right: 30px;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.donation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.donation-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.donation-text {
    flex: 1;
    min-width: 300px;
}

.donation-text h2 {
    font-size: 2.2em;
    color: var(--patriotic-blue);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.donation-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.donation-text p {
    font-size: 1.1em;
    color: var (--medium-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.donation-btn {
    display: inline-block;
    background-color: var(--patriotic-blue);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.donation-btn:hover {
    background-color: var(--patriotic-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.donation-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donation-image img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .gallery-item {
        height: 180px;
    }
    
    .donation-content {
        flex-direction: column;
        text-align: center;
    }
    
    .donation-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .donation-image {
        order: -1;
    }
    
    .donation-image img {
        max-width: 80%;
    }
}

/* Support Us Section */
.support-links {
    margin-top: 15px;
    list-style: none;
}

.support-links li {
    margin-bottom: 15px;
}

.support-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.support-link i {
    margin-right: 10px;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.support-link:hover {
    color: var(--patriotic-red);
    transform: translateX(5px);
}

/* About page specific styles */
.about-page-section {
    background-color: white;
    padding: 100px 0;
}

.about-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.about-page-content {
    text-align: center;
}

.about-page-subtitle {
    font-size: 1.4em;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--patriotic-red);
    margin-bottom: 15px;
    display: block;
}

.about-page-title {
    font-size: 3em;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    color: var(--patriotic-blue);
    padding-bottom: 20px;
}

/* Contact page styles */
.contact-info-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
    padding: 20px 0;
}

.contact-info-item {
    flex: 0 1 350px;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5em;
    color: var(--patriotic-blue);
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.contact-info-item p {
    font-size: 1.1em;
    color: var(--medium-gray);
}

.contact-info-item a {
    color: var(--patriotic-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--patriotic-red);
}

.support-section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Media queries for Goal section responsiveness */
@media (max-width: 900px) {
    .about-goal-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-goal-image {
        width: 100%;
    }
    
    .about-goal-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-goal-section {
        padding: 50px 0;
    }
    
    .about-goal-title {
        font-size: 1.8em;
    }
    
    .about-goal-text {
        font-size: 1em;
    }
}

/* About Activities Icons Section */
.about-activities-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.about-activities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.about-activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}

.about-activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}

.about-activity-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.about-activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-activity-icon i {
    font-size: 3em;
    color: var(--hunting-brown);
}

.about-activity-icon:hover {
    transform: translateY(-5px);
}

.about-activity-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 10px;
}

/* Media queries for activity icons responsiveness */
@media (max-width: 900px) {
    .about-activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 480px) {
    .about-activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }
    
    .about-activity-icon {
        width: 70px;
        height: 70px;
    }
    
    .about-activity-title {
        font-size: 1.2em;
    }
}

/* Navigation active state */
.nav-menu a.active {
    background-color: var(--patriotic-red);
    color: white;
}

/* Gallery Page Styles */
.gallery-nav-section {
    background-color: var(--patriotic-blue);
    padding: 60px 0 30px;
    color: white;
    text-align: center;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.gallery-title {
    font-size: 3em;
    margin-bottom: 30px;
    font-weight: 800;
    color: white;
}

.gallery-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-nav-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-nav-link:hover, 
.gallery-nav-link:focus {
    background-color: var(--patriotic-red);
    border-color: var(--patriotic-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-section {
    padding: 80px 0;
    background-color: white;
}

.gallery-section:nth-child(odd) {
    background-color: var(--light-gray);
}

.gallery-section-title {
    font-size: 2.2em;
    color: var(--patriotic-blue);
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
    text-align: center;
}

.gallery-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--patriotic-red);
    border-radius: 2px;
}

/* Update gallery grid layout for better spacing and consistency */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 100%;
    padding: 0 15px; /* Add padding to prevent edge touching */
    width: 100%; /* Ensure the grid takes full width */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/5; /* Make images taller but not wider than height */
    height: auto;
    width: 100%;
    margin: 0; /* Reset any margin that might be causing issues */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Fix images being cut off at the top */
    transition: transform 0.5s ease;
    display: block; /* Prevent bottom margin/spacing issues */
}

/* Improve mobile gallery experience */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .gallery-section {
        padding: 50px 0;
    }
    
    /* Better spacing for section titles on mobile */
    .gallery-section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .gallery-item {
        aspect-ratio: 1/1; /* Square images on small mobile for better viewing */
    }
    
    /* Adjust title size for very small screens */
    .gallery-section-title {
        font-size: 1.5em;
    }
    
    .gallery-hero-section {
        height: 200px;
    }
    
    .gallery-title {
        font-size: 2.5em;
    }
}

/* Fix horizontal gallery on the homepage to match the main gallery styling */
.horizontal-gallery .gallery-container {
    gap: 20px;
    padding: 20px 15px;
    max-width: 100%;
    justify-content: center;
}

.horizontal-gallery .gallery-item {
    margin: 0 10px;
    height: 220px;
    width: 280px !important; /* Force fixed width regardless of screen size */
    max-width: 280px;
    flex-basis: 280px;
}

/* Remove any conflicting styles that might be causing the issue */
.gallery-item:first-child,
.gallery-item:last-child {
    margin: 0 10px;
}

.gallery-placeholder {
    background-color: var(--light-gray);
    height: 250px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--medium-gray);
    border: 2px dashed rgba(0,0,0,0.1);
}

.gallery-placeholder i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Scroll Behavior for Gallery Navigation */
html {
    scroll-behavior: smooth;
}

/* Scroll Padding for Fixed Header */
html {
    scroll-padding-top: 150px;
}

/* Gallery Page Styles */
.gallery-hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/backgrounds/gallery-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.gallery-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--patriotic-red), white, var(--patriotic-blue));
}

.gallery-hero-container {
    max-width: 1200px;
    padding: 0 30px;
}

.gallery-title {
    font-size: 4em;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Remove old gallery navigation styles */
.gallery-nav-section {
    display: none;
}

.gallery-nav {
    display: none;
}

.gallery-nav-link {
    display: none;
}

/* Add styles for gallery items */
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hide placeholders now that we have real images */
.gallery-placeholder {
    display: none;
}

/* Hamburger Menu - simplify and combine styles */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Very high z-index to ensure visibility */
    background-color: rgba(0, 45, 98, 0.8); /* Semi-transparent background */
    border-radius: 4px;
    padding: 9px 5px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add shadow for visibility */
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Enhanced Mobile Styles - make sure hamburger shows on mobile */
@media (max-width: 767px) {
    body.menu-open {
        overflow: hidden;
    }
    
    /* Fixed header for mobile */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 10px 0;
        width: 100%;
        overflow: visible; /* Allow menu to overflow */
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    .logo {
        height: 70px;
    }
    
    .hamburger-menu {
        display: flex !important; /* Force display to ensure visibility */
        position: fixed; /* Change from absolute to fixed */
        top: 20px;
        right: 20px;
        z-index: 1001; /* Higher than the menu */
    }
    
    .nav-container {
        padding: 0;
        background: none;
        margin: 0;
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: var(--patriotic-blue);
        padding: 70px 5px 10px; /* Reduced padding */
        z-index: 1000;
        align-items: center;
        justify-content: flex-start;
        max-height: 70vh; /* Limit height to not cover entire screen */
        overflow-y: auto;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-menu li {
        margin: 4px 0; /* Reduced margin */
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 8px 10px; /* Smaller but still touchable */
        font-size: 0.95em; /* Slightly smaller font */
        display: block;
    }
    
    .nav-menu a:hover {
        transform: none; /* Remove hover effects that don't work well on touch devices */
    }
    
    .social-btn {
        margin: 15px auto;
        width: 45px;
        height: 45px;
    }
    
    /* Improved mobile hero section */
    .hero {
        height: auto;
        min-height: 450px;
        padding: 60px 0;
    }
    
    .hero-content {
        width: 90%;
        padding: 25px 15px;
    }
    
    .hero h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    .hero-btn {
        padding: 12px 25px;
        margin: 5px;
        width: 100%;
        display: block;
    }

    /* Improved gallery sections - complete redesign for mobile */
    .gallery-section {
        padding: 40px 0 30px;
    }
    
    .gallery-container {
        display: flex;
        flex-direction: column;
    }
    
    .gallery-section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding: 0 15px;
        text-align: center;
        width: 100%; /* Make sure title takes full width */
        order: -1; /* Force the title to appear at the top */
    }
    
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns for mobile */
        gap: 12px;
        padding: 0 10px;
        width: 100%; /* Ensure grid takes full width */
    }
    
    .gallery-item {
        aspect-ratio: 1/1; /* Square images work better on mobile */
        height: auto;
        width: 100%;
        min-width: 150px; /* Minimum width to prevent tiny images */
        max-height: none;
        margin: 0 auto;
    }
    
    /* Fix horizontal scrolling gallery on mobile */
    .horizontal-gallery {
        padding: 0;
    }
    
    .horizontal-gallery .gallery-container {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .horizontal-gallery .gallery-item {
        height: 160px;
        width: 160px;
        margin: 0 5px;
    }

    /* Better footer layout for mobile */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-section {
        flex: 100%;
        text-align: center;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo-container {
        justify-content: center;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
    }
    
    /* Mobile Support Links */
    .support-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .support-link {
        justify-content: center;
    }
}

/* Extra small mobile screens - increased specificity for 480px and below */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    
    .gallery-item {
        aspect-ratio: 4/3; /* Slightly rectangular for better viewing */
    }
    
    .gallery-hero-section {
        height: 150px;
    }
    
    .gallery-title {
        font-size: 2em;
    }
    
    .hero-content {
        padding: 15px;
        width: 95%;
    }
    
    /* Reduce padding to show more content */
    .section, .gallery-section, .featured-trip {
        padding: 30px 10px;
    }
    
    /* Smaller logo for very small screens */
    .logo {
        height: 60px;
        max-width: 90%;
    }
    
    /* Adjust header padding */
    .header {
        padding: 8px 0;
    }
    
    /* Adjust hamburger position for smaller screens */
    .hamburger-menu {
        top: 15px;
        right: 15px;
    }
}

/* Ultra-narrow screens fix (below 360px) */
@media (max-width: 360px) {
    .logo {
        height: 50px;
        max-width: 80%;
    }
    
    /* Adjust hamburger menu position */
    .hamburger-menu {
        top: 12px;
        right: 10px;
    }
    
    /* Fix padding and margins */
    .header {
        padding: 5px 0;
    }
    
    .logo-container {
        margin-bottom: 2px;
        padding: 0 5px;
    }
    
    /* Make sure menu appears correctly */
    .nav-menu.active {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    /* Adjust footer sections for ultra-narrow screens */
    .footer-section {
        padding: 0 5px;
    }
    
    /* Shrink some text elements */
    .gallery-title {
        font-size: 1.8em;
    }
    
    .footer h3 {
        font-size: 1.2em;
    }
}

/* Extra narrow screens (332px and below) */
@media (max-width: 332px) {
    /* Critical header fixes */
    .header {
        padding: 3px 0;
        min-height: 60px;
    }
    
    .logo-container {
        margin-bottom: 0;
    }
    
    .logo {
        height: 40px; /* Even smaller logo */
        max-width: 70%;
    }
    
    /* Ensure hamburger menu stays visible */
    .hamburger-menu {
        width: 32px;
        height: 32px;
        padding: 7px 4px;
        top: 8px;
        right: 8px;
    }
    
    .hamburger-menu span {
        height: 2px; /* Thinner lines */
    }
    
    /* Fix mobile menu for very small screens */
    .nav-menu.active {
        padding-top: 70px; /* Reduced top padding */
    }
    
    .nav-menu li {
        margin: 4px 0;
    }
    
    .nav-menu a {
        padding: 10px;
        font-size: 0.95em;
    }
    
    /* Adjust hero section */
    .hero {
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 1.5em;
    }
    
    .hero p {
        font-size: 0.9em;
    }
    
    /* Adjust other elements for very small screens */
    .section-title, 
    .offerings-title, 
    .gallery-section-title {
        font-size: 1.4em;
    }
    
    .gallery-title {
        font-size: 1.6em;
    }
    
    .trip-content h2, 
    .donation-text h2,
    .mission-title {
        font-size: 1.3em;
    }
    
    /* Adjust padding and margins throughout */
    .section, 
    .about-section, 
    .gallery-section {
        padding: 20px 5px;
    }
    
    .footer-section {
        padding: 0 3px;
    }
    
    /* Ensure content fits inside the viewport */
    p, li, .about-page-text {
        font-size: 0.95em;
    }
    
    .footer-bottom p {
        font-size: 0.8em;
    }
}

/* Ensure header is flexible enough for any width */
.header {
    min-width: 320px; /* Minimum width to prevent breaking */
    width: 100%;
    box-sizing: border-box;
    position: relative; /* Ensure proper containment */
}

/* Make sure logo container stays contained */
.logo-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Ensure hamburger menu is always visible and properly positioned */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background-color: rgba(0, 45, 98, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    padding: 9px 5px;
    display: none;
}

/* Fix for hamburger menu visibility and z-index */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Very high z-index to ensure visibility */
    background-color: rgba(0, 45, 98, 0.7); /* Semi-transparent background */
    width: 40px;
    height: 40px;
    border-radius: 4px;
    padding: 9px 5px;
}

/* Add fade animation for menu */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Make the lines visible against any background */
.hamburger-menu span {
    height: 3px;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add shadow for visibility */
}

/* Fix aspect ratio for gallery grid items */
.gallery-grid .gallery-item {
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    overflow: hidden;
}

.gallery-grid .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure consistent gallery container styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Add fixed positioning for hamburger icon to ensure it stays visible */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001; /* Higher than the menu */
    background-color: rgba(0, 45, 98, 0.8); /* Semi-transparent background */
    width: 40px;
    height: 40px;
    border-radius: 4px;
    padding: 9px 5px;
    display: none;
}

/* Our Goal Section on About Page */
.about-goal-section {
    padding: 80px 0;
    background-color: white;
}

.about-goal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-goal-image {
    flex: 1;
}

.goal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-goal-content {
    flex: 1;
    padding: 20px 0;
}

.about-goal-title {
    font-size: 2.2em;
    color: #000;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.about-goal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--patriotic-red);
    border-radius: 2px;
}

.about-goal-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Media queries for Goal section responsiveness */
@media (max-width: 900px) {
    .about-goal-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-goal-image {
        width: 100%;
    }
    
    .about-goal-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-goal-section {
        padding: 50px 0;
    }
    
    .about-goal-title {
        font-size: 1.8em;
    }
    
    .about-goal-text {
        font-size: 1em;
    }
}

/* Contact page specific styles */
.contact-info-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
    padding: 20px 0;
}

.contact-info-item {
    flex: 0 1 350px;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5em;
    color: var(--patriotic-blue);
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.contact-info-item p {
    font-size: 1.1em;
    color: var(--medium-gray);
}

.contact-info-item a {
    color: var(--patriotic-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--patriotic-red);
}

.support-section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Additional person-info styling */
.gallery-item .person-info {
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item .person-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.gallery-item .person-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Fix for Firefox gallery grid display */
@-moz-document url-prefix() {    .gallery-grid {        display: grid;        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));        width: 100%;    }        .gallery-grid .gallery-item {        width: 100%;        min-width: 0;        display: block;        margin: 0;    }        .gallery-grid .gallery-item img {        width: 100%;        height: 100%;        object-fit: cover;    }}

