﻿.umb-block-grid__layout-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--umb-block-grid--grid-columns, 1), minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: minmax(50px, min-content);
    column-gap: var(--umb-block-grid--column-gap, 0);
    row-gap: var(--umb-block-grid--row-gap, 0);
}

.umb-block-grid__layout-item {
    position: relative;
    /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */
    grid-column-end: span min(calc(var(--umb-block-grid--item-column-span, 1) * 3), var(--umb-block-grid--grid-columns));
    grid-row: span var(--umb-block-grid--item-row-span, 1);
}


.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--umb-block-grid--area-grid-columns, var(--umb-block-grid--grid-columns, 1)), minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: minmax(50px, min-content);
    column-gap: var(--umb-block-grid--areas-column-gap, 0);
    row-gap: var(--umb-block-grid--areas-row-gap, 0);
}

.umb-block-grid__area {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */
    grid-column-end: span min(calc(var(--umb-block-grid--area-column-span, 1) * 3), var(--umb-block-grid--area-grid-columns));
    grid-row: span var(--umb-block-grid--area-row-span, 1);
}

@media (min-width:1024px) {
    .umb-block-grid__layout-item {
        grid-column-end: span min(var(--umb-block-grid--item-column-span, 1), var(--umb-block-grid--grid-columns));
    }

    .umb-block-grid__area {
        grid-column-end: span min(var(--umb-block-grid--area-column-span, 1), var(--umb-block-grid--area-grid-columns));
    }
}



/**** Custom additions to the default Grid Layout Stylesheet: ****/

.umb-block-grid {
    container-type: inline-size;
    --my-container-max-width: 1680px;
    --my-container-padding: 0 20px;
}

@container (min-width: 720px) {
    .umb-block-grid__layout-container {
        --my-container-padding: 0 60px;
    }
}


/* additional CSS options for area-container and areas: */
.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) {
    max-width: var(--my-container-max-width);
    padding: var(--my-container-padding);
    margin-left: auto;
    margin-right: auto;
    /* We add gap for Areas in general: */
    --umb-block-grid--areas-column-gap: 20px;
    --umb-block-grid--areas-row-gap: 20px;
}

@container (min-width: 720px) {
    .umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) {
        --umb-block-grid--areas-column-gap: 60px;
        --umb-block-grid--areas-row-gap: 60px;
    }
}

.umb-block-grid__area {
    justify-content: center;
}

/** Specificly for oneColumnSectionBlock we add block colum-gap/row-gap. Notice this is different from the Area Gaps added above. */
.umb-block-grid__layout-item[data-content-element-type-alias="oneColumnSectionBlock"] .umb-block-grid__layout-container {
    --umb-block-grid--column-gap: 20px;
    --umb-block-grid--row-gap: 20px;
}

@container (min-width: 720px) {
    .umb-block-grid__layout-item[data-content-element-type-alias="oneColumnSectionBlock"] .umb-block-grid__layout-container {
        --umb-block-grid--column-gap: 60px;
        --umb-block-grid--row-gap: 60px;
    }
}

section {
    background-color: rgb(255,255,255); /* Fallback color */
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 80px !important;
    z-index: 1;
}


/**** My custom website styles: ****/

:root, :host, body {
    font-family: 'Raleway', serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}


section {
    padding: var(--section-padding, 60px 0);
}

    section[bright-contrast] {
        color: white;
        --my-bright-contrast:;
    }


/** only works on website. */
.umb-block-grid__layout-item:has(section[nobackgroundcolor]) +
.umb-block-grid__layout-item section[nobackgroundcolor] {
    padding-top: 0;
}

h1 {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 525;
    letter-spacing: -0.015em;
    max-width: calc(100% - var(--global-welcome-header-col-gap));
    margin: 0;
    margin-bottom: 20px;
    color: inherit;
}

.headline-center-align {
    text-align: center;
}

.headline-h2 {
    font-size: 60px;
    line-height: 1.05;
    font-weight: 525;
    letter-spacing: -0.015em;
    max-width: calc(100% - var(--global-welcome-header-col-gap));
    margin: 0;
    margin-bottom: 20px;
    color: inherit;
}

