/* ==========================================================================
   1. HEADER & GLOBAL COMPONENTS
   ========================================================================== */

/* Target the H2 directly since the class is on the tag itself */
h2.upcoming-shows {
    text-align: center !important;
    display: block !important;
    margin-top: 0px !important;       /* Pulls it down from the photo/buttons block above */
    margin-bottom: 40px !important;    /* Pushes the dark card section down below it */
}

/* Neutralize the default margins on Drupal's body field wrapper around the H2 */
.field--name-body.field--type-text-with-summary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   2. TYPOGRAPHY & GLOBAL FONT OVERRIDES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}

ul.menu-main-menu a,
.menu-main-menu a,
ul.menu a {
  font-family: "Montserrat", sans-serif !important;
}

/* ==========================================================================
   3. GLOBAL BRANDED BUTTON OVERRIDES (Safely Scoped to Content Areas)
   ========================================================================== */

/* 1. Global Primary Buttons (Targeting explicit classes, ignoring bare system buttons) */
a.button, 
.block-content a.button,
.block-content button:not([class*="menu"]), 
input[type="submit"].button {
    display: inline-block !important;
    background-color: #20409A !important; /* Primary Brand Blue */
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    padding: 12px 32px !important;
    border-radius: 50px !important; /* Pill shape */
    border: 2px solid #20409A !important;
    transition: all 0.3s ease !important;
}

/* Primary Button Hover State */
a.button:hover, 
.block-content a.button:hover,
.block-content button:not([class*="menu"]):hover, 
input[type="submit"].button:hover {
    background-color: #1D3C5E !important; /* Dark Navy */
    border-color: #1D3C5E !important;
    color: #ffffff !important;
}

/* 2. Global Secondary Buttons */
a.button.secondary, 
.block-content a.button.secondary,
input[type="submit"].button.secondary {
    background-color: #ffffff !important;
    color: #20409A !important; /* Primary Blue Text */
    border: 2px solid #ffffff !important;
}

/* Secondary Button Hover State */
a.button.secondary:hover, 
.block-content a.button.secondary:hover,
input[type="submit"].button.secondary:hover {
    background-color: #CFDFFE !important; /* Light Blue Accent */
    color: #20409A !important;
    border-color: #CFDFFE !important;
}

/* ==========================================================================
   4. EQUAL HEIGHT SPONSOR CARDS LAYOUT GRID
   ========================================================================== */

/* 1. Force the columns row wrapper to align child heights evenly */
.layout-threecol-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important; /* Forces all columns to match the tallest one */
}

