
/* ///////////////////////////////////////////////////////////////////////////////////////////// */
/* 1. Base Reset & Font Setup */
:root {
    /* YOUR NEW COLOR PALETTE: */
    --color-primary: #1e3a8a;       /* Deep Navy Blue (for buttons/links/accents) */
    --color-secondary: #374151;     /* Charcoal (used as the primary accent color) */
    --color-background: #ffffff;    /* White Background */
    --color-text: #1f2937;          /* Dark Gray/Near Black Text */
    --color-light-text: #4b5563;    /* Lighter Charcoal */
    --color-white: #ffffff;         /* Pure White */
    --color-black: #000000;         /* Pure Black */

    /* --- NEW LUXURY ACCENTS --- */
    --color-luxury-black: #0a0a0a;  /* Deep, Rich Black for high contrast */
    --color-luxury-gold: #D4AF37;   /* Classic Gold/Champagne Accent */
    --color-header-bg: #f9f9f9;     /* Subtle Off-White Background */
    /* -------------------------- */

    --font-primary: 'Georgia', serif; 
    --font-secondary: 'Helvetica Neue', 'Arial', sans-serif; 
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    /* Increased padding to accommodate new header height (90px) */
    padding-top: 90px; 
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--color-text);
    /* REDUCED: Smaller bottom margin for headers */
    margin-bottom: 0.6em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

/* 2. Layout & Structure (UPDATED HEADER) */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Increased height for a more substantial, imposing feel */
    height: 90px; 
    /* Subtle off-white background */
    background-color: var(--color-header-bg);
    /* Deeper, more refined shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-text {
    font-family: var(--font-primary);
    /* Larger size for brand authority */
    font-size: 2.2rem; 
    font-weight: 900;
    /* Using the deep black for maximum contrast and luxury */
    color: var(--color-luxury-black) !important; 
    /* Add subtle gold accent on hover */
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: var(--color-luxury-gold) !important;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    /* Increased gap for visual breathing room */
    gap: 30px; 
}

/* Styling for the Navigation Links */
.main-nav ul li a {
    /* Use a sophisticated, all-caps look */
    text-transform: uppercase;
    /* Use the rich black color */
    color: var(--color-luxury-black); 
    /* Increase font weight slightly */
    font-weight: 500; 
    letter-spacing: 1px;
    padding: 5px 0;
    /* Underline animation prep */
    position: relative;
    transition: color 0.3s;
}

/* Luxury Hover Effect: Subtle underline that appears */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    /* Use the gold accent color */
    background-color: var(--color-luxury-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.main-nav ul li a:hover {
    /* Subtle gold color change on hover */
    color: var(--color-luxury-gold) !important; 
}

.main-nav ul li a:hover::after {
    /* Expand the underline on hover */
    transform: scaleX(1);
}

.nav-button {
    /* Use the deep black for the button background */
    background-color: var(--color-luxury-black);
    color: var(--color-white);
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    /* Apply uppercase to the button text */
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.nav-button:hover {
    /* Hover to the luxury gold color */
    background-color: var(--color-luxury-gold); 
    /* Add a clean box shadow lift */
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.4); 
    transform: translateY(-2px);
}

main {
    /* REDUCED: Reduced top/bottom padding */
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
    /* CRITICAL AGGRESSIVE FIX: Ensure the main container doesn't clip the card's shadow/lift */
    overflow: visible !important; 
}

/* 3. Homepage Specifics */

/* ---------------------------------------------------------------- */
/* --- START: NEW HERO SECTION STYLES (for image overlay) --- */
/* ---------------------------------------------------------------- */
.hero-section {
    /* Make it full width and take up 90% of the viewport height (for big impact) */
    height: 90vh; 
    width: 100%;
    
    /* Set the background image and cover the entire space */
    background-image: 
        /* Linear Gradient Overlay: Darkens the image for text readability */
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), 
        url('../images/corepictures/main-hero.jpg'); /* ADJUST PATH IF NECESSARY (assuming css/images/...) */

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Use Flexbox to center the content vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Ensure no padding at the top of the content area */
    padding: 0 !important;
    margin-top: -90px; /* Pulls the hero section up under the fixed header */
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 30px; /* Space before the next main section */
}

.hero-content {
    color: var(--color-white); /* White text for max contrast */
    padding: 20px;
    max-width: 900px; /* Constrain the text width for better readability */
}

.hero-headline {
    font-size: 4rem; /* Large, bold, impactful headline */
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    color: var(--color-white); /* Override color for white background */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for definition */
}

