/* Root colours and fonts */
:root {
    --fiat-brown: #3e332a;
    --fiat-orange: #e67e22;
    --fiat-red: #c0392b;
    --text-dark: #424242;
    --bg-light: #f9f9f9;
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Directory specific variables reused for consistency */
    --fc-brown: #3e332a;
    --fc-orange: #e67e22;
    --fc-red: #c0392b;
    --fc-border: #e0e0e0;
    --fc-text: #424242;
    --fc-success: #008f39;
    --fc-black: #121212;
}

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin-top: 147px; /* Desktop margin */
    overflow-x: hidden; /* CRITICAL: Prevents horizontal scroll from edge-to-edge elements */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* Reset for content flow */
p,span,h1,h2,h3,h4,h5,h6,a,li,button{margin:0;padding:0;}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }


/* --- HEADER STYLES --- */
.fiat-header-unified * {
    box-sizing: border-box;
    font-family: var(--font-stack);
}

.fiat-header-unified {
    width: 100%;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Top brown utility bar */
.top-utility-bar {
    background-color: var(--fiat-brown);
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.social-cluster {
    display: flex;
    align-items: center;
}
.social-cluster svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    margin-right: 12px;
    transition: fill 0.2s ease;
}
.social-cluster a:hover svg {
    fill: var(--fiat-gold);
}

.brand-entity-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
    line-height: 1;
    text-transform: uppercase;
}

.utility-nav ul {
    display: flex;
    gap: 20px;
}
.utility-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.2s;
}
.utility-nav a:hover {
    color: #ffffff;
}

/* Main white bar */
.main-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    height: 80px;
}
.logo-container {
    flex-shrink: 0;
    margin-right: 30px;
}
.primary-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}
.primary-menu ul {
    display: flex;
    gap: 20px;
}
.primary-menu a {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
}
.primary-menu a:hover,
.primary-menu .is-active {
    color: var(--fiat-orange) !important;
    border-bottom-color: var(--fiat-orange);
}

.chat-btn-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.chat-btn-header:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
}

.join-btn-header {
    background-color: var(--fiat-red) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    margin-left: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.join-btn-header:hover {
    background-color: #a93226 !important;
}

/* Mobile Default Hide */
.mobile-header-bar,
.mobile-menu-drawer {
    display: none !important; 
}

/* Desktop (min-width: 1201px) */ 
@media (min-width: 1201px) { 
    .top-utility-bar,
    .main-nav-bar {
        display: flex !important;
    }
    .mobile-header-bar,
    .mobile-menu-drawer {
        display: none !important;
    }
}

/* Mobile & Tablet (max-width: 1200px) */ 
@media (max-width: 1200px) { 
    body {
        margin-top: 60px; /* Mobile margin */
    }
    .top-utility-bar,
    .main-nav-bar {
        display: none !important;
    }

    .mobile-header-bar { 
        display: flex !important; 
        justify-content: space-between;
        align-items: center;
        background-color: var(--fiat-brown);
        padding: 0 15px;
        height: 60px;
    }

    .mobile-menu-drawer { 
        position: fixed; 
        top: 60px;
        left: 0;
        width: 100%;
        display: none; 
        background-color: var(--bg-light);
        border-bottom: 3px solid var(--fiat-red);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .mobile-menu-drawer.is-open { 
        display: block !important; 
    }

    .mobile-branding img {
        height: 32px;
        width: auto;
        display: block;
    }
    .mobile-controls {
        display: flex;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
    }
    .mobile-socials {
        display: flex;
        gap: 15px;
        align-items: center;
        padding-right: 15px;
        border-right: 1px solid rgba(255,255,255,0.2);
        margin-right: 15px;
    }
    .mobile-socials svg {
        width: 20px;
        height: 20px;
        fill: #ffffff;
    }
    .hamburger-btn {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        line-height: 0; 
        display: flex;
        align-items: center;
    }
    #hamburger-icon-text {
        line-height: 1; 
        display: block;
    }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-menu-list li {
        border-bottom: 1px solid #e0e0e0;
    }
    .mobile-menu-list a {
        display: block;
        padding: 14px 20px;
        color: var(--fiat-brown);
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        transition: background-color 0.2s;
    }
    .mobile-menu-list a:hover {
        background-color: #ededed;
    }
    .mobile-join-item {
        padding: 15px 20px;
        text-align: center;
        background-color: #fff;
    }
    .mobile-join-btn {
        display: block;
        width: 100%;
        background-color: var(--fiat-red);
        color: white !important;
        padding: 12px;
        border-radius: 4px;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        transition: background-color 0.2s;
    }
    .mobile-join-btn:hover {
        background-color: #a93226;
    }
}

/* --- CONTENT STYLES --- */

/* General Content Styles */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px;
    box-sizing: border-box;
}

