/* Trek With Us - Bootstrap 5 Enhanced Travel Site Styles */

/* Bootstrap 5 Custom CSS Variables */
:root {
  --bs-primary: #2c5530;
  --bs-primary-rgb: 44, 85, 48;
  --bs-secondary: #4a7c59;
  --bs-success: #28a745;
  --bs-info: #17a2b8;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #343a40;
}

/* Base Bootstrap Overrides */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Primary Color Overrides */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a3d1e;
    border-color: #1a3d1e;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

/* Custom Card Enhancements */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Clickable card styling */
.card[style*="cursor: pointer"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
}

/* Navbar Enhancements - Green Button Style */
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: white !important;
    background: var(--bs-primary);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    text-align: center;
    min-width: 80px;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    background: #1a3d1e !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 85, 48, 0.3);
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
}

/* Custom badge styling */
.badge {
    font-weight: 500;
}

/* Additional utility classes */
.tracking-wider {
    letter-spacing: 0.1em;
}

/* List group enhancements */
.list-group-item-action:hover {
    background-color: rgba(44, 85, 48, 0.1);
    border-color: var(--bs-primary);
}

.list-group-item-action:focus {
    background-color: rgba(44, 85, 48, 0.1);
    border-color: var(--bs-primary);
}

/* Card header customizations */
.card-header.bg-primary {
    background-color: var(--bs-primary) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Breadcrumb styling for dark backgrounds */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Trek Site Header Navigation */
.site-header {
    background: white;
    color: #2c5530;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e5e5;
}

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

.header-logo .logo {
    height: 78px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav .nav-link {
    background: #2c5530;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.site-nav .nav-link:hover {
    background: #1a3d1e;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* Homepage Hero Section */
.hero-home {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    aspect-ratio: 4/3;
    max-width: 550px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Recent Trips Section */
.recent-trips {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(44, 85, 48, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-content {
    padding: 2.3rem !important;
}

/* More specific selector for card content */
.card .card-content {
    padding: 2.3rem !important;
}

.card-content h3 {
    color: #2c5530;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.card-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.card-meta span {
    color: #2c5530;
    font-weight: 600;
    background: #f0f7f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-link {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid #2c5530;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: #2c5530;
    color: white;
    text-decoration: none;
}

.no-trips-home {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

.no-trips-home h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Legacy hero for other pages */
.hero {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Trip Page Styles */
.trip header {
    text-align: center;
    margin-bottom: 3rem;
}

.trip h1 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trip header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

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

.stop {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2c5530;
}

.stop h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.stop small {
    color: #666;
    font-weight: normal;
    font-size: 0.9rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Gallery variations for different contexts */
.trip-stops .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.stop-gallery .gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Gallery captions */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery a:hover .gallery-caption {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* Photo Grid (for trip cards preview) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    max-height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single photo display */
.single-photo {
    text-align: center;
    margin: 2rem 0;
}

.single-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.photo-caption {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Lightbox enhancement */
.gallery a[data-gallery] {
    cursor: zoom-in;
}

/* Hero image styling - moved to main hero section above */

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.lightbox-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox img {
        max-height: 70vh;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .lightbox-nav {
        padding: 0 1rem;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stop-gallery .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 100px;
    }

    .gallery-caption {
        padding: 1rem 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Trips Listing Page */
.hero p {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.trips-listing {
    padding: 3rem 0;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trip-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.trip-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trip-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-image img {
    transform: scale(1.05);
}

.trip-dates {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(44, 85, 48, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.trip-content {
    padding: 2.3rem !important;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* More specific selector to ensure padding is applied */
.trip-card .trip-content {
    padding: 2.3rem !important;
}

.trip-content h2 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.trip-duration {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-duration::before {
    content: "📅";
    font-size: 1rem;
}

.days-count {
    color: #2c5530;
    font-weight: 700;
    background: #f0f7f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.trip-summary {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trip-meta {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.85rem;
    justify-content: space-between;
    align-items: center;
}

.stop-count, .country-count {
    color: #2c5530;
    font-weight: 700;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e8 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 18px;
    border: 1px solid rgba(44, 85, 48, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stop-count::before {
    content: "📍";
    font-size: 0.9rem;
}

.country-count::before {
    content: "🌍";
    font-size: 0.9rem;
}

.no-trips {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-trips h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* Bucket List Page */
.bucket-list-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.bucket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.bucket-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.bucket-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.bucket-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.bucket-item h3 {
    color: #2c5530;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.bucket-item .location {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.bucket-item .description {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.bucket-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bucket-cta h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bucket-cta p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: #2c5530;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #1a3d1e;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.cta-button.secondary:hover {
    background: #2c5530;
    color: white;
}

/* Maps Page */
.maps-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.map-placeholder {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 4rem;
    border: 2px dashed #e0e0e0;
}

.placeholder-content {
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.map-placeholder h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.map-placeholder p {
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.map-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    background: #2c5530;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-link:hover {
    background: #1a3d1e;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.map-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-cta h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.map-cta p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trip Page */
.trip-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.trip-map {
    margin-bottom: 4rem;
    text-align: center;
}

.trip-map img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.trip-description {
    margin: 3rem 0;
    text-align: center;
}

.trip-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.trip-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    width: 100% !important;
    text-align: center !important;
}

.trip-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trip-meta strong {
    color: #2c5530;
    font-size: 1.1rem;
}

.trip-meta span {
    color: #666;
    background: #f0f7f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}


.trip-meta .trip-dates,
strong.trip-dates {
    color: white !important;
    background: #2c5530 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 1 !important;
}

.trip-stops {
    display: grid;
    gap: 3rem;
}

.stop-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stop-header h2 {
    color: #2c5530;
    font-size: 1.6rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.stop-dates {
    color: #666;
    font-weight: 600;
    background: #f0f7f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stop-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Compact Trip Stop Cards */
.trip-stops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stop-card-compact {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: fit-content;
}

.stop-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stop-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.stop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stop-date-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stop-card-content {
    padding: 1rem;
}

.stop-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.stop-description-compact {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stop-meta-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.photo-count-compact {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .trip-stops-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .stop-card-image {
        height: 140px;
    }

    .stop-card-content {
        padding: 0.75rem;
    }
}

.stop-notes {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Clickable Stop Cards */
.stop-card.clickable {
    cursor: pointer;
    position: relative;
}

.stop-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.stop-preview {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.photo-count, .journal-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.photo-count {
    color: #2c5530;
}

.photo-count.no-photos {
    color: #999;
}

.journal-indicator {
    color: #2c5530;
}

.journal-indicator.no-journal {
    color: #999;
}

.stop-action {
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.view-details {
    color: #2c5530;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Individual Stop Page */
.stop-page .hero {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.stop-page .hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stop-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.stop-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stop-meta .stop-dates {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stop-number {
    color: #666;
    background: #f0f7f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stop-page .stop-number {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Stop Hero Image */
.stop-hero-image {
    padding: 1rem 0;
    margin: 0;
    background-color: #f8f9fa;
}

.stop-hero-image .container {
    padding: 0 20px;
    max-width: 1200px;
}

.hero-image-wrapper {
    max-width: 1000px;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stop-hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.stop-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Countries Visited Page */
.countries-page .hero {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    color: white;
    padding: 4rem 0;
}

.countries-page .hero-description {
    font-size: 1.2rem;
    margin: 2rem 0;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #90c695;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* World Map Section */
.world-map-section {
    padding: 5rem 0;
    background: white;
}

.world-map-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.world-map-container {
    margin: 0 auto;
    max-width: none;
}

.world-map-container #world-map {
    height: 600px !important;
    width: 100% !important;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Trip Legend */
.trip-legend {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.trip-legend h4 {
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Responsive legend */
@media (max-width: 768px) {
    .legend-items {
        gap: 1rem;
    }

    .legend-item {
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
    }

    .legend-item span {
        font-size: 0.85rem;
    }
}

/* Countries List Section */
.countries-list-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.countries-list-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.country-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    margin: 0;
}

.country-stats .stop-count {
    background: #90c695;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.country-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.destination-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.destination-name {
    font-weight: 600;
    color: #2c5530;
}

.destination-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.destination-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.destination-link:hover {
    color: #2c5530;
    text-decoration: none;
}

.destination-link:hover .destination-name {
    color: #1e3a21;
}

.destination-item:hover {
    background: #e8f5e8;
    transform: translateY(-1px);
}

/* Countries Summary */
.countries-summary {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.countries-summary h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.countries-summary p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1a3a1e;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #2c5530;
    border-color: #2c5530;
}

.btn-secondary:hover {
    background: #2c5530;
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .countries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .destination-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}

/* States Visited Page */
.states-page .hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5530 100%);
    color: white;
    padding: 4rem 0;
}

.states-page .hero-description {
    font-size: 1.2rem;
    margin: 2rem 0;
    opacity: 0.9;
}

/* US Map Section */
.us-map-section {
    padding: 5rem 0;
    background: white;
}

.us-map-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
}

.us-map-container {
    margin: 0 auto;
    max-width: none;
}

.us-map-container #us-map {
    height: 600px !important;
    width: 100% !important;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.map-placeholder {
    height: 600px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-placeholder h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: #666;
    font-size: 1.1rem;
}

/* States List Section */
.states-list-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.states-list-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.state-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.state-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
}

.state-stats .destination-count {
    background: #1a3a5c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.state-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* US Travel Summary */
.us-travel-summary {
    padding: 5rem 0;
    background: white;
}

.summary-card {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.summary-card h3 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.summary-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-section {
    margin: 2rem 0;
    text-align: center;
}

.progress-section h4 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5530 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: #666;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Responsive adjustments for states page */
@media (max-width: 768px) {
    .states-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .state-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-bar {
        max-width: 300px;
    }
}

.stop-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.stop-navigation.bottom {
    margin-top: 4rem;
    margin-bottom: 0;
    justify-content: center;
}

.nav-button {
    background: #2c5530;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background: #1a3d1e;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-button.trip {
    background: transparent;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.nav-button.trip:hover {
    background: #2c5530;
    color: white;
}

.stop-details {
    display: grid;
    gap: 3rem;
}

.stop-description h2,
.stop-map h2,
.stop-journal h2,
.stop-gallery h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.stop-description,
.stop-map,
.stop-journal,
.stop-gallery {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-stop-map {
    text-align: center;
}

.single-stop-map img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.journal-content {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

.journal-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.journal-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.edit-journal-btn,
.add-photos-btn,
.save-btn,
.cancel-btn {
    background: #2c5530;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-journal-btn:hover,
.add-photos-btn:hover,
.save-btn:hover {
    background: #1a3d1e;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #666;
    margin-left: 1rem;
}

.cancel-btn:hover {
    background: #555;
}

.journal-editor {
    margin-top: 1.5rem;
}

.journal-editor textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
}

.journal-editor textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.journal-form-actions,
.photo-form-actions {
    margin-top: 1rem;
    text-align: center;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-placeholder {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.gallery-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.photo-upload {
    margin-top: 1.5rem;
}

.upload-area {
    position: relative;
    border: 2px dashed #2c5530;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f0f7f0;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e8f5e8;
    border-color: #1a3d1e;
}

.upload-area input[type="file"] {
    position: absolute;
    left: -9999px;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.upload-label p {
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.upload-label small {
    color: #666;
}

/* Simple Footer */
footer {
    background: #2c5530;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-image {
        aspect-ratio: 16/9;
    }

    .cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .card-content {
        padding: 2.2rem !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .trip h1 {
        font-size: 2rem;
    }

    .stop {
        padding: 1rem;
        margin: 2rem 0;
    }

    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .trip-card {
        margin-bottom: 1rem;
    }

    .trip-image {
        height: 200px;
    }

    .trip-content {
        padding: 2.2rem !important;
        min-height: auto;
    }

    .trip-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .trip-summary {
        -webkit-line-clamp: 2;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .trip-meta {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stop-count, .country-count {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .bucket-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .bucket-item {
        padding: 1.5rem;
    }

    .bucket-cta {
        padding: 2rem 1rem;
    }

    .bucket-cta h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 200px;
        text-align: center;
    }
}

/* Header Image */
.header-image {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Top Navigation */
.top-nav {
    background: #3776ab;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background: #ffd43b;
    color: #3776ab;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 212, 59, 0.4);
}

/* Layout */
.content {
    width: 100%;
    min-height: calc(100vh - 180px); /* Adjusted for header image + top nav */
}

/* Module Sub-Navigation */
.module-subnav {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

.module-title {
    text-align: center;
    color: #3776ab;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.subnav-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* Ensure subnav stays on one line on desktop */
@media (min-width: 769px) {
    .subnav-buttons {
        flex-wrap: nowrap !important;
    }
    
    .subnav-btn {
        flex-shrink: 1;
        min-width: auto;
    }
}

.subnav-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: white;
    color: #555;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    text-transform: uppercase;
}

.subnav-btn:hover {
    background: #e3f2fd;
    color: #3776ab;
    border-color: #3776ab;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.subnav-btn.active {
    background: #3776ab;
    color: white;
    border-color: #3776ab;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(55, 118, 171, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: white;
    padding: 3rem 2rem; /* Reduced padding since we have header image */
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #3776ab;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Content Sections */
.welcome-section,
.learning-path,
.target-audience,
.about-content {
    padding: 3rem 0;
}

.welcome-section {
    background: #f9f9f9;
}

.welcome-section h2,
.learning-path h2,
.target-audience h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #3776ab;
}

/* Benefits Grid */
.benefits-grid,
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card,
.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.benefit-card:hover,
.audience-card:hover {
    transform: translateY(-4px);
}

.benefit-card h3,
.audience-card h3 {
    color: #3776ab;
    margin-bottom: 1rem;
}

/* Modules Overview */
.modules-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Tablet and mobile responsive for modules */
@media (max-width: 1024px) {
    .modules-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-overview {
        grid-template-columns: 1fr;
    }
}

.module-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.1);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3776ab 0%, #2196f3 50%, #00bcd4 100%);
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(55, 118, 171, 0.2);
    border-color: #3776ab;
}

.module-number {
    display: inline-block;
    background: linear-gradient(135deg, #3776ab 0%, #2196f3 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(55, 118, 171, 0.3);
    letter-spacing: 0.5px;
}

.module-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.module-card p {
    margin-bottom: 1.5rem;
    color: #5a6c7d;
    line-height: 1.6;
}

.module-link {
    display: inline-block;
    color: white;
    background: linear-gradient(135deg, #3776ab 0%, #2196f3 100%);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 3px 10px rgba(55, 118, 171, 0.2);
}

.module-link:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1976d2 100%);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(55, 118, 171, 0.3);
}

/* Page Header */
.page-header {
    background: #3776ab;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Compact Page Header */
.page-header-compact {
    background: #3776ab;
    color: white;
    padding: 0.75rem 0;
    text-align: center;
}

.page-header-compact h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* About Page Styles */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.main-content h2 {
    color: #3776ab;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.main-content h3 {
    color: #3776ab;
    margin: 1.5rem 0 0.5rem 0;
}

.features-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3776ab;
}

.learning-stages {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.stage {
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 6px;
}

.stage h4 {
    color: #3776ab;
    margin-bottom: 0.5rem;
}

.target-list {
    list-style: none;
    margin: 1rem 0;
}

.target-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cta-section {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Sidebar */
.sidebar-content .info-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3776ab;
}

.info-box h3 {
    color: #3776ab;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.info-box li::before {
    content: "";
    color: #3776ab;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.site-footer {
    background: #3776ab;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-image {
        height: 80px;
    }
    
    .hamburger {
        display: block !important;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c5aa0;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
        transform: none !important;
        display: block;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.15);
        transform: none !important;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .content {
        min-height: calc(100vh - 140px);
    }
    
    /* Mobile Content Improvements */
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-section,
    .learning-path,
    .target-audience,
    .content-section {
        padding: 2.5rem 0;
    }
    
    .benefits-grid,
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card,
    .audience-card,
    .module-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Module Page Mobile Improvements */
    .module-subnav {
        padding: 1rem 0;
    }
    
    .subnav-buttons {
        gap: 0.75rem;
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .subnav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
        text-align: center;
        flex: 1 1 calc(50% - 0.375rem);
    }
    
    /* Content Pages Mobile */
    .theory-content,
    .lesson-content,
    .demo-content,
    .dup-content {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 8px;
    }
    
    .page-header-compact {
        padding: 1.5rem 0;
    }
    
    .page-header-compact h1 {
        font-size: 1.8rem !important;
    }
}

/* Module Page Styles */
.content-section {
    padding: 3rem 0;
}

.theory-content,
.lesson-content,
.demo-content,
.dup-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
}

.theory-overview h2 {
    color: #3776ab;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.theory-overview h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3776ab 0%, #ffd43b 100%);
    border-radius: 2px;
}

.assignment-requirements,
.lesson-objectives,
.demo-objectives,
.assignment-details {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3776ab;
    margin: 2rem 0;
}

.assignment-requirements h3,
.lesson-objectives h3,
.demo-objectives h3,
.assignment-details h3 {
    color: #3776ab;
    margin-top: 0;
}

.getting-started,
.demo-instructions,
.submission-info {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.prompt-box {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
    margin: 1rem 0;
}

.prompt-content {
    font-style: italic;
    color: #1976d2;
}

/* AI Prompt Box - Blue background with black border */
.ai-prompt-box {
    background: transparent;
    padding: 0;
    margin: 1rem 0 0 0;
}


.ai-prompt-box h4 {
    color: #3776ab;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 3px solid #3776ab;
    padding-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-prompt-content {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ai-prompt-content h5 {
    color: #3776ab;
    font-size: 1.25rem;
    margin: 2rem 0 1.5rem 0;
    text-align: left;
    font-weight: 700;
    background: rgba(55, 118, 171, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid #3776ab;
}

.ai-prompt-content h6 {
    color: #3776ab;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 700;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ai-prompt-content h6::before {
    content: "▶";
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.ai-prompt-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.ai-prompt-content li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 0.5rem;
}

.ai-prompt-content li::marker {
    color: #3776ab;
    font-weight: bold;
}

.ai-prompt-content p {
    margin-bottom: 1rem;
    text-align: left;
}

.ai-prompt-content p strong {
    color: #3776ab;
    font-weight: 600;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Module Overview Page Styles */
.module-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.module-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.module-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
    border-left: 4px solid #3776ab;
}

.stat-item h3 {
    font-size: 2rem;
    color: #3776ab;
    margin: 0 0 0.5rem 0;
}

.stat-item p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.learning-path-overview {
    margin: 3rem 0;
}

.path-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.path-step {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3776ab;
}

.step-number {
    background: #3776ab;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.path-step h3 {
    margin: 0 0 0.5rem 0;
    color: #3776ab;
}

.path-step p {
    margin: 0 0 1rem 0;
    flex: 1;
}

.step-link {
    color: #3776ab;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.step-link:hover {
    text-decoration: underline;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.objective-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 4px solid #3776ab;
}

.objective-card h3 {
    color: #3776ab;
    margin: 0 0 1rem 0;
}

.objective-card p {
    margin: 0;
    color: #666;
}

.getting-started {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.getting-started::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3776ab 0%, #ffd43b 100%);
}

.getting-started h3 {
    text-align: center;
}

.getting-started p:first-of-type {
    text-align: center;
}

.getting-started .ai-prompt-content {
    text-align: left;
}

.getting-started .ai-prompt-content h5,
.getting-started .ai-prompt-content h6 {
    text-align: left;
}

/* Video Section */
.video-section {
    margin: 3rem 0;
}

.video-section h3 {
    color: #3776ab;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 0 auto;
    max-width: 800px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Lesson Notes */
.lesson-notes {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 5px solid #3776ab;
}

.lesson-notes > h3 {
    color: #3776ab;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 2px solid #3776ab;
    padding-bottom: 1rem;
}

.note-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.note-section h4 {
    color: #3776ab;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.note-section.summary {
    background: #e3f2fd;
    border: 2px solid #3776ab;
}

.note-section.summary h4 {
    color: #2c5282;
}

.note-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.note-section ol,
.note-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.note-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.note-section strong {
    color: #3776ab;
    font-weight: 600;
}

.note-section h5 {
    color: #2c5282;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.note-section code {
    background: #f1f5f9;
    color: #3776ab;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.note-section pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.note-section pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #2d3748;
}

.start-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .path-step {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .step-number {
        margin: 0 0 1rem 0;
    }
    
    .path-step h3 {
        margin: 0 0 1rem 0;
    }
    
    .path-step p {
        margin: 0 0 1.5rem 0;
        line-height: 1.5;
    }
    
    .module-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .start-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile responsive for Theory content */
    .theory-content,
    .lesson-content,
    .demo-content,
    .dup-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .ai-prompt-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .ai-prompt-box h4 {
        font-size: 1.2rem;
    }
    
    .ai-prompt-content {
        font-size: 0.9rem;
    }
    
    .ai-prompt-content h5 {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
    
    .ai-prompt-content h6 {
        font-size: 1rem;
    }
    
    .theory-overview h2 {
        font-size: 1.6rem;
    }
}

/* Fix bullet point indentation issues */
.lesson-objectives ul,
.lesson-notes ul,
.note-section ul,
.module-objectives-list ul,
.demo-objectives ul,
.demo-steps ul,
.assignment-requirements ul,
.assignment-details ul,
.theory-overview ul,
.getting-started ul {
    margin-left: 1.5rem !important;
    padding-left: 1rem !important;
    list-style-position: outside !important;
}

/* Reduce line spacing between bullet points */
.lesson-objectives ul li,
.lesson-notes ul li,
.note-section ul li,
.module-objectives-list ul li,
.demo-objectives ul li,
.demo-steps ul li,
.assignment-requirements ul li,
.assignment-details ul li,
.theory-overview ul li,
.getting-started ul li {
    margin-bottom: 0.25rem !important;
    line-height: 1.4 !important;
}

/* Enhanced styling for module objectives cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.highlight-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
}

.highlight-card:nth-child(2) {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.3);
}

.highlight-card:nth-child(2):hover {
    box-shadow: 0 15px 40px rgba(180, 83, 9, 0.4);
}

.highlight-card:nth-child(3) {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.highlight-card:nth-child(3):hover {
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.4);
}

.highlight-card:nth-child(4) {
    background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.3);
}

.highlight-card:nth-child(4):hover {
    box-shadow: 0 15px 40px rgba(146, 64, 14, 0.4);
}

.highlight-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.highlight-card p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-card h3 {
        font-size: 1.2rem;
    }
    
    .highlight-card p {
        font-size: 0.9rem;
    }
}

/* Make Module 1 main heading larger */
.page-header-compact h1 {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .page-header-compact h1 {
        font-size: 1.8rem !important;
    }
}

/* Make top navigation module buttons uppercase and more square */
.module-btn {
    text-transform: uppercase !important;
    border-radius: 4px !important;
    padding: 10px 16px !important;
}

.lesson-objectives li,
.lesson-notes li,
.note-section li,
.module-objectives-list li,
.demo-objectives li,
.demo-steps li,
.assignment-requirements li,
.assignment-details li,
.theory-overview li,
.getting-started li {
    margin-bottom: 0.75rem !important;
    padding-left: 0.5rem !important;
    line-height: 1.5 !important;
}

/* Ensure nested lists are properly indented */
.lesson-objectives ul ul,
.lesson-notes ul ul,
.note-section ul ul,
.demo-steps ul ul {
    margin-left: 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Improved navigation for mobile */
    .site-header .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 10px;
    }

    .site-nav {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .site-nav a {
        padding: 0.6rem;
        text-align: center;
        font-size: 0.85rem;
        border-radius: 6px;
        margin: 0;
    }

    /* Hero section improvements */
    .hero {
        padding: 1.5rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    /* Trip cards mobile optimization */
    .trip-stops-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .stop-card-compact {
        margin: 0;
        border-radius: 8px;
    }

    .stop-card-image {
        height: 120px;
    }

    .stop-card-content {
        padding: 0.75rem;
    }

    .stop-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .stop-description-compact {
        font-size: 0.8rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }

    .stop-date-overlay {
        font-size: 0.7rem;
        padding: 2px 6px;
        top: 4px;
        right: 4px;
    }

    .photo-count-compact {
        font-size: 0.7rem;
    }

    /* Trip meta improvements */
    .trip-meta {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.75rem;
        text-align: center;
    }

    .trip-stats {
        gap: 0.75rem;
        justify-content: center;
    }

    .trip-meta span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .trip-meta .trip-dates,
    strong.trip-dates {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Interactive map mobile optimization */
    .trip-map {
        margin-bottom: 1.5rem;
    }

    .trip-description {
        margin: 1.5rem 0;
    }

    .trip-description p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left;
        margin: 0.75rem 0;
    }

    /* Homepage trip cards */
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 5px;
    }

    .trip-content {
        padding: 1.25rem !important;
    }

    .trip-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .trip-summary {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .trip-duration {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .trip-image {
        height: 160px;
    }

    .trip-dates {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Footer adjustments */
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .header-image {
        height: 60px;
    }
}

/* Enhanced Tablet Responsive Design - Improved */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 0 15px;
    }

    /* Enhanced navigation for tablets */
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }

    .site-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        white-space: nowrap;
    }

    /* Trip stops grid improvements for tablets */
    .trip-stops-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .stop-card-image {
        height: 150px;
    }

    .stop-title {
        font-size: 1rem;
    }

    .stop-description-compact {
        font-size: 0.9rem;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    /* Hero improvements for tablets */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }

    .trip-description p {
        font-size: 1.1rem;
        text-align: left;
        margin: 1rem 0;
    }

    /* Trip cards on homepage for tablets */
    .trips-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
        padding: 0 10px;
    }

    .trip-content {
        padding: 1.8rem !important;
    }

    .trip-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
}

/* Touch-Friendly Mobile Improvements */
@media (max-width: 768px) {
    /* Ensure minimum touch target sizes (44px minimum) */
    .site-nav a,
    .nav-button,
    .stop-card-compact,
    .trip-card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve touch targets for navigation */
    .site-nav a {
        padding: 0.75rem 1rem;
        touch-action: manipulation;
    }

    /* Better spacing for touch interaction */
    .stop-card-compact {
        margin-bottom: 0.5rem;
        touch-action: manipulation;
    }

    /* Improve button sizes */
    .nav-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    /* Better gallery touch targets */
    .gallery img {
        touch-action: manipulation;
        cursor: pointer;
    }

    /* Improve form controls on mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
    }

    /* Better readability */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Improved focus states for keyboard navigation */
    .stop-card-compact:focus,
    .trip-card:focus,
    .nav-button:focus,
    .site-nav a:focus {
        outline: 3px solid #2c5530;
        outline-offset: 2px;
    }

    /* Reduce animations on mobile for better performance */
    .stop-card-compact,
    .trip-card {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    /* Ensure text remains selectable */
    .stop-title,
    .stop-description-compact,
    .trip-content h2,
    .trip-summary {
        user-select: text;
        -webkit-user-select: text;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .trip-meta {
        margin-top: 0.5rem;
    }

    .trip-stops-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

    .hero-section {
        padding: 1.5rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .welcome-section,
    .learning-path,
    .target-audience,
    .content-section {
        padding: 1.5rem 0;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .theory-content,
    .lesson-content,
    .demo-content,
    .dup-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .page-header-compact h1 {
        font-size: 1.5rem !important;
    }
    
    .module-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Better mobile typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Mobile-friendly module cards */
    .modules-overview {
        gap: 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .benefits-grid .benefit-card,
    .audience-grid .audience-card {
        padding: 1.5rem;
    }
    
}