/* Reset & Base Styles */
:root {
    --secondary-color: #141d2b;
    --light-gray: #F7FAFC;
    --dark-gray: #2D3748;
    --white: #FFFFFF;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --primary-color: #003366;
    --accent-color: #D6001C;
    --gray-bg: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
        line-height: 1.6;
    color: var(--dark-gray);
    /* background-image: url('/assets/images/bg1.jpg');
    background-size: cover;
    background-position: center; */
    background-color: var(--gray-bg);
    font-size: 16px;
    font-weight: 300;

}



/* Layout */
.container {
    max-width: 1200px;
    margin:  auto;
    padding: 1rem 1rem;
}

.trek-list-container {
    max-width: 1200px;
    margin:  2rem auto;
    padding: 1rem 1rem;
}

/* Header & Navigation */
.header {
    background-color: white;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;  /* ensures header stays above other content */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);

}

.logo {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.logo img {
    width: auto; /* adjust the width as per your logo size */
    height: 50px;
}

.company-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 300;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    margin-right: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
    font-size: 16px;
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom: solid 3px #D6001C;
    padding-bottom: 0.3rem;
}

.nav-link.active {
    color: #D6001C;  /* active color */
    font-weight: 500;
}

/* Trek Detail Page Styles */
.trek-detail {
    background-color: var(--gray-bg);
}

/* Hero Section */
.hero-image-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

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

.hero-text {
    position: absolute;  /* Changed from your current setup */
    bottom: 13vh;          /* Position at bottom */
    left: 13vw;           /* Align to left */
    padding: 2rem;
    color: var(--secondary-color);
    background-color: #ffffffed;
    width: 40%;        /* Or whatever width you prefer */
    z-index: 2;        /* Ensure it's above the image */
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 50%;
    padding: 2rem;
    color: white;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 1rem 0 1rem 0;
}

.trek-meta {
    margin-bottom: 1.5rem;
}

.trek-meta span.difficulty {
    display: inline-block;
    position: absolute;
    z-index: 2;  /* Ensure it's above the image */
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.trek-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.start-planning {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.start-planning:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Trek Info Grid */

.all-treks {
    margin: 2rem 0;
}
.trek-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    background: var(--gray-bg);
}

.info-card {
    background: white;
    padding: 1.5rem;
}

.info-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-heading i {
    font-size: 1.2rem;
    color: (var(--accent-color));   
}

.info-heading h3 {
    margin: 0;
    color: #44546A;
    font-size: 1.1rem;
}

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

.info-card h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Trek Gallery */
.trek-gallery {
    padding: 2rem;
    background-color: white;
}

.detail-gallery-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail.loading {
    opacity: 0;
}

/* Itinerary Section */
.itinerary-section {
    margin-top: 2rem;
    padding: 3rem 2rem;
    background: white;
    margin-bottom: 2rem;
}

.itinerary-section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.itinerary-day {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.itinerary-day h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Inclusions Section */
.trek-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--light-gray);
}

.included, .not-included {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.included h2, .not-included h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.included ul, .not-included ul {
    list-style: none;
}

.included li, .not-included li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.included li:before {
    content: "✓";
    color: #D6001C;
    position: absolute;
    left: 0;
}

.not-included li:before {
    content: "×";
    color: #D6001C;
    position: absolute;
    left: 0;
}

/* Booking Section */
.booking-section {
    padding: 3rem 2rem;
    background: white;
    border-top: 1px solid #eee;
}

.booking-section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.booking-section form {
    max-width: 500px;
    display: grid;
    gap: 1rem;
}

.booking-section label {
    font-weight: 500;
    color: var(--primary-blue);
}

.booking-section input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.book-now-button {
    background: #D6001C;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.book-now-button:hover {
    background: #b30017;
}

/* Accordion Sections */
.accordion-sections {
    border-top: 1px solid #ddd;
}

.accordion-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-item:hover {
    background: var(--light-gray);
}

.accordion-item h2 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        width: 100%;
    }

    .trek-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trek-includes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trek-info-grid {
        grid-template-columns: 1fr;
    }

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

/* Hero Section */
.home-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(70, 70, 70, 0.3)), url('https://cdn.pixabay.com/photo/2017/04/20/20/27/ski-race-2246889_1280.jpg');
    background-size: cover;
    background-position: center; 
    overflow: hidden;
    color: var(--secondary-color);
    padding: 8rem 2rem;
    text-align: center;
}




