/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Import Montserrat and Zapfino-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top bar styles */
.top-bar {
    background-color: white;
    height: 40px;
    width: 100%;
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.top-bar-social {
    display: flex;
    gap: 5px;
}

.top-bar-social a {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 2px;
}

.top-bar-social .facebook,
.top-bar-social .twitter,
.top-bar-social .instagram,
.top-bar-social .youtube {
    background-color: transparent;
}

.top-bar-social .social-icon {
    width: 16px;
    height: 16px;
    color: #4e5c78;
}

/* Header styles */
.header {
    background-color: #4e5c78; /* Updated color */
    padding: 10px 0; /* Reduce padding */
    position: relative;
    z-index: 1000;
}

.social-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.footer-social-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.composed-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-text-top {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: white;
    letter-spacing: 1px;
}

.logo-text-bottom {
    font-family: 'Dancing Script', 'Zapfino', 'Brush Script MT', cursive;
    font-size: 27px;
    color: white;
    font-style: italic;
    font-weight: 500;
    margin-left: -21px;
}

/* Large logo variant */
.logo-large .logo-img {
    height: 120px;
}

.logo-large .logo-text-top {
    font-size: 24px;
}

.logo-large .logo-text-bottom {
    font-size: 36px;
    margin-left: -28px;
}

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

.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #4e5c78;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: #87ceeb;
}

.donate-btn {
    background-color: transparent;
    border: 2px solid #5EB4DD;
    color: white;
    padding: 8px 20px;
    margin-right: 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    background-color: white;
    color: #4a5d7a;
}

/* Hero section */
.hero {
    position: relative;
    height: 80vh; /* Increase height */
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    background-color: #5a6b8a;
    padding: 32px 0;
    width: 100%;
    z-index: 10;
}

.love-huckleberry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16pt;
    font-weight: 600;
    text-shadow: none;
}

.get-a-map img {
    width: 48px;
    height: 48px;
}

.hashtag {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2.5px;
    color: #ffffff;
}

/* About section */
.about-section {
    padding: 75px 0 50px 0;
    background-color: white; /* Change from gray to white */
}

.about-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Donation section */
.donation-section {
    padding: 50px 0;
    background-color: #f5f5f5; /* Light gray background */
}

.donation-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.give-local-logo {
    flex-shrink: 0;
}

.give-local-img {
    width: 200px;
    height: auto;
    border: 3px solid #7a7a7a;
    transition: border-color 0.3s ease;
}

.give-local-img:hover {
    border-color: #4a4a4a;
}

.donation-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.2;
}

.donation-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555;
}

.donate-btn-secondary {
    background-color: #3E496A;
    border: 2px solid #5EB4DD;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-btn-secondary:hover {
    background-color: #5EB4DD;
    color: white;
}

/* Explore section */
.explore-section {
    padding: 60px 0;
    background-color: white;
}

.explore-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 2px;
}

.explore-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 10px;
}

.explore-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.explore-card.plan-visit {
    background-image: url('images/plantrip.jpg');
    background-color: #3b82f6;
}

.explore-card.projects {
    background-image: url('images/projects.jpg');
    background-color: #dc267f;
}

.explore-card.connections {
    background-image: url('images/connections.jpg');
    background-color: #22c55e;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.card-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: lowercase;
}

.card-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 300;
}

.arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.explore-card:hover .arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: #4e5c78; /* Match header color */
    color: white;
    padding: 40px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 30% auto 30%;
    gap: 40px;
    align-items: start;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.footer-column:first-child h4 {
    font-size: 0.95rem;
}

.footer-column:last-child {
    text-align: center;
}

.footer-column:last-child h4 {
    font-size: 0.95rem;
    margin-bottom: 0px;
}

.footer-column:last-child h4:first-of-type {
    margin-bottom: 0px;
}

.footer-column:last-child p {
    font-size: 12px;
}