/* 2. Make sure the individual columns take up the full available vertical space */
.layout-threecol-section > .layout__region {
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Force the card white containers inside the columns to stretch 100% down */
.layout-threecol-section .card.white {
    flex: 1 1 auto !important;
    height: 100% !important;
    margin-top: 0 !important; /* Resets individual offsets so they line up */
}

/* ==========================================================================
   5. UPCOMING SHOW EVENT CARDS
   ========================================================================== */

.event-card {
    background-color: #1D3C5E !important;
    color: #FFFFFF !important;
    border-radius: 14px !important;
    padding: 40px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-left: 15px !important;
    margin-right: 15px !important;
    margin-bottom: 0px !important;
}

/* Card Title */
.event-card h3 {
    color: #FFFFFF !important;
    font-size: 24px !important;
    font-weight: 700;
    margin-bottom: 20px !important;
}

/* Uniform Text Elements */
.event-card .event-details-text {
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #FFFFFF !important;
    opacity: 0.95 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

/* Target the wrapper divs directly */
.event-card .event-location-title,
.event-card .event-location-address {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding: 0px !important;
    line-height: 1.2 !important;
}

/* Add a precise tight gap between the title line and the address line */
.event-card .event-location-title {
    margin-bottom: 2px !important;
}

/* Add breathing room below the street address before the admission section */
.event-card .event-location-address {
    margin-bottom: 25px !important;
}

/* Force Drupal's internal field output markup to sit inline within our wrappers */
.event-card .event-location-title *,
.event-card .event-location-address * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Admission Section */
.event-card .event-admission {
    font-size: 14px !important;
    opacity: 0.85;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   6. MEDIA & TEXT SPLIT COMPONENTS
   ========================================================================== */

/* Turn parent section into a 2-column grid; stretch children to equal height */
.custom-media-text-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    align-items: stretch !important; /* Forces image column & text column to equal height */
    margin-top: 60px !important;      /* Adds clean separation from the cards above */
    padding-top: 60px !important;
    margin: 48px 0;
    width: 100%;
}

/* Force all inner Drupal wrapper divs in media-column to span 100% height */
.custom-media-text-section .media-column,
.custom-media-text-section .media-column .field,
.custom-media-text-section .media-column .field__item,
.custom-media-text-section .media-column div {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.custom-media-text-section .text-column {
    grid-column: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Vertically centers text inside its column */
    text-align: left !important;
}

/* Ensure image fills that full height without collapsing */
.custom-media-text-section .media-column img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Title styling */
.custom-media-text-section h2,
.custom-media-text-section .block-title,
.custom-media-text-section h2 strong {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    /* text-transform: uppercase !important; */
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #20409a !important;
    text-align: left !important;
    width: 100% !important;
    letter-spacing: -0.5px;
    line-height: 1.2 !important;
}

/* Body Copy Paragraph Tuning */
.media-text-body p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4A5568;
    margin-bottom: 24px;
}

/* Center the button container and all Drupal field wrappers inside it */
.media-text-action,
.media-text-action .field,
.media-text-action .field__item {
    margin-top: 24px !important;
    display: flex !important;
    justify-content: center !important; /* Centers content horizontally */
    align-items: center !important;
    width: 100% !important;
}

/* Ensure link stays block-level centered */
.custom-media-text-section .media-text-action a {
    display: inline-block !important;
    margin: 0 auto !important; /* Secondary horizontal centering fallback */
    white-space: nowrap !important;
    width: auto !important;
    text-align: center !important;
    background-color: #20409a !important;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(32, 64, 154, 0.2);
}

.custom-media-text-section .media-text-action a:hover {
    background-color: #13273E !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 64, 154, 0.35);
}

/* Clean up field helpers */
.media-text-column .field,
.media-text-column .field__item {
    display: block;
    width: 100%;
}

/* Flip the column assignments for reversed sections */
.custom-media-text-section.section-reversed .text-column {
    grid-column: 1 / 2 !important;
}

.custom-media-text-section.section-reversed .media-column {
    grid-column: 2 / 3 !important;
}

/* Responsive Mobile view */
@media (max-width: 768px) {
    .custom-media-text-section {
        display: flex !important;
        flex-direction: column !important;
    }

    .custom-media-text-section .media-column {
        min-height: 320px !important;
        max-height: 450px !important;
    }

    .custom-media-text-section.section-reversed .media-column {
        order: 2 !important;
    }
}

/* ==========================================================================
   7. WHAT TO EXPECT IMAGE GRID 
   ========================================================================== */

.expect-section {
    padding: 60px 20px !important; /* Unified Rhythm Spacing */
    max-width: 1200px;
    margin: 0 auto;
}

.expect-section h2 {
    text-align: center !important;
    margin-bottom: 50px !important;
    font-size: 1.75rem !important; /* Sized to match customized headings */
    font-weight: 700 !important;
    color: #20409A !important;    /* Branding Primary Blue */
    /* text-transform: uppercase !important; */
}

/* Two-column grid system */
.image-tile-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

/* Base Card Styles */
.tile-card {
    position: relative !important;
    height: 320px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 30px !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Absolute Background Layers */
.tile-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 1 !important;
}

/* Standardized dark linear gradient overlay for accessible text contrast */
.tile-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    z-index: 2 !important;
}

/* Elevated Foreground Text Wrapper */
.tile-content {
    position: relative !important;
    z-index: 3 !important;
    text-align: left !important;
}

.tile-content h3 {
    color: #FFFFFF !important;
    font-size: 22px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.tile-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
}

/* Inline links embedded inside the cards */
.tile-link {
    color: #CFDFFE !important; /* High contrast Light Blue accent */
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.tile-link:hover {
    text-decoration: underline !important;
}

/* Responsive Mobile Breakpoint Override */
@media (max-width: 768px) {
    .image-tile-grid {
        grid-template-columns: 1fr !important; /* Stack tiles vertically on mobile devices */
        gap: 20px !important;
    }
    
    .tile-card {
        height: auto !important;
        min-height: 280px !important;
        padding: 20px !important;
    }
}

/* ==========================================================================
   8. UNIFIED CALL-TO-ACTION CARDS
   ========================================================================== */

/* Foundational Layout Structure */
.custom-cta-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 60px 24px !important;
    margin: 48px auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Base Typography: Standard View */
.custom-cta-card h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #20409a !important;            /* Unified branding blue */
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
}

.custom-cta-card p {
    font-size: 1.15rem !important;
    line-height: 1.65 !important;
    color: #4A5568 !important;            /* Soft dark charcoal text */
    margin-bottom: 32px !important;
    max-width: 680px;
}

.custom-cta-card .cta-action {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Base Button Style: Blue Button / White Text */
.custom-cta-card .cta-action a {
    display: inline-block !important;
    white-space: nowrap !important;
    background-color: #20409a !important;
    color: #ffffff !important;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(32, 64, 154, 0.2);
}

.custom-cta-card .cta-action a:hover {
    background-color: #13273E !important; /* Darker slate hover shift */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 64, 154, 0.35);
}

/* Inverted Variant: Deep Blue Card Customizations */
.custom-cta-card.card-inverted {
    background-color: #20409a !important; /* Unified branding blue fills the card */
    border-radius: 16px;                  /* Rounded corners matching image themes */
    max-width: 100% !important;           /* Spans full content width like a true container */
    padding: 20px 10px !important;        /* Extra room inside the block container */
}

.card-inverted h3,
.card-inverted h3 strong {
  color: #ffffff !important;
  padding: 10px 10px !important;  
}

/* Color flips for the dark background text */
.custom-cta-card.card-inverted h2 {
    color: #ffffff !important;
}

.custom-cta-card.card-inverted p {
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly softened white for readability */
    max-width: 740px;
}

/* Inverted Button Style: White Button / Blue Text */
.custom-cta-card.card-inverted .cta-action a {
    background-color: #ffffff !important;
    color: #20409a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-cta-card.card-inverted .cta-action a:hover {
    background-color: #f7fafc !important; /* Off-white hover hue */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive adjust for narrow screens */
@media (max-width: 768px) {
    .custom-cta-card.card-inverted {
        padding: 48px 24px !important;
    }
    .custom-cta-card h2 {
        font-size: 1.85rem !important;
    }
}

/* ==========================================================================
   9. SPONSORS GRID SECTION
   ========================================================================== */

.sponsors-section {
    padding: 45px 24px !important; /* Reduced vertical footprint */
    text-align: center !important;
}

.sponsors-section .container {
    max-width: 900px; /* Snugger layout width */
    margin: 0 auto;
}

/* Downsized Typography */
.sponsors-section h2 {
    font-size: 2.0rem !important; /* Slightly smaller header */
    font-weight: 700 !important;
    color: #20409a !important; 
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

.sponsors-section p {
    font-size: 1.05rem !important; /* Shifted down from 1.15rem */
    line-height: 1.6 !important;
    color: #4A5568 !important;
    max-width: 760px;
    margin: 0 auto 40px auto !important; /* Reduced bottom margin */
}

/* Reduced Spacing Grid */
.sponsors-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 50px !important;  /* Reduced from 80px to bring columns closer */
    row-gap: 32px !important;     /* Reduced from 54px to tighten vertical stack */
    justify-content: center !important;
    align-items: center !important;
}

/* Scaled Down Sponsor Names */
.sponsor-item {
    font-size: 1.15rem !important; /* Shifted down from 1.35rem */
    font-weight: 700 !important;   
    color: #20409a !important;    
    line-height: 1.25 !important;
    padding: 0 5px !important;
}

/* Responsive collapse for tablets and mobile */
@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr !important;
        row-gap: 24px !important;
    }
    
    .sponsors-section h2 {
        font-size: 1.65rem !important;
    }
}

/* ==========================================================================
   10. GLOBAL SITE FOOTER (CONTAINER & NAVIGATION)
   ========================================================================== */

/* Target the main footer wrapper to overwrite the grid pattern */
#footer, 
.footer,
.footer-wrapper {
    background-image: none !important;
    background: #20409a !important; /* Forces the entire edge-to-edge area to be solid blue */
}

/* Apply primary blue background directly to layout blocks */
.region-footer-second,
footer,
#footer-block { 
    background-color: #20409a !important;
    color: #ffffff;
}

