/*
Theme Name: OceanWP Child
Author: 
Description: Your description goes here
Version: 1.0
Template: oceanwp
*/

/* --- 1. Global Color & Font Variables --- */
/*
  By defining variables in :root, they become globally available
  to all components on the site. This is best practice.
*/
:root {
    /* Main Brand Colors */
 /* --- Intro --- */
    --color-intro: #0097B2;             /* Teal */
    --color-intro-light: #87D2DF;       /* Slightly lighter version of your Teal */
    --color-intro-dark: #006B7D;        /* Added to complete the set */

    /* --- Developing --- */
    --color-developing: #FF9F00;        /* Orange */
    --color-developing-light: #FAC367;  /* light orange */
    --color-developing-dark: #CC7F00;   /* Added from table */

    /* --- Night --- */
    --color-night: #AD0000;             /* Red */
    --color-night-light: #E65151;       /* Lighter Red */
    --color-night-dark: #8B0000;        /* Added from table */

    /* --- Workshop --- */
    --color-workshop: #D77103;          /* Dark Orange */
    --color-workshop-light: #F6A247;    /* LIGHTER Dark Orange */
    --color-workshop-dark: #A85500;     /* Added from table */

/* --- NNAS Bronze --- */
--color-nnas_bronze: #cd7f32;             /* Existing Bronze */
--color-nnas_bronze-light: #E8AD7A;       /* Added from table */
--color-nnas_bronze-dark: #9A5E1E;        /* Added from table */
--color-nnas_bronze-extra_light: #F4EBE2; /* Ultra-soft warm beige background */

/* --- NNAS Silver --- */
--color-nnas_silver: #c0c0c0;             /* decorative: pills, borders */
--color-nnas_silver-light: #E0E0E0;
--color-nnas_silver-dark: #909090;
--color-nnas_silver-extra_light: #F2F2F2; /* section background */
--color-nnas_silver-text: #5c6670;        /* gunmetal — text & icons */

/* Only the course title/price block, not every h2 in the section */
#silver-intro,
#silver-intro strong {
    color: var(--color-nnas_silver-text);
}
    /* --- Maprun --- */
    --color-maprun: #27ae60;            /* Green */
    --color-maprun-light: #65CC8E;      /* Added from table */
    --color-maprun-dark: #1A7A40;       /* Added from table */

    /* --- Coaching --- */
    --color-coaching: #5b7c99;          /* Purple (Grey-Blue) */
    --color-coaching-light: #89A8C2;    /* Added to complete the set */
    --color-coaching-dark: #3D566B;     /* Added to complete the set */
	
    /* --- Weekend --- */
    --color-weekend: #8e44ad;           /* Purple */
    --color-weekend-light: #B577CF;     /* Added from table */
    --color-weekend-dark: #6B2D8A;      /* Added from table */

    /* --- Bespoke --- */
    --color-bespoke: #D77103;           /* Dark Orange - same as workshop */
    --color-bespoke-light: #F6A247;     /* Added same as workshop */
    --color-bespoke-dark: #A85500;      /* Added same as workshop */
	
	
	 /* NNAS brand */
  --nnas-red:#AD0000;
  --nnas-grey:#6b6b6b;
  --nnas-charcoal:#2a2a2a;



    /* Text & UI Colors */
    --color-text: #333;
    --color-text-dark: #2c3e50;
    --color-light-text: #777;
    --color-available: #27ae60;
    --color-white: #ffffff;
    --color-border: #e0e0e0;

    /* Global Font */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&display=swap');


/* --- Hide the entire Buttonizer widget on the landing page night, developing and introduction booking pages --- */
body.landing-page .buttonizer {
    display: none !important;
}

body.page-id-688 .buttonizer {
    display: none !important;
}

body.page-id-672 .buttonizer {
    display: none !important;
}

body.page-id-675 .buttonizer {
    display: none !important;
}


body.page-id-2656 .buttonizer {
    display: none !important;
}
body.page-id-2658 .buttonizer {
    display: none !important;
}


/* --- 2. Mission/Vision Block --- */
.rhl-mission-container-3 {
    font-family: var(--font-primary);
    margin: 2rem 0;
}

.mission-signoff {
    text-align: right;
    font-style: italic;
    margin-top: 1em;
}

.rhl-mission-container-3 .mission-layered {
    position: relative;
    padding: 3rem 1.5rem;
    background-color: var(--color-intro); /* Uses global variable now */
    border-radius: 12px;
    overflow: hidden;
}

.rhl-mission-container-3 .mission-layered::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('https://www.runlikeahaggis.com/wp-content/uploads/2023/12/Intermediate-course-icon-no-text.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.rhl-mission-container-3 .mission-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rhl-mission-container-3 .mission-heading {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-intro); /* Uses global variable now */
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
}

.rhl-mission-container-3 .mission-body p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin: 0 0 1em 0;
}

.rhl-mission-container-3 .mission-body p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments for Mission Block */
@media (max-width: 600px) {
    .rhl-mission-container-3 .mission-layered {
        padding: 2rem 1rem;
    }
    .rhl-mission-container-3 .mission-card {
        padding: 1.5rem;
    }
    .rhl-mission-container-3 .mission-body p {
        font-size: 1em;
        line-height: 1.6;
    }
}

/* HEADER STYLING for the new Block Layout */
.wp-block-group.rlh-blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 3rem 1rem;
    background-color: #f7f7f7;
    margin-bottom: 3rem;
    border-radius: 8px;
}

/* Forces the H1 inside the header to be Gochi Hand */
.wp-block-group.rlh-blog-header h1 {
    font-family: 'Gochi Hand', cursive !important;
    font-weight: 400 !important;
    font-size: clamp(4rem, 9vw, 7rem) !important;
    color: #0097B2 !important;
    margin: 0 auto 0.5rem auto !important;
    line-height: 1.2 !important;
}

/* Forces the subtitle paragraph to look uppercase */
.wp-block-group.rlh-blog-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.2rem !important;
    color: #666 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
}

/* --- 3. Course Card Listings --- */
.rlh-option1-container {
    font-family: var(--font-primary);
    /* Color variables are now global and removed from here */
}

.rlh-option1-container .course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.rlh-option1-container .course-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left-width: 8px;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rlh-option1-container .course-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Course Card Color Themes */
.rlh-option1-container .course-intro { border-left-color: var(--color-intro); }
.rlh-option1-container .course-developing { border-left-color: var(--color-developing); }
.rlh-option1-container .course-night { border-left-color: var(--color-night); }
.rlh-option1-container .course-workshop { border-left-color: var(--color-workshop); }
.rlh-option1-container .course-coaching { border-left-color: var(--color-coaching); }
.rlh-option1-container .course-weekend { border-left-color: #8e44ad; }
.rlh-option1-container .course-maprun { border-left-color: var(--color-maprun); }
.rlh-option1-container .course-bespoke { border-left-color: var(--color-workshop); }



.rlh-option1-container .course-meta {
    font-size: 0.9em;
    color: var(--color-light-text);
    margin: 0 0 0.5rem 0;
}

.rlh-option1-container .course-title {
    font-size: 1.4em;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.rlh-option1-container .course-availability,
.rlh-option1-container .course-status-wrapper {
    margin: 0 0 1rem 0;
    min-height: 24px;
}

.rlh-option1-container .course-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-available);
}

