:root {
    --ridetile-title-color: #41448E;
    --ridetile-text-white: #ffffff;
    --ridetile-overlay-black: rgba(0, 0, 0, 0.9);
    --ridetile-overlay-black-60: rgba(0, 0, 0, 0.6);
    --ridetile-overlay-black-30: rgba(0, 0, 0, 0.3);
    --ridetile-shadow-black: rgba(0, 0, 0, 0.2);
    --ridetile-dot-inactive: #d1d5db;
}

.ridetile-container {
    margin: 2rem auto;
    padding: 0 120px;
}

.ridetile-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: var(--ridetile-title-color);
    text-align: center;
}

/* =========================================
   RIDE CARDS GRID LAYOUT
   ========================================= */

.ride-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 50px;
}

/* =========================================
   RIDE CARD STYLING
   ========================================= */

.ride-card {
    background: var(--ridetile-text-white);
    overflow: hidden;
    transition: none;
    border-radius: 12px;
}

.ride-card-image {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    height: 450px;
}

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

.ride-card:hover .ride-card-image img {
    transform: scale(1.05);
}

/* Image overlay with gradient */
.ride-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, var(--ridetile-overlay-black) 0%, var(--ridetile-overlay-black-60) 50%, var(--ridetile-overlay-black-30) 70%, transparent 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ride-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--ridetile-text-white);
    line-height: 1.2;
    border-radius: 0 12px 12px 0;
    background: var(--ridetile-title-color);
    display: inline-block;
    padding: 0.5rem 24px;
    width: fit-content;
    max-width: 100%;
    margin-left: -24px;
}

/* Card content section - now inside overlay */
.ride-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: flex-end;
    width: 100%;
    margin-top: auto;
}

.ride-card-description {
    font-size: 0.95rem;
    color: var(--ridetile-text-white);
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ride-card-description p {
    padding-bottom: 0;
    margin: 0;
    color: var(--ridetile-text-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 24px */
    margin-bottom: 1rem;
}

.ride-card-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ride-card-description ul li {
    padding-left: 0;
    padding-bottom: 0.25rem;
    color: var(--ridetile-text-white);
}

.ride-card-description ul li::before {
    display: none;
}

/* Discover more link/button */
.ride-card-link {
    color: var(--ridetile-text-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

/* =========================================
   OWL CAROUSEL SLIDER STYLES
   ========================================= */

.ride-card-slider.owl-carousel {
    margin: 0;
    padding: 0 0 3rem 0;
}

.ride-card-slider .owl-item .ride-card {
    margin: 0 auto;
}

/* Owl nav buttons */
.ride-card-slider .owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

.ride-card-slider .owl-nav button {
    pointer-events: all;
    background: var(--ridetile-title-color) !important;
    color: var(--ridetile-text-white) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--ridetile-shadow-black);
}


.ride-card-slider .owl-nav button.owl-prev {
    margin-left: -25px;
}

.ride-card-slider .owl-nav button.owl-next {
    margin-right: -25px;
}

/* Owl pagination dots */
.ride-card-slider .owl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.ride-card-slider .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ridetile-dot-inactive);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ride-card-slider .owl-dot.active {
    background: var(--ridetile-title-color);
    width: 30px;
    border-radius: 6px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet: 2 columns */
@media (max-width: 1023px) {
    .ride-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

 

   
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .ridetile-container {
        margin: 1rem;
        padding: 0;
    }

    .ridetile-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ride-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

  

    .ride-card-overlay {
        padding: 1.25rem;
    }

 
  
    .ride-card-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Adjust carousel navigation for mobile */
    .ride-card-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .ride-card-slider .owl-nav button.owl-prev {
        margin-left: -20px;
    }

    .ride-card-slider .owl-nav button.owl-next {
        margin-right: -20px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
   

    .ride-card-overlay {
        padding: 1.5rem 1rem 1rem;
    }

}