h2 {
    font-size: 35px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 20px;
    color: inherit;
}

h3 {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 20px;
    color: inherit;
}

h4 {
    font-size: 21px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 20px;
    color: inherit;
}

a {
    text-decoration: none !important;
}
/** Call to action */

.call-to-action {
    display: inline-block;
    background-color: transparent; /* Green background */
    color: #ffc107; /* White text */
    padding: 15px 35px; /* Padding for size */
    border: solid; /* Remove border */
    border-color: #ffc107;
    font-size: 1.25rem; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

    .call-to-action:hover {
        background-color: #ffc107; /* Darker green on hover */
        color: #ffffff;
    }

.call-to-action-solid {
    display: inline-block;
    padding: 15px 35px; /* Padding for size */
    border: solid; /* Remove border */
    border-color: #ffc107;
    font-size: 1.25rem; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
    background: #ffc107;
    color: #333;
}

    .call-to-action-solid:hover {
        background: transparent;
        color: #ffc107;
    }

/****   line header  **********/
.line {
    width: 15%;
    height: 2px; /* Adjust the height as needed */
    background-color: #ffc720; /* Change the color as needed */
    margin: 20px 0; /* Adjust the margin as needed */
}

.line-container {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}


/*******    heading  with line   ******************/
.headline-line {
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 10px; /* Adjust the margin as needed */
}



/** Image */

img.image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

img.shadow {
    object-fit: cover;
    height: 100%;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    /*padding: 1rem;*/
}



/** Rich Text */

.rich-text {
    font-weight: 300;
    color: inherit;
    font-size: 1.15rem;
}

@media (min-width:1024px) {
    .rich-text {
        /** Using CSS Calculation, which gives 1 for column spans of 1-11 and 2 for column span of 12. */
        /*columns: clamp(1, calc(var(--umb-block-grid--item-column-span) - 10), 2);*/
        column-gap: 60px;
    }
}

.rich-text > p:first-child {
    margin-top: 0;
}






/** Hero */

.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container,
.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__block--view::part(area-container) {
    padding: 0;
}

.hero {
    position: relative;
    min-height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 60px 0;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1; /* Ensures overlay is on top of the background */
}

.hero-nonoverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); /* Black overlay with 50% opacity */
    z-index: 1; /* Ensures overlay is on top of the background */
}

.hero .hero-background {
    position: absolute;
    inset: 0;
    background-position: 50% 50%;
    background-size: cover;
}

    .hero .hero-background:after {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(0,0,0,.22);
        pointer-events: none;
    }

.hero .hero-content {
    position: relative;
    width: 100%;
    max-width: var(--my-container-max-width);
    padding: var(--my-container-padding);
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
}

    .hero .hero-content > h1 {
        max-width: 14em;
    }




/** Inspiration */

.inspiration[bright-contrast] {
    --my-bright-contrast:;
}

.inspiration .area-container {
    max-width: var(--my-container-max-width);
    padding: var(--my-container-padding);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    column-gap: 60px;
    row-gap: 20px;
}

@media (min-width: 720px) {
    .inspiration .area-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.inspiration .left-area {
    grid-column-end: span 1;
    display: block;
    margin-bottom: 60px;
}

.inspiration .right-area {
    grid-column-end: span 1;
    display: block;
    margin-top: 60px;
    margin-right: -120px;
    transform: translateX(-120px);
}

.inspiration .content-area {
    grid-column-end: span 2;
    display: block;
}

.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="leftArea"] {
    justify-content: start;
}

.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="rightArea"] {
    justify-content: end;
}







/* Card */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    width: 100%;
    min-width: 333px;
    max-width: 333px;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: fill;
    aspect-ratio: 16/9;
}

.card-body {
    padding: 15px;
    background: #f9f9f9;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-date, .card-description, .card-location {
    margin-bottom: 10px;
    color: #555;
}

.card-date {
    font-size: 1rem;
    margin: 5px 0;
}


/*  accordian style for past events */
.past-events-accordion .accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-item {
    border-top: 1px solid #ddd;
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
}

.accordion-button {
    all: unset;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: bold;
}

    .accordion-button:hover {
        background-color: #eaeaea;
    }