.rlh-option1-container .course-availability svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.rlh-option1-container .course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.rlh-option1-container .btn {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.rlh-option1-container .btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.rlh-option1-container .btn-primary:hover {
    background-color: #46627f;
}

.rlh-option1-container .btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.rlh-option1-container .btn-secondary:hover {
    background-color: #f1f1f1;
}

.rlh-option1-container .status-full {
    font-weight: 500;
    font-size: 0.9em;
    color: var(--color-light-text);
    background-color: #f1f1f1;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    display: inline-block;
}


/* --- 4. Testimonial Block --- */
.rlh-testimonial-container {
    display: grid !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
}

.rlh-testimonial-container .testimonial-card {
    border-left-width: 5px !important;
    border-left-style: solid !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin: 0 !important;
    
    /* NEW: Fixed height and flexbox alignment */
    height: 14rem !important; /* See math below for how we got this */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* THE CRITICAL FIX: Erase the Blockquote's own default styling */
/* This rule's only job is to completely erase the theme's default quote styling
   so that our card's styles can be seen from underneath. */
.rlh-testimonial-container .testimonial-card .wp-block-quote {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    border: none !important;      /* Erases the theme's default border */
    background: none !important; /* Makes the quote's background transparent */
    box-shadow: none !important;   /* Erases any "fake" borders from shadows */
}

/* Style the Quote TEXT */
.rlh-testimonial-container .wp-block-quote p {
    font-weight: light !important; 
    font-style: italic !important;
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    color: var(--color-text) !important;
    margin: 0 !important;

    /* NEW: Force text to max 3 lines */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Style the Author PARAGRAPH */
/* This targets a paragraph that immediately follows the blockquote inside the card's inner wrapper. */
.rlh-testimonial-container .testimonial-card .wp-block-group__inner-container > p {
    font-weight: 600 !important; /* Makes the author name semi-bold */
    color: var(--color-light-text) !important;
    text-align: right !important;
}

/* Testimonial Theme-Specific Colors */
.rlh-testimonial-container.theme-intro .testimonial-card {
    background-color: #eaf6f7 !important;
    border-left-color: var(--color-intro) !important;
}
.rlh-testimonial-container.theme-developing .testimonial-card {
    background-color: #fff8eb !important;
    border-left-color: var(--color-developing) !important;
}
.rlh-testimonial-container.theme-night .testimonial-card {
    background-color: #fdeeee !important;
    border-left-color: var(--color-night) !important;
}

/* --- Mobile Overrides for Testimonial Cards --- */
@media (max-width: 768px) {
    /* 1. Let the card height grow naturally */
    .rlh-testimonial-container .testimonial-card {
        height: auto !important; 
    }

    /* 2. Remove the 3-line limit and ellipsis */
    .rlh-testimonial-container .wp-block-quote p {
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }
}

/* ================================================= */
/* --- Final Page Style Refinements --- */
/* ================================================= */


/* --- 5. Course Description Wrapper (UPDATED) --- */
/* This now includes a border on the RIGHT side as well */
.course-description-wrapper {
    padding: 2.5rem; /* Increased padding for a more spacious feel */
    border-radius: 8px;
    margin: 2.5rem 0 !important;
    border-left-width: 8px;
    border-left-style: solid;
    border-right-width: 8px;      /* ADDED */
    border-right-style: solid;     /* ADDED */
}

/* ADDED border-right-color to each theme */
.course-description-wrapper.theme-intro {
    background-color: #eaf6f7;
    border-left-color: var(--color-intro);
    border-right-color: var(--color-intro); /* ADDED */
}
.course-description-wrapper.theme-developing {
    background-color: #fff8eb;
    border-left-color: var(--color-developing);
    border-right-color: var(--color-developing); /* ADDED */
}
.course-description-wrapper.theme-night {
    background-color: #fdeeee;
    border-left-color: var(--color-night);
    border-right-color: var(--color-night); /* ADDED */
}
.course-description-wrapper.theme-workshop {
    background-color: #fdf1e6;
    border-left-color: var(--color-workshop);
    border-right-color: var(--color-workshop); /* ADDED */
}

.course-description-wrapper.theme-nnasbronze {
    background-color: var(--color-nnas_bronze-extra_light);
    border-left-color: var(--color-nnas_bronze);
    border-right-color: var(--color-nnas_bronze); /* ADDED */
}

.course-description-wrapper.theme-nnassilver {
    background-color: var(--color-nnas_silver-extra_light);
    border-left-color: var(--color-nnas_silver);
    border-right-color: var(--color-nnas_silver); /* ADDED */
}


/* --- NEW: Big and Bold Course Title --- */
/* This targets the main H2 inside the wrapper */
.course-description-wrapper h2.wp-block-heading {
    font-size: 3.0rem; /* Increased font size */
    font-weight: 800;  /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    margin-bottom: 2rem; /* Adds space below the heading */
}
/* This targets the main H2 inside the wrapper */
.course-description-wrapper h4.wp-block-heading {
    font-size: 1.5rem; /* Increased font size */
    font-weight: 800;  /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 2.0px;
    line-height: 1.3;
    margin-bottom: 2rem; /* Adds space below the heading */
}

/* --- 6. Skills Icon List (Revised) --- */

/* The main container for the list of skills */
.skills-list-container {
    margin: 2rem 0;
}

/* --- 6. Skills Icon List (Definitive Version) --- */

/* This targets each row (the Columns block) */
.skill-list-item {
    display: flex;
    align-items: center; /* This vertically centers the columns */
    margin-bottom: 1.5rem;
}

/* 
  THE CRITICAL FIX: 
  This removes the default top and bottom margin WordPress adds 
  to the <figure> element that wraps your image. This is what was
  breaking the alignment.
*/
.skill-list-item .wp-block-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* This ensures the icon itself is centered within its own column */
.skill-list-item .wp-block-column:first-child .wp-block-image {
    margin-left: auto;
    margin-right: auto;
}

/* This styles the text in the right-hand column */
.skill-list-item .wp-block-column:last-child p {
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* This controls the size of the icon */
.skill-list-item .wp-block-image {
    max-width: 80px; 
}


/* --- 7. Center Skill Icons in their Column --- */
.skill-list-item .wp-block-column:first-child .wp-block-image {
    margin-left: auto;
    margin-right: auto;
}

/* --- 10. FINAL - Mobile Variable Reset --- */
/*
  This fix addresses the root cause where theme styles are
  incorrectly swapping the values of the color variables on mobile.
  We are forcing them back to their correct values here.
*/
@media (max-width: 768px) {
  :root {
    --color-intro: #0097B2 !important;       /* Re-force Teal */
    --color-developing: #FF9F00 !important;  /* Re-force Orange */
    --color-night: #AD0000 !important;      /* Re-force Red */
  }
}



/* --- NEW: 4-Column Skills Grid --- */

/* This is the main container for the grid of icons/text */
.skills-grid-container-4col {
    display: grid;
    /* On desktops, create 4 columns. On tablets, it will auto-fit to 2. On mobile, 1. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem; /* The space between the grid items */
    margin: 2rem 0;
    align-items: start; /* Aligns items to the top */
}

/* This is a single item inside the grid */
.skill-item-4col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.skill-item-4col .wp-block-image {
    margin-bottom: 1rem;
    max-width: 60px; /* Control the icon size */
    height: 60px;
}


.skill-item-4col p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

/* --- NEW: Mobile Visibility Helper to stop spaces in odd colum layouts --- */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
/* --- Larger Icons with Rounded Corners Variant --- */
/* Use this class on the container for a specific grid instance */
.skills-grid-container-4col.large-rounded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
    align-items: start;
}

.skills-grid-container-4col.large-rounded .skill-item-4col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skills-grid-container-4col.large-rounded .skill-item-4col .wp-block-image {
    margin-bottom: 1rem;
    max-width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Hover effect - subtle lift with glow */
.skills-grid-container-4col.large-rounded .skill-item-4col .wp-block-image:hover {
    transform: translateY(-8px); /* Lift up instead of scale */
    box-shadow: 0 12px 24px rgba(0, 151, 178, 0.4); /* Glow in your brand color */
}

/* Optional: Add a slight brightness increase to the image itself */
.skills-grid-container-4col.large-rounded .skill-item-4col .wp-block-image:hover img {
    filter: brightness(1.2);
}

.skills-grid-container-4col.large-rounded .skill-item-4col .wp-block-image img {
    border-radius: 20px;
    transition: filter 0.3s ease;
}

.skills-grid-container-4col.large-rounded .skill-item-4col p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

/* Mobile visibility helper remains the same */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* ================================================= */
/* --- 12. FINAL Compact Card Style (Combined Effects) --- */
/* ================================================= */

.rlh-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}


/* Base style for the compact card */
.rlh-compact-list .course-item-compact {
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-left-width: 8px; /* The thick left border */
    transform: translateY(0);
    /* Transition for the card's lift/shadow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Set the specific border color for each card type */
.rlh-compact-list .course-item-compact.course-intro { border-left-color: var(--color-intro); }
.rlh-compact-list .course-item-compact.course-developing { border-left-color: var(--color-developing); }
.rlh-compact-list .course-item-compact.course-night { border-left-color: var(--color-night); }
.rlh-compact-list .course-item-compact.course-workshop { border-left-color: var(--color-workshop); }

/* Missing course type colours — add after the existing .rlh-compact-list colour rules */
.rlh-compact-list .course-item-compact.course-coaching { border-left-color: var(--color-coaching); }
.rlh-compact-list .course-item-compact.course-weekend { border-left-color: #8e44ad; }
.rlh-compact-list .course-item-compact.course-maprun { border-left-color: var(--color-maprun); }
.rlh-compact-list .course-item-compact.course-bespoke { border-left-color: var(--color-workshop); }

/* fix for the bespoke cards which weren't being coloured right in the plugin */
.rlah-bespoke-card {
    border-radius: 8px;
}

.rlah-bespoke-title {
    color: var(--color-text-dark);
}

/* --- Base style for the button inside the card --- */
.rlh-compact-list .btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    /* Transition for the button's color change */
    transition: background-color 0.3s ease;
}

/* --- THE COMBINED HOVER EFFECTS --- */

/* 1. This makes the entire card lift and cast a shadow */
.rlh-compact-list .course-item-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}



/* ================================================= */
/* --- 13. CONSOLIDATED Fix for Compact Card Grid & Style --- */
/* ================================================= */

/* STEP 1: Define the grid container */
/* This rule turns the .rlh-compact-list (the Group block) into a grid */
.rlh-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* STEP 2: Fix the WordPress "invisible wrapper" problem */
/* This rule makes the shortcode's wrapper disappear so the grid can see the cards */
.rlh-compact-list > .wp-block-shortcode {
    display: contents;
}

/* STEP 3: Style the individual cards (restoring the lost formatting) */
/* All rules from here on use .rlh-compact-list as the parent, so they will now apply correctly. */
/* --- Individual Card Styles --- */
.rlh-compact-list .course-item-compact {
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-left-width: 8px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* ADD THIS LINE */
}

/* Apply the correct border color for each card type */
.rlh-compact-list .course-item-compact.course-intro { border-left-color: var(--color-intro); }
.rlh-compact-list .course-item-compact.course-developing { border-left-color: var(--color-developing); }
.rlh-compact-list .course-item-compact.course-night { border-left-color: var(--color-night); }
.rlh-compact-list .course-item-compact.course-workshop { border-left-color: var(--color-workshop); }

/* --- HOVER EFFECTS --- */
/* Makes the entire card lift and cast a shadow on hover */
.rlh-compact-list .course-item-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Base style for the button inside the card */
.rlh-compact-list .btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
}

/* Base style for the button inside the card */
.rlh-compact-list .btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
}


/* Base style for the button inside the card */
.rlh-compact-list .btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
}


/* Changes the button's color WHEN the parent card is hovered */
.rlh-compact-list .course-item-compact:hover .btn-primary {
    background-color: #46627f;
}

/* --- The rest of the content styles --- */
.rlh-compact-list .course-date {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0 0 0.75rem 0;
    flex-grow: 1; /* ADD THIS LINE */
}


.rlh-compact-list .course-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rlh-compact-list .status-full {
    padding: 0;
    background: none;
    font-size: 1em;
}

/*
 * Combined rule for the 'Fully Booked' tag.
 * Targets the tag in the FULL layout (.status-full-tag)
 * AND the text in the COMPACT layout (.status-full).
*/
.course-actions .status-full-tag,
.course-actions-row .status-full {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #f0f0f0; /* Light grey background */
    color: #888;              /* Muted text color */
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.9;
    text-align: center;
}

/* Optional: Ensure consistent spacing between buttons/tags */
.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Adds space between items */
    align-items: center; /* Vertically aligns items */
}


/* --- FAQ Style - Geometrically Consistent Pill --- */
/* Adjusted to use the .faq-accordion class */

.faq-accordion {
    font-family: sans-serif;
}
.faq-accordion details {
    background: transparent;
    margin-bottom: 1rem;
    overflow: hidden; 
    border-radius: 28px;
}

