/* ==========================================================================
   1. CORE VARIABLES & GLOBAL SECTION FIXES
   ========================================================================== */

/* Global Section Padding */
.section {
    padding: 60px 0;
}

.section--light-bg {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buffer before the footer */
main section:last-of-type {
    padding-bottom: 100px;
}

/* ==========================================================================
   2. PAGE BANNER & BREADCRUMBS
   ========================================================================== */
.page-banner {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0 !important;
}

.page-banner__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #888; }
.breadcrumb li.active { opacity: 0.7; }


/* ==========================================================================
   3. 2-COLUMN SIDEBAR GRID
   ========================================================================== */
.sub-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    /* align-items: start is CRITICAL to allow the sidebar to be shorter 
       than the main content so it has room to slide/stick */
    align-items: start; 
}

.sub-main p { margin-bottom: 20px; line-height: 1.8; }
.sub-section-title { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }

/* --- STICKY SIDEBAR CONTAINER --- */
.sub-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 30px; /* Space from the top of the screen when scrolling */
    height: fit-content; /* Ensures the sidebar only takes up as much space as its cards */
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--bg-header);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px; /* Space between multiple cards in the sidebar */
}

.sidebar-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

/* Sidebar Links & Icons */
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }

.sidebar-list a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    transition: var(--transition);
}

.sidebar-list i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Sidebar CTA */
.sidebar-card--cta { background: var(--primary); color: white; border: none; }
.sidebar-card--cta h3 { border-bottom-color: white; color: white; }

.button--white {
    background: var(--white);
    color: var(--primary) !important;
    padding: 12px 20px;
    display: block;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    transition: var(--transition);
}

.button--white:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }


/* ==========================================================================
   4. PAGE COMPONENTS (Experience Box & Mini-Cards)
   ========================================================================== */
.experience-box {
    background: var(--bg-header);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.experience-list { list-style: none; margin-top: 20px; padding: 0; }
.experience-list li { margin-bottom: 15px; display: flex; gap: 15px; line-height: 1.5; }
.experience-list i { color: var(--primary); font-size: 1.2rem; margin-top: 3px; }

.program-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-mini-card {
    background: var(--bg-header);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-mini-card i { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }

/* ==========================================================================
   5. REVIEW & GALLERY SECTIONS
   ========================================================================== */
/* Single Review */
.featured-review {
    background-color: rgba(230, 126, 34, 0.03);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.review-card { max-width: 700px; margin: 0 auto; text-align: center; }
.review-stars { color: #f1c40f; margin-bottom: 15px; }
.review-quote { font-size: 1.25rem; font-style: italic; margin-bottom: 25px; line-height: 1.7; position: relative; }

.review-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.review-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid white; box-shadow: 0 4px 10px var(--shadow); object-fit: cover; }
.review-meta { text-align: left; }

/* Photo Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { border-radius: 12px; overflow: hidden; height: 250px; position: relative; box-shadow: 0 4px 10px var(--shadow); }
.gallery-item img { width: 100%; height: auto; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white; padding: 12px; font-size: 0.85rem; text-align: center;
}


/* --- ITINERARY STYLES --- */
.itinerary-section {
    margin-top: 40px;
}

.itinerary-item {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--primary);
    margin-bottom: 30px;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.itinerary-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.itinerary-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- UPDATED FAQ STYLES --- */
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

/* Style for the Answer (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    background: #fff;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    box-sizing: border-box; /* ADD THIS LINE */
}

/* Styles for the OPEN state */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-answer {
    padding: 0px 20px 35px 20px; /* Top, Right, Bottom (Increased), Left */
}

.faq-item.active .faq-question {
    background: #fff;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Flip the arrow */
}

 
 
/* Container and Sub-Main Defaults */
.sub-main {
    color: var(--text-main);
}

.sub-section-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.section__lead {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Trip Itinerary and Logistics Header */
.inner-title {
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Itinerary List Cards */
.itinerary-list {
    margin-top: 20px;
}

/* Target the sidebar-card when used inside sub-main */
.sub-main .sidebar-card {
    border-left: 5px solid var(--primary);
    margin-bottom: 20px;
    padding: 20px; /* Standardizing padding for the cards */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sub-main .sidebar-card h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.sub-main .sidebar-card p {
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Inclusions & Cost Box */
.inclusion-container {
    background: var(--bg-header);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid #ddd;
}

.inclusion-container h3 {
    margin-top: 0;
    color: var(--text-main);
}

.inclusion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Included/Excluded Text */
.status-included {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-excluded {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}

/* List inside Inclusions box */
.inclusion-container .sidebar-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.inclusion-container .sidebar-list li {
    margin-bottom: 8px;
}
 
.badge-new {
    background-color: var(--primary); /* Uses your brand red */
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0.5px;
    animation: pulse-dance 1.5s infinite; /* The dancing effect */
}

/* The "Dancing" Animation */
@keyframes pulse-dance {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(217, 83, 79, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0);
    }
}

/* Target the FAQ/Story boxes specifically for Dark Mode */
[data-theme="dark"] .faq-question, 
[data-theme="dark"] .info-box,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .fee-item {
    background-color: #1e1e1e !important; /* Dark grey background */
    border-color: #333 !important;
    color: #ffffff !important; /* Force white text */
}

/* Fix for the text inside the white boxes in your screenshot */
[data-theme="dark"] .faq-question h4, 
[data-theme="dark"] .faq-question p,
[data-theme="dark"] .faq-question span {
    color: #ffffff !important;
}

/* Ensure the dropdown arrow icon remains visible */
[data-theme="dark"] .faq-question i,
[data-theme="dark"] .faq-question .fas {
    color: var(--primary) !important; /* Keeps your brand red icon */
}


/* Experience Table/Grid */
.experience-grid {
    display: grid;
    /* Two equal columns on desktop */
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.experience-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

/* Vertical "Standing Line" - Only applies to the left column on desktop */
@media screen and (min-width: 769px) {
    .experience-item:nth-child(odd) {
        border-right: 1px solid #eee;
    }
}

.experience-item i {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.experience-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #333;
}

.experience-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Mobile Responsive: Stack into 1 column */
@media screen and (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
    .experience-item {
        border-right: none !important;
        padding: 20px;
    }
}

.sidebar-card--summer {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    background-image: url('images/summer-banner-bg.jpg'); /* Your image path */
    background-size: cover;
    background-position: center;
    border: none !important;
    min-height: 250px; /* Slightly taller to show more photo */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes text to the bottom */
    border-radius: 8px;
}

.summer-content-bottom {
    padding: 20px 15px;
    /* Gradient: Transparent top to dark bottom */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    width: 100%;
    text-align: center;
}

.sidebar-card--summer h3 {
    color: #fff !important;
    font-size: 1.2rem;
    margin-bottom: 2px;
    font-weight: 700;
}

.sidebar-card--summer p {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.3;
}

 
.sidebar-card--summer .button--white {
    padding: 8px 15px;
    font-size: 0.8rem;
    display: inline-block;
}