.accordion-collapse {
    display: none;
}

    .accordion-collapse.show {
        display: block;
    }

.events-list {
    list-style: none;
    padding: 10px 20px;
}

    .events-list li {
        margin-bottom: 15px;
        border-bottom: 1px dashed #ccc;
        padding-bottom: 10px;
    }

        .events-list li:last-child {
            border-bottom: none;
        }


/*  team member card    */
/* Container for the team members block */
.team-members-block {
    max-width: 1680px;
    margin: 0 auto; /* Center the block horizontally */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Automatically adjust columns based on screen size */
    gap: 20px; /* Space between the cards */
    justify-items: center; /* Center each card within its grid cell */
    justify-content: center; /* Center the entire grid (including the last row) */
}

/* Individual team card */
.team-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 250px; /* Ensures the card doesn't get too wide */
    min-width: 250px; /* Ensures the card doesn't get too narrow */
}

    /* Hover effect for the team card */
    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

/* Styling for the image within the card (circular) */
.team-card-img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Makes the image circular */
    margin: 0 auto 15px;
    border: 3px solid #ffc720;
}

/* Body of the team card */
.team-card-body {
    padding: 10px 0;
}

/* Title of the team member (name or role) */
.team-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Role of the team member */
.team-card-role {
    font-size: 1rem;
    color: #555;
    margin: 5px 0;
}

/* Description of the team member */
.team-card-description {
    font-size: 0.9rem;
    color: #777;
    margin: 10px 0 0;
}












/********** Slider  ****************/
.w-100 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: 45em;
}

/* Make sure the carousel item is positioned relatively to position text inside */
.carousel-item {
    position: relative;
}

/* Add a semi-transparent overlay on top of the image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% opacity */
    z-index: 1; /* Ensures the overlay stays above the image but below the text */
}

/* Flexbox to center caption and body content vertically and horizontally */
.carousel-caption,
.carousel-body {
    position: absolute;
    top: 50%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Correct for the 50% offset */
    text-align: center;
    width: 100%; /* Ensure it spans the entire width of the slide */
    color: #fff; /* Set text color to white (adjust based on your design) */
    z-index: 2; /* Ensure text appears above the overlay */
}

.carousel-caption-center {
    top: 40%; /* Adjust this value to your preference to control vertical positioning */
}

.carousel-body-center {
    top: 60%; /* Adjust this value to position body content below the caption */
}

/* Optional: Style the caption and body */
.caption {
    font-size: 5rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.body {
    font-size: 3rem;
    /*font-weight: bold;*/
    margin: 0;
    padding: 25px;
}

.carousel-control-prev, .carousel-control-next {
    padding: 10px 15px; /* Increase touch area for mobile */
    font-size: 30px; /* Increase icon size for better visibility */
}

.carousel-control-prev,
.carousel-control-next {
    display: none; /* Hide arrows */
}

/* Additional styles for small screens */
@media (max-width: 768px) {
    /* Reduce font size on smaller screens */
    .caption, .body {
        font-size: 1rem; /* Adjust font size for smaller devices */
    }
}

/* Additional styles for very small screens (mobile devices) */
@media (max-width: 576px) {
    /* Reduce font size even further for very small screens */
    .caption, .body {
        font-size: 0.9rem; /* Further decrease font size */
    }
}

/*  Product CARD    */
.product-card {
    /*  position: relative;*/
    border-radius: 15px; /* Rounded corners for the card */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow around the card */
    background-color: #f5f5f5; /* Light background for fallback */
    min-height: 680px; /* Ensures the card takes up at least 50% of the viewport height */
    width: 372px; 
    display: flex;
    flex-direction: column;
}

/* Optional: Ensure the card image adjusts well on smaller screens */
@media (min-width: 1441px) {
    .product-card {
        width: 405px;
        min-height: 740px; /* Adjust height for smaller screens */
    }
}

/* Optional: Ensure the card image adjusts well on smaller screens */
@media (max-width: 1068px) {
    .product-card {
        width: 344px;
        min-height: 628px; /* Adjust height for smaller screens */
    }
}

/* Optional: Ensure the card image adjusts well on smaller screens */
@media (max-width: 734px) {
    .product-card {
        width: 260px;
        min-height: 480px; /* Adjust height for smaller screens */
    }
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    /*filter: brightness(0.7);  Optional: Darkens the image to help text visibility */
}

.product-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: white; /* Text color */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align the content towards the bottom of the card */
    height: 100%; /* Ensure content fills the card height */
    background-color: rgba(0, 0, 0, 0.5); /* Red background with 50% opacity */
    width: 100%;
}