/* The Pill - Default (closed) state */
.faq-accordion summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.1em;
    font-weight: 600;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 28px; 
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 10;
}
.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::before {
    content: '+';
    font-size: 1.2em;
    font-weight: bold;
}

/* --- Styles for when the accordion is OPEN --- */

/* 1. Target the question part when open */
.faq-accordion details[open] > summary {
    background-color: #0097b2;
    color: #fff;
    border-radius: 28px 28px 0 0; 
}
.faq-accordion details[open] > summary::before {
    content: '−';
}

/* Rule 1: Style ALL paragraphs in the answer */
/* This rule gives them the background color and connects them by removing margins. */
/* Note the lack of border-radius and adjusted padding. */
.faq-accordion details[open] p {
    background-color: #f7f7f7 !important;
    padding: 0 1.5rem; /* No top/bottom padding here yet */
    margin: 0;
    line-height: 1.6;
}

/* Rule 2: Style ONLY the LAST paragraph in the answer */
/* This adds the bottom padding and the crucial rounded corners. */
.faq-accordion details[open] p:last-of-type {
    padding-bottom: 1.5rem;
    border-radius: 0 0 28px 28px;
}

/* Rule 3: Style ONLY the FIRST paragraph in the answer */
/* This adds the top padding to create space below the question. */
.faq-accordion details[open] p:first-of-type {
    padding-top: 1.5rem;
}
/* --- About Me Intro Section Styling --- */


/* 2. Style for the prominent first sentence */
.about-me-text .about-me-lead {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-text-dark, #333);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* --- Styling for the image to give it an oval shape --- */
/* 1. Base Container */
.about-me-container {
    display: flex;
    align-items: center;
    gap: 50px; /* Increased gap for a cleaner look */
    margin-bottom: 70px;
}



/* 2. Top Section Column Ratios */
/* Left (Text) is wider, Right (Image) is narrower */
.about-me-text {
    flex: 2; 
}
.about-me-image {
    flex: 1;
    display: flex;
    justify-content: center;
}



/* 3. Bottom Section (Awards) Column Ratios */
/* We make the Left (Image) wider as requested */
.awards-section .about-me-image {
    flex: 1; /* Makes the left column wider than before */
}
.awards-section .about-me-text {
    flex: 2; /* Makes the text column narrower */
}

/* 4. The Oval Images */
.about-me-image img {
    width: 100%;
    /* Increased max-width so the 2nd image can actually expand into the wider column */
    max-width: 450px; 
    aspect-ratio: 3 / 4; 
    border-radius: 50%; 
    object-fit: cover;
    object-position: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: block;
}

/* 5. Typography */
.about-me-lead {
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 0;
    line-height: 1.2;
}

/* 6. Mobile Responsive */
@media (max-width: 768px) {
    .about-me-container {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
    .awards-section {
        /* Puts image on top on mobile */
        flex-direction: column-reverse !important;
    }
    .about-me-image img {
        max-width: 320px;
    }
}

/* --- Style for the Feature Banner Image currently used for the map on the maprun page --- */

.wp-block-image.rlh-feature-image {
    border: 4px solid #fff; /* The light grey border */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* The soft shadow */
    
    /* --- EDITS FOR ROUNDED CORNERS --- */
    border-radius: 12px; /* Gently rounds the corners. You can adjust this value! */
    overflow: hidden; /* This is important! It clips the image inside to the rounded shape. */
}

/* 4. Responsive adjustments for mobile devices */
@media screen and (max-width: 782px) {
    .about-me-container {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 2rem;
    }
    
    /* Move the image to the top on mobile for a better visual start */
    .about-me-image {
        order: -1; 
    }
}
/* --- Styling for the image to give it an oval shape --- */
.about-me-image figure {
    margin: 0;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 70%;
    overflow: hidden;
}

.about-me-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 782px) {
    .about-me-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-me-image {
        order: -1;
    }
}

/* --- CV Timeline: Desktop Styles --- */

/* 1. The main container */
.cv-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
}

/* 2. NO central line on the container */
.cv-timeline::before {
    display: none;
}

/* 3. The list and list items */
.cv-timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-timeline li {
    position: relative;
    width: 50%;
}

/* 4. The OVERLAP EFFECT for desktop */
.cv-timeline li:nth-child(n+3) {
    margin-top: -3.5rem;
}

/* 5. Position ODD items on the LEFT */
.cv-timeline li:nth-child(odd) {
    padding-right: 30px;
    text-align: right;
}

/* 6. Position EVEN items on the RIGHT */
.cv-timeline li:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

/* 7. The dots, positioned on the central axis */
.cv-timeline li::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid #0097b2;
    border-radius: 50%;
    z-index: 1;
}
.cv-timeline li:nth-child(odd)::before {
    right: -10px;
}
.cv-timeline li:nth-child(even)::before {
    left: -10px;
}

/* 8. The line segment for EACH item */
.cv-timeline li::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #0097b2;
    top: 0;
    bottom: 0;
    z-index: 0;
}
.cv-timeline li:nth-child(odd)::after {
    right: -2px;
}
.cv-timeline li:nth-child(even)::after {
    left: -2px;
}

/* Trim the line on the FIRST and LAST items */
.cv-timeline li:first-child::after {
    top: 50%;
}
.cv-timeline li:last-child::after {
    display: none; /* Hide line segment on the last item for desktop */
}

/* --- The content box styling --- */
.cv-timeline .timeline-content {
    background-color: #f9f9f9;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #eee;
    text-align: left; /* Ensures content is left-aligned inside the box */
}
.cv-timeline .timeline-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2em;
    font-weight: 600;
}
.cv-timeline .timeline-content p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}
.cv-timeline .timeline-content a {
    color: #0097b2;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}
.cv-timeline .timeline-content a:hover {
    background-size: 100% 2px;
}


/* --- Responsive styles for mobile --- */
@media screen and (max-width: 782px) {
    /* Revert to the single-column layout */
        .cv-timeline li:nth-child(odd),
        .cv-timeline li:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
        padding-bottom: 1.5rem;
    }

    .cv-timeline li:last-child {
        padding-bottom: 0; /* Remove padding from the very last item */
    }

    .cv-timeline li:nth-child(n+3) {
        margin-top: 0; /* Reset the desktop overlap */
    }

    /* Position all dots over the left-aligned line */
    .cv-timeline li::before,
    .cv-timeline li:nth-child(odd)::before,
    .cv-timeline li:nth-child(even)::before {
        left: 1px;
        right: auto;
    }

    /* Position all lines correctly for single column */
    .cv-timeline li::after,
    .cv-timeline li:nth-child(odd)::after,
    .cv-timeline li:nth-child(even)::after {
        left: 8px;
        right: auto;
    }

    /*
     * FIX: Re-enable the line segment for the last item on mobile, but only draw it halfway.
     * This was previously in a nested (and broken) media query.
    */
    .cv-timeline li:last-child::after {
        display: block; /* Re-enable the segment on mobile */
        bottom: 50%;   /* Stop the line at the dot */
    }
}
/* --- Styles for the timeline content box and its inner elements --- */

/* Style for the content container inside each timeline item */
.cv-timeline .timeline-content {
    background-color: #f9f9f9;        /* Light grey background for the card */
    padding: 1.25rem 1.5rem;          /* Spacing inside the box: 20px top/bottom, 24px left/right */
    border-radius: 6px;               /* Rounded corners */
    border: 1px solid #eee;           /* Light border for subtle definition */
    text-align: left;                 /* Left-align the text inside the box */
}

/* Style for the heading inside the content */
.cv-timeline .timeline-content h3 {
    margin: 0 0 0.5rem 0;             /* No margin on top/sides, 0.5rem (8px) below */
    font-size: 1.2em;                 /* Slightly larger text */
    font-weight: 600;                 /* Semi-bold weight */
}

/* Style for the paragraph inside the content */
.cv-timeline .timeline-content p {
    margin: 0;                        /* No margin above or below */
    font-size: 0.95em;                /* Slightly smaller than normal text */
    line-height: 1.5;                 /* Comfortable line spacing */
}

/* Style for links inside the content */
.cv-timeline .timeline-content a {
    color: #0097b2;                   /* Custom teal-blue link color */
    text-decoration: none;           /* Remove underline */
    
    /* Add animated underline effect on hover using a gradient background */
    background-image: linear-gradient(currentColor, currentColor); /* same color as text */
    background-position: 0% 100%;    /* Position it at the bottom of the text */
    background-repeat: no-repeat;    /* Don’t repeat the background */
    background-size: 0% 2px;         /* Initially invisible (0% width), 2px height */
    transition: background-size 0.3s ease; /* Smooth transition when hovering */
}

/* When link is hovered, show full-width underline */
.cv-timeline .timeline-content a:hover {
    background-size: 100% 2px;       /* Animate underline to span full width */
}


/* --- Testimonials Section Style --- */

/* 1. The Main Container for the whole section */
.testimonial-section {
    padding-top: 3rem; /* Adds space above the heading */
    margin-top: 3rem; /* Ensures space from the FAQ */
    border-top: 1px solid #e0e0e0; /* A subtle separator line */
}

/* 2. The container for the heading and intro paragraphs */
.testimonial-intro {
    max-width: 75ch; /* Limits line length for readability (ch = character unit) */
    margin: 0 auto 3rem auto; /* Centers the block and adds space below it */
    text-align: center; /* Centers all the text inside */
}

/* 3. Style the Heading */
.testimonial-intro .wp-block-heading {
    /* We use !important to override WordPress's inline styles */
    background: none !important;
    color: #333 !important;
    font-size: 2.2em; /* Make it prominent */
    margin-bottom: 1.5rem;
}

/* 4. Style the intro paragraphs for better spacing and readability */
.testimonial-intro p {
    font-size: 1.1em;
    line-height: 1.7; /* More vertical space between lines of text */
    margin-bottom: 1.5em !important; /* Adds space between each paragraph */
}

