/* Hero Section Fix - Make it fit on single screen while keeping all elements */
.banner-section {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
    min-height: min(100vh, 850px) !important;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-section .container {
    height: auto;
    display: flex;
    align-items: center;
    z-index: 10;
    position: relative;
}

.banner-section .banner-content .title {
    font-size: 3.5rem !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.banner-section .banner-content .sub-title {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.banner-section .banner-content p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
    width: 61% !important;
}

/* =============================================
   Hero Read More / Expandable Text
   ============================================= */
.hero-expandable-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

.hero-expandable-text.expanded {
    max-height: 300px;
    opacity: 1;
}

/* Ensure the paragraph inside expandable text matches the visible paragraph width */
.hero-expandable-text p {
    width: 100% !important;
}

.hero-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    margin-top: 5px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.hero-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-read-more-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hero-read-more-btn:active {
    transform: scale(0.97);
}

.hero-read-more-btn .btn-icon {
    font-size: 0.7rem;
    transition: transform 0.35s ease;
}

/* Banner widget positioning reverted to original theme */

/* Responsive adjustments - Keep all elements but optimize spacing */
@media only screen and (max-width: 1199px) {
    .banner-section .banner-content .title {
        font-size: 3rem !important;
    }
    
    .banner-section .banner-content p {
        width: 70% !important;
    }
}

@media only screen and (max-width: 991px) {
    .banner-section {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        min-height: 90vh;
    }
    
    .banner-section .banner-content .title {
        font-size: 2.5rem !important;
    }
    
    .banner-section .banner-content p {
        width: 80% !important;
    }

    .hero-expandable-text.expanded {
        max-height: 350px;
    }
}

@media only screen and (max-width: 767px) {
    .banner-section {
        padding-top: 80px !important;
        padding-bottom: 50px !important;
        min-height: auto;
    }
    
    .banner-section .banner-content .title {
        font-size: 2.2rem !important;
    }
    
    .banner-section .banner-content .sub-title {
        font-size: 1.1rem !important;
    }
    
    .banner-section .banner-content p {
        font-size: 0.95rem !important;
        width: 100% !important;
    }
    
    .hero-read-more-btn {
        padding: 9px 20px;
        font-size: 0.84rem;
        gap: 6px;
    }

    .hero-expandable-text.expanded {
        max-height: 400px;
    }

    .banner-section .row {
        min-height: auto !important;
    }
}

@media only screen and (max-width: 575px) {
    .banner-section {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
        min-height: auto;
    }
    
    .banner-section .banner-content .title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .banner-section .banner-content .sub-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .banner-section .banner-content p {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .hero-read-more-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .hero-expandable-text.expanded {
        max-height: 500px;
    }

    .banner-section .row {
        min-height: auto !important;
    }
}

@media only screen and (max-width: 400px) {
    .banner-section {
        padding-top: 60px !important;
        padding-bottom: 30px !important;
    }

    .banner-section .banner-content .title {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    .banner-section .banner-content .sub-title {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .banner-section .banner-content p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    .hero-read-more-btn {
        padding: 7px 16px;
        font-size: 0.78rem;
    }

    .hero-expandable-text.expanded {
        max-height: 600px;
    }
}

/* Handle very tall / portrait viewports (phones at native resolution) */
@media only screen and (orientation: portrait) and (min-height: 1000px) {
    .banner-section {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    .banner-section .row {
        min-height: auto !important;
    }
}

/* Optimize decorative elements for better performance while keeping them visible */
@media only screen and (max-width: 1199px) {
    .banner-group-shape {
        opacity: 0.7 !important;
    }
    
    .banner-element-one,
    .banner-element-two,
    .banner-element-three,
    .banner-element-four,
    .banner-element-five {
        opacity: 0.6 !important;
    }
}

@media only screen and (max-width: 767px) {
    .banner-group-shape {
        opacity: 0.5 !important;
    }
    
    .banner-element-one,
    .banner-element-two,
    .banner-element-three,
    .banner-element-four,
    .banner-element-five {
        opacity: 0.4 !important;
    }
}

/* Ensure content is centered vertically */
.banner-section .row {
    align-items: center !important;
    min-height: min(60vh, 550px) !important;
}

/* Button styling improvements */
.banner-section .btn--base {
    padding: 12px 30px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.banner-section .btn--base:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(165, 38, 115, 0.3) !important;
}

/* Keep banner arrow but optimize its positioning */
.banner-section .banner-arrow {
    margin: 15px 0 !important;
}

/* Optimize decorative elements positioning - keep them visible */
.banner-section .banner-element-one,
.banner-section .banner-element-two,
.banner-section .banner-element-three,
.banner-section .banner-element-four,
.banner-section .banner-element-five {
    opacity: 0.8 !important;
    z-index: 1 !important;
}

/* Ensure proper z-index layering */
.banner-section .banner-content {
    z-index: 10 !important;
    position: relative !important;
}

/* Keep banner text visible */
.banner-section .banner-text {
    opacity: 0.9 !important;
    z-index: 2 !important;
}

/* =============================================
   Home Page – Service Images Responsive
   ============================================= */
.service-img {
    object-fit: cover;
    height: 400px;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 12px;
}

.service-image-container {
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

@media only screen and (max-width: 991px) {
    .service-img {
        height: 300px;
    }

    .services-showcase .row.g-5 {
        --bs-gutter-y: 2.5rem;
    }
}

@media only screen and (max-width: 767px) {
    .service-img {
        height: 250px;
    }

    .services-showcase .section-title {
        font-size: 1.8rem !important;
    }

    .services-showcase h3 {
        font-size: 1.3rem !important;
    }

    .services-showcase p {
        font-size: 0.92rem !important;
    }
}

@media only screen and (max-width: 575px) {
    .service-img {
        height: 220px;
    }

    .services-showcase .section-title {
        font-size: 1.5rem !important;
    }

    .services-showcase h3 {
        font-size: 1.15rem !important;
    }

    .services-showcase p {
        font-size: 0.88rem !important;
    }
}

@media only screen and (max-width: 400px) {
    .service-img {
        height: 180px;
    }
}

/* =============================================
   Home Page – CTA / Subscribe Form
   ============================================= */
.cta-form {
    margin-top: 20px;
}

.cta-form-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.cta-input {
    padding: 14px 130px 14px 20px;
    font-size: 0.95rem;
    height: 52px;
    color: #333;
    border-radius: 8px;
    border: none;
    width: 100%;
    background: #fff;
    outline: none;
}

.cta-input::placeholder {
    color: #999;
}

.cta-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 22px;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 6px;
}

/* Mobile: stack input and button */
@media only screen and (max-width: 767px) {
    .subscribe-section {
        padding: 20px 0 !important;
    }

    .subscribe-section .subscribe-content {
        padding: 30px 20px !important;
    }

    .subscribe-section .subscribe-content .title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    .subscribe-section .subscribe-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .cta-form-inner {
        flex-direction: column;
        gap: 10px;
    }

    .cta-input {
        padding: 14px 16px;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .cta-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 14px 20px;
        border-radius: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .subscribe-section .subscribe-area {
        border-radius: 12px !important;
        overflow: hidden;
    }

    .subscribe-section .col-xl-7.offset-xl-5 {
        margin-left: 0 !important;
    }

    .subscribe-section .subscribe-element-one,
    .subscribe-section .subscribe-element-two,
    .subscribe-section .subscribe-element-three {
        display: none !important;
    }
}

@media only screen and (max-width: 575px) {
    .subscribe-section .subscribe-content {
        padding: 25px 16px !important;
    }

    .subscribe-section .subscribe-content .title {
        font-size: 1.25rem !important;
    }

    .subscribe-section .subscribe-content p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }
}