.product-card h3 {
    margin-top: 5px;
    font-size: 28px;
    margin-bottom: 5px;
}

.product-card .rich-text {
    font-size: 21px;
    font-weight: 300;
}



/* Optional: To keep the text legible on smaller screens, adjust font sizes */
@media (max-width: 480px) {
    .product-card h3 {
        font-size: 18px;
    }

    .product-card .rich-text {
        font-size: 14px;
    }
}

/*  Vertical Scroll */
/* Wrapper for the card */
.verticalscroll {
    position: relative;
    width: 100%;
    height: 100vh; /* Adjust height as per your design */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden; /* Prevents overflow to the next slide */
}

/* Card media with background image */
.verticalscroll-media {
    position: relative;
    width: 100%;
    height: 100vh; /* Set height to 100vh (full viewport height) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Overlay with semi-transparent background */
    .verticalscroll-media .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
    }

/* Content inside the card */
.verticalscroll-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the text */
    text-align: left;
    color: white; /* White text for better contrast */
    padding: 10px;
    box-sizing: border-box;
    z-index: 2; /* Ensure the text is above the overlay */
}

    .verticalscroll-content h3 {
        font-size: 48px; /* Smaller default font size for better responsiveness */
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 25px;
    }

    .verticalscroll-content .rich-text {
        font-size: 21px;
        margin-top: 10px;
        letter-spacing: .011em;
    }




/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .swiper-container {
        height: 50vh;
    }

    .verticalscroll-content h3 {
        font-size: 2.5rem; /* Reduce headline size on smaller screens */
    }

    .verticalscroll-content .rich-text {
        font-size: 1.5rem; /* Reduce rich text size */
    }

    .verticalscroll-content p {
        font-size: 1.5rem; /* Reduce paragraph text size */
    }
}

/* Client Card */
.client-card-link {
    text-decoration: none;
    display: block;
}

    .client-card-link:focus {
        outline: 2px solid #007BFF; /* Focus outline for accessibility */
        outline-offset: 4px;
    }

    /* Base card style */
    .client-card-link .client-hero {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Default shadow */
    }

        .client-card-link .client-hero:hover {
            transform: scale(1.05); /* Slight scaling effect */
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
        }

.client-hero {
    display: flex;
    gap: 50px; /* Space between image and content */
    height: 100%;
    min-height: 362px;
    border-radius: 25px;
    overflow: hidden;
    padding: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Initial shadow */
    flex-direction: row; /* Default layout */
    align-items: stretch;
}

.client-hero-vertical {
    display: flex;
    gap: 10px; /* Space between image and content */
    height: 100%;
    min-height: 362px;
    border-radius: 25px;
    overflow: hidden;
    padding: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Initial shadow */
    flex-direction: column; /* Vertical layout */
    align-items: stretch;
}