.hero-subtext {
    font-family: var(--font-primary); /* Use serif font for sophistication */
    font-size: 1.6rem;
    font-weight: 300;
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 2rem; 
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Specific styling for the CTA button in the hero */
.hero-content .cta-button {
    background-color: transparent;
    color: var(--color-white);
    padding: 15px 40px;
    border: 2px solid var(--color-luxury-gold); /* Gold border stands out */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content .cta-button:hover {
    background-color: var(--color-luxury-gold);
    color: var(--color-luxury-black);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.6); 
    transform: translateY(-3px);
}

/* Remove the old intro-hero styling as it's been replaced */
.intro-hero {
    display: none;
}

/* ---------------------------------------------------------------- */
/* --- END: NEW HERO SECTION STYLES --- */
/* ---------------------------------------------------------------- */

.goals-summary .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.goal-card {
    background-color: #f1f5f9;
    padding: 25px;
    border-left: 5px solid var(--color-primary);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.goal-card h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.cta-section {
    text-align: center;
    /* REDUCED: Reduced top/bottom padding */
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
    /* REDUCED: Reduced top margin */
    margin-top: 30px;
}

/* FIX: Add margin below the paragraph in the CTA section to separate it from the buttons */
.cta-section p {
    margin-bottom: 25px;
}

/* 4. Category Pages (Card Grid) */

.category-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.category-overview {
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 30px;
    /* REDUCED: Smaller bottom padding */
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* Base Grid Structure */
.item-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px; /* Increased gap slightly */
    margin-top: 20px;
    position: relative; /* CRITICAL FIX: Establish a stacking context for z-index to work against */
}

/* Item Card Container (Base Style) */
.item-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    /* CRITICAL: Set position context for absolute carousel arrows AND z-index fix */
    position: relative; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* The transition property is added here for smooth effects */
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out; 
    /* Hint to the browser for smoother animation */
    will-change: transform, box-shadow; 
    background-color: var(--color-white);
    /* CRITICAL: Make card a flex container, stacked vertically, to ensure uniform height */
    display: flex;
    flex-direction: column;
}

/* Hide the old, single-image style as it's replaced by the carousel structure */
.card-image {
    display: none !important; 
}

/* NEW: Carousel Structure for Item Cards */
.card-image-carousel {
    position: relative;
    width: 100%;
    height: 250px; /* Match old card-image height */
    overflow: hidden; /* CRITICAL: Hide extra images (click-only scroll) */
    flex-shrink: 0;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    /* CRITICAL FIX 1: Allow native scrolling/swiping on the X-axis */
    overflow-x: scroll; 
    /* CRITICAL FIX 2: Enable native, smooth inertial scrolling on touch devices */
    -webkit-overflow-scrolling: touch; 
    /* Ensures we control the snap point for clean image transitions */
    scroll-snap-type: x mandatory; 
    
    /* MODIFICATION: Hide the native scrollbar on desktop/when not needed */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.card-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* CRITICAL: Prevents image from shrinking */
    scroll-snap-align: start; /* Ensures the snap point is at the start of the image */
}

/* Carousel Arrow Styling */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: var(--color-white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    
    /* MODIFIED: HIDE ARROWS BY DEFAULT */
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.2s; 
}

.carousel-arrow:hover {
    opacity: 1;
    background-color: var(--color-primary);
}

.left-arrow {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.right-arrow {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* NEW RULE: HIDE ARROWS AND INDICATOR ON MOBILE */
/* Since you're using swiping now, the arrows aren't necessary on touch devices, 
   which saves screen space and declutters the interface. */
@media (max-width: 768px) {
    
    /* Hide the arrows on touch devices */
    .carousel-arrow {
        display: none !important;
    }
    
    /* CRITICAL FIX: Make the Image Count Indicator visible on mobile */
    .image-count-indicator {
        display: block !important;       /* Override the initial display: none */
        opacity: 1 !important;           /* Override the default opacity: 0 */
        visibility: visible !important;  /* Override the default visibility: hidden */
    }
}


/* Image Count Indicator */
.image-count-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 11;
    
    /* MODIFIED: HIDE INDICATOR BY DEFAULT */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* NEW RULE: SHOW ARROWS AND INDICATOR ONLY ON CARD HOVER */
.item-card-link:hover .carousel-arrow,
.item-card-link:hover .image-count-indicator {
    opacity: 1;
    visibility: visible;
}

/* NEW: Tag Filter Bar Styling */

.tag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-tag-button {
    background-color: #eef2ff; /* Very light blue/indigo */
    color: var(--color-primary);
    padding: 6px 12px;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.filter-tag-button:hover,
.filter-tag-button.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* NEW: Card Visibility Class */
.item-card.hidden {
    display: none !important;
}

/* --- Item Card Clickable Enhancements (SUBTLE FIX) --- */

/* 1. Make the anchor tag fill the grid space and reset link styles */
.item-card-link {
    text-decoration: none; 
    color: var(--color-text); 
    display: block; 
    transition: none;
    border-radius: 8px; 
}

/* 2. Add a clear, strong hover/focus effect to show the whole card is clickable */
.item-card-link:hover,
.item-card-link:focus {
    outline: none; 
}

/* Apply the hover/focus effect DIRECTLY to the card element (The Subtle Fix) */
.item-card:hover,
.item-card:focus-within {
    /* REDUCED LIFT: Only moves up 3px for a subtle float effect */
    transform: translateY(-3px) !important; 
    /* Maintain z-index layer for overlap, but a lower value is sufficient */
    z-index: 10 !important; 
    
    /* SUBTLE SHADOW: No gold glow, just a clean, deep shadow */
    box-shadow: 
        /* Small, soft, close shadow */
        0 5px 15px rgba(0, 0, 0, 0.1), 
        /* Deeper, more spread shadow using luxury black with low opacity */
        0 10px 30px rgba(10, 10, 10, 0.2); 
    
    /* Remove gold border change */
    border-color: #e5e7eb; /* Keep the original light border color */
    cursor: pointer;
}

/* Card Content Spacing & Alignment */
.card-content {
    padding: 20px;
    /* CRITICAL: Make content section take remaining height and use flex for internal alignment */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* START OF CARD ALIGNMENT CHANGES */

.card-brand {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.card-tagline {
    font-size: 0.95rem;
    color: var(--color-light-text);
    margin-bottom: 10px;
}

.card-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 15px;
    /* CRITICAL: Pushes this and subsequent elements to the bottom of the card content */
    margin-top: auto; 
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    /* Explicitly reserve vertical space for 1-2 rows of badges */
    min-height: 35px; 
}

/* ────── PERFECT BASELINE ALIGNMENT FOR PRICE & TAGS ACROSS ROWS ────── */
.item-card-grid {
    align-items: stretch;          /* forces every card in a row to the same height */
    grid-auto-rows: 1fr;           /* makes every row exactly the same height */
}

.item-card {
    height: 100%;                  /* card fills the entire grid cell height */
    display: flex;                 /* already there, but keep for clarity */
    flex-direction: column;        /* already there */
}

.card-content {
    flex-grow: 1;                  /* already there – this makes the flex work */
    justify-content: space-between; /* pushes price+tags to the very bottom */
}


/* END OF CARD ALIGNMENT CHANGES */

.tag-badge {
    background-color: #eef2ff; /* Very light blue/indigo */
    color: var(--color-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 5. Item Detail Page */

.item-detail-content {
    /* REDUCED: Smaller padding */
    padding: 30px 5%;
}

.back-link {
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--color-light-text);
}

.item-hero-section {
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 20px;
}

.item-hero-section h1 {
    font-size: 3rem;
    color: var(--color-secondary);
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-light-text);
    margin-bottom: 20px;
}

.metadata-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.detail-price-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* CRITICAL: Ensure the detail page image carousel is fully visible */
.image-carousel-container {
    overflow-x: auto;
    /* Added this selector for clarity */
}

.image-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
    scroll-snap-type: x mandatory;

    /* cosmetic */
    border-radius: 8px;
    background-color: #f9fafb;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.image-carousel img {
    width: 900px;         /* Keep for large screens if desired, but we'll override below */
    height: 600px;        /* Keep for large screens if desired */
    object-fit: cover;    /* Already good – keeps images filling space nicely */
    flex-shrink: 0;       /* Already good – prevents shrinking in flex */
    scroll-snap-align: center;
    border-radius: 6px;
}

/* Mobile-specific rules (for screens up to 768px wide) */
@media (max-width: 768px) {
    
    /* * CRITICAL FIX: The image selector should be .carousel-image 
     * or .image-carousel img, but .carousel-image is safer 
     * based on your standard markup.
     */
    .carousel-image, .image-carousel img {
        /* * FIX 1: Set the width of ONE slide to 90% of the viewport.
         * This allows 5% margin on either side for a nice "peek" effect.
         */
        width: 90vw;            
        
        /* * FIX 2: Crucial to ensure the slide is never smaller than 90% of the viewport 
         * (or use a smaller value if you want the item to be smaller).
         */
        min-width: 90vw;        
        
        /* * FIX 3: Re-add the fixed height and use object-fit: cover 
         * (or contain, depending on your desired crop/fit).
         */
        height: 250px;           
        object-fit: cover;
        
        /* Ensure images are not allowed to shrink, critical for scrolling */
        flex-shrink: 0;
    }
    
    /* Ensure the container doesn't overflow the screen */
    .image-carousel-container {
        width: 100%;      
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }

    /* Optional: Hide scrollbars on mobile for a cleaner look */
    .image-carousel::-webkit-scrollbar {
        display: none;    
    }
    .image-carousel {
        scrollbar-width: none; 
    }

}

.section-separator {
    /* REFINED: Used a light, short line */
    border: none;
    height: 1px;
    background-color: #f1f1f1;
    /* REDUCED: Smaller top/bottom margins */
    margin: 40px auto; 
    max-width: 70%; 
}

.about-brand-section {
    background-color: #fafafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 30px;
}

.about-brand-section h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* CTA Footer Button */
.detail-cta-bar {
    text-align: center;
    padding: 20px 0;
    /* REDUCED: Smaller top margin */
    margin-top: 30px;
    border-top: 2px solid var(--color-primary);
    background-color: #fefefe;
}

/* --- 7. Item Detail Page (Continued) --- */

/* New: Carousel Indicators Container */
.carousel-indicators {
    display: flex;
    justify-content: center; /* Center the dots horizontally */
    gap: 8px; /* Space between dots */
    margin-top: 15px;
    margin-bottom: 25px; /* Adds space before metadata bar */
}

/* Individual Dot Styles */
.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-light-text); /* Default color (lighter charcoal) */
    border-radius: 50%;
    opacity: 0.5; /* Subtle when inactive */
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
    cursor: pointer;
    flex-shrink: 0; /* Important for mobile layout */
}

/* Active Dot Style */
.indicator-dot.active {
    opacity: 1; /* Fully opaque when active */
    background-color: var(--color-primary); /* Primary color when active */
    transform: scale(1.2); /* Slightly larger for visual pop */
}

/* Ensure indicators are only visible on mobile for this feature */
@media (min-width: 769px) {
    .carousel-indicators {
        display: none;
    }
}




/* 6. Footer */
.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 20px 5%;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a {
    color: #a0a8b4; /* Light text on dark background */
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* * NEW STYLES FOR STRUCTURED DEEP DIVE CONTENT 
 * These rules provide visual separation and hierarchy to the generated sections.
 */

/* Spacing for the introductory paragraph that appears before the first H3 */
#deep-dive-content > p {
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 20px; 
    font-size: 1.1rem;
    color: var(--color-text);
}

/* The container for each sub-section */
.deep-dive-sub-section {
    /* REDUCED: Smaller space between different sections */
    margin-bottom: 30px; 
    padding: 20px;
    /* Left border and background color provide a strong visual grouping */
    border-left: 4px solid var(--color-secondary); 
    background-color: #f8f8fa; /* A very light background to visually group the content */
    border-radius: 5px;
}

.deep-dive-sub-section h3 {
    /* Ensure header stands out and has ample space below it */
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.deep-dive-sub-section p {
    /* Ensure paragraphs have good line height and no bottom margin on the final one */
    margin-bottom: 0; 
    line-height: 1.7; /* Increased line-height for better readability of long text blocks */
    color: var(--color-text);
}

/* --- START: ABOUT US SPECIFIC STYLES (REFINED FOR LUXURY LOOK) --- */

/* Targets the main section to enable positioning for its children */
.founding-story {
    /* CRITICAL: Set position context */
    position: relative; 
    
    /* FULL WIDTH FIX: Use negative margins to pull the section 
       out to the edges of the viewport, counteracting the main container's padding.
       The calculation ensures it stretches fully left and right.
    */
    width: 100vw; 
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* Adjust padding to keep content centered and readable within the full-width block */
    padding: 60px 20px; 
    
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 30px; 
    
    /* Ensure no border radius cuts off the edge-to-edge look */
    border-radius: 0; 
    
    /* Use a very subtle, clean shadow */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); 
    background-color: var(--color-white); 
    overflow: hidden; 
}

/* NEW: The container for the actual background image and its opacity/darkening */
.story-background-image {
    /* Position absolutely to cover the entire parent section */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place behind the content */
    
    /* CRITICAL: Image Path and Properties */
    background-image: 
        /* Overlay 1: Darkens the image slightly (Keep small contrast) */
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        /* Overlay 2: REFINED WHITE WASH for a lighter, cleaner look */
        linear-gradient(rgba(39, 36, 36, 0.40), rgba(56, 53, 53, 0.40)),
        /* The Actual Image - Keep your correct path */
        url('../images/corepictures/about.jpg'); 
        
    background-size: cover;
    background-position: center center; /* Classic center positioning */
    background-repeat: no-repeat;
    
    /* Removed transform: scale(1.02); to keep it crisp against the edges */
}

/* NEW: The wrapper for the text content, placed above the image */
.story-content-wrapper {
    /* CRITICAL: Set z-index higher than the image (z-index: 1) */
    position: relative;
    z-index: 2; 
    /* NEW: Constrain text width for high-end feel and readability */
    max-width: 800px;
    margin: 0 auto; 
    text-align: center; /* Center the text block */
}

.founding-story h2 {
    color: var(--color-white); 
    /* Slightly larger, bold statement */
    font-size: 2.5rem; 
    letter-spacing: 1px;
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 7px;
}

.founding-story p {
    color: var(--color-white); /* Use a slightly lighter color for body text */
    font-size: 1.3rem; /* Slightly larger text */
    line-height: 1.8; /* Increased line-height for better scanning */
    /* REDUCED: Smaller bottom margin between paragraphs */
    margin-bottom: 1.0em; 
}

/* Specific style for the key sentence to emphasize the core belief */
.founding-story p strong {
    color: var(--color-luxury-gold); /* Highlight key philosophy with gold */
    font-weight: 700;
}

/* --- SERVICE MODEL REFINEMENT --- */

/* 1. Service Model Centering */
.service-model-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto; 
}

.service-model-intro h2 {
    font-size: 2.2rem;
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 15px;
}

.service-model-intro p {
    font-size: 1.1rem;
    color: var(--color-light-text);
    /* REDUCED: Smaller bottom margin */
    margin-bottom: 30px; 
}

.service-model {
    /* REDUCED: Smaller top/bottom padding */
    padding: 30px 0; 
}

/* New: Styling for the Individual Service Cards */
.service-tiers .goal-card {
    background-color: var(--color-white); 
    padding: 30px; 
    /* Removed old border: */
    border-left: none; 
    
    /* NEW: Thin, subtle gray border for definition */
    border: 1px solid #e5e7eb; 
    
    border-radius: 6px;
    /* Cleaner, smaller shadow */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    
    transition: all 0.3s ease-in-out;
}

/* Hover effect to highlight the premium nature of the service */
.service-tiers .goal-card:hover {
    /* Thin, gold border on hover */
    border-color: var(--color-luxury-gold); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-tiers .goal-card h3 {
    /* Emphasize the gold primary number */
    color: var(--color-luxury-gold); 
    font-size: 1.4rem;
    border-bottom: 1px dashed #e5e7eb; /* Subtle separator line */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.service-tiers .goal-card p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left; /* Align card content to the left */
}

/* 2. Commitment Note Styling (Signature/Discreet Look) */
.commitment-note-wrapper {
    /* Center the block */
    text-align: center;
    max-width: 700px;
    /* REDUCED: Smaller top margin */
    margin: 30px auto 0 auto !important; 
    
    /* Subtle separation/style */
    border-top: 1px solid #f1f1f1; 
    padding-top: 20px;
    font-style: italic;
    font-size: 0.95rem;
    color: #a0a8b4; /* Light gray for a discreet tone */
}

/* REFINED CTA Section */
.get-in-touch-static {
    text-align: center;
    /* REDUCED: Smaller top/bottom padding */
    padding: 30px 0 50px 0; 
}

.get-in-touch-static h3 {
    font-size: 2rem;
    color: var(--color-luxury-black);
    margin-bottom: 10px;
}

.get-in-touch-static p {
    font-size: 1.1rem;
    color: var(--color-light-text);
    margin-bottom: 25px;
}

/* Targets the subsequent sections on the about page if needed */
.passion-driven-curation {
    padding: 0; 
}

/* --- END: ABOUT US SPECIFIC STYLES --- */

/* New Styles for Party Facts List */
.party-facts-section ul {
    /* Use 'disc' style for standard bullets */
    list-style-type: disc; 
    /* Increase padding on the left to move the bullets and content to the right */
    padding-left: 25px; 
    margin-top: 15px;
}

.party-facts-section li {
    /* List items should not have background or border on the facts list */
    background-color: transparent; 
    padding: 2px 0; /* Minimal padding for spacing */
    border-left: none;
    margin-bottom: 5px;
    font-style: italic;
    color: var(--color-light-text);
}

/* 7. Modal & Form Styling */

.modal-backdrop {
    /* Critical initial state */
    display: none; /* Starts hidden */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Dark overlay effect */
    background-color: rgba(0, 0, 0, 0.7); 
    padding-top: 50px;
    /* Smooth transition for appearance */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* CRITICAL FIX: The visibility rule to show the modal when the JS adds the class */
.modal-backdrop.is-visible {
    display: block; /* Make it visible */
    opacity: 1;     /* Fade in */
}

.modal-content {
    background-color: var(--color-white);
    margin: 5% auto; /* Center the modal vertically and horizontally */
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    /* Add a slight transform for a pop-in effect */
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal-backdrop.is-visible .modal-content {
    transform: scale(1);
}

.modal-title {
    color: var(--color-primary);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-message {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-light-text);
}

.close-button {
    color: var(--color-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.form-submit-button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}
/* Media Queries for Responsiveness */

@media (max-width: 768px) {
    /* NEW: Mobile Hero Adjustments */
    .hero-section {
        height: 60vh; /* Shorter height on mobile */
        margin-top: -90px;
    }
    
    .hero-headline {
        font-size: 2.2rem; /* Smaller headline on mobile */
        letter-spacing: 3px;
    }

    .hero-subtext {
        font-size: 1.1rem; /* Smaller subtext on mobile */
        margin-bottom: 2rem;
    }

    /* End: Mobile Hero Adjustments */
    
    /* New wrapper to keep logo and button on one line */
    .header-content-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .main-header {
        height: auto;
        /* Remove flex-direction: column to stack header components logically */
        flex-direction: column; 
        padding: 15px 5%;
        gap: 0; /* Control spacing internally */
        align-items: flex-start; /* Align elements to the left/top */
    }
    
    /* Mobile Navigation Container */
    .main-nav {
        width: 100%;
        max-height: 500px; /* Large enough to hold all content */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 1;
        padding-bottom: 10px;
    }
    
    /* Collapse State: Hide the menu */
    .main-nav.collapsed {
        max-height: 0;
        opacity: 0;
        padding-bottom: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0 5px 0;
        width: 100%;
        align-items: flex-start;
        border-top: 1px solid #e5e7eb;
    }
    
    body {
        /* This padding is crucial to push content down past the fixed header */
        padding-top: 90px; 
    }
    
    .logo-text {
        font-size: 2rem; /* Slightly reduced for mobile */
    }
    
    /* Remove hover underline effect for mobile view */
    .main-nav ul li a::after {
        display: none;
    }
    
    .main-nav ul li a {
        padding: 0;
        letter-spacing: normal;
    }

    /* Hamburger Icon Styling */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; /* Above other nav content */
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--color-luxury-black);
        border-radius: 1px;
        transition: all 0.3s ease-in-out;
    }
    
    /* Hamburger Icon Hidden by default on desktop */
    .menu-toggle {
        display: flex;
    }

    /* Styles for when the menu is active/open (e.g., transform to an X) */
    .menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
    
    .goals-summary .card-container {
        grid-template-columns: 1fr;
    }
    
    .item-card-grid {
        grid-template-columns: 1fr;
    }
    
    .item-hero-section h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .metadata-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .modal-content {
        margin: 10% auto;
    }
    
    .carousel-image {
        width: 100%;
        height: 300px;
    }
    
    /* Ã°Å¸â€Â¥ CRITICAL FIX: Ensure ALL elements using .nav-button stack and have space Ã°Å¸â€Â¥ */
    /* This fixes the clipping for "Explore vehicles" and "Explore Timepieces" */
    .nav-button,
    .cta-section .nav-button,
    .detail-cta-bar .nav-button {
        /* Set a consistent bottom margin for all elements that stack */
        margin-bottom: 15px !important; 
        /* Ensure they take up the full width when stacking */
        width: 100% !important; 
        /* Ensure the element is treated as a block for full width */
        display: block !important;
        /* Remove float if any hidden rule applies it */
        float: none !important;
    }
    
    /* Remove the bottom margin from the very last button in a group/section */
    .cta-section .nav-button:last-child,
    .detail-cta-bar .nav-button:last-child {
        margin-bottom: 0 !important;
    }
    
    /* HIDE ARROWS AND INDICATOR ON CARDS (Swiping is enabled globally) */
    .carousel-arrow,
    .image-count-indicator {
        display: none !important;
    }

    /* --- FILTER BAR MOBILE FIXES --- */
    
    /* Ensure the filter group container is full width and stacks groups */
    .filter-group {
        width: 100%;
        margin-bottom: 20px; 
    }
    
    /* Ensure the tag bar wraps tags correctly */
    .tag-filter-bar {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: flex-start;
        gap: 8px; 
    }
    
    /* Ensure filter tags are reasonably sized for touch */
    .filter-tag-button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    /* Center the filter toggle button and remove surrounding flex to allow stacking */
    #toggle-filters-button {
        width: 100%; /* Take full width for easier tapping */
        justify-content: center; /* Center the text/icon */
        margin-bottom: 20px; /* More space below the toggle button */
    }

    /* Ensure Clear/Sort controls stack nicely if they were side-by-side */
    .filters-controls {
        flex-direction: column; 
        align-items: stretch; /* Stretch children to full width */
        gap: 15px; /* Vertical gap between items */
    }

    /* Ensure sort control is full width and label/select stack or fit */
    .sort-control-group {
        width: 100%;
        justify-content: space-between; /* Keep label and select separated */
    }

    /* Clear button should be full width */
    #clear-filters-button {
        width: 100%;
        margin-top: 0; /* Remove top margin as it's handled by .filters-controls gap */
        order: 2; /* Move clear button below the sort control if needed */
    }
    
    /* Sort select should be full width */
    #sort-select {
        flex-grow: 1; /* Allows the select box to take up most of the space */
    }
    
    /* NEW: CAROUSEL INDICATOR ADJUSTMENT FOR ITEM CARDS on mobile */
    .item-card .carousel-indicators {
        /* Reduced margin for tighter fit on card view */
        margin-top: 5px; /* Less space above the dots */
        margin-bottom: 10px; /* Less space below the dots */
    }
}