/* Style the header text (Quick Links) */
.footer-col h4 {
    color: #ffffff !important;
    text-transform: uppercase; /* Matches the all-caps look in the image */
    letter-spacing: 1px;       /* Adds a little breathing room between letters */
    margin-bottom: 20px;
}

/* Remove default theme divider lines and bullets */
ul.footer-nav li {
    border-bottom: none !important;
    border-top: none !important;
    list-style: none !important;
    padding: 8px 0;
    margin: 0;
}

/* Force all navigation links to be pure white */
.footer-nav-link {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

/* Add a clean hover effect (slight fade instead of color change) */
.footer-nav-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================================================
   11. FOOTER BRAND LOGO OVERRIDE (#block-tarapro...)
   ========================================================================== */

/* Reset the block to let it flow naturally rather than forcing a 100% height flex container */
#block-tarapro-custom-logowrapper {
  display: block;
  height: auto;
}

#block-tarapro-custom-logowrapper .block-content {
  display: block;
  width: 100%;
}

/* Strip out internal paragraph margins */
#block-tarapro-custom-logowrapper p,
#block-tarapro-custom-logowrapper .field {
  margin: 0 !important;   
  padding: 0 !important;
}

/* Handle positioning and spacing entirely on the image */
#block-tarapro-custom-logowrapper img {
  width: 250px;
  height: auto;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  
  /* Adjusted spacing layout to ensure vertical uniformity across the row */
  margin-top: 0px; 
  margin-bottom: 30px;
}

