    /* -- Global Styles --  */

    :root {
  --background-color:#f9f9f9;
  --font-color: #333;
  --primary-color: #26a7dc;
  --second-color: #004a8b;
  --accent-color1: #606C38; 
  --accent-color2: #283618;
  --accent-color3: #DDA15E;
}
      
      /* Import Inter font */

      @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); 
          html {
          /* High-performance gradient background */
          background: linear-gradient(
        to right, 
        #26a7dc30 0%, 
        #edf0f1 15%, 
        #edf0f1 85%, 
        #26a7dc30 100%);
    
          /* Ensures the background stretches the full height of the browser */
          min-height: 100%;}

      body { 
              background: transparent;
              margin: 0;
              padding: 0;
              font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
              -webkit-font-smoothing: antialiased;
              -moz-osx-font-smoothing: grayscale;
              color: #333;
              line-height: 1.2;
              font-size: 11pt;
          }

        .container {margin: 0 auto; padding: 10px 20px;  }

        h1{font-weight: 700;letter-spacing: -0.02em;color: var(--primary-color); text-align: left; font-size:18pt;}

        h2, h3 {font-weight: 700;letter-spacing: -0.02em;color: var(--primary-color); text-align: left; font-size:13pt;}
        a {color:var(--second-color);text-decoration:none}
        p {color: #333;text-align: left; line-height:25px;font-size:11pt;}
        ul {font-size: 11pt;}
        li {margin-bottom: 10px;}

        h1.trail-title{margin-top:0; margin-bottom:5px; text-align:center;}

      /* -- Base.html Navigation Styles -- */

        .navbar1{
            display:grid;place-items:center;
            padding:10px 16px;}
        .hero-link{display:inline-block}
        
        .tagline{color:var(--primary-color); font-size: 10pt; margin-top: -3px; }


            .nav-row { 
        display: flex; 
        justify-content: center; 
        gap: 10px; 
        
        border-bottom: 1px solid #eee; 
        padding-bottom: 15px;
        flex-wrap: wrap; 
    }
    
        .nav-link {margin-top: 5px;font-weight: bold; color:var(--second-color); font-size:12pt;}
        .nav-link:hover{color:var(--primary-color)}
        .menubtn{cursor:pointer}

        table.trail-info {font-size:10pt; border: 2px solid #26a7dc; border-radius: 10px; padding: 5px; margin-bottom:15px; margin-top:15px;}
        td.trail-info {font-weight:bold; text-align:left;}
        td.trail-desc {padding-left: 20px;}
        p.trail-address{text-align:center;margin: 5px auto;}

/* -- Trail Card Row Layout -- */

.card-container-whole {
    display: flex;
    flex-direction: row; /* Stays a row on all screen sizes */
    align-items: center;  
    width: 100%;
    margin:10px;
}

div.number-ranking {margin-top:0;display:flex;flex-direction:column;padding-left:10px;}
p.number-ranking {font-weight: bold;
    border: 2px solid #26a7dc;
    color: #26a7dc;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    text-align: center;
    align-content: center;}

.card-container-image-wrap {
    flex: 3; /* Maintains 40% of the width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-container-image {

    width: 83%;
margin-right:20px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    padding: 10px;
}

.card-container-details {
    flex: 5; /* 60% width */
    

    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 5px 5px;
}

.card-link-wrapper {
    text-decoration: none !important;
    display: block; /* Makes the entire <a> fill the space */
    color: inherit; /* Keeps your text colors as defined */
    transition: transform 0.2s ease;
}

.card-link-wrapper:hover {
    transform: translateY(-2px); /* Subtle lift on hover */
}

.card-link-wrapper:hover .card-container-whole {
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* -- Text Cleaning -- */
.card-title-text {
    text-align: left; 
    margin: 0; 
    color: var(--primary-color);
    font-size: 15pt;
}

.card-stars-row {
    text-align: left; 
    margin: 2px 0 5px 0;
    font-size: 0.9em;
}

.review-count-text {
    color: #666; 
    font-size: 0.8em; 
    margin-left: 3px;
}

.card-description-list {
   
    padding: 0 0 0 16px; 
    margin: 0;
}

.card-description-list li {
    margin: 0 0 3px 0; 
    font-size: 9pt; 
    font-weight: bold; 
    line-height: 1.2; 
    color: #444;
}

 .card-container-details li {
        font-size: 11pt;
        
    }

/* Specific adjustment for mobile text sizing */
@media screen and (max-width: 480px) {
    .card-container-details h3 {
        font-size: 15pt !important;
        margin-bottom: 2px !important;
    }
    .card-container-details li {
        font-size: 10pt !important;
        
    }
}
        /* Container that maintains the 16:9 shape */
.video-container {
    width: 100%;
    max-width: 800px; /* Limits the size on large desktop screens */
    margin: 20px auto;
    aspect-ratio: 16 / 9; /* The magic line for landscape video */
    background-color: #000; /* Black background while loading */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 1. Landscape Videos (Overview & Section Videos) */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    aspect-ratio: 16 / 9; /* Maintains landscape shape */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* 2. Shorts Videos (Vertical Section Videos) */
.video-container-shorts {
    width: 100%;
    max-width: 350px; /* Shorts should be narrower */
    margin: 30px auto;
    aspect-ratio: 9 / 16; /* Maintains vertical shape */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container-shorts iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}


      /* Footer */

        .site-footer-top{margin-top:40px;color:black; background: #bbe6f7;box-shadow: 0px 10px 14px 3px rgb(0 0 0 / 2%);}      
        .site-footer-bottom{display:flex; flex-direction:column;align-items:center;background:transparent; line-height: 0; padding-top: 10px; font-size:10pt;} 
        .footer-inner{display:flex;flex-direction:column;align-items: center; padding: 25px;}
        .footer-note{color:black;}
        .footer-links a{color:black;text-decoration:underline}
        .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

      /* --- Article Styles ---*/

        article{max-width: 600px; margin: 0 auto; padding: 0 30px; font-family: sans-serif;}

      /* --- Button Styles ---*/

        .btn-primary {
          background-color: transparent;
          color: var(--second-color);
          border: none;
          border-radius: 4px;
          font-weight:bold;
          transition: background 0.3s ease;}
        
        .btn-primary:hover {color: var(--primary-color);}

      
 /* -- Google Maps API Styling -- */     
      
        .trail-map-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  gmp-map {
    height: 100%;
  }

  .custom-marker-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }

  .marker-pin {
    width: 20px;
    height: 20px;
    background-color: #e74c3c; /* Red color like Google pins */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
  }

  .marker-text {
    background-color: white;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    white-space: nowrap;
    border: 1px solid #ccc;
  }

  div.trail-card {
    font-size: 10pt;
  }



  .section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(38, 167, 220, 0.4), rgba(0, 0, 0, 0));
    margin: 40px auto;
    width: 80%;
}

  /* -- End Google Maps API Styling -- */ 

      /* -- Trail Card Container -- */

        .trail-card-container{padding:10px; line-height:15p}
        .trail-card-title{margin:0 ,0;}

      /*---Meal Type Tags---*/

        .meal-type-tag{color: var(--second-color); font-weight: bold; font-size: 0.8em; text-transform: uppercase;}

      /*-- Comments Section --*/

        .comments-section{border-radius:5px; box-shadow: 0px 10px 14px 3px rgb(0 0 0 / 2%); }

        .circle-border-parent {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border: 2px solid var(--second-color);
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        color: var(--second-color);
        font-weight: bold;
        margin: 0 10px;
        font-size: 21pt;
        }

        .circle-border-child {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        color: var(--primary-color);
        font-weight: bold;
        margin: 0 10px;
        font-size:21pt;
        }

        .comment-body {display:flex; flex-direction: row;}
        .all-comments-container{display:flex; flex-direction: column; margin-top:20px;  padding-left: 5px; margin-bottom: 20px;}
        .comment-container{flex-direction:row; border: 2px solid #26a7dc26;
    margin-bottom: 20px;
    border-radius: 10px; }
        .child-comment-container{display:flex; flex-direction: row; margin-left:30px; margin-top:15px; border-left: 2px solid var(--primary-color); padding-left: 5px;}
        .comment-initial-container {display:flex; align-items: center;}
        .comment-body-container {margin-left: 10px;}
        .main-comment-form {display: none; margin-top: 20px; background: #f9f9f9; padding: 20px; border-radius: 8px;}
        .comment-reply-form {margin-bottom:5px;}


        .rating-fill {
        background-color: #ffb400;
        height: 100%;
        border-radius: 6px;
        /* This uses the variable we set in the HTML */
        width: var(--bar-width);
        transition: width 0.5s ease-in-out;}

        .meal-type-tag {
    transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out;
    display: inline-block; /* Required for transform to work well */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
}





/* Define a specific height for the trail map so it doesn't vanish */
  .trail-map-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  gmp-map {
    height: 100%;
  }

    /* Accordion Styling */
    .api-dropdown {
        background: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        margin: 20px 0;
        overflow: hidden;
    }
    .api-dropdown summary {
        padding: 15px 20px;
        font-weight: bold;
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        color: var(--primary-color); 
    }
    .api-dropdown summary::-webkit-details-marker { display: none; }
    .api-dropdown summary::after { content: '▼'; font-size: 0.8em; transition: 0.3s; }
    .api-dropdown[open] summary::after { transform: rotate(180deg); }

    .dropdown-content { padding: 20px; border-top: 1px solid #eee; }

    .trail-map-container {
        width: 100%;
        height: 400px;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 15px;
    }

img.intro-img {border-radius:10;width:70vw;}

p.trail-info-intro {font-size: 11pt; text-align: left;}

textarea.form-input, select.form-input, input.form-input {font-family:'inter'; font-size:10pt; color: black}


    /* Centering Table & Sections */
    .trail-info { 
        margin-left: auto; 
        margin-right: auto; 
        border-collapse: separate;
        border-spacing: 15px 5px;
    }
    
    .rating-breakdown { margin: 0 auto 30px auto; } /* Centered rating bar */

    /* Image Overlay (Lightbox) Styles */
    .img-clickable {
        cursor: pointer;
        transition: transform 0.3s ease;
        max-width: 350px; /* Thumbnail size */
        display: block;
        margin: 20px auto;
        border-radius: 8px;
    }

    .img-clickable:hover { transform: scale(1.02); opacity: 0.9; }

/* Container for the slides */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Base slide style - Stack them on top of each other */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Start fully transparent */
    opacity: 0;
    
    /* Lower stack order for inactive slides */
    z-index: 1; 
    
    /* Smooth fade */
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    /* Fade in to fully opaque */
    opacity: 1;
    
    /* Bring to the front so it fades over the old slide */
    z-index: 2; 
}

/* Ensure your overlays fill the slide */
.hero-overlay, .feature-overlay {
    width: 100%;
    height: 100%;
    /* Keep your existing background/flex styles here */
}

/* Feature overlay needs a background image too if you haven't set one */
.feature-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 
                      url("{% static 'NCMTB/images/airline.png' %}"); /* Change path */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    border-radius: 5px;
    transition: background 0.1s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev { left: 10px; }
.next { right: 10px; }


    /* The Overlay Background */
    #image-overlay {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        justify-content: center;
        align-items: center;
        cursor: zoom-out;
    }

    #overlay-img {
        max-width: 90%;
        max-height: 90%;
        border: 3px solid white;
        border-radius: 5px;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    /* Existing Styles */
    .trail-info-box { border: 2pt solid #26a7dc; border-radius: 10px; padding: 10px; margin-bottom: 15px; background-color: #ffffff; }
    .content-section { display: none; animation: fadeIn 0.3s; text-align: center; } /* Added centering to text/sections */
    .content-section.active { display: block; }
    .nav-tab { padding: 6px 6px; font-size: 15px; cursor: pointer; font-weight: bold; color: #555; border-radius: 8px; background: #f8f9fa; transition: 0.3s; border: 1px solid #ddd; }
    .nav-tab.active { background: #26a7dc; color: white; border-color: #26a7dc; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    gmp-map { height: 450px; width: 100%; border-radius: 8px; }


    /* Hero Styles */
.hero-wrap {
    height: 45vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-badge {
    margin-left:0px; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)); 
    border-radius:10px; 
    height: fit-content;
    display: block;
    position:absolute;
    bottom:8%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 15px 10px 10px 10px;
    width: fit-content;
    bottom:8%;
    left:5%;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0);
    margin-left:10px;
}


.hero-content p {
    color: #f8f9fa;
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0);
    margin-top: 0;
    margin-left:10px;
    font-weight:bold;
}

.yt-logo {width:70%}

.donate-ttb {display:flex; flex-direction: column; height:fit-content; margin: 40px 0px; justify-content: center; align-items: center;}
.img-donate-ttb {width:100%;}

/* Feature Spotlight */
.feature-spotlight {

    margin: -60px auto 60px; /* Pulls it up into the hero slightly */
    background: white;
    border-radius: 15px;
    display: grid;

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
}

.TTB {

    margin: -80px auto 60px; /* Pulls it up into the hero slightly */
    background: #252525;
    border-radius: 15px;
    display: grid;

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9;
    position: relative;
}

.spotlight-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    background: #26a7dc;
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(38, 167, 220, 0.3);
   
}

.hero-overlay {
    /* Use a linear-gradient + the image URL. Use a real image path! */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 
                      url("{% static 'NCMTB/images/cover.png' %}");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:10px; 
    box-shadow: 20px 0px 30px rgba(0, 0, 0, 0.1);}

    .feature-overlay {
    /* Use a linear-gradient + the image URL. Use a real image path! */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 
                      url("{% static 'NCMTB/images/feature.png' %}");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:10px; 
    box-shadow: 20px 0px 30px rgba(0, 0, 0, 0.1);}


    .yt-overlay {
    /* Use a linear-gradient + the image URL. Use a real image path! */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 
                      url("{% static 'NCMTB/images/YT.png' %}");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:10px; 
    box-shadow: 20px 0px 30px rgba(0, 0, 0, 0.1);}

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

/* -- Trail Sort Filter Styling -- */

.trail-sort-container {
    margin: 20px auto;
    text-align: center;
}

.trail-sort-label {
    font-size: 10pt;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-align: center;
}

.trail-sort {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03); /* Subtle track background */
    padding: 6px;
    border-radius: 15px; /* Pill shape */
    border: 1px solid #eee;
    margin: auto 10px;
}

.trail-sort a {
    padding: 7px 6px;
    font-size: 9pt;
    font-weight: 600;
    color: #555;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

/* Hover effect */
.trail-sort a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
}

/* Active state (when this filter is selected) */
.trail-sort a.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 10px rgba(38, 167, 220, 0.3);
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
    .trail-sort {
        border-radius: 12px;
        gap: 4px;
        padding: 4px;
    }
    .trail-sort a {
        padding: 6px 12px;
        font-size: 9pt;
    }
}

