.customer-stories-top {
    padding: 169px 0 0;
}

.customer-stories-top .button {
    margin: 30px 0 0;
}

.customer-stories-top__title {
    margin-top: 30px;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 824px;
}

.customer-stories-top__list {
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.customer-stories__item {
    width: 31.8%; /* Default width for larger screens (three columns) */
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    height: 388px;
    position: relative;
    padding: 32px 33px 28px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    transition: box-shadow 0.3s ease;
    background-repeat: no-repeat; /* Ensure background does not repeat */
    background-size: cover; /* Cover the entire area of the item */
    background-position: center; /* Center the background image */
}

.customer-stories__item:before {
    content: '';
    background: linear-gradient(180deg, rgba(37, 128, 255, 0) 0%, rgba(0, 106, 254, 0.85) 79%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat; /* Prevent repeating the gradient */
    background-size: cover; /* Ensure the gradient covers the entire element */
}

.customer-stories-top__item {
    font-size: 16px;
    padding: 16px 24px;
    border-radius: 60px;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-weight: 600;
    background: linear-gradient(to right, white, white), linear-gradient(to right, #38C3FF, #247BFF);
    border-image-slice: 1;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

.customer-stories-top__item a {
    background: linear-gradient(90deg, #38C3FF 0%, #247BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.customer-stories-top__item--active {
    background: linear-gradient(90deg, #38C3FF 0%, #247BFF 100%);
    color: #fff;
    border-color: currentColor;
}

.customer-stories-top__item--active a {
    color: #fff;
    background: transparent;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
}

.customer-stories_list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.customer-stories__item {
    width: 31.8%; /* Default width for larger screens (three columns) */
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    height: 388px;
    position: relative;
    padding: 32px 33px 28px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    transition: box-shadow 0.3s ease;
}

.customer-stories__item:before {
    content: '';
    background: linear-gradient(180deg, rgba(37, 128, 255, 0) 0%, rgba(0, 106, 254, 0.85) 79%);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.customer-stories__item:hover {
    box-shadow: 0 0 15px 0 #0000004D;
}

.customer-stories {
    margin-top: 88px;
}

.customer-stories__item-title {
    font-size: 20px;
    color: #fff;
    line-height: 1.4;
    font-weight: 600;
    margin: 15px 0 0;
}

.customer-stories__item-tag {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 60px;
    background-color: #257DFF;
    align-self: flex-start;
}

.customer-stories__item-logo {
    display: inline-block;
    width: 208px;
    margin: 15px 0 0;
}

.customer-stories__item a {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    height: 100%;
    justify-content: flex-end;
}

.customer-stories-middle {
    margin: 94px 0 0;
    position: relative;
    overflow: hidden;
    padding: 200px 0 78px;
}

.customer-stories-middle:before {
    content: "";
    background-color: #F6FAFE;
    height: 754px;
    width: 238%;
    border-radius: 50%;
    position: absolute;
    top: -47px;
    z-index: -1;
    left: -21%;
}

.customer-stories-middle:after {
    content: "";
    background-color: #F6FAFE;
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 10%;
    z-index: -1;
}

h2.customer-stories-middle__title {
    margin-top: 31px;
    font-size: 38px;
    max-width: 800px;
    line-height: 1.2;
}

.customer-stories-middle__text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 800px;
    margin-top: 31px;
}

.customer-stories-middle__content {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.customer-stories-middle__wrapper {
    max-width: 448px;
}

.customer-stories-middle__text-wrapper {
    margin-top: 50px;
}

.customer-stories-middle__text-wrapper ul,
.customer-stories-middle__text-wrapper p {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
}

.customer-stories-middle__text-wrapper ul li a {
    color: #0094FF;
}

.customer-stories-middle__text-wrapper {
    margin-top: 50px;
}

.customer-stories-middle__logo {
    margin-bottom: 30px;
    width: 190px;
    height: 68px;
}

.customer-stories-middle__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.customer-stories-middle__image {
    max-width: 539px;
}

.customer-stories-middle__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1130px) {
    .customer-stories__item {
        width: calc(50% - 12.5px); /* Two columns when screen width is up to 1130px */
    }
}

@media screen and (max-width: 768px) {
    .customer-stories__item {
        width: calc(50% - 12.5px); /* Maintain two columns for vertical tablets */
    }
}

@media screen and (max-width: 600px) {
    .customer-stories__item {
        width: 100%; /* One column on mobile devices */
    }
}

/* General Styles */
.button, .button__demo, .popup-close {
	color: #FFFFFF; 
	background: #0094FF;
    cursor: pointer;
    border: none;
}

.button:hover, .button__demo:hover {
    color: #FFFFFF; /* White text on hover */
    background-color: #0094FF; /* blue background on hover */
}

.events__item-img img, .events-cta img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tax-events_category .menu-item a, .events__item a {
    color: #000;
}

/* Header Styles */
.tax-events_category .header .logo .default {
    display: none;
}

.tax-events_category .header .logo .scroll {
    display: block;
}

/* Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0; right: 0;
    top: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.popup.active {
    display: flex;
}

.popup-close {
    background: url('/wp-content/themes/thetaray/css/<?php echo get_stylesheet_directory_uri('); ?>/images/close-button.svg') no-repeat center;
    width: 30px;
    height: 30px;
    margin: 10px;
    padding: 0;
}

/* Specific Event Styles */
/* General Styles for Events */
.events__item-img {
    height: 210px; /* Ensures all images are the same height */
    overflow: hidden; /* Prevents the image from overflowing the container */
    width: 100%; /* Ensures the container spans the full width of its parent */
}

.events__item-img img {
    width: 100%; /* Stretches the image to cover the container width */
    height: 100%; /* Stretches the image to cover the container height */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.events__item {
    width: calc(33.333% - 17px); /* Sets the width of each item to one-third minus margin */
    margin-bottom: 30px; /* Space below each item */
    position: relative; /* For positioning the pseudo-element */
}

.events__item::before {
    content: '';
    width: calc(100% + 24px); /* Slightly larger than the item to create a shadow effect */
    height: calc(100% + 24px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); /* Shadow for focus effect */
    position: absolute;
    border-radius: 5px;
    top: -12px;
    left: -12px;
    transition: opacity 0.5s; /* Smooth transition for the shadow */
    opacity: 0; /* Hidden by default */
    z-index: -1;
}

.events__item:hover::before {
    opacity: 1; /* Shows the shadow when hovered */
}

.events__item-title {
    font-size: 24px; /* Specifies the font size */
    font-weight: 600; /* Bold font weight for better visibility */
    line-height: 33.6px; /* This line height will help maintain the spacing for two lines */
    height: 67.2px; /* Exactly two lines high (2 * 33.6px) */
    overflow: hidden; /* Hides any text that overflows the two-line height */
    text-align: left; /* Keeps text aligned to the left */
    text-overflow: ellipsis; /* Adds an ellipsis if the text overflows (optional, requires 'white-space: nowrap') */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits the text to two lines */
    -webkit-box-orient: vertical; /* Required for line clamp to work */
    margin-top: 20px; /* Provides top margin for spacing */
    margin-bottom: 10px; /* Provides bottom margin for spacing */
}


.events__item-link {
    text-decoration: none;
    display: block; /* Ensures the link takes the full width of its container */
    text-align: left; /* Aligns the link text to the left */
    margin-top: auto; /* Pushes the link to the bottom of the container */
    padding-top: 10px; /* Optional: Adds space above the link */
    padding-bottom: 10px; /* Optional: Adds space below the link for touch ease */
}

/* Responsive Design */
@media (max-width: 1130px) {
    .events__item {
        width: calc(50% - 15px); /* Two columns on smaller screens */
    }
}

@media (max-width: 768px) {
    .events__item {
        width: calc(50% - 12.5px); /* Adjust width for tablet sizes */
    }
}

@media (max-width: 600px) {
    .events__item {
        width: 100%; /* Full width on mobile screens */
    }
}

.demo-banner {
    background-color: #0047AB; /* Dark blue background */
    color: #FFFFFF; /* White text */
    text-align: center; /* Center-align all text */
    padding: 20px; /* Padding around the content */
    font-family: Arial, sans-serif; /* Font style */
}

.demo-banner h2 {
    font-size: 24px; /* Size of the heading */
    margin-bottom: 10px; /* Space below the heading */
}

.demo-banner p {
    font-size: 16px; /* Size of the paragraph */
    margin-bottom: 20px; /* Space below the paragraph */
}

.demo-banner .button {
    background-color: #22B573; /* Bright green background */
    color: #FFFFFF; /* White text */
    text-decoration: none; /* No underline */
    padding: 10px 20px; /* Padding inside the button */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
}

 .customer-stories__item-logo{
     height: 50px;
}
.customer-stories__item-logo img{
    height: auto;
    object-fit: contain !important;
    
}