/* NEW: Ensure menu toggle is hidden on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* NEW: Filter Group Structuring (Global Styles) */
/* This section should mostly be applied to elements *inside* the collapsible container */

.filter-group {
    margin-bottom: 15px;
}

.filter-group h3 {
    font-size: 1rem;
    color: var(--color-light-text);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Re-use existing styling for buttons but target them within the new structure */
.tag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* NEW: Filter Control Bar and Collapse Styling */
.filters-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    /* Removed redundant border-bottom here as the main container border handles it */
}

/* Target the filter buttons, which should use the ID #toggle-filters-button */
#toggle-filters-button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 15px; /* Added margin to separate the button from the expanded content */
}

.arrow-icon { /* Renamed from .toggle-icon to match standard JS/HTML naming */
    transition: transform 0.3s ease;
    font-size: 0.8em;
    font-weight: normal;
    line-height: 1; /* Ensures proper alignment */
    display: inline-block; /* Crucial for transform to work */
}

/* Rotate the icon when the button's ARIA state is false (i.e., when collapsed, or 'closed') */
#toggle-filters-button[aria-expanded="false"] .arrow-icon {
    transform: rotate(-90deg); 
}

/* No rotation when expanded (or aria-expanded="true") */
#toggle-filters-button[aria-expanded="true"] .arrow-icon {
    transform: rotate(0deg); 
}