/* Content Embed */
.fiat-content-embed {font-family: var(--font-stack);color: var(--fiat-brown);line-height: 1.35;font-size: 16px;width: 100%;box-sizing: border-box;padding: 0;}
.fiat-banner-img {width: 100%;height: auto;display: block;margin-bottom: 15px;border-radius: 4px;}
.seo-hidden-h1 {position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);border: 0;}
.fiat-content-embed h2 {font-size: 16px;font-weight: 800;margin: 12px 0 4px 0;padding: 0;text-transform: uppercase;color: var(--fiat-red);}
.fiat-content-embed h2:first-of-type {margin-top: 0;}
.fiat-content-embed p {margin: 0 0 8px 0;}
.fiat-content-embed strong {color: #000;font-weight: 700;}


/* --- HERO CARD STYLES --- */

/* 1. HERO CARD CONTAINER: Full width alignment with main content */
.fiat-hero-card {
    background-color: #ffffff; /* Use white background for contrast */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px 40px;
    
    /* Removed fixed max-width for full content alignment (Desktop View Fix) */
    margin: 20px 0 30px 0; 
}

/* Content Alignment Fix: Left-align headers and intro text within the card */
.fiat-hero-card .fiat-intro-text {
    font-size: 17px;
    line-height: 1.5;
    text-align: left; /* Aligns with the overall content flow */
    margin-bottom: 25px;
    color: var(--text-dark);
}

.fiat-hero-card .card-section-header {
    font-size: 18px;
    font-weight: 800;
    text-align: left; /* Aligns with the overall content flow */
    color: var(--fiat-brown);
    border-bottom: 2px solid var(--fiat-orange); 
    padding-bottom: 5px;
    margin: 25px 0 15px 0; 
    width: 100%; 
    text-transform: uppercase;
}

/* 2. BENEFIT GRID (Hero Section List - Vertical Stacking) */
.fiat-benefit-grid {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: grid; 
    grid-template-columns: 1fr; /* Ensures vertical stacking */
    gap: 12px;
    text-align: left; 
}

.fiat-benefit-grid li {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    padding-left: 12px;
    position: relative;
    border-left: 3px solid var(--fiat-red); /* Strong visual separation */
}

/* 3. CAR GENERATION LIST (Vertical List) */
.fiat-generation-list-vertical {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    line-height: 1.5;
    text-align: left; /* Aligns with the card content flow */
}

.fiat-generation-list-vertical li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    font-size: 16px;
    display: list-item; 
    text-align: left;
}