/* Hover effect for both horizontal and vertical layouts */
.client-card-link .client-hero:hover,
.client-card-link .client-hero-vertical:hover {
    transform: scale(1.05); /* Slight scaling effect */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

/* Ensure consistent transition for vertical layout */
.client-card-link .client-hero-vertical {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Default shadow */
}


.client-hero-image {
    flex: 0 0 50%; /* Minimum width of 50% */
    position: relative; /* Required for child positioning */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: hidden; /* Ensures image stays within bounds */
    background-color: #000; /* Optional: Background color for better appearance */
}

    .client-hero-image img {
        width: 100%; /* Ensures image covers full width */
        object-fit: cover; /* Makes the image cover its container */
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    }

.client-hero-content {
    flex: 1; /* Take the remaining width */
    display: flex;
    flex-direction: column;
    padding: 50px 25px;
    gap: 20px; /* Space between elements */
    justify-content: space-between; /* Ensures footer stays at the bottom */
    align-items: stretch; /* Explicit alignment */
}

    .client-hero-content h3 {
        margin: 0;
        font-size: 1.125rem; /* 18px in rem */
        line-height: 1.2857742857;
        font-weight: 700;
        letter-spacing: -0.016em;
        text-transform: uppercase;
        color: #333;
    }

    .client-hero-content .rich-text {
        font-size: 2rem; /* 32px in rem */
        line-height: 1.125;
        font-weight: 700;
        color: #555;
    }

/* Footer styling */
.client-hero-footer {
    font-size: 1rem; /* 16px in rem for consistency */
    line-height: 1.2353641176;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-top: auto; /* Push footer to the bottom */
    text-align: left; /* Align text to the left */
    padding: 10px 0; /* Padding around footer content */
    color: #333; /* Text color */
    width: 100%; /* Ensure footer takes full width */
}

/* Responsive styles */
@media (max-width: 968px) {
    .client-hero {
        flex-direction: column; /* Switch to column layout on smaller screens */
        text-align: left; /* Align text to the left */
        gap: 10px; /* Smaller gap between elements */
    }

    .client-hero-content {
        padding: 25px; /* Adjust padding */
    }

    .client-hero-image,
    .client-hero-content {
        max-width: 100%; /* Ensure both sections are 100% width */
    }

    .client-hero-image {
        margin-bottom: 20px; /* Add spacing between image and content */
    }

    .client-hero-content .rich-text {
        font-size: 1.5rem; /* Reduce font size for smaller screens */
    }

    .client-hero-footer {
        font-size: 0.9rem; /* Smaller footer font for mobile */
    }
}


/* Story Card */
/* Ensure the parent container of the cards has a flex layout to control card height */
.story-card-link-wrapper {
    display: block;
    text-decoration: none; /* Remove default underline from the link wrapper */
    height: 100%;
}

/* Use flexbox to ensure all cards have the same height */
.story-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch; /* Ensures all cards stretch to the same height */
    height: 100%; /* Ensure the container fills the space */
}

/* Main card layout */
.story-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    width: 100%; /* Full width of the parent container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    min-height: 100%; /* Ensures the card takes full height of its container */
    flex-grow: 1; /* Allow cards to grow and fill the space */
    margin-bottom: 20px; /* Add space between cards in mobile */
}

/* Hover effect for the entire card */
.story-card-link-wrapper:hover .story-card {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Image area inside the card */
.story-card-image {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 0; /* 16:9 Aspect Ratio */
    aspect-ratio: 16/9;
}

.story-card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
}

/* Content area inside the card */
.story-card-content {
    padding: 16px;
    flex-grow: 1; /* Allow content to grow and fill space */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    color: #555;
}

    /* Title inside the content */
    .story-card-content h3 {
        font-size: 1.25rem; /* 18px in rem */
        line-height: 1.2857742857;
        font-weight: 700;
        letter-spacing: -0.016em;
        text-transform: uppercase;
        color: #333;
    }

    /* Rich text content inside the card */
    .story-card-content .rich-text {
        font-size: 1.75rem; /* 32px in rem */
        line-height: 1.125;
        font-weight: 700;
    }

/* Default style for story card when no background color is applied */
.story-card.nobackgroundcolor {
    background-color: transparent;
    /* Add other styles for cards without background if necessary */
}

/* Footer styling */
.story-card-footer {
    font-size: 1rem; /* 16px in rem for consistency */
    line-height: 1.2353641176;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-top: auto; /* Push footer to the bottom of the content */
    text-align: left; /* Align text to the left */
    padding: 10px 0; /* Padding around footer content */
    color: #333; /* Text color */
    width: 100%; /* Ensure footer takes full width */
}

/* Remove color change for the link */
.story-card-link {
    text-decoration: none;
    transition: none; /* No transitions for the link */
}

/* Hover effect for the link inside the card */
.story-card-link-wrapper:hover .story-card-link {
    text-decoration: none;
}