/* 5. Style the links within the intro to make them stand out */
.testimonial-intro p a {
    color: #0097b2; /* Use the same blue from your FAQ for consistency */
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.testimonial-intro p a:hover {
    color: #e65151; /* Use the old red color for a fun hover effect */
}

/* --- Custom Button Style for Banners and Sliders --- */

/* This targets the primary (blue) button */
.rlh-btn-primary .wp-block-button__link {
    background-color: #0097b2 !important; /* Use !important to ensure this overrides theme defaults */
    color: #fff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rlh-btn-primary .wp-block-button__link:hover {
    background-color: #007a8f !important;
    transform: translateY(-2px); /* The "pop" effect */
}

/* This targets the secondary (grey) button in your slider */
.rlh-btn-secondary .wp-block-button__link {
    background-color: #e9e9e9 !important;
    color: #333 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rlh-btn-secondary .wp-block-button__link:hover {
    background-color: #ddd !important;
    transform: translateY(-2px);
}


/* --- Modern Gallery Grid Styles --- */

/* This forces the container for each image to be a perfect square */
.modern-gallery-grid .wp-block-image {
    aspect-ratio: 1 / 1; 
}

/* This styles the actual image inside the square container */
.modern-gallery-grid .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the square without stretching, cropping if needed */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* This adds the "lift" effect on hover */
.modern-gallery-grid .wp-block-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


/* --- Slider & Card Styles --- */

.rlh-slider-wrapper { 
    position: relative; 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 50px; 
}
.rlh-slider-track-container { 
    overflow: hidden; 
}
.rlh-slider-track { 
    display: flex !important; 
    flex-wrap: nowrap; 
    gap: 1.5rem; 
    padding: 0 0 1rem 0; 
    overflow-x: auto; 
    scroll-snap-type: x proximity; 
    scroll-behavior: smooth; 
}
.rlh-slider-track::-webkit-scrollbar { 
    display: none; 
}
.rlh-results-card-preview { 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #eee; 
    border-left: 5px solid #cccccc; 
    border-radius: 8px; 
    padding: 1.5rem; 
    background-color: #f9f9f9; 
    scroll-snap-align: start; 
    flex-shrink: 0; 
    transition: opacity 0.4s ease, transform 0.4s ease; 
}
.rlh-results-card-preview.is-upcoming { 
    border-left-color: #0097b2; 
}
.rlh-results-card-preview.is-partially-visible { 
    opacity: 0.3; 
    transform: scale(0.98); 
}
p.rlh-card-date-preview { 
    margin-top: 0; 
    margin-bottom: 0.25rem; 
    font-size: 0.9em; 
    font-weight: 600; 
    text-transform: uppercase; 
    color: #555; 
}
h3.rlh-card-location-preview { 
    font-size: 1.6em; 
    color: #333; 
    margin-top: 0; 
    margin-bottom: 1.25rem; 
    flex-grow: 1; 
}
.rlh-slider-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 3; 
    width: 44px; 
    height: 44px; 
    background-color: #fff; 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
#rlh-slider-prev { 
    left: 10px; 
}
#rlh-slider-next { 
    right: 10px; 
}


/* polaroid style collage */
/* Section Wrapper */
.collage-section {
    background-color: var(--color-intro); 
    padding: 3rem 1rem; 
    font-family: sans-serif;
}

/* Heading styles using fluid typography */
.collage-header h1 {
    font-family: 'Pacifico', cursive;
    color: var(--color-white);
    /* This clamp() function makes the font size responsive across all screens */
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1; 
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Polaroid caption font */
.polaroid p {
    font-family: 'Gochi Hand', cursive;
}

.collage-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    /* Add overflow hidden to prevent horizontal scroll during loading */
    overflow-x: hidden;
}

/* Header and Logo Styles - MOBILE FIRST */
.collage-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    /* Mobile first - stack vertically */
    flex-direction: column;
}

.logo {
    /* Mobile first - static positioning */
    position: static;
    width: 80px;
    height: 80px;
    margin-top: 1rem;
    background-color: var(--color-white); 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 20; 
}

.logo img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Grid for positioning the photos - MOBILE FIRST */
.photo-grid {
    display: grid;
    /* Start with single column for mobile */
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
}