.home-hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;

}

/* Trek Cards */

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

.trek-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}
.trek-image-wrapper {
    position: relative;  /* Container for image and tag */
    width: 100%;
    height: 300px;  /* Adjust height as needed */
}

.trek-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.flexible-tag {
    position: absolute;
    top: 1rem;
    right: 0rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 0px;
}

.detail-flexible-tag {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
}

.trek-info {
    padding: 1.5rem;
}

.trek-info h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.trek-details {
    color: #666;
}

.price {
    margin-bottom: 1rem;
    font-weight: 500;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: white;
    color: var(--dark-gray);
    text-decoration: none;
    border: solid 1px #bfbfbf;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    margin: 3rem 0;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    border: solid 1px var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--accent-color);
    color: white;
    border: 0;
}


.cta-button:hover {
    background: var(--accent-color);
    color: white;
    border: 0;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 0;
    transition: all 0.3s ease;
    width: 40%;
}

.secondary-button:hover {

    border-bottom: solid 0.5px var(--accent-color);
}

.learn-more i {
    margin-left: 4px;
    font-size: 0.9em;
}

.learn-more:hover i {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 
.trek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.trek-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: solid 1px #aaa;
}

.trek-card:hover {
    transform: translateY(-5px);
}

.trek-card img {
    width: 400px;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 2/1;
}

.trek-info {
    padding: 0.5rem 1rem 1rem 1rem;
}

.trek-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 21px;
    font-family: fantasy;
    letter-spacing: 2px;

}

.trek-info p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 300;
    font-size: 14px;
}


.trek-card {
     Create container for content-visibility optimization 
    content-visibility: auto;
    contain-intrinsic-size: 400px 200px;
}  */

/* Blur-up loading effect */
.trek-card img.loading {
    filter: blur(10px);
    transition: filter 0.3s ease-in-out;
}

.trek-gallery {
    /* Create container for content-visibility optimization */
    content-visibility: auto;
    contain-intrinsic-size: 400px 200px;
}

/* Blur-up loading effect */
.trek-gallery img.loading {
    filter: blur(10px);
    transition: filter 0.3s ease-in-out;
}

.trek-gallery img {
    width: 300px; /* Set your desired width */
    height: 200px; /* Set your desired height */
    object-fit: cover; /* Ensure the image covers the area */
}

.featured-image img {
    width: 300px; /* Set your desired width */
    height: 200px; /* Set your desired height */
    object-fit: cover; /* Ensure the image covers the area */
}

.gallery-thumbnails img {
    width: 100px; /* Set your desired thumbnail width */
    height: 100px; /* Set your desired thumbnail height */
    object-fit: cover; /* Ensure the image covers the area */
}

/* Buttons */
/* .button, .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
} 

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    margin: 3rem 0;
} */

/* .button {
    border: solid 0.5px var(--dark-gray);
    background: #f0f0f0;
    color: var(--secondary-color);
    width: 100%;
}

.button:hover {
    background: #f7cc70;
    color: var(--secondary-color);
} */

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* blog */
/* Blog List Container */
.blog-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.intro-text {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

/* Featured Image Container */
.blog-card > div:first-child {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

/* Blog Info Section */
.blog-info {
    padding: 1.5rem;
}

.blog-info h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.blog-details {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Add ellipsis for long descriptions */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Styles */
/* .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.button:hover {
    background-color: #0052a3;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

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

    .blog-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-list-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .intro-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

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


/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .hero {
        padding: 4rem 1rem;
    }

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

@media (max-width: 480px) {
    .trek-grid {
        grid-template-columns: 1fr;
    }
}

/* Existing CSS remains the same, adding new styles for the updated design */

/* Experience Section */
.experience-section {
  padding: 4rem 0;
  text-align: center;
position: relative;
}

.experience-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/assets/images/treks/homebg.jpg');
background-size: cover;
background-position: top;
z-index: -1;
opacity: 0.2; /* Adjust opacity as needed */
}
  

.stats-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem 0;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: white;
}

.ratings-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.rating-logo {
  height: 80px;
  width: auto;
}

.testimonial-card {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--gray-bg);
  border-radius: 8px;
  text-align: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Footer Styles */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 150px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  line-height: 2;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}