/* Row Layout */
.story-row-card {
    display: flex; /* Use flexbox to align children side by side */
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width of the parent container */
    margin: 20px auto; /* Center the card horizontally */
    flex-direction: row; /* Ensure the children are arranged horizontally */
    height: 100%;
    min-height: 255px;
    /* Remove height: auto to let the height be determined by the content */
}

    /* Image Section */
    .story-row-card .story-card-image {
        flex: 0 0 50%; /* Image takes 50% of the card's width */
        overflow: hidden; /* Ensure the image doesn't overflow */
        height: auto; /* Let the height be determined by content */
        position: relative;
    }

        .story-row-card .story-card-image img {
            width: 100%; /* Stretch the image to fill the container */
            height: 100%; /* Let the height be determined by the image's aspect ratio */
            object-fit: cover; /* Ensure the image covers the container's area */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    /* Content Section */
    .story-row-card .story-card-content {
        flex: 0 0 50%; /* Content takes the remaining 50% of the card's width */
        padding: 20px; /* Add space around content */
        display: flex;
        flex-direction: column; /* Stack content vertically */
        justify-content: space-between; /* Align items between top and bottom */
        height: auto; /* Content height will now be based on the content itself */
    }

    /* Footer styling */
    .story-row-card .story-card-footer {
        font-size: 1rem; /* 16px in rem for consistency */
        line-height: 1.2353641176;
        font-weight: 600;
        letter-spacing: -0.022em;
        margin-top: 0; /* Push footer to the bottom of the content */
        text-align: left; /* Align text to the left */
        padding: 10px 0; /* Padding around footer content */
        color: #333; /* Text color */
        width: 100%; /* Ensure footer takes full width */
    }

    /* Hover effect for the entire card */
    .story-row-card:hover {
        transform: scale(1.05); /* Slight zoom effect */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    }
/* Responsive styles for mobile devices */
@media screen and (max-width: 968px) {
    .story-row-card {
        flex-direction: column; /* Stack content vertically */
        min-height: auto; /* Let the height adjust to the content */
    }
        .story-row-card .story-card-image,
        .story-row-card .story-card-content {
            flex: 0 0 auto; /* Allow flexible sizing */
            width: 100%; /* Full width for both sections */
        }

        .story-row-card .story-card-image {
            aspect-ratio: 16/9;
        }

        .story-row-card .story-card-content {
            padding: 15px; /* Adjust padding for smaller screens */
        }
}
/* Media Query for Small Devices (Mobile) */
@media (max-width: 968px) {
    .story-card-container {
        flex-direction: column;
        align-items: stretch; /* Ensure cards stretch vertically */
    }

    .story-card {
        width: 100%; /* Make each card take up the full width */
        margin-bottom: 20px; /* Add space between cards */
    }

    .story-card-content {
        padding: 12px; /* Reduce padding for better mobile experience */
    }

    .story-card-footer {
        font-size: 0.9rem; /* Smaller footer text */
        padding: 8px 0; /* Less padding in footer */
    }

    .story-card-content h3 {
        font-size: 1.1rem; /* Smaller title size */
    }

    .story-card-content .rich-text {
        font-size: 1.5rem; /* Slightly smaller text for mobile */
    }


}

/* Media Query for Very Small Devices (Portrait Mobile) */
@media (max-width: 480px) {
    .story-card {
        margin-bottom: 15px; /* Reduce bottom margin for smaller devices */
    }

    .story-card-content {
        padding: 10px; /* Further reduce padding for very small screens */
    }

    .story-card-footer {
        font-size: 0.85rem; /* Even smaller footer text */
        padding: 6px 0; /* Less padding in footer */
    }

    .story-card-content h3 {
        font-size: 1rem; /* Further reduce title size */
    }

    .story-card-content .rich-text {
        font-size: 1.4rem; /* Smaller text for better readability */
    }
}






/*  VIDEO BLOCK*/
.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 25px;
    background-color: #000; /* Optional: Background color for better appearance */
}

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the video scales properly */
    }


    /*  form    */
.form-label {
    width: 100%;
    margin: 0 !important;
    font-weight: 600;
    font-size: 18px;
}

.form-text {
    width: 100%;
    margin-bottom: 25px;
    padding: 5px;
    background: #F8f8ff;
    border: solid;
    border-width: thin;
    border-radius: 5px;
}