/* Polaroid Styles */
.polaroid {
    background-color: var(--color-white); 
    padding: 1rem;
    padding-bottom: 5rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    /* Mobile first - no rotation */
    transform: rotate(0deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important; 
    z-index: 10; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.polaroid img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
}

.polaroid p {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    margin: 0;
    font-size: 2.3rem; /* Mobile first font size */
    line-height: 1;
    color: var(--color-workshop); 
}

/* Responsive Design for Tablets - MIN-WIDTH approach */
@media (min-width: 481px) {
    .collage-header {
        flex-direction: row; /* Back to horizontal layout */
    }

    .logo {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 80px;
        height: 80px;
        margin-top: 0;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .polaroid p {
        font-size: 1.8rem; 
    }

    /* Add rotations for tablets */
    #photo1 { transform: rotate(-5deg); }
    #photo2 { transform: rotate(5deg); }
    #photo3 { transform: rotate(3deg); }
    #photo4 { transform: rotate(6deg); }
    #photo5 { transform: rotate(-6deg); }
    #photo6 { transform: rotate(-3deg); }
    #photo7 { transform: rotate(4deg); }
}

/* Responsive Design for Tablets - larger tablets */
@media (min-width: 769px) {
    .logo {
        width: 120px;
        height: 120px;
        top: 0;
        right: 0;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    /* Full rotations for desktop */
    #photo1 { transform: rotate(-8deg); }
    #photo2 { transform: rotate(5deg); }
    #photo3 { transform: rotate(3deg); }
    #photo4 { transform: rotate(10deg); }
    #photo5 { transform: rotate(-10deg); }
    #photo6 { transform: rotate(-3deg); }
    #photo7 { transform: rotate(8deg); }
	#photo8 { transform: rotate(-4deg); }
	

}

/* Desktop/Large screens */
@media (min-width: 1024px) {
    .collage-section {
        padding: 3rem 1rem;
    }

    .logo {
        width: 170px;
        height: 170px;
    }
}


/* --- Custom Award Banner Styling (Using :root Variables) --- ***not currently used*** */

/* LAYER 1: The main container and background gradient */
.rlah-award-container {
    position: relative; 
    width: 100%;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden; 
    
    /* PASTE YOUR GRADIENT BACKGROUND IMAGE URL HERE */
    background-image: url('https://www.runlikeahaggis.com/wp-content/uploads/2025/10/edited-edited-1760890199950.jpg');
    background-size: cover;
    background-position: center;
}
/* Wrapper stays the same */
.rlah-bubbles-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Base bubble style (NO fixed bottom anymore) */
.rlah-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    animation: rlah-rise infinite ease-in;
}

/* Keyframes */
@keyframes rlah-rise {
    0%   { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { transform: translateY(-120vh); opacity: 0; }
}

/* --- Randomized bubbles --- */
/* ===============================
   🌊 LAYER 2: Rising Bubbles
   69 total — left & right focused
   =============================== */

.rlah-bubbles-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rlah-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    animation: rlah-rise infinite ease-in;
    will-change: transform, opacity;
}

@keyframes rlah-rise {
    0%   { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* --------------------------------
   🫧 First Wave (1–23) — Original
   -------------------------------- */

/* Left edge */
.rlah-bubble:nth-child(1)  { left: 5%;  bottom: 0%;  width: 22px; height: 22px; animation-duration: 14s; animation-delay: 0s; }
.rlah-bubble:nth-child(2)  { left: 10%; bottom: 25%; width: 15px; height: 15px; animation-duration: 12s; animation-delay: 1s; }
.rlah-bubble:nth-child(3)  { left: 15%; bottom: 50%; width: 30px; height: 30px; animation-duration: 17s; animation-delay: 3s; }
.rlah-bubble:nth-child(4)  { left: 8%;  bottom: 10%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 2s; }
.rlah-bubble:nth-child(5)  { left: 2%;  bottom: 40%; width: 25px; height: 25px; animation-duration: 15s; animation-delay: 0.5s; }
.rlah-bubble:nth-child(6)  { left: 12%; bottom: 70%; width: 10px; height: 10px; animation-duration: 11s; animation-delay: 1s; }
.rlah-bubble:nth-child(7)  { left: 18%; bottom: 20%; width: 28px; height: 28px; animation-duration: 18s; animation-delay: 2.5s; }
.rlah-bubble:nth-child(8)  { left: 7%;  bottom: 60%; width: 35px; height: 35px; animation-duration: 19s; animation-delay: 1.5s; }
.rlah-bubble:nth-child(9)  { left: 14%; bottom: 15%; width: 22px; height: 22px; animation-duration: 16s; animation-delay: 0s; }

/* Right edge */
.rlah-bubble:nth-child(10) { left: 85%; bottom: 45%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 4s; }
.rlah-bubble:nth-child(11) { left: 88%; bottom: 30%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 1s; }
.rlah-bubble:nth-child(12) { left: 90%; bottom: 5%;  width: 22px; height: 22px; animation-duration: 15s; animation-delay: 3s; }
.rlah-bubble:nth-child(13) { left: 92%; bottom: 35%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: 0.5s; }
.rlah-bubble:nth-child(14) { left: 96%; bottom: 80%; width: 28px; height: 28px; animation-duration: 19s; animation-delay: 2.5s; }
.rlah-bubble:nth-child(15) { left: 82%; bottom: 20%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 1.5s; }
.rlah-bubble:nth-child(16) { left: 95%; bottom: 50%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 2s; }
.rlah-bubble:nth-child(17) { left: 99%; bottom: 0%;  width: 18px; height: 18px; animation-duration: 11s; animation-delay: 0.5s; }
.rlah-bubble:nth-child(18) { left: 84%; bottom: 60%; width: 16px; height: 16px; animation-duration: 20s; animation-delay: 1s; }
.rlah-bubble:nth-child(19) { left: 87%; bottom: 30%; width: 26px; height: 26px; animation-duration: 16s; animation-delay: 2.5s; }
.rlah-bubble:nth-child(20) { left: 91%; bottom: 75%; width: 30px; height: 30px; animation-duration: 18s; animation-delay: 3s; }

/* Middle */
.rlah-bubble:nth-child(21) { left: 45%; bottom: 20%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: 2s; }
.rlah-bubble:nth-child(22) { left: 50%; bottom: 55%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 1.5s; }
.rlah-bubble:nth-child(23) { left: 55%; bottom: 70%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 0.7s; }

/* --------------------------------
   🫧 Second Wave (24–46)
   -------------------------------- */

/* Left */
.rlah-bubble:nth-child(24) { left: 6%; bottom: 5%;  width: 20px; height: 20px; animation-duration: 13s; animation-delay: 1s; }
.rlah-bubble:nth-child(25) { left: 11%; bottom: 30%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: 0.5s; }
.rlah-bubble:nth-child(26) { left: 17%; bottom: 45%; width: 28px; height: 28px; animation-duration: 16s; animation-delay: 2.2s; }
.rlah-bubble:nth-child(27) { left: 3%; bottom: 20%; width: 24px; height: 24px; animation-duration: 14s; animation-delay: 1.2s; }
.rlah-bubble:nth-child(28) { left: 8%; bottom: 65%; width: 18px; height: 18px; animation-duration: 18s; animation-delay: 3.5s; }
.rlah-bubble:nth-child(29) { left: 13%; bottom: 35%; width: 26px; height: 26px; animation-duration: 19s; animation-delay: 0.3s; }
.rlah-bubble:nth-child(30) { left: 16%; bottom: 80%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 2.1s; }
.rlah-bubble:nth-child(31) { left: 4%; bottom: 55%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 1.8s; }
.rlah-bubble:nth-child(32) { left: 18%; bottom: 10%; width: 10px; height: 10px; animation-duration: 11s; animation-delay: 3.3s; }
.rlah-bubble:nth-child(33) { left: 7%; bottom: 85%; width: 32px; height: 32px; animation-duration: 20s; animation-delay: 0.9s; }

/* Right */
.rlah-bubble:nth-child(34) { left: 86%; bottom: 10%; width: 24px; height: 24px; animation-duration: 14s; animation-delay: 1.4s; }
.rlah-bubble:nth-child(35) { left: 92%; bottom: 45%; width: 18px; height: 18px; animation-duration: 16s; animation-delay: 0.8s; }
.rlah-bubble:nth-child(36) { left: 89%; bottom: 60%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 2.5s; }
.rlah-bubble:nth-child(37) { left: 97%; bottom: 25%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 3.3s; }
.rlah-bubble:nth-child(38) { left: 93%; bottom: 75%; width: 30px; height: 30px; animation-duration: 19s; animation-delay: 0.6s; }
.rlah-bubble:nth-child(39) { left: 81%; bottom: 40%; width: 22px; height: 22px; animation-duration: 13s; animation-delay: 1.9s; }
.rlah-bubble:nth-child(40) { left: 95%; bottom: 85%; width: 14px; height: 14px; animation-duration: 15s; animation-delay: 2.7s; }
.rlah-bubble:nth-child(41) { left: 84%; bottom: 5%;  width: 20px; height: 20px; animation-duration: 11s; animation-delay: 0.4s; }
.rlah-bubble:nth-child(42) { left: 98%; bottom: 35%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 2.3s; }
.rlah-bubble:nth-child(43) { left: 90%; bottom: 55%; width: 28px; height: 28px; animation-duration: 18s; animation-delay: 1.1s; }

/* Middle */
.rlah-bubble:nth-child(44) { left: 47%; bottom: 30%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: 1.8s; }
.rlah-bubble:nth-child(45) { left: 52%; bottom: 65%; width: 20px; height: 20px; animation-duration: 17s; animation-delay: 2.1s; }
.rlah-bubble:nth-child(46) { left: 58%; bottom: 80%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 3.2s; }

/* --------------------------------
   🫧 Third Wave (47–69)
   -------------------------------- */

/* Left */
.rlah-bubble:nth-child(47) { left: 9%;  bottom: 0%;  width: 18px; height: 18px; animation-duration: 12s; animation-delay: 0.8s; }
.rlah-bubble:nth-child(48) { left: 5%;  bottom: 20%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: 2.6s; }
.rlah-bubble:nth-child(49) { left: 11%; bottom: 45%; width: 28px; height: 28px; animation-duration: 19s; animation-delay: 1.1s; }
.rlah-bubble:nth-child(50) { left: 3%;  bottom: 70%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: 0.4s; }
.rlah-bubble:nth-child(51) { left: 16%; bottom: 15%; width: 16px; height: 16px; animation-duration: 11s; animation-delay: 3.0s; }
.rlah-bubble:nth-child(52) { left: 7%;  bottom: 35%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: 1.5s; }
.rlah-bubble:nth-child(53) { left: 18%; bottom: 80%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 2.2s; }
.rlah-bubble:nth-child(54) { left: 13%; bottom: 55%; width: 32px; height: 32px; animation-duration: 20s; animation-delay: 0.7s; }
.rlah-bubble:nth-child(55) { left: 4%;  bottom: 90%; width: 10px; height: 10px; animation-duration: 16s; animation-delay: 3.4s; }
.rlah-bubble:nth-child(56) { left: 12%; bottom: 25%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 2.6s; }

/* Right */
.rlah-bubble:nth-child(57) { left: 85%; bottom: 15%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 1.6s; }
.rlah-bubble:nth-child(58) { left: 90%; bottom: 25%; width: 18px; height: 18px; animation-duration: 12s; animation-delay: 0.9s; }
.rlah-bubble:nth-child(59) { left: 94%; bottom: 45%; width: 28px; height: 28px; animation-duration: 18s; animation-delay: 2.3s; }
.rlah-bubble:nth-child(60) { left: 99%; bottom: 70%; width: 24px; height: 24px; animation-duration: 19s; animation-delay: 1.2s; }
.rlah-bubble:nth-child(61) { left: 83%; bottom: 0%;  width: 16px; height: 16px; animation-duration: 11s; animation-delay: 0.5s; }
.rlah-bubble:nth-child(62) { left: 92%; bottom: 35%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: 3.3s; }
.rlah-bubble:nth-child(63) { left: 97%; bottom: 80%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 2.0s; }
.rlah-bubble:nth-child(64) { left: 88%; bottom: 55%; width: 32px; height: 32px; animation-duration: 20s; animation-delay: 0.6s; }
.rlah-bubble:nth-child(65) { left: 95%; bottom: 90%; width: 12px; height: 12px; animation-duration: 17s; animation-delay: 3.5s; }
.rlah-bubble:nth-child(66) { left: 84%; bottom: 25%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 1.4s; }

/* Middle */
.rlah-bubble:nth-child(67) { left: 43%; bottom: 25%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 1.7s; }
.rlah-bubble:nth-child(68) { left: 50%; bottom: 60%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: 2.3s; }
.rlah-bubble:nth-child(69) { left: 56%; bottom: 85%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 0.8s; }


/* LAYER 3: The stage image - WITH ASPECT RATIO CONTROL */
.rlah-stage-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    aspect-ratio: 1408 / 736;
    max-width: 80%;
    max-height: 80%;
    background-image: url('https://www.runlikeahaggis.com/wp-content/uploads/2025/10/edited-edited-1760889911793.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2; 
}

/* LAYER 4: The text content - OVERLAY MATCHING STAGE DIMENSIONS */
.rlah-award-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    
    aspect-ratio: 1408 / 736;
    max-width: 80%;
    max-height: 80%;
    
    z-index: 3; 
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-primary);
    
    /* Flex layout for proportional sections */
    display: flex;
    flex-direction: column;

    /* --- ADD THESE TWO LINES TO PUSH CONTENT DOWN --- */
    padding-top: 5%;      /* Adjust this percentage to move content down */
    box-sizing: border-box; /* Ensures padding is included in the total height */
}

/* Mobile first: 2/7, 2/7, 3/7 */
.rlah-title-container {

    background-color: rgba(0, 151, 178, 0.75);
    padding: 1rem 1.5rem;
    margin: 0 auto; /* This centers the element horizontally */

    /* --- CORRECTED STYLES --- */
    
    /* 1. Use 'flex' to control the alignment of the h1 INSIDE this box. */
    display: flex;
    align-items: center;     /* Vertically centers the text */
    justify-content: center; /* Horizontally centers the text */

    /* 2. Explicitly tell the box NOT to grow or shrink vertically. */
    /* This replaces the need to remove 'flex: 2' and 'flex: 5'. */
    flex-grow: 0;
    flex-shrink: 0;
    
    /* 3. Keep the responsive width and box-sizing fixes. */
    box-sizing: border-box; 
    width: 90%;
    max-width: 550px; 
}
.rlah-title-container h1 {

    font-size: clamp(2rem, 5vw, 4rem); 
    margin: 0;
    line-height: 1.2;
    font-weight: 700;

}

.rlah-winner-name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin: 0;
    font-weight: 900;
    color: var(--color-developing);
    text-shadow: 2px 2px 8px rgba(44, 62, 80, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.rlah-description {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.rlah-description a {
    color: var(--color-developing);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    background-color: transparent;
    border-radius: 4px;
    padding: 0.1em 0.3em;
    transition: all 0.2s ease-in-out;
    display: inline;
}

.rlah-description a:hover {
    color: var(--color-white);
    background-color: var(--color-intro);
    text-decoration: none;
}

/* --- Responsive Adjustments for Mobile Banner --- */
@media (max-width: 768px) {
    .rlah-stage-image {
        background-size: cover;
        width: 90%;
        height: 90%;

    }
    
    .rlah-award-content {

        max-width: 90%;
0        max-height: 90%;
        aspect-ratio: auto;
    }
}

/* --- Award Banner Responsive Fix for Moderate Screens --- */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    .rlah-title-container h1 {
        font-size: clamp(2rem, 3.5vw, 4rem); 
    }

    .rlah-winner-name {
        font-size: clamp(3.5rem, 6vw, 6rem);
    }
}

/* Desktop: 50%, 20%, 30% */
@media (min-width: 769px) {
    .rlah-title-container {
   
    }
    
    .rlah-winner-name {
        flex: 2;
    }
    
    .rlah-description {
        flex: 3;
    }
}

/* --- Responsive Fix for Landscape Mobile --- */
@media (orientation: landscape) and (max-height: 450px) {

    /* 1. Reduce the top padding to save crucial space */
    .rlah-award-content {
        padding-top: 2%; /* Was 5% */
    }

    /* 2. Make the main title smaller */
    .rlah-title-container h1 {
        /* Using 'vh' (viewport height) makes the font size directly responsive to the screen height */
        font-size: clamp(1.2rem, 4vh, 1.8rem); 
    }

    /* 3. Drastically reduce the winner's name size, as it's the largest element */
    .rlah-winner-name {
        font-size: clamp(2rem, 8vh, 3rem);
    }
    
    /* 4. Tweak the description text and spacing */
    .rlah-description {
        font-size: 0.8rem; /* Make the paragraph text a bit smaller */
        gap: 0.25rem;    /* Reduce the space between description items */
    }

    .rlah-description a {
        font-size: 0.8rem; /* Ensure link font size matches */
    }
}

/* --- Responsive Refinements for Tablet Screens --- */
@media screen and (min-width: 769px) and (max-width: 1100px) {

    /* 1. Tame the growth of the main title font */
    .rlah-title-container h1 {
        /* We reduce the scaling factor from 5vw to 3.5vw */
        font-size: clamp(2rem, 3.5vw, 3rem); 
    }

    /* 2. This is the most important fix: control the winner's name size */
    .rlah-winner-name {
        /* Reduce the scaling factor from 8vw down to 6vw to prevent it from getting huge */
        font-size: clamp(3.5rem, 6vw, 5rem);
    }

    /* 3. Slightly increase the description font for better readability on a larger screen */
    .rlah-description {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
    }

    .rlah-description a {
        font-size: inherit; /* Ensures the link matches the description text size */
    }
}
/* --- End Custom Award Banner Styling --- */


/* --- Base styling for the landing page body to remove default padding/margins --- */
body.page-template-landing-page { /* Target body specifically for your landing page template */
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Prevent horizontal scroll due to rotations */
}

.rlh-landing-page { /* A wrapper class for specific overrides on this page */
    min-height: 100vh; /* Ensure it takes at least full viewport height */
    display: flex;
    flex-direction: column; /* Stack header, grid, and footer vertically */
    justify-content: space-between; /* Push footer to bottom */
    background-color: #f7f7f7; /* Light background for the main content area */
}

/* --- Collage Section Styling --- */

/* Section Wrapper - Your existing style, adjusted for the landing page */
.collage-section {
    background-color: var(--color-intro); /* Mountain landscape color at the top */
    padding: 3rem 1rem 0; /* No bottom padding here, moved to footer */
    font-family: var(--font-primary); /* Use your primary font, or a specific one for the header */
}

/* Heading styles using fluid typography */
.collage-header h1 {
    font-family: 'Pacifico', cursive; /* Assuming Pacifico is loaded */
    color: var(--color-white);
    font-size: clamp(2.5rem, 8vw, 6rem); /* Adjusted clamp for slightly smaller mobile start */
    line-height: 1.1;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    padding-bottom: 2rem; /* Add space below the title */
}

/* Header and Logo Styles - MOBILE FIRST */
.collage-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem; /* Space between header and first row of polaroids */
    position: relative;
    flex-direction: column; /* Stack vertically on mobile */
}

.logo {
    position: static; /* Static for mobile */
    width: 120px; /* <--- MODIFIED: Increased base size for mobile */
    height: 120px; /* <--- MODIFIED: Increased base size for mobile */
    margin-top: 1rem;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 20;
}

.logo img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Grid for positioning the photos - MOBILE FIRST */
.collage-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    flex-grow: 1; /* Allow the container to take available space */
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* <--- NEW: Forces 2 equal columns from the start */
    gap: 0.75rem; /* <--- NEW: Smaller gap for tighter fit */
    padding: 1rem;
    justify-items: center;
    background-color: transparent;
    padding-bottom: 4rem;
}

/* Polaroid Styles - now as <a> tags */
.polaroid {
    background-color: var(--color-white);
    padding-top: 0.5rem;    /* Keep top padding */
    padding-bottom: 4rem; /* Keep bottom padding for caption */
    padding-left: 0.25rem;  /* <--- NEW: Smaller left padding */
    padding-right: 0.25rem; /* <--- NEW: Smaller right padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    display: flex; /* <--- NEW: Use flexbox for internal centering */
    flex-direction: column; /* <--- NEW: Stack content vertically */
    justify-content: space-between; /* <--- NEW: Push image/p apart if needed, or center */
    align-items: center; /* <--- NEW: Center content horizontally within the polaroid */
    text-decoration: none;
    border-radius: 2px;
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 5px var(--color-night), 0 8px 15px rgba(0, 0, 0, 0.4); /* Add red outline on hover */

}

.polaroid img {
    max-width: 70%; /* <--- NEW: Make image much smaller relative to polaroid */
    height: auto;   /* <--- NEW: Let height adjust automatically */
    display: block;
    object-fit: contain; /* <--- NEW: Contain the image within its bounds, don't crop */
    margin: 0.5rem auto 0.5rem auto; /* <--- NEW: Center the image horizontally */
    padding: 0.5rem; /* <--- NEW: Add some internal padding */
    background-color: transparent; /* <--- NEW: Ensure no background on the image itself */
    border-radius: 5px; /* <--- NEW: Slight rounding for the icon itself */
}

.polaroid p {
    font-family: 'Gochi Hand', cursive; /* <--- CHANGED: Set font to Gochi Hand */
    position: absolute;
    bottom: 0.5rem;
    left: 0.25rem;
    right: 0.25rem;
    margin: 0;
    font-size: clamp(1.4rem, 5vw, 2.2rem); /* Restored original font size */
    line-height: 1.2;
    font-weight: 700; /* Restored bolder weight suitable for this font */
    color: var(--color-workshop); /* Using the original workshop color */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Added back the subtle shadow */
}
/* Fix for dark overlay on touch/long-press - COMPREHENSIVE */
.polaroid,
.polaroid img,
.polaroid:link,
.polaroid:visited {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    outline: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.polaroid img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
}

/* Prevent iOS from adding any visual feedback */
.polaroid:focus,
.polaroid:active,
.polaroid:focus-visible,

/* Add rotations  */
#photo1 { transform: rotate(-5deg); }
#photo2 { transform: rotate(5deg); }
#photo3 { transform: rotate(3deg); }
#photo4 { transform: rotate(6deg); }
#photo5 { transform: rotate(-6deg); }
#photo6 { transform: rotate(-3deg); } /* Reviews polaroid */




/* --- Custom Footer Section --- */
.rlh-footer-section {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-white); /* White background for the footer */
    border-top: 1px solid #eee; /* Subtle separator from the main content */
    margin-top: auto; /* Push footer to the bottom */
}