/* Clear Button Styling */
#clear-filters-button {
    /* Using a clear-specific color that stands out from regular buttons */
    background-color: #e4e7ff; /* Lighter shade for a 'secondary action' look */
    color: var(--color-text);
    padding: 6px 15px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 15px;
}

#clear-filters-button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* NEW: Sort Control Styling */
.sort-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Added to ensure it appears correctly inside the collapsible container */
    padding: 10px 0; 
}

.sort-control-group label {
    font-weight: 600;
    color: var(--color-secondary);
}

#sort-select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--color-text);
}

/* >>> Fix: ensure category filters show when .collapsed is removed (placed LAST in file) */
/* === FILTER COLLAPSE – FINAL CLEAN WORKING VERSION === */

#category-filters-container {
    max-height: 1000px;           /* space when expanded */
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

#category-filters-container.collapsed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;

    /* optional, keeps it visually tight */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}



/* --- NEW GUIDE CARD (No Image) --- */
/* We are using the existing .item-card structure but overriding the image-related styles */
.item-card[data-category="guides"] {
    /* Base style for the new guide card without an image */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--color-background);
    min-height: 200px;
    position: relative; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

/* Hide image container for guide cards */
.item-card[data-category="guides"] .card-image-container {
    display: none;
}

/* Accent bar at the top of the card using the color from the data (via inline style, overridden in render) */
.item-card[data-category="guides"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    /* The accent color will be set dynamically via JS/HTML inline style */
    background-color: var(--card-accent-color, var(--color-primary)); 
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s;
}

