/*
 * Public-facing styles for Responsive Hero Slider
 */

.rhs-slider-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rhs-slider {
    width: 100%;
    /* Default aspect ratio for desktop */
    /*height: 600px;*/
    background-color: #f0f0f1; /* Fallback color */
}

.rhs-slide {
    position: relative;
    width: 100%;
    display: grid;
    height: 81vh;
    overflow: hidden;
}

.rhs-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.rhs-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.rhs-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
}

.rhs-slide-content-inner {
    max-width: 800px;
}

/* Content Alignment Classes */
.rhs-align-left .rhs-slide-content {
    justify-content: flex-start;
    text-align: left;
}

.rhs-align-left .rhs-buttons {
    justify-content: flex-start;
}

.rhs-align-center .rhs-slide-content {
    justify-content: center;
    text-align: center;
}

.rhs-align-center .rhs-buttons {
    justify-content: center;
}

.rhs-align-right .rhs-slide-content {
    justify-content: flex-end;
    text-align: right;
}

.rhs-align-right .rhs-buttons {
    justify-content: flex-end;
}

.rhs-heading {
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.rhs-subheading {
    font-size: 1.5rem; /* 24px */
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.rhs-body {
    font-size: 1.125rem; /* 18px */
    margin: 0 0 1.5rem 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.6;
}

.rhs-body p {
    margin: 0;
}

.rhs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.rhs-button {
    display: inline-block;
    padding: 7.5px 20px 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Primary Button Style - Default (can be overridden per-slide) */
.rhs-button-1 {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.rhs-button-1:hover {
    background-color: #111111;
    border-color: #111111;
    color: #ffffff;
}

/* Secondary Button Style - Default (can be overridden per-slide) */
.rhs-button-2 {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.rhs-button-2:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =============================================
   Divi Builder slide — force every wrapper in the
   chain to fill the slide edge-to-edge.
   ============================================= */
.rhs-divi-content {
    position: absolute;
    inset: 0;            /* fill .rhs-slide completely */
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* Divi's own layout wrappers must stretch to fill */
.rhs-divi-content .et-l,
.rhs-divi-content .et_builder_inner_content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sections: remove Divi's default padding/margin */
.rhs-divi-content .et_pb_section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Rows: remove Divi's default max-width (usually 1080px) */
.rhs-divi-content .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Columns: remove Divi's default gutter margins */
.rhs-divi-content .et_pb_column {
    margin: 0 !important;
    padding: 0 !important;
}

/* Swiper Navigation/Pagination */
.rhs-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.rhs-slider .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

.rhs-slider .swiper-button-prev,
.rhs-slider .swiper-button-next {
    color: #fff;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.rhs-slider .swiper-button-prev:hover,
.rhs-slider .swiper-button-next:hover {
    opacity: 1;
}

.rhs-slider .swiper-button-prev:after,
.rhs-slider .swiper-button-next:after {
    font-size: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Responsive Styles - Tablet (980px) */
@media (max-width: 980px) {
    .rhs-slide {
        height: 85vh;
        margin-top: 95px;
    }

    .rhs-heading {
        font-size: 2.75rem; /* 44px */
    }
    
    .rhs-subheading {
        font-size: 1.35rem; /* 22px */
    }

    .rhs-body {
        font-size: 1.05rem; /* 17px */
    }
    
    .rhs-slide-background {
      border-radius: 10px;
    }
}

/* Responsive Styles - Mobile (768px) */
@media (max-width: 768px) {
    .rhs-slide {
        height: 80vh;
        margin-top: 95px;
    }

    .rhs-slide-content {
        padding: 30px;
    }

    .rhs-heading {
        font-size: 2rem; /* 32px */
    }
    
    .rhs-subheading {
        font-size: 1.125rem; /* 18px */
    }

    .rhs-body {
        font-size: 0.95rem;
    }
    
    .rhs-slide-background {
      border-radius: 10px;
    }

    .rhs-buttons {
        gap: 0.75rem;
    }

    .rhs-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
    
    /* Center alignment on mobile for better readability */
    .rhs-align-left .rhs-slide-content,
    .rhs-align-right .rhs-slide-content {
        text-align: center;
    }
    
    .rhs-align-left .rhs-buttons,
    .rhs-align-right .rhs-buttons {
        justify-content: center;
    }
}

/* Responsive Styles - Small Mobile (600px) */
@media (max-width: 600px) {
    .rhs-slide {
        height: 75vh;
        margin-top: 95px;
    }

    .rhs-slide-content {
        padding: 25px;
    }

    .rhs-heading {
        font-size: 1.75rem; /* 28px */
    }
    
    .rhs-subheading {
        font-size: 1rem; /* 16px */
    }

    .rhs-body {
        font-size: 0.9rem;
    }
    
    .rhs-slide-background {
      border-radius: 10px;
    }
    
    .rhs-slider .swiper-button-prev,
    .rhs-slider .swiper-button-next {
        /* Hide nav arrows on mobile (pagination is better) */
        display: none !important;
    }
}