.rlh-social-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.rlh-social-links a {
    color: var(--color-intro); /* Teal social icon color */
    font-size: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.rlh-social-links a:hover {
    color: var(--color-developing); /* Orange on hover */
    transform: translateY(-3px);
}

.rlh-copyright {
    font-size: 0.85rem;
    color: var(--color-light-text, #777); /* Use light text color, with fallback */
}

/* --- Responsive Design for Tablets - MIN-WIDTH approach --- */
@media (min-width: 481px) {
    .collage-header {
        justify-content: center;
        padding: 0 2rem 2rem 2rem;
        margin-bottom: 0;
    }
    .collage-header h1 {
        padding-bottom: 0;
    }
    .logo {
        position: static;
        width: 140px;
        height: 140px;
        margin-top: 0;
    }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 800px;
        margin: 0 auto;
    }
    .polaroid {
        width: 100%;
        max-width: 300px;
        padding-bottom: 3.5rem;
    }
    .polaroid p {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        bottom: 0.7rem;
    }
    #photo1 { transform: rotate(-5deg); }
    #photo2 { transform: rotate(5deg); }
    #photo3 { transform: rotate(3deg); }
    #photo4 { transform: rotate(6deg); }
    #photo5 { transform: rotate(-6deg); }
    #photo6 { transform: rotate(-3deg); }
}

/* Responsive Design for Laptops/Desktops */
@media (min-width: 1025px) {
    .collage-section {
        padding-top: 4rem;
    }
    .collage-header {
        justify-content: center;
        padding: 0 4rem 2rem 4rem;
    }
    .logo {
        width: 160px;
        height: 160px;
    }
    .photo-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 2rem;
        padding: 2rem;
    }
    .polaroid {
        padding-bottom: 4rem;
    }
    .polaroid p {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
        bottom: 0.8rem;
    }
    #photo1 { transform: rotate(-8deg); }
    #photo2 { transform: rotate(5deg); }
    #photo3 { transform: rotate(3deg); }
    #photo4 { transform: rotate(10deg); }
    #photo5 { transform: rotate(-10deg); }
    #photo6 { transform: rotate(-3deg); }
}

/* Desktop/Large screens - 4 column layout with centered last row */
@media (min-width: 1024px) {
    .collage-section {
        padding-top: 5rem;
    }
    .collage-header {
        padding: 0 6rem 3rem 6rem;
    }
    .logo {
        width: 180px;
        height: 180px;
    }
    .photo-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr)); /* 4 columns */
        max-width: 1400px;
    }
    /* Center the last two items (5th and 6th) */
    #photo5 {
        grid-column: 2 / 3; /* Place in 2nd column */
    }
    #photo6 {
        grid-column: 3 / 4; /* Place in 3rd column */
    }
}

/* --- Apply Variables to Chatbot --- */

/* 1. The main circular floating button (Launcher) */
#floating-chatbot-button {
    background: var(--color-intro) !important; /* Uses your Teal #0097B2 */
    color: var(--color-white) !important;
}

/* 2. The SVG Icon inside the launcher button */
#widget_icon_10 {
    fill: var(--color-white) !important;
}

/* 3. The Top Header Bar when the chat window is open */
.chatbot-top-bar {
    background: var(--color-intro) !important; /* Uses your Teal #0097B2 */
    border-bottom: 1px solid var(--color-border) !important;
}

/* 4. The Title and Buttons inside the Top Bar */
.chatbot-title-container,
.chatbot-top-bar button {
    color: var(--color-white) !important;
}

/* 5. The Bot Message Bubbles 
   (Assuming you want these to match the brand. 
   If you prefer the Orange, swap --color-intro for --color-developing) 
*/
.bot-message {
    background: var(--color-intro) !important; 
    color: var(--color-white) !important; /* White text for contrast on dark teal */
}