/* Hover effect */
.item-card[data-category="guides"]:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.item-card[data-category="guides"] .card-content {
    flex-grow: 1;
}

.item-card[data-category="guides"] .card-title {
    margin-top: 10px; 
    font-size: 1.5rem;
    line-height: 1.3;
}

















/* ------------------------------------------------------------------------------ */
/* --- GUIDE CARD LISTING STYLES (Image Background Overlay) --- */
/* ------------------------------------------------------------------------------ */

/* Base container for the image background card */
.guide-card-with-bg {
    /* CRITICAL: Ensure the whole card is the container for the background image */
    background-size: cover !important;
    background-position: center center !important;
    background-color: var(--color-luxury-black) !important; /* Fallback color */
    position: relative;
    /* Enforce a consistent height for the visual grid */
    min-height: 350px; 
    
    /* Use flexbox to position text (content and tags) top-to-bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding: 0; /* Remove standard card padding */
    overflow: hidden;
    border: none; /* Remove border for a cleaner look */
}

/* Dark, transparent gradient overlay for text legibility and luxury feel */
.guide-card-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; 
    /* Gradient: Opaque black at the bottom, fading to transparent at the top */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Content wrapper sits over the gradient */
.guide-card-with-bg .card-content {
    position: relative;
    z-index: 2; /* Above the gradient */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
    flex-grow: 1; /* Override standard card-content sizing */
}