.fiat-generation-list-vertical li::before {
    content: "—"; /* Use a dash or simple bullet for neatness */
    color: var(--fiat-red);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Responsive adjustments for the card */
@media (max-width: 768px) {
    .fiat-hero-card {
        padding: 20px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
/* --- END NEW HERO CARD STYLES --- */


/* Events Card */
.fiat-events-card {font-family: var(--font-stack);color: var(--fiat-brown);background: #fff;width: 100%;box-sizing: border-box;border: 1px solid #e0e0e0;border-radius: 8px;overflow: hidden;box-shadow: 0 5px 15px rgba(0,0,0,0.08);margin-bottom: 20px;}
.fiat-card-header {background-color: var(--fiat-brown);color: #ffffff;padding: 18px 20px;display: flex;justify-content: space-between;align-items: center;border-bottom: 3px solid var(--fiat-orange);cursor: pointer;text-decoration: none;box-sizing: border-box;}
.fiat-card-header h2 {font-size: 20px;font-weight: 800;margin: 0;text-transform: uppercase;letter-spacing: 1px;color: #fff;}
.fiat-header-arrow {font-size: 18px;color: var(--fiat-orange);font-weight: bold;transition: transform 0.2s;}
.fiat-card-header:hover .fiat-header-arrow {transform: translateX(5px);}
.fiat-media-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 2px;background: #fff;padding: 0;}
.fiat-media-item {position: relative;overflow: hidden;aspect-ratio: 16/9;background: #000;display: block;text-decoration: none;}
.fiat-media-item img {width: 100%;height: 100%;object-fit: cover;transition: transform 0.4s ease;opacity: 0.95;}
.fiat-media-item:hover img {transform: scale(1.05);opacity: 1;}
.video-overlay-icon {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 60px;height: 60px;background: rgba(0,0,0,0.6);border-radius: 50%;display: flex;justify-content: center;align-items: center;border: 3px solid #fff;transition: background-color 0.3s, border-color 0.3s;z-index: 10;}
.video-overlay-icon::after {content: '';display: block;width: 0;height: 0;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-left: 18px solid #fff;margin-left: 5px;}
.fiat-media-item:hover .video-overlay-icon {background: var(--fiat-red);border-color: var(--fiat-red);}
.fiat-card-body {padding: 24px;font-size: 15px;line-height: 1.5;box-sizing: border-box;}
.fiat-intro-text {margin-bottom: 20px;color: #555;text-align: center;}
.fiat-full-width-btn {display: block;width: 100%;background-color: var(--fiat-red);color: #ffffff !important;font-weight: 700;text-align: center;text-decoration: none !important;padding: 14px 0;border-radius: 4px;text-transform: uppercase;transition: background-color 0.2s;}
.fiat-full-width-btn:hover {background-color: #a93226;}
@media (max-width: 600px) {.fiat-media-grid {grid-template-columns: 1fr;}.fiat-card-header {padding: 15px;}.fiat-card-header h2 {font-size: 18px;}}

/* Marketplace Card */
.fiat-classifieds-card {font-family: var(--font-stack);color: var(--fiat-brown);background: #fff;width: 100%;box-sizing: border-box;border: 1px solid #e0e0e0;border-radius: 8px;overflow: hidden;box-shadow: 0 5px 15px rgba(0,0,0,0.08);margin-bottom: 20px;}
.fiat-gallery-link {display: block;text-decoration: none;}
.fiat-gallery-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 2px;background: #fff;padding: 0;}
.fiat-gallery-item {position: relative;overflow: hidden;aspect-ratio: 4/3;}
.fiat-gallery-item img {width: 100%;height: 100%;object-fit: cover;transition: transform 0.4s ease;}
.fiat-gallery-link:hover .fiat-gallery-item img {transform: scale(1.05);}

/* --- REVISED MARKETPLACE LIST STYLES (Horizontal, Label/Description Separation - FINAL FIX) --- */
.fiat-marketplace-benefits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
    /* Create three side-by-side columns */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    width: 100%;
}
.fiat-marketplace-benefits-list li {
    /* Use padding and border for the desired look */
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    padding: 0 0 0 15px; /* Add padding to the left of the item content */
    position: relative;
    box-sizing: border-box;
}

/* Add the vertical orange dividing line */
.fiat-marketplace-benefits-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px; /* Thick line as requested */
    height: 100%;
    background-color: var(--fiat-orange); /* Orange color */
    border-radius: 1px; /* Slight rounding for polish */
}

.fiat-marketplace-benefits-list .benefit-label {
    font-weight: 700;
    color: var(--fiat-brown);
    font-size: 17px;
    display: block; /* Ensure label is always on its own line above description */
    margin-bottom: 5px; 
    padding-right: 8px; /* Padding for the vertical rule */
}

.fiat-marketplace-benefits-list .benefit-desc {
    color: var(--text-dark);
}

.fiat-action-row {display: flex;gap: 10px;flex-wrap: wrap;width: 100%;box-sizing: border-box; justify-content: center;}
.fiat-btn {box-sizing: border-box;display: inline-block;font-weight: 700;text-align: center;text-decoration: none !important;padding: 14px 10px;border-radius: 4px;text-transform: uppercase;font-size: 14px;transition: opacity 0.2s;line-height: 1.2;}
.fiat-btn-primary {flex: 2;background-color: var(--fiat-red);color: #ffffff !important;}
.fiat-btn-secondary {flex: 1;background-color: var(--fiat-brown);color: #ffffff !important;white-space: nowrap;}
.fiat-btn-primary:hover { background-color: #a93226; }.fiat-btn-secondary:hover { opacity: 0.9; }

/* Mobile stacking for Marketplace - FINAL FIX: Force Left Alignment and Clean Stack */
@media (max-width: 768px) {
    .fiat-card-body {text-align: center;padding: 20px 15px;}
    .fiat-gallery-grid { grid-template-columns: 1fr; }
    
    .fiat-marketplace-benefits-list {
        grid-template-columns: 1fr; /* Stack into one column */
        gap: 25px;
        text-align: left; /* Crucial: Aligns the entire stack to the left */
        max-width: 320px; /* Constrain width for better mobile readability */
        margin: 15px auto 25px auto; /* Center the list block */
    }
    .fiat-marketplace-benefits-list li {
        text-align: left; /* Content inside the list item is left-aligned */
        padding-left: 0; /* Remove desktop padding */
        padding-bottom: 0; /* Remove bottom padding */
        margin-bottom: 15px; /* Add spacing between stacked items */
        border-bottom: none; 
    }
    .fiat-marketplace-benefits-list li::before {
        content: none; /* Hide vertical rule on mobile */
    }
    .fiat-marketplace-benefits-list li:last-child {
        margin-bottom: 0;
    }
    .fiat-marketplace-benefits-list .benefit-label {
        font-size: 16px; 
        justify-content: flex-start; /* Ensure label starts on the left */
        display: block; 
        margin-bottom: 2px;
        color: var(--fiat-red); /* Use a pop color for the heading on mobile */
    }
    
    .fiat-action-row { flex-direction: column; }.fiat-btn-primary, .fiat-btn-secondary {width: 100%;padding: 15px 0;margin-bottom: 5px;}
}

/* Social Card */
.fiat-social-card {font-family: var(--font-stack);color: var(--fiat-brown);background: #fff;width: 100%;box-sizing: border-box;border: 1px solid #e0e0e0;border-radius: 6px;overflow: hidden;box-shadow: 0 5px 15px rgba(0,0,0,0.08);margin-bottom: 20px;}
.fiat-card-header {background-color: var(--fiat-brown);color: #ffffff;padding: 18px 20px;display: flex;justify-content: space-between;align-items: center;border-bottom: 3px solid var(--fiat-orange);text-decoration: none;}
.fiat-card-header h2 {font-size: 20px;font-weight: 800;margin: 0;text-transform: uppercase;letter-spacing: 1px;color: #fff;}
.fiat-header-link {font-size: 14px;color: var(--fiat-orange);font-weight: 700;text-decoration: none;transition: color 0.2s;}
.fiat-header-link:hover {color: #fff;}

/* FIX: High specificity display rules for the container */
#instagram-feed-container {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: block !important;
    min-height: 200px; /* Safety fallback */
}

/* FIX: High specificity display rules for the grid */
#instagram-feed {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
}

.image-container {width: 100%;padding-bottom: 100%;position: relative;overflow: hidden;border-radius: 4px;background: #eee;cursor: pointer;transition: transform 0.2s ease, opacity 0.2s;}
.image-container:hover {opacity: 0.95;transform: scale(1.02);}
.image-container img {width: 100%;height: 100%;object-fit: cover;position: absolute;top: 0;left: 0;}

/* FIX: High specificity for load more button */
#load-more {
    margin: 30px auto 0 auto !important; 
    display: block !important;
    padding: 12px 30px;
    background-color: var(--fiat-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-stack);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}
#load-more:hover {background-color: #a93226;}
#fullscreen-overlay {display: none;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.9);z-index: 10000;justify-content: center;align-items: center;backdrop-filter: blur(5px);padding: 20px;box-sizing: border-box;}
#fullscreen-overlay img {max-width: 100%;max-height: 100%;border-radius: 4px;box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);}
@media (max-width: 600px) {
    /* 1. Change grid to 2 columns for a 2x2 layout */
    #instagram-feed {
        gap: 5px;
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    
    /* 2. Hide 5th+ items ONLY if the feed has NOT been expanded yet */
    #instagram-feed:not(.expanded) .image-container:nth-child(n+5) {
        display: none;
    }	

    /* Existing Mobile Styles */
    .fiat-card-header {
        padding: 15px;
    }
    .fiat-card-header h2 {
        font-size: 18px;
    }
    .fiat-header-link {
        font-size: 12px;
    }
    #load-more {
        width: 100%;
    }
}

/* FAQ Card */
.fiat-faq-card {font-family: var(--font-stack);color: var(--fiat-brown);background: #fff;width: 100%;box-sizing: border-box;border: 1px solid #e0e0e0;border-radius: 6px;overflow: hidden;box-shadow: 0 5px 15px rgba(0,0,0,0.08);margin-bottom: 20px;}
.fiat-card-header {background-color: var(--fiat-brown);color: #ffffff;padding: 18px 20px;display: flex;justify-content: space-between;align-items: center;border-bottom: 3px solid var(--fiat-orange);cursor: pointer;text-decoration: none;box-sizing: border-box;}
.faq-item {padding: 18px 0;border-bottom: 1px solid #f0f0f0;}
.faq-item:last-child {border-bottom: none;}
.faq-question {font-size: 16px;font-weight: 800;margin: 0 0 8px 0;color: var(--fiat-red);position: relative;padding-left: 24px;cursor: text;}
.faq-question::before {content: "Q.";color: var(--fiat-orange);font-size: 14px;font-weight: 800;position: absolute;left: 0;top: 1px;}
.faq-answer {font-size: 15px;font-weight: 400;margin: 0;color: #444;padding-left: 24px;}
@media (max-width: 600px) {.fiat-card-header {padding: 15px;justify-content: center;}.fiat-card-body {padding: 10px 20px 20px 20px;text-align: center;}.faq-question {padding-left: 0;margin-bottom: 10px;color: var(--fiat-red);}.faq-question::before {display: none;}.faq-answer {padding-left: 0;}}

/* --- FOOTER (Centralized & Edge-to-Edge) --- */
.fiat-footer-unified {
    background-color: var(--fiat-brown);
    color: #fff;
    border-top: 3px solid var(--fiat-orange);
    padding: 10px 0;
    box-sizing: border-box;
    margin-top: auto;
    
    /* Aggressive Full Width Breakout */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* Keep content away from edge */
}

/* 1. Left: Logo */
.footer-brand { flex: 1; }
.footer-logo { height: 40px; width: auto; display: block; }

/* 2. Center: Legal */
.footer-legal { 
    flex: 1; 
    text-align: center; 
    font-size: 13px; 
    line-height: 1.4; 
    color: rgba(255,255,255,0.9); 
}

/* 3. Right: Socials */
.footer-socials { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 15px; 
}
.footer-socials svg { 
    width: 24px; 
    height: 24px; 
    fill: #fff; 
    display: block; 
    transition: fill 0.2s;
}
.footer-socials a:hover svg { fill: var(--fiat-red); }

/* --- MOBILE FOOTER (<1200px) --- */
@media (max-width: 1200px) {
    .fiat-footer-unified { padding-bottom: 25px; }
    .footer-content { flex-direction: column; text-align: center; gap: 10px; }
    
    /* REMOVE LOGO ON TABLET/MOBILE */
    .footer-brand { display: none !important; }
    
    /* Reorder: Icons -> Legal */
    .footer-socials { 
        order: 1; 
        justify-content: center; 
        width: 100%; 
        margin-bottom: 15px; 
    }
    
    .footer-legal { 
        order: 2; 
        width: 100%; 
        padding-top: 15px; 
        border-top: 1px solid rgba(255,255,255,0.15); 
    }
    
    /* Bigger Icons for Touch */
    .footer-socials svg { width: 32px; height: 32px; }
}

/* =========================================
   ABOUT US PAGE SPECIFIC STYLES
   ========================================= */

/* 1. CONTAINER: Consistent full width wrapper */
.fiat-embed-wrapper {
    font-family: var(--font-stack, "Helvetica Neue", Helvetica, Arial, sans-serif);
    color: var(--text-dark, #424242); 
    line-height: 1.6;
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;  
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left; 
}

/* 2. HEADERS */
.fiat-page-h1 { 
    font-size: 32px;
    font-weight: 700;
    color: var(--fiat-brown, #3e332a); 
    text-align: left; 
    margin-top: 10px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.intro-sub {
    font-size: 18px; 
    text-align: left; 
    color: #666;
    margin-bottom: 25px;
    font-weight: 300;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.fiat-embed-wrapper h2 {
    font-size: 22px; 
    font-weight: 700;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--fiat-orange, #e67e22); 
    display: inline-block;
    padding-bottom: 3px;
}

/* 3. TEXT */
.fiat-embed-wrapper p {
    font-size: 16px; 
    margin-bottom: 18px;
    text-align: left;
}

.fiat-embed-wrapper strong {
    color: var(--fiat-brown, #3e332a);
}

.fiat-link { 
    color: var(--fiat-red, #c0392b); 
    font-weight: 700; 
    text-decoration: none; 
}
.fiat-link:hover { text-decoration: underline; }

/* 4. IMAGES (2-column grid on desktop, 1-column on mobile) */
.fiat-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; 
    margin-bottom: 25px;
}

.grid-img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    height: auto; 
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 5. CARDS (The "Vibe" and "Offer" blocks - side-by-side on desktop) */
.info-stack {
    display: flex;
    flex-direction: row; 
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.fiat-card {
    flex: 1 1 45%; 
    background: var(--bg-light, #f9f9f9); 
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--fiat-brown, #3e332a); 
}

.fiat-card h2 {
    display: block;
    border-bottom: none;
    margin-top: 0;
    color: var(--fiat-red, #c0392b);
}
.fiat-card p {
    text-align: left; 
}

/* --- MOBILE & TABLET TWEAKS (768px and below) --- */
@media (max-width: 768px) {
    .fiat-grid-2 { 
        grid-template-columns: 1fr; 
    }
    .info-stack {
        flex-direction: column; 
    }
    .fiat-page-h1, .intro-sub, .fiat-embed-wrapper p {
        text-align: center !important; 
    }
}
/* Note: This CSS defines the specific look for motorsport.html. 
   It utilizes the --variables defined in fiatclub.css (fiat-brown, fiat-orange, etc.)
*/

#fiat-motorsport-content {
    font-family: var(--font-stack, "Helvetica Neue", Helvetica, Arial, sans-serif);
    color: var(--text-dark, #424242);
    line-height: 1.5;
    max-width: 100%; /* Allows full width up to 1200px */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}
    
#fiat-motorsport-content * {
    box-sizing: border-box;
}
    
#fiat-motorsport-content h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--fiat-brown, #3e332a); 
}

#fiat-motorsport-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--fiat-orange, #e67e22); /* Fiat Orange Accent */
    display: inline-block;
    padding-bottom: 5px;
}

#fiat-motorsport-content p {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
}

#fiat-motorsport-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#fiat-motorsport-content li {
    font-size: 18px;
    margin-bottom: 8px;
    padding-left: 15px;
    border-left: 3px solid var(--fiat-orange, #e67e22);
}

#fiat-motorsport-content strong {
    font-weight: 700;
}

#fiat-motorsport-content a {
    color: var(--fiat-red, #c0392b);
    text-decoration: none;
    font-weight: 700;
}
    
#fiat-motorsport-content a:hover {
    text-decoration: underline;
}

/* Grid Layout for Images */
.fiat-gallery-grid {
    display: grid;
    /* Allows side-by-side columns on large screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    margin: 40px 0;
}

.fiat-gallery-item img {
    width: 100%;
    /* FIX: Use aspect-ratio 3:2 to prevent cropping and fix awkward vertical stretch */
    aspect-ratio: 3 / 2; 
    height: auto; 
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: block; 
}

.fiat-gallery-item img:hover {
    transform: scale(1.02);
}

/* Mobile Specific Tweaks (768px and below) */
@media (max-width: 768px) {
    #fiat-motorsport-content {
        padding: 15px; /* Less padding on mobile */
    }
    
    #fiat-motorsport-content h1 { font-size: 28px; }
    #fiat-motorsport-content h2 { font-size: 20px; }
    #fiat-motorsport-content p, #fiat-motorsport-content li { font-size: 16px; }
    
    .fiat-gallery-item img { 
        height: auto; /* Let aspect ratio define height */
    } 
    
    /* Ensure only 1 COLUMN on mobile to prevent squishing */
    .fiat-gallery-grid {
        grid-template-columns: 1fr; 
    }
}
/* Note: This CSS defines the specific look for library.html. 
   It utilizes the --variables defined in fiatclub.css (fiat-brown, fiat-orange, etc.)
*/

/* --- GENERAL PAGE STRUCTURE --- */
#fiat-library-content {
    font-family: var(--font-stack, "Helvetica Neue", Helvetica, Arial, sans-serif);
    color: var(--fiat-brown, #3e332a); /* Fiat Coffee Brown for main text body */
    line-height: 1.6;
    max-width: 100%; /* Allows content to fill the 1200px main container width */
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    box-sizing: border-box;
}
    
#fiat-library-content * {
    box-sizing: border-box;
}
    
#fiat-library-content h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--fiat-brown, #3e332a);
}

#fiat-library-content p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: left;
    /* Create a centered reading column for paragraphs to improve readability on wide screens */
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
}

/* Center the shorter intro line */
#fiat-library-content .intro-center {
    text-align: center;
    font-style: italic;
    color: #666;
}

#fiat-library-content a.text-link {
    color: var(--fiat-orange, #e67e22);
    text-decoration: none;
    font-weight: 700;
}
    
#fiat-library-content a.text-link:hover {
    text-decoration: underline;
}

/* --- LOGO GRID SYSTEM --- */
.brand-grid {
    display: grid;
    /* Allows flexible columns on large screens */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1100px; /* Limits the grid width slightly inside the container */
    margin-left: auto;
    margin-right: auto;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 160px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--fiat-orange, #e67e22);
}

.brand-card img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Makes logos uniform silver/grey initially */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Hover: Bring back color */
.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    #fiat-library-content { padding: 20px 15px; }
    #fiat-library-content h1 { font-size: 28px; margin-bottom: 20px; }
    #fiat-library-content p { font-size: 16px; max-width: 100%; text-align: center; } /* Centering text on mobile */
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
        gap: 15px;
    }
    
    .brand-card {
        height: 120px; /* Slightly shorter cards on mobile */
        padding: 15px;
    }
}

.fiat-directory-container {
    /* Max width is increased to 1100px here to match the layout in the source, 
       but constrained by the main.content-container */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--fc-text);
    line-height: 1.6;
    max-width: 900px; /* Keeping original narrow width for readability */
    margin: 0 auto;
    padding: 20px 0 60px 0;
}

/* --- 2. HEADER & PROMISE SECTION --- */
.directory-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 30px;
}

.directory-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--fc-brown);
    margin-bottom: 15px;
    line-height: 1.1;
    text-align: left; /* Ensure left-alignment for the directory header */
}

.intro-lead {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    max-width: 750px;
    text-align: left;
}

/* The Trust Box */
.promise-box {
    background-color: #fff;
    border-left: 6px solid var(--fc-orange);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin: 30px 0;
}

.promise-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fc-brown);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
    
.promise-icon svg { width: 22px; height: 22px; fill: var(--fc-orange); }

.promise-text { font-size: 15px; color: #555; margin-bottom: 15px; }
    
.cta-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--fc-brown);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
    
.cta-link {
    color: var(--fc-red);
    text-decoration: none;
    border-bottom: 2px solid rgba(192, 57, 43, 0.2);
    transition: all 0.2s;
}
.cta-link:hover { border-bottom-color: var(--fc-red); color: #a93226; }

/* --- 3. STATE HEADERS (Sticky) --- */
h2.state-header {
    background-color: #f2edce; /* Light yellow background */
    color: var(--fc-brown);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 60px;
    margin-bottom: 30px;
    /* Sticky behavior for long lists, stays below fixed header */
    position: sticky;
    top: 85px; 
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- 4. CARD GRID SYSTEM --- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default is single column (stacking) */
    gap: 20px;
}

/* --- 5. MECHANIC CARD DESIGN --- */
.mechanic-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
    
.mechanic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--fc-orange);
}

/* Left: Logo Area */
.card-logo-area {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-black); /* Default is Dark */
    border-radius: 8px;
    border: 1px solid #333;
    padding: 8px;
}
.card-logo-area img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}
    
/* Center: Info */
.card-info { flex-grow: 1; min-width: 0; }
    
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fc-brown);
    margin: 0 0 6px 0;
}
    
.card-meta {
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}
    
.card-meta span { display: flex; align-items: center; gap: 8px; }
.card-meta a { color: #0066cc; text-decoration: none; }
.card-meta a:hover { text-decoration: underline; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right: Action Buttons */
.card-action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    min-width: 140px;
}

/* Primary Button */
.btn-visit {
    background-color: var(--fc-success);
    color: white !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    transition: background 0.2s;
}
.btn-visit:hover { background-color: #006428; }

/* Secondary Button (vCard) */
.btn-vcard {
    background-color: transparent;
    color: var(--fc-brown) !important;
    border: 2px solid var(--fc-brown);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-vcard svg { width: 14px; height: 14px; fill: var(--fc-brown); transition: fill 0.2s;}
.btn-vcard:hover { background-color: var(--fc-brown); color: white !important; }
.btn-vcard:hover svg { fill: white; }


/* --- MOBILE BREAKPOINT --- */
@media (max-width: 700px) {
    .directory-header h1 { 
        font-size: 32px; 
        text-align: center; /* Center header on mobile */
    }
    .intro-lead { 
        font-size: 16px; 
        text-align: center; /* Center intro text on mobile */
    }
    .mechanic-card { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .card-logo-area { width: 60px; height: 60px; margin-bottom: 5px; }
    .card-action-group { 
        width: 100%; 
        margin-top: 15px; 
        display: flex; 
        flex-direction: row;
    }
    .btn-visit, .btn-vcard { 
        flex: 1; 
        padding: 12px 5px; 
        font-size: 11px; 
        white-space: nowrap;
    }
    h2.state-header {
        top: 60px; /* Adjust sticky position for smaller mobile header */
    }
}

.club-directory-container {
    font-family: var(--font-stack, "Helvetica Neue", Helvetica, Arial, sans-serif);
    color: var(--fc-text);
    line-height: 1.6;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px; 
    box-sizing: border-box;
}

/* Header Section */
.club-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 30px;
}

.club-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--fc-brown);
    margin-bottom: 15px;
    line-height: 1.1;
    text-align: left;
}

.club-intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    max-width: 750px;
    text-align: left;
}

/* State Dividers (Sticky & Styled - Desktop Default) */
h2.region-header {
    background-color: #f2edce; 
    color: var(--fc-brown);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 60px;
    margin-bottom: 30px;
    
    /* DESKTOP STICKY SETTINGS */
    position: sticky;
    top: 85px; /* Stays below the fixed main header */
    z-index: 10;
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
    
/* The Grid */
.club-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
}

/* --- HORIZONTAL CARD DESIGN --- */
.club-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--fc-orange);
}

