/* ABOUT SECTION GRID */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Eyebrow (ABOUT) */
.about-eyebrow {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Golden Title */
.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c8a350;
    /* Avant gold color */
    margin-bottom: 1.5rem;
}

/* Paragraph Styling */
.about-text {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
    max-width: 90%;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

/* Right Image */
.about-right img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .about-flex {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-right img {
        margin-top: 1rem;
    }

}

/* Title */
.amenities-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.amenities-title span {
    color: #c8a350;
}

/* Wrapper */
.amenities-container {
    position: relative;
}

/* Swiper */
.amenities-swiper {
    padding: 1.5rem 0 2.5rem;
}

/* Cards */
.amenity-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 1rem;
}

.amenity-card h3 {
    font-size: 1.4rem;
    color: #c8a350;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

/* FIXED ARROW BUTTONS OUTSIDE */
.amenities-prev,
.amenities-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #c8a350;
    border-radius: 50%;
    cursor: pointer;
}

.amenities-prev {
    left: -55px;
    /* fully outside */
}

.amenities-next {
    right: -55px;
    /* fully outside */
}

/* Arrow Icons */
.amenities-prev::after,
.amenities-next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 43%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(225deg);
}

.amenities-prev::after {
    left: 58%;
}

.amenities-next::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Responsive Fix */
@media (max-width: 900px) {
    .amenities-prev {
        left: 0;
    }

    .amenities-next {
        right: 0;
    }
}

/* Container */
.configuration-container {
    position: relative;
    padding-top: 1rem;
}

/* Cards identical to amenities */
.config-card {
    text-align: center;
}

.config-card img {
    width: 100%;
    height: 450px;
    /* SAME as amenities images */
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 1rem;
}

.config-card h3 {
    font-size: 1.4rem;
    color: #c8a350;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

/* Arrows (exact same style as amenities) */
.config-prev,
.config-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #c8a350;
    border-radius: 50%;
    cursor: pointer;
}

.config-prev {
    left: -55px;
}

.config-next {
    right: -55px;
}

.config-prev::after,
.config-next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(225deg);
}

.config-next::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .config-prev {
        left: 0;
    }

    .config-next {
        right: 0;
    }

    .config-card img {
        height: 300px;
    }

    .amenity-card img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .amenities-next,
    .config-next {
        right: 0;
        bottom: -22px;
        top: auto;
    }

    .amenities-prev,
    .config-prev {
        left: auto;
        right: 54px;
        top: auto;
        bottom: -22px;
    }

    .config-card h3 {
        text-align: left;
    }
}

.content-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

.content-list {
    margin: auto;
    padding: 0%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    max-width: fit-content;
    /* justify-content: center; */
}

.content-list .name,
.value {
    font-size: 1.3rem;
    display: block;
    font-weight: bold;

}

.content-list li {
    display: flex;
    flex-direction: column;
    padding: 1em;
    border: 1px solid rgb(237, 237, 237);
    /* border: 1px solid #c8a350; */
    border-radius: 12px;
    min-width: fit-content;
}

.content-list .name {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 400;
    color: #c8a350;
}

/* Siddeshwar projects grid */
.sg-section-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
    max-width: 720px;
}

.sg-section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(193, 157, 96, 0.1);
    color: #c8a350;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    width: fit-content;
}

.sg-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.sg-project-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sg-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.12);
    border-color: rgba(193, 157, 96, 0.35);
}

.sg-project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.sg-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
    display: grid;
    gap: 0.75rem;
    grid-template-rows: auto auto 1fr;
    /* height: 100%; */
}

.sg-card-body h3 {
    margin: 0;
}

.sg-card-body p {
    margin: 0;
    /* color: #4b5563; */
}

.project-card-btn {
    margin-top: auto;
}

/* Project modal styles */
html.modal-open,
body.modal-open {
    overflow: hidden;
}

.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 19, 35, 0.75);
    background: #c8a35026;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1), visibility 1000ms ease;
    backdrop-filter: blur(8px);
    overflow-y: auto;
    will-change: opacity, visibility;
}

.project-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    /* Allow the overlay to scroll when modal content exceeds viewport */
    overflow: hidden;
    overscroll-behavior: contain;
}

.project-modal {
    width: min(1180px, 90vw);
    height: auto;
    max-height: 96vh;
    background: #ffffff;
    border-radius: 22px;
    /* Allow the modal itself to scroll if content is tall */
    overflow: auto;
    position: relative;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.94);
    opacity: 0;
    filter: blur(6px);
    transform-origin: center top;
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1), filter 1000ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.project-modal-overlay.open .project-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.project-modal__banner img {
    width: 100%;
    height: 420px;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.project-modal__banner {
    position: relative;
    overflow: hidden;
    /* Prevent flex container from stretching the banner when modal content grows */
    flex: 0 0 auto;
    /* Explicit height on the banner container keeps layout stable */
    height: 420px;
}

.project-modal__banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.55) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    pointer-events: none;
}

.project-modal__banner-chip {
    background: rgba(0, 0, 0, 0.55);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    max-width: 520px;
}

.project-modal__banner-overlay h3 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.project-modal__banner-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.project-modal__body {
    flex: 1;
    padding: 1.5rem 1.75rem 2rem;
    overflow: visible;
    display: flex;
}

.project-modal__body h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.8rem;
    color: #c8a350;
}

.project-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.25rem;
    width: 100%;
    /* Stretch both columns to equal height so visual matches text height */
    align-items: stretch;
}

.project-modal__text {
    display: grid;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    border-radius: 14px;
    /* box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06); */
    /* Let the modal (outer container) handle scrolling instead of an inner scroll area */
    max-height: none;
    overflow-y: visible;
    /* Enable vertical scrolling only */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #c8a350 #f1f5f9;
    overscroll-behavior: contain;
}

/* Webkit browsers (Chrome, Safari, Edge) custom scrollbar */
.project-modal__text::-webkit-scrollbar {
    width: 6px;
}

.project-modal__text::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.project-modal__text::-webkit-scrollbar-thumb {
    background: #c8a350;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.project-modal__text::-webkit-scrollbar-thumb:hover {
    background: #b89347;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .project-modal__text {
        max-height: none;
    }
}

.project-modal__text h4 {
    margin: 0.4rem 0 0;
    font-size: 1.6rem;
    color: #1f2937;
}

.project-modal__text p {
    margin: 0;
    color: #4b5563;
}

.project-modal__visual {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: stretch;
}

.project-modal__visual img {
    width: 100%;
    /* Let the image fill the visual container's full height so it matches the text column */
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

.project-modal-close {
    /* Keep the close button fixed in the viewport so it remains reachable while modal scrolls */
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.project-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .project-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 900px) {
    .sg-project-card img {
        height: 350px;
    }

    .project-modal-overlay.open {
        overflow: hidden;
    }

    .project-modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .project-modal {
        height: 90vh;
    }

    /* .project-modal__banner img {
        height: 320px;
        min-height: 300px;
    } */

    /* On narrow screens the grid becomes a single column — restore a fixed visual height */
    .project-modal__visual img {
        height: 320px;
        max-height: none;
    }

    .project-modal__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-modal__body {}

    .project-modal__visual img {
        max-height: 360px;
    }
}