/* Optional: If you want User messages to use a different color (e.g., Orange) */
.user-message {
    background: var(--color-developing) !important;
    color: var(--color-white) !important;
}


/* ================================================= */
/* --- UNIFIED CARD SYSTEM (Courses & Blogs) --- */
/* ================================================= */


/* 2. Main Grid Container */
/* Replaces .rlh-blog-grid AND .course-cards-container */
.rlh-grid-container {
    display: grid;
    /* Flexible columns: fits as many 340px cards as possible */
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 2.5rem;
    max-width: 1400px; /* Wide enough for 4 columns on huge screens */
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 3. The Unified Card */
/* Replaces .rlh-blog-card AND .course-card */
.rlh-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    
    /* Subtle border instead of the thick teal box */
    border: 1px solid #e0e0e0; 
    
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    text-decoration: none !important; /* Forces no underline */
    
    /* Smooth Lift Animation */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Hover Effect: The "Magnet" Lift */
.rlh-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 151, 178, 0.15); /* Teal glow */
    border-color: var(--color-intro, #0097B2);
}

/* 4. Image Area */
.rlh-card-image {
    position: relative;
    height: 240px; 
    overflow: hidden;
    background-color: #eee;
    display: block;
}

.rlh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rlh-card:hover .rlh-card-image img {
    transform: scale(1.05); /* Slow zoom */
}

/* 5. Flexible Tag System */
/* Base Tag Style */
.rlh-card-tag {
    position: absolute;
    top: 1rem;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2;
    /* Background color is now handled inline in HTML */
}

/* Position Modifiers */
.rlh-tag-left {
    left: 1rem;
}

.rlh-tag-right {
    right: 1rem;
    left: auto;
}

/* 6. Content Area */
.rlh-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    
    /* The Brand Strip (Replaces the full border) */
    /* Uses default Teal, but can be overridden inline if needed */
    border-top: 5px solid var(--color-intro, #0097B2); 
}