/* ==========================================================================
   12. CUSTOM FOOTER & SOCIAL ICONS
   ========================================================================== */

/* Target the flex container inside our custom wrapper */
.footer-column-social .social-icons {
  display: flex;
  justify-content: flex-end; /* Keeps them locked tightly to the right margin */
  padding-left: 0;
  margin-top: 30px; /* Gives them breathing room beneath final menu link */
  margin-bottom: 0;
}

/* Align text elements right inside the parent block */
.footer-column-social {
  text-align: right;
  width: 100%;
}

/* ==========================================================================
   13. FULL-WIDTH HERO BANNERS
   ========================================================================== */

/* 1. Ensure parent wrappers do not clip or constrain the breakout width */
.field--name-body,
.field--name-body > .field-item {
    overflow: visible !important;
}

/* 2. Standard 100vw Viewport Breakout */
.unit.custom-hero-banner {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

/* 3. Dark background container */
.unit.custom-hero-banner .banner {
    background-color: #000000;
    position: relative;
    width: 100%;
}

/* 4. Background image scaling and darkening opacity */
.unit.custom-hero-banner .banner img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    vertical-align: middle;
    opacity: 0.45;
}

/* 5. Overlay text positioning */
.unit.custom-hero-banner .banner-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    z-index: 2;
}

/* 6. Hero Banner Typography Overrides */
.unit.custom-hero-banner .banner-message h1,
.unit.custom-hero-banner .banner-message h1 strong {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    color: #ffffff !important;
}

.unit.custom-hero-banner .banner-message p,
.unit.custom-hero-banner .banner-message * {
    color: #ffffff !important;
}

/* Subheading rule for hero banners */
.unit.custom-hero-banner .banner-message p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 800px !important;
}

/* Add vertical spacing between layout builder sections */
.layout-builder__section {
  margin-bottom: 60px;
}

/* Or target white cards specifically when placed below show cards */
.card.white {
  margin-top: 60px;
}

/* ==========================================================================
   14. ADMISSION & TICKETS CARD MATCHING & ALIGNMENT (COMPLETE)
   ========================================================================== */