/* Nav Bar Feel (General Advice) */
nav {
    top: 0;
    z-index: 1000;
}
.card-intro {
    margin-left:3vw;
 max-width:90%;}

 .spotlight-slider {
    position: relative;
    max-width: 800px;
    margin: 5px auto;
    overflow: hidden;
    border-radius: 12px;
}

.disclaimer{background: #bbe6f7; padding:15px 25px; border-radius:10px; margin-bottom:40px; }

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Ensure it doesn't default to a 4-image width */
}

.slide {
    min-width: 100%; /* Each slide takes up exactly one container width */
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.slide-caption {

    font-weight:bold;
    color: #444;
    margin: -10px 0 0 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align:center;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.slider-btn:hover { background: rgba(0,0,0,0.8); }
.prev { left: 10px; }
.next { right: 10px; }

/* --- Modern Hybrid Navigation --- */

.main-nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--second-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

/* Hide desktop links on mobile */
.desktop-links {
    display: none;
}

/* --- Side Drawer --- */
.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    font-size: 32px;
    background: none;
    border: none;
    color: var(--second-color);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.drawer-links a {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 0;
    color: var(--second-color);
    border-bottom: 1px solid #f0f0f0;
}

.drawer-links a:hover {
    color: var(--primary-color);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* -- Sticky Header & Logo Shrink -- */

#mainHeader {
    position: sticky;
    top: -150px; /* Hidden logo height initially so only nav sticks? No, we want both. */
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
}

.logo-wrap {
    display: grid;
    place-items: center;
    padding: 10px 0;
    background: transparent;
    transition: padding 0.4s ease;
}

.hero-image {
    max-width:min(150px);
    transition: height 0.4s ease;
}

/* Navigation Bar Styles */
.sticky-nav-bar {
    background: rgba(255, 255, 255, 0);
   
    padding: 5px 0 12px 0;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-item {
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 1px;
    color: black;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--primary-color);
}

/* -- The "Scrolled" State -- */
/* When this class is added via JS */

.is-scrolled #mainHeader {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.is-scrolled .logo-wrap {
    padding: 5px 0; /* Tighten up spacing */
}

.is-scrolled #headerLogo {
    height: 100px; /* Shrunk Height */
}