/* 7. Meta Data (Date / Duration / Difficulty) */
.rlh-card-meta {
    font-size: 0.95rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 8. Title */
.rlh-card-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.rlh-card:hover .rlh-card-content h3 {
    color: var(--color-intro, #0097B2);
}

/* 9. Description */
.rlh-card-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Italics for quotes, normal for course descriptions? */
    /* Removed fixed italics so it works for both. Add <em> in HTML if you want italics. */
}

/* 10. Action Button / Link */
.rlh-card-btn {
    align-self: flex-start;
    font-weight: 700;
    color: var(--color-intro, #0097B2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.rlh-card:hover .rlh-card-btn {
    gap: 10px;
    color: var(--color-developing, #FF9F00);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .rlh-grid-container { grid-template-columns: 1fr; }
    .rlh-header-section h1 { font-size: 3rem; }
}

/* Blog page layout adjustment Only apply this style if the page has the class "is-blog-page" */
body.is-blog-page .entry p,
body.is-blog-page .entry ul,
body.is-blog-page .entry ol,
body.is-blog-page .entry h2,
body.is-blog-page .entry h3,
body.is-blog-page .entry h4,
body.is-blog-page .entry blockquote {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
body.is-blog-page .entry img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

body.is-blog-page .entry figure {
  margin-bottom: 3rem;
}

body.is-blog-page .entry figcaption {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  opacity: 0.65;
}



body.is-blog-page .entry > * {
  margin-bottom: 3rem;
}

body.is-blog-page .entry h2,
body.is-blog-page .entry h3,
body.is-blog-page .entry h4 {
  margin-top: 4rem;
  margin-bottom: 1rem;
}

body.is-blog-page .entry ul,
body.is-blog-page .entry ol {
  padding-left: 1.5rem;
}

body.is-blog-page .entry li {
  margin-bottom: 0.5rem;
}

/* =========================================
   2. THE HERO IMAGE (This was missing!)
   ========================================= */
body.is-blog-page .entry .wp-block-cover.hero-fixed {
    /* Sizing: 96vw means 96% of screen width */
    width: 96vw;
    min-height: 80vh;
    
    /* Centering Hack */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -48vw; /* Half of 96 */
    margin-right: -48vw;
    margin-bottom: 0 !important;
    
    /* Parallax & Style */
    background-attachment: fixed;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden; /* Cuts the corners round */
}

/* Remove default grey overlay so photo is bright */
body.is-blog-page .entry .wp-block-cover.hero-fixed .wp-block-cover__background {
    opacity: 0 !important;
}

/* =========================================
   3. THE WHITE "STORY" SHEET
   ========================================= */
body.is-blog-page .entry .wp-block-group.story {
    max-width: 1100px !important; 
    width: 96% !important;
    background: #fff;
    padding: 60px 40px;
    border-radius: 24px 24px 0 0;

    /* The Overlap */
    margin-top: -100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 10;
}

/* The Text width inside the story */
body.is-blog-page .entry .wp-block-group.story p,
body.is-blog-page .entry .wp-block-group.story h2,
body.is-blog-page .entry .wp-block-group.story h3,
body.is-blog-page .entry .wp-block-group.story ul,
body.is-blog-page .entry .wp-block-group.story ol {
    max-width: 70ch !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2rem !important;
}

/* =========================================
   4. GENERAL IMAGES (Rounded) - UPDATED
   ========================================= */
/* Rounds every single image, including Columns AND Galleries */
body.is-blog-page .entry .wp-block-image img,
body.is-blog-page .entry .wp-block-column img,
body.is-blog-page .entry .wp-block-gallery .wp-block-image img {
    border-radius: 24px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
/* Allow images in the story to be wider than text */
body.is-blog-page .entry .wp-block-group.story figure,
body.is-blog-page .entry .wp-block-group.story img {
    max-width: 100% !important;
    width: auto;
    margin: 3rem auto;
    display: block;
}
/* FORCE FIX for Gallery Images */
body.is-blog-page .entry .wp-block-gallery .wp-block-image,
body.is-blog-page .entry .wp-block-gallery .wp-block-image img {
    border-radius: 24px !important;
    overflow: hidden !important; /* Crucial: This clips the image to the curve */
    box-shadow: none !important; /* Prevents double shadows */
}

/* Re-apply shadow only to the wrapper */
body.is-blog-page .entry .wp-block-gallery .wp-block-image {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}
/* =========================================
   5. MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    /* Reset Hero Width */
    body.is-blog-page .entry .wp-block-cover.hero-fixed {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        min-height: 60vh;
    }
    
    /* Reset White Box */
    body.is-blog-page .entry .wp-block-group.story {
        margin-top: -40px !important;
        padding: 40px 20px;
        width: 100% !important;
        border-radius: 0;
    }
    
    /* Smaller Corners on images */
    body.is-blog-page .entry .wp-block-image img {
        border-radius: 12px !important;
    }
	
    /* FIXED: Corrected syntax and specific targeting */
    body.is-blog-page .entry .wp-block-image.mobile-portrait-crop img {
        width: 100% !important;
        height: 450px !important; 
        object-fit: cover !important;
        object-position: center !important;
        /* Matches your other images' style */
        border-radius: 12px !important; 
    }

}





/* --- 1. The Hero Wrapper for front page image--- */
.award-hero-simple {
    background-color: #ffffff; /* Clean white background */
    padding: 120px 0;          /* Generous spacing for a "hero" feel */
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

/* --- 2. The Headline --- */
.award-display-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--color-text-dark);
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- 3. The Oval Image: Static & Reactive --- */
.award-hero-simple .about-me-image img {
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Subtle shadow initially */
    
    /* Transition: This handles the hover smoothness */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s ease;
}

/* --- 4. THE INTERACTION: Lift & Glow --- */
/* When you hover the container, the image reacts */
.award-hero-simple .about-me-container:hover .about-me-image img {
    transform: translateY(-8px) scale(1.02); /* Slight lift and growth */
    box-shadow: 0 20px 40px rgba(0, 151, 178, 0.15); /* Teal-tinted glow */
}

/* --- 5. THE ENTRANCE: Smooth Reveal --- */
/* This happens once when the page loads */
.rlh-reveal {
    animation: rlhFadeInUp 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes rlhFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 6. Mobile Refinements --- */
@media (max-width: 768px) {
    .award-hero-simple {
        padding: 80px 20px;
    }
    .award-display-title {
        font-size: 2.8rem !important;
        text-align: center;
    }
    .award-hero-simple .about-me-text {
        text-align: center;
    }
    .award-hero-simple .rlh-btn-primary {
        justify-content: center;
        display: flex;
    }
}

/* =========================================
   MISSING STYLES: HEADER & MEDIA
   (Add this to the bottom of style.css)
   ========================================= */

/* --- 1. The Blog Header (Missing from your file) --- */
.rlh-blog-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 3rem 1rem;
    background-color: #f7f7f7;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.rlh-blog-header h1 {
    font-family: 'Gochi Hand', cursive !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: clamp(4rem, 9vw, 7rem) !important;
    color: var(--color-intro, #0097B2) !important;
    margin: 0 auto 0.5rem auto !important;
    width: fit-content !important; 
    max-width: 90%;
    line-height: 1.2 !important;
}

.rlh-blog-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.2rem !important;
    color: #666 !important;
    margin-top: 1rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* --- 2. Media Page Specifics for media cards--- */

/* BBC Feature Box */
.rlh-feature-section {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

/* Responsive Video Container (16:9) */
.rlh-video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    margin-top: 1rem;
}

.rlh-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Spotify/Podcast Embed Fix */
.rlh-media-embed {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

/* LOGO FIX: Keeps logos from getting cropped */
.rlh-card-image.logo-mode img {
    object-fit: contain !important; 
    padding: 1.5rem; 
    background-color: #ffffff; 
}

/* ================================================= */
/* --- RLH MINI CALENDAR (FIXED MIXED EVENTS) --- */
/* ================================================= */

/* 2. Container */
.rlh-mini-cal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 450px;
    width: 100%;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 3. Header */
.mini-cal-head {
    background-color: #fafafa;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
}

.mini-cal-head h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 2.2rem;
    color: #333;
    margin: 0;
    line-height: 1;
    flex-grow: 1;
    text-align: center;
}

.cal-nav-btn {
    background: none;
    border: none;
    font-size: 2.8rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    padding: 0 20px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cal-nav-btn:hover {
    color: #333;
    transform: scale(1.1);
}

/* 4. Grid Body */
.mini-cal-body {
    padding: 1.5rem;
}

.mini-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* 5. Date Cells */
.mini-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none !important;
    color: #666;
    background-color: #fafafa;
    cursor: default;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

/* Faded days */
.mini-cell.faded {
    color: #e5e5e5;
    background-color: transparent;
    pointer-events: none;
}

/* Today's Date Outline */
.mini-cell.today {
    border: 2px solid #0097B2;
    background-color: rgba(0, 151, 178, 0.05);
    color: #0097B2;
    font-weight: 600;
}

/* 6. Active Event Cells */
a.mini-cell {
    cursor: pointer;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.2);
}

a.mini-cell:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* --- EVENT COLORS (Softer, more subtle) --- */
.cell-coaching { 
    background: linear-gradient(135deg, #5b7c99 0%, #7a99b4 100%);
}

.cell-intro { 
    background: linear-gradient(135deg, #0097B2 0%, #00b4d8 100%);
}

.cell-dev { 
    background: linear-gradient(135deg, #FF9F00 0%, #ffb333 100%);
}

.cell-night { 
    background: linear-gradient(135deg, #AD0000 0%, #c92a2a 100%);
}

.cell-maprun { 
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* --- MIXED EVENT (Subtle Gradient) --- */
.cell-mixed {
    background: linear-gradient(135deg, 
        #00b4d8 0%, 
        #0097B2 50%, 
        #c92a2a 50%,
        #AD0000 100%
    );
}

/* 7. Footer / Legend */
.mini-cal-footer {
    padding: 1rem 1.5rem;
    background-color: #fafafa;
    border-top: 1px solid #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

.mini-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mini-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* ================================================= */
/* --- RLH Quick Navigation Buttons --- */
/* ================================================= */

.rlh-quick-nav-container {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.rlh-quick-nav-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Space between buttons */
}

/* Base Pill Style */
.rlh-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px; /* Modern Pill Shape */
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth springy effect */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Icon Animation */
.rlh-pill-btn svg {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.rlh-pill-btn:hover {
    transform: translateY(-3px); /* Lift up */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15); /* Deepen shadow */
}

.rlh-pill-btn:hover svg {
    transform: translateY(2px); /* Icon points down slightly on hover */
}

/* Brand Specific Colors */
.btn-intro {
    background-color: var(--color-intro);
    border: 2px solid var(--color-intro);
}

.btn-dev {
    background-color: var(--color-developing);
    border: 2px solid var(--color-developing);
}

.btn-night {
    background-color: var(--color-night);
    border: 2px solid var(--color-night);
}

.btn-bronze {
    background-color: var(--color-nnas_bronze);
    border: 2px solid var(--color-nnas_bronze);
}

.btn-silver {
    background-color: var(--color-nnas_silver);
    border: 2px solid var(--color-nnas_silver);
}

.btn-bespoke {
    background-color: var(--color-workshop);
    border: 2px solid var(--color-workshop);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .rlh-quick-nav-wrapper {
        flex-direction: column; /* Stack vertically on small screens */
        align-items: stretch;
    }
    .rlh-pill-btn {
        justify-content: center;
    }
}


/* ================================================= */
/* --- RLH Floating Back to Top Button --- */
/* ================================================= */

#rlh-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    /* Shape & Size */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    /* Visuals */
    background-color: #ffffff;
    color: var(--color-text-dark); /* Uses your dark grey variable */
    border: 2px solid var(--color-border); /* Subtle border */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    
    /* Visibility State (Hidden by default) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    
    /* Animation */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The class added via JS when scrolling down */
#rlh-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover State */
#rlh-back-to-top:hover {
    background-color: var(--color-intro); /* Turns Teal on hover */
    color: #fff;
    border-color: var(--color-intro);
    transform: translateY(-5px); /* Gentle lift */
    box-shadow: 0 10px 25px rgba(0, 151, 178, 0.3); /* Teal Glow */
}

/* --- Haggis Intro Section (Final Modern Update) --- */


.haggis-intro-wrapper {
    display: flex;
    align-items: center; 
    gap: 60px;
    margin: 80px auto;      
    max-width: 1200px;
    padding: 0 20px;
}

.haggis-intro-content {
    flex: 1.6; 
    position: relative;
    z-index: 2;
}

.haggis-intro-bubble {
    background-image: linear-gradient(135deg, var(--color-intro) 0%, var(--color-intro-light) 100%);
    background-color: var(--color-intro);
    color: var(--color-white);
    padding: 50px; 
    border-radius: 40px; 
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0, 151, 178, 0.4);
    line-height: 1.7;
}
.haggis-bubble-title {
    margin-top: 0;
    color: var(--color-white);
    font-size: 4.3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: center;
    
    /* Animation: Slower, smoother, and much more subtle */
    animation: refinedBounce 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@keyframes refinedBounce {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98); /* Start slightly lower and smaller */
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01); /* Tiny lift and overshoot */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* Settle perfectly */
    }
}

/* --- Visual Column --- */
.haggis-intro-visual {
    flex: 1; 
    display: flex;
    justify-content: center;
}

.haggis-intro-frame {
    width: 350px;
    height: 500px; 
    margin: 0;
    border-radius: 200px; /* Oval */
    overflow: hidden;
    border: 8px solid var(--color-developing); 
    box-shadow: 0 20px 60px -10px rgba(255, 159, 0, 0.3);
}

.haggis-intro-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 50%;
    transition: transform 0.5s ease;
}

.haggis-intro-frame:hover img {
    transform: scale(1.05);
}

/* --- Responsive Layout & Mobile Tail --- */
@media (max-width: 900px) {
    .haggis-intro-wrapper {
        flex-direction: column;
        gap: 40px;
        margin: 40px auto;
    }

    .haggis-intro-bubble {
        padding: 30px;
        /* Vertical gradient ensures the whole bottom edge is intro-light */
        background-image: linear-gradient(180deg, var(--color-intro) 0%, var(--color-intro-light) 100%);
    }

    .haggis-bubble-title {
        font-size: 3.8rem;
    }


    .haggis-intro-frame {
        width: 280px;  
        height: 280px; 
        border-radius: 50%; /* Circle */
    }
}


/* --- THE CARDS for SPLIDE slider for front page media slider --- */
.rlh-results-card-preview { 
    border: 1px solid #eee; 
    border-left: 5px solid #cccccc; 
    border-radius: 8px; 
    padding: 1.5rem; 
    background-color: #f9f9f9; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.rlh-results-card-preview.is-upcoming { 
    border-left-color: #0097b2; 
}

/* Ensure the outer card stretches fully */
.rlh-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ensure the content area fills the card */
.rlh-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

/* Make the embed container fill all leftover space and center the iframe */
.rlh-media-embed {
    flex-grow: 1; 
    display: flex;
    align-items: center;     
    justify-content: center; 
    min-height: 90px; /* Gives a tiny bit of breathing room */
}


/* --- FADED EDGE CARDS --- */
.splide__slide:not(.is-visible) .rlh-results-card-preview {
    opacity: 0.3; 
    transform: scale(0.98);
}
.rlh-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.splide__slide:not(.is-visible) .rlh-card {
    opacity: 0.3; 
    transform: scale(0.98);
}
/* Creates internal space for the hover float effect without altering your layout */
.splide__track {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-top: -15px;
    margin-bottom: -15px;
}
/* --- TYPOGRAPHY & BUTTONS --- */
p.rlh-card-date-preview { margin-top: 0; margin-bottom: 0.25rem; font-size: 0.9em; font-weight: 600; text-transform: uppercase; color: #555; }
h3.rlh-card-location-preview { font-size: 1.6em; color: #333; margin-top: 0; margin-bottom: 1.25rem; flex-grow: 1; }
.rlh-btn-preview a { display: inline-block; font-weight: 600; border-radius: 28px; padding: 0.5rem 1.25rem; text-decoration: none; transition: all 0.2s ease; margin-bottom: 0.5rem;}
.rlh-btn-secondary a { background-color: #e9e9e9; color: #333; }
.rlh-btn-secondary a:hover { background-color: #ddd; transform: translateY(-2px); }
.rlh-btn-primary a { background-color: #0097b2; color: #fff; }
.rlh-btn-primary a:hover { background-color: #007a8f; transform: translateY(-2px); }

/* --- ARROWS --- */
.splide__arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 3; 
    width: 44px; 
    height: 44px; 
    background-color: #fff; 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    transition: all 0.2s ease; 
    padding: 0;
}
.splide__arrow:hover { 
    background-color: #f0f0f0; 
    transform: translateY(-50%) scale(1.05); 
}
.splide__arrow svg { 
    width: 20px; 
    height: 20px; 
    stroke: #333; 
    stroke-width: 3px; 
}

/* --- FULL WIDTH SLIDER & ARROW POSITIONS --- */
#my-custom-slider {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
#my-custom-slider .splide__arrow--prev { left: 30px; }
#my-custom-slider .splide__arrow--next { right: 30px; }


/* --- Maprun Race Results Table Styling --- */
.race-results-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.5;
}

.results-title {
    text-align: center;
    color: var(--color-intro);
    font-size: 1.8em;
    margin: 40px 0 15px 0;
}

.results-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.results-title a:hover {
    color: var(--color-intro-dark);
    text-decoration: underline;
}

.results-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    font-size: 16px;
}

.results-table thead tr {
    background-color: var(--color-intro); /* Using Teal for headers */
    color: var(--color-white);
    text-align: left;
}

.results-table th,
.results-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

.results-table tbody tr:nth-of-type(even) {
    background-color: var(--color-nnas_silver-extra_light); /* Subtle silver background */
}

.results-table tbody tr:last-of-type {
    border-bottom: 4px solid var(--color-intro);
}

.results-table tbody tr:hover {
    background-color: var(--color-nnas_bronze-extra_light); /* Warm bronze hover */
    cursor: default;
}

.results-table td:first-child {
    font-weight: bold;
    color: var(--color-text-dark);
}