/* Logo Area */
.club-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; 
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 4px;
}
    
.club-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Content Area */
.card-content {
    flex-grow: 1;
    min-width: 0;
}

.club-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--fc-brown);
    margin-bottom: 6px;
    line-height: 1.2;
}

.club-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* Buttons */
.card-action { flex-shrink: 0; }
    
.btn-club {
    background-color: var(--fc-success);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.2s;
    white-space: nowrap;
}
    
.btn-club:hover {
    background-color: #006428; 
}
}

/* Mobile (700px and below) */
@media (max-width: 700px) {
    .club-header h1, .club-intro { 
        text-align: center; 
    }
    .club-header h1 { font-size: 32px; }
    
    /* FINAL FIX: Force the position to be static on mobile so it scrolls normally */
    h2.region-header {
        position: static !important;
        top: auto !important; 
        margin-top: 40px; 
    }
    
    .club-card { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .club-logo { 
        width: 60px; 
        height: 60px; 
        margin-bottom: 10px; 
    }
    .card-action { 
        width: 100%; 
        margin-top: 15px; 
    }
    .btn-club { 
        display: block; 
        text-align: center; 
    }
}

/* =========================================
   EVENTS PAGE STYLES (Grid Layout)
   ========================================= */

/* 1. Container Grid System */
.fiat-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.fiat-events-container h1 {
    text-align: center;
    color: var(--fiat-brown);
    margin-bottom: 10px;
}

#events {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

/* Desktop/Tablet: 2 columns */
@media (min-width: 768px) {
    #events {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* 2. The Event Card */
.event {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    height: 100%; /* Ensures cards in the same row are equal height */
    box-sizing: border-box;
}

.event:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--fiat-orange);
}