.is-scrolled .sticky-nav-bar {
    border-top: none; /* Clean look when background is all white */
}

/* -- Brand Text Animation -- */

.scrolled-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* Starts at zero */
    transition: gap 0.3s ease-in-out;
}

.side-text {
    font-weight: 900;
    font-size: 30pt;
    margin-top: 20px;
    color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
}

/* Positioning for the slide-out effect */
.left-text { transform: translateX(20px); }
.right-text { transform: translateX(-20px); }

/* -- The Scrolled State -- */

.is-scrolled #mainHeader {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.is-scrolled #headerLogo {
    height: 55px;
}

/* Make text visible and slide to final position */
.is-scrolled .side-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.is-scrolled .scrolled-brand-wrap {
    gap: 15px; /* Spacing between CLT - Logo - MTB */
}

.is-scrolled .logo-wrap {
    padding: 10px 0;
}
 

    /* Desktop Styles */

    @media screen and (min-width: 800px) {
   body { 
              background: transparent;
              margin: auto;
              padding: 0;
              font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
              -webkit-font-smoothing: antialiased;
              -moz-osx-font-smoothing: grayscale;
              color: #333;
              line-height: 1.2;
              font-size: 18px;
          }

    .container {max-width:1000px;} 

    .about-container {max-width:600px; margin: auto auto} 
    

    .img-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 600px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}


.yt-logo {width:50%}
.card-container-details {
    
    padding: 10px 50px 10px 0; /* Less padding on left since image wrap has padding */
    margin-left:15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

table.trail-info {
    font-size: 10pt;
    border: 2px solid #26a7dc;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 15px;
    margin-top: 15px;
    width: 550px;
}

.card-container-image {

    width: 60%;
    margin-right: 0px;
  
}

.card-container-image-wrap {
    flex: 1; /* Maintains 40% of the width */
    display: flex;
    justify-content: center;
    align-items: center;
}


}