/* 1. Force Layout Builder columns to be identical equal width (50/50) */
.layout--twocol-section {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.layout--twocol-section > .layout__region {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
}

/* 2. Strip Drupal container margins, padding, and fixed-width constraints */
.layout--twocol-section .layout__region .block,
.layout--twocol-section .layout__region .block-content,
.layout--twocol-section .block-inline-blockbasic,
.layout--twocol-section .block-inline-blockbasic .field,
.layout--twocol-section .block-inline-blockbasic .field--name-body,
.layout--twocol-section .block-inline-blockbasic .field__item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Outer card shell styling (Navy background, compact padding, alignment) */
.layout--twocol-section .event-card-inner {
    background-color: #1D3C5E; /* Dark Navy matching left card */
    border-radius: 12px;
    padding: 20px 18px !important; /* Adjust padding to control vertical height */
    color: #ffffff;
    text-align: center;
    box-sizing: border-box !important;
    
    /* Width Controls: Adjust max-width here if you want to fine-tune width manually */
    width: 100% !important;
    max-width: 94% !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* Pulls content up to shrink excess height */
}

/* 4. Internal typography and element spacing */
.event-card-inner .event-card-title h3 {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 700;
    margin: 18px 0 20px 0 !important;
}

.event-card-inner p {
    color: #ffffff !important;
    margin-bottom: 6px !important; /* Tightens paragraph spacing */
}

.event-card-inner .card-divider {
    /* 1. Kill default browser/theme HR styling */
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    height: 1px !important;
    padding: 0 !important;
    
    /* 2. Use a subtle background color with low alpha instead of border */
    background-color: rgba(255, 255, 255, 0.2) !important; 
    
    /* 3. Layout & Spacing */
    margin: 16px auto !important;
    width: 88% !important;
}

.event-card-inner .pricing-details p {
    font-size: 14px;
    line-height: 1.5;
    color: #f1f5f9 !important;
    margin-bottom: 11px !important;
}

/* ==========================================================================
   15. GETTING HERE SECTION (IMAGE + TEXT / MAP LAYOUT)
   ========================================================================== */

/* Main Section Layout Container */
.getting-here-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important; /* Locks equal height across columns */
    gap: 32px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

/* Two Column Flex Distribution */
.getting-here-media,
.getting-here-content {
    flex: 1 1 450px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important; /* Strips any theme column offsets */
    padding: 0 !important;
}

/* ==========================================================================
   15. GETTING HERE SECTION (IMAGE + TEXT / MAP LAYOUT)
   ========================================================================== */

/* Main Section Layout Container */
.getting-here-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important; /* Keeps map and card height identical */
    gap: 32px !important;
    
    /* Spacing fixes */
    margin-top: 120px !important;    /* Increased space above section */
    margin-bottom: 60px !important; /* Increased space below section */
    
    /* Width & Alignment to match upper cards */
    width: 100% !important;
    max-width: 1120px !important;   /* Aligns outer edges with standard container width */
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Two Column Flex Distribution */
.getting-here-media,
.getting-here-content {
    flex: 1 1 0px !important; /* Forces equal 50/50 column distribution to match top grid */
    min-width: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset Drupal internal field/block margins wrapping the map */
.getting-here-media *,
.getting-here-media .field,
.getting-here-media .field__item {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

/* Responsive Map Container & Frame */
.getting-here-media .map-embed-container {
    width: 100% !important;
    height: 350px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.getting-here-media iframe {
    display: block !important;
    width: 100% !important;
    height: 350px !important;
    border: 0 !important;
}

/* Right Column: White Card */
.getting-here-content.card.white {
    background-color: #ffffff !important;
    padding: 32px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    height: 350px !important;
    
    /* Flexbox centering for internal card contents */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Heading - Branded Primary Blue */
.getting-here-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #20409a !important;
    text-align: center !important;
}

/* Sub-text / Paragraph styling */
.getting-here-content .lead-text {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.getting-here-content p {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    color: #4a5568 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

/* Text Links */
.getting-here-content a:not(.button) {
    color: #20409a !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.getting-here-content a:not(.button):hover {
    color: #1d3c5e !important;
}

/* Actions & Button Placement */
.getting-here-actions {
    margin-top: 8px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* ==========================================================================
   16. ACTIVITIES FOR KIDS & FAMILIES (IMAGE TILE GRID)
   ========================================================================== */

.activities-section {
    margin-top: 60px !important;
    margin-bottom: 80px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Section Header - Matched to 'Upcoming Shows' Header Style */
.activities-section .section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 32.4px !important;
    font-weight: 700 !important;
    line-height: 51.84px !important;
    color: #20409a !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

/* 2x2 CSS Grid Container */
.image-tile-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: minmax(550px, auto) !important;
    gap: 32px !important;
    width: 100% !important;
}

/* Individual Card Styling */
.tile-card {
position: relative !important;
    width: 100% !important;
    height: 100% !important; /* Fills grid row height */
    
    /* Clamp the card height between min and max */
    min-height: 500px !important; 
    max-height: 750px !important; /* Cap height so it doesn't get ridiculously long */
    
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.tile-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

/* Background Image Layer */
.tile-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
}

/* Gradient Overlay for Text Readability */
.tile-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Deeper gradient to keep the multi-paragraph copy clear and legible */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 45%, rgba(15, 23, 42, 0.95) 100%) !important;
    z-index: 2 !important;
}

/* Card Content / Typography */
.tile-content {
    position: relative !important;
    z-index: 3 !important;
    padding: 24px 28px !important;
    color: #ffffff !important;
    overflow-y: auto !important; /* Safeguard so text never overflows out of card */
}

.tile-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

.tile-content p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    color: #f1f5f9 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.tile-content p:last-child {
    margin-bottom: 0 !important;
}

/* Responsive Behavior for Small Screens */
@media (max-width: 768px) {
    .image-tile-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tile-card {
        aspect-ratio: auto !important;
        min-height: 420px !important;
    }
}

/* ==========================================================================
   17. EXPLORE THE HOBBY / ALTERNATING LAYOUT
   ========================================================================== */

/* --- SECTION HEADER --- */

/* Reset wrappers/fields inside the header to prevent ghost height */
.explore-hobby-title-wrapper,
.explore-hobby-title p,
.explore-hobby-title div {
  margin: 0 !important;
  padding: 0 !important;
}

/* H2 Title: Matches theme font, weight, color, and controls spacing */
h2.section-title.explore-hobby-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 32.4px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: rgb(32, 64, 154) !important;
  text-align: center !important;
  margin: 30px auto 40px auto !important; /* Top: 30px (from cards above), Bottom: 20px (to content below) */
  padding: 0 !important;
}

/* --- OUTER SECTION LAYOUT & SPACING FIX --- */

.custom-media-text-section {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 30px !important;
  
  /* SPACING FIX: Reset padding to 0 so it doesn't double-stack with margins */
  padding: 0 !important;
  margin-top: 50px !important;    /* Standard spacing between alternating rows 1, 2, and 3 */
  margin-bottom: 50px !important;
  width: 100% !important;
}

/* Reduces top gap specifically on Subsection 1 (Clinics) right under the H2 header */
.custom-media-text-section.media-subsection {
  margin-top: 10px !important; /* Header's margin-bottom: 20px handles the gap cleanly */
}

/* --- FLEX COLUMN SIZING --- */

.custom-media-text-section .media-column {
  flex: 0 0 45% !important;
  max-width: 45% !important;
  height: 420px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.custom-media-text-section .text-column {
  flex: 1 1 55% !important;
  max-width: 55% !important;
}

/* Image Containment */
.custom-media-text-section .media-column img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Subheading Fix */
.custom-media-text-section h3 {
  margin-top: 0 !important;
}

/* --- REVERSED LAYOUT ORDER --- */

.custom-media-text-section.section-reversed .media-column {
  order: 2 !important;
}

.custom-media-text-section.section-reversed .text-column {
  order: 1 !important;
}

/* --- BUTTON ALIGNMENT --- */

.custom-media-text-section .media-text-action {
  margin-top: 24px !important;
  display: flex !important;
  justify-content: center !important;
}

.custom-media-text-section .media-text-action a {
  display: inline-block !important;
  background-color: #20409a !important;
  color: #ffffff !important;
  padding: 12px 32px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* --- MOBILE STACK --- */

@media (max-width: 768px) {
  .custom-media-text-section {
    flex-wrap: wrap !important;
  }
  .custom-media-text-section .media-column,
  .custom-media-text-section .text-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .custom-media-text-section.section-reversed .media-column {
    order: 1 !important;
  }
  .custom-media-text-section.section-reversed .text-column {
    order: 2 !important;
  }
}