/* Text styles (all white for maximum contrast) */
.guide-card-with-bg .card-brand,
.guide-card-with-bg .card-title,
.guide-card-with-bg .card-tagline {
    color: var(--color-white); 
    /* Subtle text shadow helps it pop slightly against lighter parts of the image */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); 
}

.guide-card-with-bg .card-brand {
    font-size: 0.8rem;
    margin-bottom: 0;
    font-weight: 500;
}

.guide-card-with-bg .card-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.guide-card-with-bg .card-tagline {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* Tags pushed to the bottom of the card */
.guide-card-with-bg .card-tags-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; 
    padding-top: 10px; /* Space above tags */
}

/* Tag badge styling for image background */
.guide-card-with-bg .tag-badge {
    background-color: rgba(255, 255, 255, 0.2); /* Transparent white background */
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}


/* ------------------------------------------------------------------------------ */
/* --- GUIDE DETAIL PAGE LAYOUT (Text Left, Images Right) --- */
/* ------------------------------------------------------------------------------ */

/* The overall section container */
.guide-deep-dive-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

/* Section title styling */
.guide-deep-dive-section h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* The main wrapper for content (text + gallery) */
.guide-content-wrapper {
    /* Use CSS Grid for the two-column layout */
    display: grid;
    gap: 30px; /* Space between text and images */
    
    /* Desktop Layout: Text (3/5) on the left, Images (2/5) on the right */
    grid-template-columns: 3fr 2fr;
    /* Aligns content to the top of the grid row */
    align-items: start; 
}