.footer-column p {
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.footer-column:first-child {
    text-align: center;
}

.footer-column:first-child p {
    font-size: 12px;
}

.footer-column h4:last-of-type {
    margin-top: 5px;
    margin-bottom: 10px;
}

.footer-column p.hashtag {
    color: #5EB4DD;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
}

.footer-column p.hashtag:hover {
    color: #87ceeb;
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.footer-column p.hashtag:active {
    transform: scale(0.95);
}

.footer-logo-section {
    text-align: center;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.footer-logo-section .composed-logo {
    margin-bottom: 20px;
    justify-content: center;
}

.footer-logo-section .logo-img {
    height: 42px; /* 30% smaller: 60px * 0.7 = 42px */
}

.footer-logo-section .logo-text-top {
    font-size: 8.4px; /* 30% smaller: 12px * 0.7 = 8.4px */
}

.footer-logo-section .logo-text-bottom {
    font-size: 12.6px; /* 30% smaller: 18px * 0.7 = 12.6px */
    margin-left: -9.8px; /* 30% smaller: -14px * 0.7 = -9.8px */
}

.footer-logo-section p {
    text-align: left;
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
    justify-content: center;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}


.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    background-color: white;
    color: #333;
    font-size: 0.85rem;
    width: 100%;
    margin: 0;
    position: relative;
    bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    
    .hero {
        height: 50vh;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
    
    .donation-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .give-local-img {
        width: 150px;
    }
    
    .donation-info h3 {
        font-size: 1.5rem;
    }
    
    .explore-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .explore-section h2 {
        font-size: 2rem;
    }
    
    .card-overlay h3 {
        font-size: 1.2rem;
    }
}

/* Page Styles for Additional Pages */
.page-hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.content-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.content-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-overlay {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .love-huckleberry {
        font-size: 16px;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
    }
    
    .donation-info h3 {
        font-size: 1.3rem;
    }
    
    .explore-section h2 {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 30px;
    }
}

/* H2 section separators */
.content-section h2:not(:first-child) {
    border-top: 2px solid #ddd;
    padding-top: 40px;
    margin-top: 60px;
}

/* Map Resources heading specific styling */
#Map-Resources {
    border-top: 2px solid #666 !important;
    padding-top: 5px !important;
}

/* Parking Options heading specific styling */
.parking-section h2 {
    border-top: 2px solid #666 !important;
    padding-top: 5px !important;
    margin-top: 60px !important;
}

/* Trail segments layout */
.trail-segments-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.logo-cluster {
    flex-shrink: 0;
}

.logo-cluster-img {
    width: 300px;
    height: auto;
}

.trail-info {
    flex: 1;
}

.trail-info ul {
    list-style: none;
    padding: 0;
}

.trail-info li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.trail-info li::before {
    content: "•";
    color: #4e5c78;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Map intro layout */
.map-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.map-preview {
    flex: 0 0 50%;
}

/* Interactive Map Styles */
.interactive-map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.map-fallback {
    position: relative;
}

.map-error-message {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(78, 92, 120, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    margin: 0;
}

/* Trail Popup Styles */
.trail-popup {
    font-family: 'Montserrat', sans-serif;
    max-width: 280px;
    padding: 5px;
}

.trail-popup-header {
    margin-bottom: 12px;
}

.trail-name {
    color: #4e5c78;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.3;
}

.trail-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.segment-badge, .difficulty-badge {
    font-size: 0.7em;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.segment-badge {
    background-color: #4e5c78;
    color: white;
}

.segment-main {
    background-color: #4e5c78;
}

.segment-north {
    background-color: #5EB4DD;
}

.segment-south {
    background-color: #87ceeb;
    color: #333;
}

.difficulty-badge {
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
}

.difficulty-easy {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.difficulty-moderate {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.difficulty-hard {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.trail-details {
    margin-top: 10px;
}

.trail-detail {
    margin: 4px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.trail-detail strong {
    color: #4e5c78;
    font-weight: 500;
}

.trail-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    line-height: 1.4;
    color: #666;
    font-style: italic;
}

/* Leaflet Control Customization */
.leaflet-control-zoom a {
    background-color: #4e5c78 !important;
    border-color: #4e5c78 !important;
    color: white !important;
}

.leaflet-control-zoom a:hover {
    background-color: #5EB4DD !important;
    border-color: #5EB4DD !important;
}

.map-preview-img {
    width: 100%;
    height: auto;
    padding-right: 60px;
    padding-left: 60px;
    padding-bottom: 30px;
}

.map-intro-text {
    flex: 1;
}

.pisgah-map-front {
    width: 200px;
    height: auto;
    margin: 20px 0;
}

/* Pisgah map layout */
.pisgah-map-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.pisgah-map-left {
    flex: 1;
}

.pisgah-map-right {
    flex: 1;
}

.map-locations {
    margin-top: 20px;
}

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

.location-group h5 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.location-group ul {
    list-style: none;
    padding: 0;
}

.location-group li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.location-group li::before {
    content: "•";
    color: #4e5c78;
    position: absolute;
    left: 0;
}

.location-group a {
    color: #4e5c78;
    text-decoration: none;
}

.location-group a:hover {
    text-decoration: underline;
}

/* Avenza section layout */
.avenza-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.avenza-image {
    flex: 0 0 35%;
}

.avenza-post-img {
    width: 100%;
    height: auto;
}

.avenza-text {
    flex: 1;
}

@media (max-width: 768px) {
    .pisgah-map-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .avenza-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 40px;
}

.faq-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.faq-section > p {
    margin-bottom: 30px;
    color: #666;
    font-style: italic;
}

.faq-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.faq-question h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-answer a {
    color: #4e5c78;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Parking Section Styling - similar to FAQ */
.parking-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.parking-item {
    border-bottom: 1px solid #ddd;
}

.parking-item:last-child {
    border-bottom: none;
}

.parking-question {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.parking-question:hover {
    background-color: #e9ecef;
}

.parking-toggle {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.parking-question h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.parking-item.active .parking-toggle {
    transform: rotate(45deg);
}

.parking-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.parking-item.active .parking-answer {
    max-height: 800px;
}

.parking-answer ul {
    padding: 20px;
    margin: 0;
    list-style: none;
}

.parking-answer li {
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.parking-answer li::before {
    content: "•";
    color: #4e5c78;
    position: absolute;
    left: 0;
}

.parking-answer ul ul {
    padding: 10px 0 0 20px;
}

.parking-answer ul ul li {
    margin-bottom: 8px;
}

.parking-answer a {
    color: #4e5c78;
    text-decoration: none;
}

.parking-answer a:hover {
    text-decoration: underline;
}

/* Projects page styling */
.projects-header-image {
    text-align: center;
    margin: 30px 0;
}

.shovel-img {
    width: 95%;
    height: auto;
    padding: 0 2.5%;
}

.support-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0 50px 0;
    text-align: left;
}

.support-section h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.support-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.support-section .donate-btn-secondary {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.project-section {
    margin: 40px 0;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.project-section:last-child {
    border-bottom: none;
}

.project-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.project-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-section a {
    color: #4e5c78;
    text-decoration: none;
}

.project-section a:hover {
    text-decoration: underline;
}

/* Project content layout */
.project-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.project-image {
    flex: 0 0 35%;
}

.master-plan-img,
.huckleberries-img,
.field-explorer-img,
.maps-img,
.markers-img,
.watercolors-img {
    width: 100%;
    height: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.project-text {
    flex: 1;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-image {
        flex: none;
    }
}

/* Connections page styling */
.connections-hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

.connections-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.content-section h2:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.connections-intro p {
    color: #666;
    line-height: 1.6;
    margin: 30px 0 50px 0;
}

.trail-connection {
    margin: 40px 0;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.trail-connection:last-child {
    border-bottom: none;
}

.trail-connection h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.trail-connection p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.trail-connection a {
    color: #4e5c78;
    text-decoration: none;
}

.trail-connection a:hover {
    text-decoration: underline;
}

/* Trail connection content layout */
.trail-connection-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.trail-connection-image {
    flex: 0 0 30%;
}

.bike-skills-img,
.mcdonald-hollow-img,
.coal-mining-img {
    width: 100%;
    height: auto;
}

.trail-connection-text {
    flex: 1;
}

@media (max-width: 768px) {
    .trail-connection-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .trail-connection-image {
        flex: none;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #dc3545; /* Red color to match original site */
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .trail-segments-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-cluster-img {
        width: 250px;
    }
    
    .map-intro-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .map-preview-img {
        width: 80vw;
        max-width: 400px;
    }
    
    .interactive-map-container {
        height: 300px;
    }
    
    .trail-popup {
        max-width: 220px;
        padding: 3px;
    }
    
    .trail-name {
        font-size: 1em;
    }
    
    .trail-detail {
        font-size: 0.8em;
    }
    
    .trail-description {
        font-size: 0.75em;
    }
    
    .segment-badge, .difficulty-badge {
        font-size: 0.65em;
        padding: 1px 4px;
    }
    
    .faq-item h4 {
        font-size: 1rem;
    }
}

/* About page styling */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0 0 30%;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-quote {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0 50px 0;
    border-left: 4px solid #4e5c78;
}

.about-quote blockquote {
    margin: 0;
    font-style: italic;
}

.about-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-quote cite {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    font-style: normal;
}

.about-description {
    margin: 40px 0;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    text-align: left;
    max-width: 800px;
    margin: 0;
}

.board-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
}

.board-directors h3,
.exofficio-members h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.board-directors ul,
.exofficio-members ul {
    list-style: disc;
    padding-left: 20px;
}

.board-directors li,
.exofficio-members li {
    margin-bottom: 6px;
    color: #666;
    line-height: 1.5;
}

.about-donate {
    text-align: center;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-image {
        flex: none;
        text-align: center;
    }
    
    .board-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-quote {
        padding: 30px 20px;
    }
    
    .about-quote p {
        font-size: 1rem;
    }
}

/* Donate page styling */
.donate-hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

.donate-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.donate-intro {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0 50px 0;
    text-align: center;
}

.donate-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.donation-methods {
    margin: 50px 0;
}

.donation-methods h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.donation-methods > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.donation-option {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.donation-option h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.donation-option p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.donate-btn-primary {
    background-color: #5a9fd4;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.donate-btn-primary:hover {
    background-color: #4a8bc2;
}

.mailing-address {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
}

.mailing-address p {
    margin: 0;
    font-family: monospace;
    color: #333;
}

.resource-donations {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.resource-donations h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.resource-donations p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-list ul {
    list-style: none;
    padding: 0;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-list li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.5;
}

.contact-list a {
    color: #4e5c78;
    text-decoration: none;
}

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

/* Resource donations layout */
.resource-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.resource-text {
    flex: 1;
}

.bench-example {
    flex: 0 0 40%;
    text-align: center;
}

.bench-example figure {
    margin: 0;
}

.bench-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bench-example figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

@media (max-width: 768px) {
    .donation-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .donation-option {
        padding: 20px;
    }
    
    .donate-intro {
        padding: 30px 20px;
    }
    
    .donate-intro p {
        font-size: 1rem;
    }
    
    .resource-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .bench-example {
        flex: none;
    }
}

/* History page styling */
.history-hero-image {
    text-align: center;
    margin: 30px 0 50px 0;
}

.rail-img {
    width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.history-section {
    margin: 40px 0;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.history-section:last-of-type {
    border-bottom: none;
}

.history-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.history-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.history-section a {
    color: #4e5c78;
    text-decoration: none;
}

.history-section a:hover {
    text-decoration: underline;
}

.history-sources {
    margin: 50px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.history-sources h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.history-sources ol {
    padding-left: 20px;
}

.history-sources li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.history-sources em {
    font-style: italic;
}

/* Historical images layout */
.historical-images {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    justify-content: center;
}

.historical-image {
    flex: 1;
    text-align: center;
}

.historical-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.historical-image .historical-img {
    height: 400px;
    object-fit: cover;
}

.historical-image:nth-child(2) .historical-img {
    max-width: 300px;
}

@media (max-width: 768px) {
    .history-section h3 {
        font-size: 1.5rem;
    }
    
    .history-sources {
        padding: 20px;
    }
    
    .history-sources h4 {
        font-size: 1.1rem;
    }
    
    .historical-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .historical-img {
        max-width: 250px;
    }
}