/* 3. Card Typography */
.event-header {
    font-size: 20px;
    font-weight: 800;
    color: var(--fiat-red);
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
}

.event-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--fiat-brown);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.event-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.event-location a {
    color: var(--fiat-orange);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}
.event-location a:hover {
    text-decoration: underline;
}

.event-description {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes buttons to the bottom */
}

/* 4. Button Area */
.add-to-calendar {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Anchors to bottom */
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.add-to-calendar a {
    flex: 1; /* Buttons take equal width */
    text-decoration: none;
    font-size: 13px;
    padding: 10px 5px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Google Button */
.add-to-calendar a[href*="google.com"] {
    background-color: var(--fiat-brown);
    color: white;
}
.add-to-calendar a[href*="google.com"]:hover {
    background-color: #2c241e;
}

/* iCal Button */
.add-to-calendar a[download] {
    background-color: #fff;
    color: var(--fiat-brown);
    border: 1px solid var(--fiat-brown);
}
.add-to-calendar a[download]:hover {
    background-color: #f9f9f9;
    color: var(--fiat-orange);
    border-color: var(--fiat-orange);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .fiat-events-container { padding: 0 15px; }
    .event { padding: 20px; }
    .add-to-calendar { flex-direction: column; } /* Stack buttons on very small screens */
    .add-to-calendar a { width: 100%; }
}

/* FORCE TOP BAR ORANGE */
.utility-nav a:hover { color: #e67e22 !important; text-decoration: none !important; }
