/* Custom CSS for SK Realtors Projects UI/UX Enhancements */

/* ==========================================================
   1. Projects Listing Page: Perfect 1:1 Square Thumbnail (object-fit: cover)
   ========================================================== */

.projects-wrapper .row {
    display: flex;
    flex-wrap: wrap;
}

.projects-wrapper .col-lg-6,
.projects-wrapper .col-lg-4 {
    display: flex;
    margin-bottom: 40px;
}

.renvia-project-item.style-four {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
}

.renvia-project-item.style-four:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 16:10 Landscape Premium Card Thumbnail Container */
.renvia-project-item.style-four .project-thumbnail {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 13 !important;
    background-color: #f4f6f8;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.renvia-project-item.style-four .project-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.4s ease;
}

.renvia-project-item.style-four:hover .project-thumbnail img {
    transform: scale(1.03);
}

/* Card Content Flex Alignment */
.renvia-project-item.style-four .project-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.renvia-project-item.style-four .project-meta {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.renvia-project-item.style-four .title {
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.renvia-project-item.style-four p {
    min-height: 68px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.renvia-project-item.style-four .read-more {
    margin-top: auto;
}


/* ==========================================================
   2. Project Details Page: Hero Thumbnail (object-fit: cover)
   ========================================================== */

.project-details-wrapper .project-main .project-hero-thumbnail {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f4f6f8;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-details-wrapper .project-main .project-hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .project-details-wrapper .project-main .project-hero-thumbnail {
        height: 500px;
    }
}

@media (max-width: 575px) {
    .project-details-wrapper .project-main .project-hero-thumbnail {
        height: 350px;
    }
}


/* ==========================================================
   3. Project Details Page: Photos (16:13) & Plans (16:15) Media Items
   ========================================================== */

.media-slider-container {
    position: relative;
    margin: 15px -10px 25px -10px;
}

.media-slide-wrap {
    padding: 0 10px;
}

/* Photos Item Aspect Ratio 16:13 */
.media-photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 13;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f4f6f8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Plans Item Aspect Ratio 16:15 */
.media-plan-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 15;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f4f6f8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.media-photo-item img,
.media-plan-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.media-photo-item:hover img,
.media-plan-item:hover img {
    transform: scale(1.04);
}

/* Single Centered Item Box */
.media-single-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 25px;
}

.media-single-centered {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Dual Grid Box */
.media-dual-grid {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Lightbox Zoom Overlay */
.media-photo-item .zoom-overlay,
.media-plan-item .zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 71, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.media-photo-item:hover .zoom-overlay,
.media-plan-item:hover .zoom-overlay {
    opacity: 1;
}

.media-photo-item .zoom-overlay i,
.media-plan-item .zoom-overlay i {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color, #d8b35a);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.media-photo-item:hover .zoom-overlay i,
.media-plan-item:hover .zoom-overlay i {
    transform: scale(1.08);
}

/* Slider Navigation Buttons */
.media-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--heading-color, #0f2747);
    border: 1.5px solid var(--heading-color, #0f2747);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-slider-nav-btn:hover {
    background-color: var(--heading-color, #0f2747);
    color: var(--primary-color, #d8b35a);
    border-color: var(--heading-color, #0f2747);
    transform: translateY(-50%) scale(1.08);
}

.media-slider-nav-btn i {
    font-size: 16px;
}

.gallery-slider-prev,
.plans-slider-prev {
    left: -20px;
}

.gallery-slider-next,
.plans-slider-next {
    right: -20px;
}

@media (max-width: 575px) {

    .gallery-slider-prev,
    .plans-slider-prev {
        left: 5px;
    }

    .gallery-slider-next,
    .plans-slider-next {
        right: 5px;
    }

    .media-slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}


/* ==========================================================
   4. Property Video & Map Player Container (Exact Sizing Match)
   ========================================================== */

.property-video-player {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    background-color: #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.map-box iframe,
.map-style-container iframe {
    width: 100%;
    height: 650px;
    border-radius: 24px;
    border: 0;
    display: block;
}

@media (max-width: 991px) {

    .property-video-player,
    .map-box iframe,
    .map-style-container iframe {
        height: 500px;
    }
}

@media (max-width: 575px) {

    .property-video-player,
    .map-box iframe,
    .map-style-container iframe {
        height: 350px;
    }
}


/* ==========================================================
   6. Ensure Bootstrap Modals & Overlay Render ABOVE Sticky Navbar Header
   ========================================================== */

.modal-backdrop {
    z-index: 100000 !important;
}

.modal {
    z-index: 100001 !important;
}


/* ==========================================================
   5. Modern Circular Navigation Arrows
   ========================================================== */

.media-swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a2530;
    border: 2px solid #c5a880;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.media-swiper-nav-btn:hover {
    background-color: #c5a880;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.media-swiper-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-swiper-prev,
.layout-swiper-prev {
    left: -15px;
}

.gallery-swiper-next,
.layout-swiper-next {
    right: -15px;
}

@media (max-width: 575px) {

    .gallery-swiper-prev,
    .layout-swiper-prev {
        left: 5px;
    }

    .gallery-swiper-next,
    .layout-swiper-next {
        right: 5px;
    }
}

/* ==========================================================
   7. Blog Listing & Home Page Blog Cards Uniformity & Equal Alignment
   ========================================================== */

/* Make Bootstrap row columns flex containers so all blog items stretch to equal height and start at column 1 */
.renvia-blog-sec .row,
.renvia-blog-grid-sec .row {
    justify-content: flex-start !important;
}

.renvia-blog-sec .row>[class*="col-"],
.renvia-blog-grid-sec .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.renvia-blog-post-item.style-one {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff;
}

/* Ensure all blog thumbnails have identical dimensions & aspect ratio (16:10) regardless of uploaded image resolution */
.renvia-blog-post-item.style-one .post-thumbnail {
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background-color: #f4f6f8;
    flex-shrink: 0 !important;
}

.renvia-blog-post-item.style-one .post-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.renvia-blog-post-item.style-one .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 24px !important;
    display: block !important;
    transition: transform 0.4s ease;
}

.renvia-blog-post-item.style-one:hover .post-thumbnail img {
    transform: scale(1.04);
}

/* Flex content box to handle unequal text lengths and keep buttons aligned */
.renvia-blog-post-item.style-one .post-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding-top: 20px;
}

.renvia-blog-post-item.style-one .post-content .post-tags {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.renvia-blog-post-item.style-one .post-content .post-tags span a {
    color: var(--primary-color, #d8b35a);
    font-weight: 600;
    font-size: 14px;
}

/* Title styling: consistent font size, line height, and line clamping */
.renvia-blog-post-item.style-one .post-content .title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 62px;
    /* Uniform height for 1 and 2 line titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.renvia-blog-post-item.style-one .post-content .title a {
    color: inherit;
    transition: color 0.3s ease;
}

.renvia-blog-post-item.style-one .post-content .title a:hover {
    color: var(--primary-color, #d8b35a);
}

/* Always push Read Details button to the bottom of the card and limit underline to text width */
.renvia-blog-post-item.style-one .post-content .read-more {
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    width: fit-content !important;
    width: -moz-fit-content !important;
    gap: 8px;
    padding-top: 10px;
}

/* ==========================================================
   8. Content-Aware Paragraph & Text Container Alignment Rules
      (Applied only when characterCount > 250 AND wordCount > 35)
   ========================================================== */

.long-paragraph-justify {
    text-align: justify !important;
    text-align-last: left !important;
}

/* ==========================================================
   9. Mobile Responsive View Enhancements (Under 992px & 768px)
      - Reduced section padding top & bottom
      - Center-aligned images and image containers
      - Center-aligned footer content
   ========================================================== */

@media (max-width: 991.98px) {

    /* 1. Reduce top and bottom padding for sections on tablet/mobile */
    section,
    .pt-130,
    .pt-125,
    .pt-120,
    .pt-115,
    .pt-110,
    .pt-105,
    .pt-100,
    .pt-95,
    .pt-90,
    .pt-85,
    .pt-80 {
        padding-top: 45px !important;
    }

    .pb-130,
    .pb-125,
    .pb-120,
    .pb-115,
    .pb-110,
    .pb-105,
    .pb-100,
    .pb-95,
    .pb-90,
    .pb-85,
    .pb-80 {
        padding-bottom: 45px !important;
    }

    .mb-60,
    .mb-55,
    .mb-50,
    .mb-45,
    .mb-40 {
        margin-bottom: 25px !important;
    }

}

@media (max-width: 767.98px) {

    /* Further tighten section top and bottom padding on mobile screens */
    section,
    .pt-130,
    .pt-125,
    .pt-120,
    .pt-115,
    .pt-110,
    .pt-105,
    .pt-100,
    .pt-95,
    .pt-90,
    .pt-85,
    .pt-80,
    .pt-75,
    .pt-70 {
        padding-top: 35px !important;
    }

    .pb-130,
    .pb-125,
    .pb-120,
    .pb-115,
    .pb-110,
    .pb-105,
    .pb-100,
    .pb-95,
    .pb-90,
    .pb-85,
    .pb-80,
    .pb-75,
    .pb-70 {
        padding-bottom: 35px !important;
    }

    .mb-60,
    .mb-55,
    .mb-50,
    .mb-45,
    .mb-40,
    .mb-35,
    .mb-30 {
        margin-bottom: 20px !important;
    }

    .page-hero {
        padding-top: 65px !important;
        padding-bottom: 35px !important;
    }

    /* Center align large content images and hero image containers on mobile */
    .renvia-image-box,
    .renvia-image,
    .renvia-ratings-box,
    .renvia-avatar-box,
    .renvia-feature-item .icon,
    .member-image,
    .award-thumb,
    .project-thumbnail,
    .post-thumbnail,
    .sidebar-widget img,
    .author-thumb,
    .project-hero-thumbnail,
    .media-photo-item,
    .media-plan-item,
    .property-video-player {
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    .renvia-image-box img,
    .renvia-image img,
    .renvia-about_one .renvia-image-box img,
    .renvia-feature_one .renvia-image img,
    .renvia-testimonial_one .renvia-image img,
    .member-image img,
    .award-thumb img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .renvia-image-box {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Iconic Left Box (Feature Items) Mobile Alignment Fix */
    .renvia-iconic-left-box.style-one {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 20px !important;
    }

    .renvia-iconic-left-box.style-one .icon {
        flex: 0 0 45px !important;
        width: 45px !important;
        height: 45px !important;
        margin-right: 15px !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .renvia-iconic-left-box.style-one .icon img {
        display: inline-block !important;
        margin: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .renvia-iconic-left-box.style-one .content {
        flex: 1 1 auto !important;
    }

    .renvia-iconic-left-box.style-one .content h5 {
        max-width: none !important;
        font-size: 18px !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    /* Checklist Bullet Items Mobile Alignment Fix */
    .check-list.style-one {
        padding-left: 0 !important;
        margin-bottom: 25px !important;
    }

    .check-list.style-one li {
        display: flex !important;
        align-items: flex-start !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }

    .check-list.style-one li img {
        flex-shrink: 0 !important;
        width: 18px !important;
        height: 18px !important;
        margin-right: 12px !important;
        margin-left: 0 !important;
        margin-top: 3px !important;
        display: inline-block !important;
    }
}

/* ==========================================================
   10. Mobile Responsive Page Content Side Padding
       (Excludes Header & Footer)
   ========================================================== */

@media (max-width: 991.98px) {

    main .container,
    main .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 767.98px) {

    main .container,
    main .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==========================================================
   11. Expandable Width Hover Grid for "What We Offer" Section
   ========================================================== */

.services-expandable-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 480px;
    gap: 14px;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
}

.service-expandable-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    outline: none;
    cursor: pointer;
    background-color: var(--heading-color, #091f5b);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: flex-grow 0.6s cubic-bezier(0.5, 0, 0.3, 1),
        flex 0.6s cubic-bezier(0.5, 0, 0.3, 1),
        transform 0.6s cubic-bezier(0.5, 0, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.5, 0, 0.3, 1),
        opacity 0.6s cubic-bezier(0.5, 0, 0.3, 1);
    z-index: 1;
}

/* Desktop Hover & Focus State Expansion */
.service-expandable-item:hover,
.service-expandable-item:focus-within,
.service-expandable-item:focus {
    flex: 3.5 1 0 !important;
    flex-grow: 3.5 !important;
    z-index: 5;
    box-shadow: 0 14px 35px rgba(9, 31, 91, 0.28);
}

/* Neighboring non-hovered items shrink smoothly */
.services-expandable-grid:hover .service-expandable-item:not(:hover):not(:focus-within) {
    flex: 0.65 1 0 !important;
    flex-grow: 0.65 !important;
    opacity: 0.85;
}

/* Image styling */
.service-expandable-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.5, 0, 0.3, 1), filter 0.5s ease;
    z-index: 1;
}

.service-expandable-item:hover .service-expandable-bg,
.service-expandable-item:focus-within .service-expandable-bg {
    transform: scale(1.08);
}

/* Rich Blue Gradient Overlay on Collapsed Cards */
.service-expandable-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 31, 91, 0.08) 0%,
        rgba(9, 31, 91, 0.42) 50%,
        rgba(9, 31, 91, 0.86) 100%
    );
    transition: opacity 0.4s ease, background 0.4s ease;
    z-index: 2;
}

/* OPENED/EXPANDED CARD: 100% Crystal Clear HD Image with soft dark text shadow vignette at bottom */
.service-expandable-item:hover .service-expandable-overlay,
.service-expandable-item:focus-within .service-expandable-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.65) 100%
    ) !important;
    opacity: 1;
}

/* Content Wrapper inside Panel */
.service-expandable-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 24px 18px;
    box-sizing: border-box;
    width: 100%;
    transition: justify-content 0.4s ease;
}

.service-expandable-item:hover .service-expandable-content,
.service-expandable-item:focus-within .service-expandable-content {
    justify-content: flex-end;
}

/* Header Area - Arrow Button Removed */
.service-expandable-header,
.service-expandable-btn {
    display: none !important;
}

/* Body Area with Vertical Title & Description */
.service-expandable-body {
    width: 100%;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-expandable-item:hover .service-expandable-body,
.service-expandable-item:focus-within .service-expandable-body {
    margin-top: auto;
    margin-bottom: 0;
    align-items: flex-start;
    justify-content: flex-end;
}

/* Collapsed State: Vertical Title reading bottom-to-top, centered vertically (19px font) */
.service-expandable-title {
    color: #ffffff !important;
    font-family: var(--heading-font);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    letter-spacing: 0.5px;
    align-self: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: font-size 0.3s ease, color 0.3s ease, margin 0.3s ease;
}

/* Expanded/Opened State: Horizontal Title */
.service-expandable-item:hover .service-expandable-title,
.service-expandable-item:focus-within .service-expandable-title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    align-self: flex-start;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Description collapses smoothly when panel is narrow, expands when hovered */
.service-expandable-desc {
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--body-font);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.5, 0, 0.3, 1),
        opacity 0.4s ease 0.1s,
        margin-top 0.4s ease;
}

.service-expandable-item:hover .service-expandable-desc,
.service-expandable-item:focus-within .service-expandable-desc {
    max-height: 140px;
    opacity: 1;
    margin-top: 6px;
}

/* Focus Visible for Keyboard Accessibility */
.service-expandable-item:focus-visible {
    outline: 3px solid var(--primary-color, #f8df51);
    outline-offset: 3px;
}

/* Responsive Media Queries */

/* Laptop & Medium Desktop (992px to 1199.98px) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .services-expandable-grid {
        height: 440px;
        gap: 10px;
    }

    .service-expandable-content {
        padding: 18px 14px;
    }

    .service-expandable-title {
        font-size: 17px;
    }

    .service-expandable-item:hover .service-expandable-title,
    .service-expandable-item:focus-within .service-expandable-title {
        font-size: 19px;
    }

    .service-expandable-desc {
        font-size: 13px;
    }
}

/* Tablet Screens (768px to 991.98px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .services-expandable-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: auto;
        gap: 16px;
    }

    .service-expandable-item {
        height: 360px;
        flex: unset !important;
        flex-grow: unset !important;
        opacity: 1 !important;
    }

    .services-expandable-grid:hover .service-expandable-item:not(:hover):not(:focus-within) {
        flex: unset !important;
        flex-grow: unset !important;
        opacity: 1 !important;
    }

    .service-expandable-item:hover,
    .service-expandable-item:focus-within {
        flex: unset !important;
        flex-grow: unset !important;
        transform: translateY(-5px);
    }

    .service-expandable-desc {
        max-height: 140px;
        opacity: 1;
        margin-top: 10px;
    }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767.98px) {
    .services-expandable-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    .service-expandable-item {
        height: 220px;
        width: 100%;
        flex: unset !important;
        flex-grow: unset !important;
        border-radius: 16px;
        opacity: 1 !important;
    }

    .services-expandable-grid:hover .service-expandable-item:not(:hover):not(:focus-within) {
        flex: unset !important;
        flex-grow: unset !important;
        opacity: 1 !important;
    }

    .service-expandable-item:hover,
    .service-expandable-item:focus-within,
    .service-expandable-item:active {
        flex: unset !important;
        flex-grow: unset !important;
        transform: translateY(-3px);
    }

    .service-expandable-content {
        padding: 20px 18px;
    }

    .service-expandable-title {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        white-space: normal !important;
    }

    .service-expandable-item:hover .service-expandable-title,
    .service-expandable-item:focus-within .service-expandable-title {
        font-size: 19px !important;
    }

    .service-expandable-desc {
        max-height: 140px;
        opacity: 1;
        margin-top: 8px;
        font-size: 13.5px;
    }
}

/* ==========================================================
   12. Home Page Hero Banner - Horizontal Dots & Transparent White Arrows
   ========================================================== */

.renvia-hero_one {
    position: relative !important;
}

.renvia-hero_one .hero-slider {
    position: relative !important;
}

/* Change Hero Dots from Vertical (rotated 90deg) to Horizontal Bottom Center */
.renvia-hero_one .hero-dots {
    position: absolute !important;
    top: auto !important;
    bottom: 30px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    z-index: 20 !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.renvia-hero_one .hero-dots .slick-dots {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.renvia-hero_one .hero-dots .slick-dots li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.renvia-hero_one .hero-dots .slick-dots li button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.renvia-hero_one .hero-dots .slick-dots li.slick-active button {
    width: 28px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

/* Fully Transparent Navigation Arrows with Light Visible White Border & Icon */
.renvia-hero_one .hero-slider .prev,
.renvia-hero_one .hero-slider .next,
.renvia-hero_one .hero-slider .slick-prev,
.renvia-hero_one .hero-slider .slick-next {
    position: absolute !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    z-index: 25 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
}

.renvia-hero_one .hero-slider .prev,
.renvia-hero_one .hero-slider .slick-prev {
    left: 35px !important;
    right: auto !important;
}

.renvia-hero_one .hero-slider .next,
.renvia-hero_one .hero-slider .slick-next {
    right: 35px !important;
    left: auto !important;
}

/* Hover effect: Subtle 20% white fill and pure white border */
.renvia-hero_one .hero-slider .prev:hover,
.renvia-hero_one .hero-slider .next:hover,
.renvia-hero_one .hero-slider .slick-prev:hover,
.renvia-hero_one .hero-slider .slick-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

.renvia-hero_one .hero-slider .prev i,
.renvia-hero_one .hero-slider .next i,
.renvia-hero_one .hero-slider .slick-prev i,
.renvia-hero_one .hero-slider .slick-next i {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Tablet & Mobile responsive positioning (Hide arrows on tablet & mobile < 992px) */
@media (max-width: 991.98px) {
    .renvia-hero_one .hero-dots {
        bottom: 20px !important;
    }

    .renvia-hero_one .hero-slider .prev,
    .renvia-hero_one .hero-slider .next,
    .renvia-hero_one .hero-slider .slick-prev,
    .renvia-hero_one .hero-slider .slick-next {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .renvia-hero_one .hero-dots {
        bottom: 15px !important;
    }
}

/* ==========================================================
   13. Responsive Hero Banner (Desktop, Tablet, Mobile Views)
   ========================================================== */
.hero-responsive-bg {
    background-image: var(--bg-desktop) !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Tablet View (768px to 991.98px) */
@media (max-width: 991.98px) {
    .hero-responsive-bg {
        background-image: var(--bg-tablet) !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .renvia-hero_one .single-slider {
        height: 75vw !important;
        min-height: 420px !important;
        max-height: 650px !important;
        padding: 30px 0 !important;
    }
}

/* Mobile View (<= 767.98px) */
@media (max-width: 767.98px) {
    .hero-responsive-bg {
        background-image: var(--bg-mobile) !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .renvia-hero_one .single-slider {
        height: 120vw !important;
        min-height: 360px !important;
        max-height: 560px !important;
        padding: 20px 0 !important;
    }
}

/* Small Mobile View (<= 480px) */
@media (max-width: 480.98px) {
    .renvia-hero_one .single-slider {
        height: 125vw !important;
        min-height: 340px !important;
        max-height: 520px !important;
        padding: 15px 0 !important;
    }
}

/* ==========================================================
   14. Project Details Page: Features & Amenities List
       - Remove max-height scrolling
       - Align 5 features in a single line on desktop
   ========================================================== */
.project-details-wrapper .project-content .content-box .features-amenities-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px 15px !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding: 30px 20px !important;
}

@media (max-width: 1199.98px) {
    .project-details-wrapper .project-content .content-box .features-amenities-list {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 25px 12px !important;
    }
}

@media (max-width: 991.98px) {
    .project-details-wrapper .project-content .content-box .features-amenities-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px 12px !important;
    }
}

@media (max-width: 767.98px) {
    .project-details-wrapper .project-content .content-box .features-amenities-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 10px !important;
        padding: 20px 12px !important;
    }
}

.features-amenities-list .renvia-info-item.style-four .icon i {
    font-size: 20px !important;
    color: var(--primary-color, #f8df51) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 480.98px) {
    .project-details-wrapper .project-content .content-box .features-amenities-list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px !important;
        padding: 18px 12px !important;
    }
}

/* ==========================================================
   13. Contact Page - Modern 2-Column Contact Info Section
   ========================================================== */

.renvia-contact-info-sec {
    background-color: #ffffff;
}

.contact-info-image-box {
    width: 100%;
    height: 100%;
    min-height: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(9, 31, 91, 0.08);
}

.contact-info-img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    display: block;
}

.contact-info-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-content-wrap .section-title h2 {
    color: #091F5B !important;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.contact-info-content-wrap .sub-text {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-info-rows {
    display: flex;
    flex-direction: column;
}

.contact-info-row-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 0;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background-color: #F8DF51;
    color: #091F5B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-row-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-row-label {
    color: #091F5B !important;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.contact-row-value,
.contact-row-value a {
    color: #475569 !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-row-value a:hover {
    color: #091F5B !important;
    text-decoration: underline;
}

.contact-row-divider {
    height: 1px;
    background-color: #e2e8f0;
    width: 100%;
    margin: 4px 0;
}

@media (max-width: 991.98px) {
    .contact-info-image-box {
        min-height: 340px;
        max-height: 420px;
        margin-bottom: 30px;
    }
    
    .contact-info-content-wrap .section-title h2 {
        font-size: 26px;
    }
}

@media (max-width: 575.98px) {
    .contact-info-row-item {
        gap: 14px;
    }
    
    .contact-icon-box {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 17px;
        border-radius: 12px;
    }

    .contact-row-label {
        font-size: 16px;
    }

    .contact-row-value {
        font-size: 14px;
    }
}

/* ==========================================================
   14. Project Details Page: Clear & Crisp Project Information Text
   ========================================================== */

.project-details-wrapper .project-content .project-info-box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 32px 28px !important;
    box-shadow: 0 4px 20px rgba(9, 31, 91, 0.05) !important;
}

.project-details-wrapper .project-content .project-info-box h5,
.project-info-box .info-box-title {
    color: #091F5B !important;
    font-family: var(--body-font, "Plus Jakarta Sans", sans-serif) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

.project-details-wrapper .project-content .content-box h3,
.project-details-wrapper .project-content h3 {
    color: #091F5B !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

.project-details-wrapper .project-content .project-info-box h5:after {
    background-color: #F8DF51 !important;
    height: 3px !important;
    width: 60px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
    border-radius: 2px !important;
}

.project-details-wrapper .project-content .project-info-box ul li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 13px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    gap: 12px !important;
}

.project-details-wrapper .project-content .project-info-box ul li:last-child {
    border-bottom: none !important;
}

/* Clear, sharp, letter-spaced left side labels */
.project-details-wrapper .project-content .project-info-box ul li .info-label {
    color: #091F5B !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Right side values */
.project-details-wrapper .project-content .project-info-box ul li .info-value,
.project-details-wrapper .project-content .project-info-box ul li span:not(.info-label) {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
    text-align: right !important;
    word-break: break-word !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

@media (max-width: 575.98px) {
    .project-details-wrapper .project-content .project-info-box {
        padding: 24px 18px !important;
    }

    .project-details-wrapper .project-content .project-info-box ul li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 10px 0 !important;
    }

    .project-details-wrapper .project-content .project-info-box ul li .info-value,
    .project-details-wrapper .project-content .project-info-box ul li span:not(.info-label) {
        text-align: left !important;
        width: 100% !important;
    }
}