/* Ensure paragraph text flows correctly in the grid cell, taking the first column */
.guide-content-wrapper p {
    line-height: 1.7;
    margin-bottom: 15px;
    /* FIX: Explicitly restrict paragraphs to the first column to prevent white space issues */
    grid-column: 1 / 2; 
}

/* ------------------------------------------------------------------------------ */
/* --- GUIDE DETAIL PAGE BULLET POINTS (DT/DD List) --- */
/* ------------------------------------------------------------------------------ */

.deep-dive-bullets {
    /* CRITICAL: Ensure this list takes up the primary text column */
    grid-column: 1 / 2; 
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary-light); /* Visual separator */
}

/* Definition List for structured bullet points */
.deep-dive-bullets dl {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

/* Definition Term (The Name/Title of the complication) */
.deep-dive-bullets dt {
    /* Use full width for the term */
    flex: 0 0 100%; 
    font-weight: 700;
    color: var(--color-luxury-black); /* Darker color for emphasis */
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Definition Description (The Explanation) */
.deep-dive-bullets dd {
    /* Use full width for the description */
    flex: 0 0 100%; 
    margin-left: 0; /* Remove default indentation */
    padding-bottom: 5px;
    line-height: 1.5;
    color: var(--color-text-subtle);
}

/* ------------------------------------------------------------------------------ */
/* --- IMAGE GALLERY STYLES --- */
/* ------------------------------------------------------------------------------ */

/* Image Gallery Styles (right column on desktop) */
.guide-image-gallery {
    /* Stack images vertically */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between images in the gallery */
    
    /* Ensure the gallery is positioned in the second column */
    grid-column: 2 / 3;
    
    /* Optional enhancement: Make the image sticky */
    position: sticky;
    top: 10px; /* Offset from the top of the viewport */
    
    /* Add a subtle background or border to highlight the image area */
    /* UPDATED: Reduced padding for a tighter frame around the image */
    padding: 5px; 
    background-color: var(--color-background-muted);
    border-radius: var(--border-radius-default);
}

.guide-image-gallery img {
    /* --- FIX: ENFORCE CONSISTENT SIZE AND SCALING --- */
    width: 100%;             /* Image fills the container width */
    height: 250px;           /* Set a consistent, fixed height for all images */
    object-fit: cover;       /* Scales the image to cover the entire fixed box, cropping as necessary */
    
    /* Previous styles preserved */
    margin: 0 auto; 
    display: block;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
}


/* ------------------------------------------------------------------------------ */
/* --- MOBILE RESPONSIVENESS (Layout Breakpoint) --- */
/* ------------------------------------------------------------------------------ */

@media (max-width: 768px) {
    /* For smaller screens (Mobile/Tablet in Portrait), revert to a single column (article style) */
    
    .guide-content-wrapper {
        /* Mobile Layout: Stack the two columns one after the other */
        grid-template-columns: 1fr; 
        gap: 20px; /* Reduce gap slightly */
    }

    /* CRITICAL MOBILE FIX: Reset grid-column for all children to stack */
    .guide-content-wrapper p, 
    .deep-dive-bullets, /* Ensure the new bullet list also stacks */
    .guide-image-gallery {
        grid-column: 1 / 2; 
        position: static; /* Disable sticky for mobile */
    }

    /* Move the image gallery to appear after the section title but before the main text */
    .guide-image-gallery {
        /* This ensures the image is displayed *after* the text (p) on mobile */
        order: 1; 
        margin-top: 15px; 
    }
    
    /* Ensure the text sections remain standard (Order 0 is the default for paragraphs) */
    .guide-content-wrapper p,
    .deep-dive-bullets {
        order: 0; 
    }
    
    /* Adjust fixed image height for better mobile viewing */
    .guide-image-gallery img {
        height: 200px;
    }
}