/* --- Custom CSS for Premium Look & Fixes (Minified and Optimized) --- */
:root {
    --bs-primary: #721C24;
    --bs-secondary: #343a40;
    --bs-light: #f8f9fa;
    --font-main: 'Poppins', sans-serif;

    /* New custom variables for sticky elements */
    --primary-color: var(--bs-primary);
    --primary-hover: #5a171d;
    --secondary-color: var(--bs-secondary);
    --accent-color: var(--bs-primary);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--bs-secondary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--bs-secondary);
    font-weight: 700;
}

/* General Utility */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Global CTA Button Styling */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #5a171d;
    border-color: #5a171d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary-outline {
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    background-color: transparent;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 5px;
    text-decoration: none;
}

.btn-secondary-outline:hover {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

.navbar-brand img {
    height: 60px;
    max-width: 100%;
}

.nav-link {
    font-weight: 600;
    color: var(--bs-secondary) !important;
    transition: color 0.2s;
    padding-right: 15px !important;
    padding-left: 15px !important;
    position: relative;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-primary);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after {
    width: calc(100% - 30px);
}

/* Section Heading */
.section-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.section-heading-icon i {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-right: 10px;
}

.global-section-heading {
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.global-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* Custom Section Styling - ADJUSTED PADDING */
.section-padding {
    padding: 30px 0;
    /* Reduced from 100px to 80px */
}

.bg-light-custom {
    background: linear-gradient(45deg, #fcebeb, #f3f3f3) !important;
}

/*
  */
.hero-section {
    padding-top: 80px;

}
/* About Section */
.pillar-list li {
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.pillar-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bs-primary);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}

.cta-block {
    border-left: 5px solid var(--bs-primary);
    background-color: #fcebeb;
    padding: 30px;
    border-radius: 4px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ---------- PROJECT DETAILS TABLE (FINAL RESPONSIVE FIX) ---------- */
.project-table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding-bottom: 6px;
    /* spacing for scrollbar */
}

.project-table-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.project-table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
    border-radius: 10px;
}

.project-table-scroll-wrapper::-webkit-scrollbar-track {
    background-color: #f3f3f3;
}

.project-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    background: #fff;
}

.project-info-table th,
.project-info-table td {
    text-align: center;
    padding: 18px 15px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.project-info-table thead th {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.project-info-table .data-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.project-info-table .data-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-secondary);
}

@media (max-width: 991.98px) {
    
    /* Enables horizontal scrolling for the table wrapper */
    .project-table-wrapper {
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 15px; 
    }

    /* Sets a minimum width to force scrolling */
    .project-table-wrapper .project-info-table {
        min-width: 750px; 
        margin-bottom: 0; 
    }

    /* Prevents text wrap in table cells */
    .project-table-wrapper .project-info-table td,
    .project-table-wrapper .project-info-table th {
        white-space: nowrap; 
    }
    
   
    .project-info-table th {
        display: table-cell; 
    }
    .project-info-table td {
        display: table-cell; 
        text-align: center !important; 
        padding: 15px 20px;
        border-bottom: none;
    }
    .project-info-table .data-label {
        display: none; /* Hides mobile-specific labels */
    }
}

/* Unit Detail Cards */
.unit-detail-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 5px solid var(--bs-primary);
}

.unit-detail-card h5 {
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0;
}

/* Amenity Card - FIXED HEIGHT */
.amenity-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid transparent;
    overflow: hidden;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--bs-primary);
}

.amenity-card i {
    font-size: 3.5rem;
    color: var(--bs-primary);
    margin-bottom: 20px;
}

.amenity-card h4 {
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.amenity-card p {
    margin-bottom: 0;
}

/* CTA & Navigation Wrapper Styling */
.cta-nav-wrapper {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-nav-inner {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.cta-content {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
}

.cta-content h4 {
    margin-bottom: 10px;
    color: var(--bs-primary);
    font-size: 1.5rem;
}

.cta-nav-wrapper .get-exclusive-pricing {
    display: block;
    margin-left: 20px;
    padding: 10px 20px;
}

/* Swiper Fixes */
.amenities-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto;
}

.amenities-swiper {
    overflow: hidden !important;
    padding-right: 2px;
}

.floorplan-swiper {
    overflow: hidden !important;
    padding: 0 !important;
}

.floorplan-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto !important;
    max-width: calc(100% / 3 - 40px);
    /* 3 cards max for desktop */
}

/* Gallery Swiper */
.gallery-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Why Choose Section */
.choice-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--bs-primary);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.choice-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.choice-card i {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--bs-secondary)!important;
    color: white !important;
    padding: 40px 0 !important;
    font-size: 0.95rem !important;
}

/* FAQ Accordion Styling Fix */
.accordion-button {
    color: var(--bs-secondary);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--bs-primary);
    box-shadow: none;
    border-color: var(--bs-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(114, 28, 36, 0.25);
    border-color: var(--bs-primary);
}

.accordion-button::after {
    filter: grayscale(100%) brightness(200%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Video Section with Play Button */
.video-container {
    position: relative;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.video-play-button i {
    color: var(--bs-primary);
    font-size: 2rem;
    margin-left: 5px;
}

.video-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

/* Swiper Pagination Custom Color */
.swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--bs-primary);
}

/* Media Query for Mobile Responsiveness */
@media (max-width: 991.98px) {

    /* ADJUSTED SECTION PADDING FOR MOBILE */
    .section-padding {
        padding: 60px 0;
    }

    .navbar-brand img {
        height: 50px;
    }

    .gallery-slide {
        height: 300px;
    }

    .cta-nav-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .cta-nav-inner {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .cta-content {
        padding: 0;
    }

    .cta-content h4 {
        margin-top: 10px;
    }

    .cta-nav-wrapper .get-exclusive-pricing {
        width: 100%;
        margin-left: 0;
    }

    .project-info-table tr {
        flex-direction: column;
    }

    .project-info-table th,
    .project-info-table td {
        border-right: none;
        padding: 15px 10px;
    }

    .amenity-card {
        height: 280px;
        padding: 20px;
    }

    .amenity-card i {
        font-size: 2.5rem;
    }

    .amenity-card h4 {
        font-size: 1.1rem;
        min-height: 50px;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
    }

    .video-play-button i {
        font-size: 1.5rem;
    }

    /* Floor Plan Mobile - Single Slide */
    .floorplan-swiper .swiper-slide {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .amenity-card {
        height: 250px;
        padding: 15px;
    }

    .amenity-card i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .amenity-card h4 {
        font-size: 1rem;
        min-height: 40px;
    }

    .amenity-card p {
        font-size: 0.9rem;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
    }

    .video-play-button i {
        font-size: 1.2rem;
    }

    /* Unit Detail Cards Mobile */
    .unit-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .unit-detail-card .text-end {
        text-align: center !important;
        margin: 10px 0;
    }

    /* Button Sizing for Mobile */
    .btn-primary,
    .btn-secondary-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Investment Section Mobile */
    .location-btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .location-btn-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 50px 0;
    }

    .unit-detail-card {
        padding: 15px;
    }

    .btn-primary,
    .btn-secondary-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ===== PREMIUM OFFER PANEL FINISH ===== */

.offer-panel{
    background:linear-gradient(180deg,#7b1e25,#5a171d);
    color:#fff;
    padding:22px 16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

/* IMAGE SIZE CONTROL */
.offer-image-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}

.offer-img{
    max-width:180px;      /* DESKTOP */
    width:100%;
    height:auto;
}

/* BENEFITS LIST – PREMIUM ALIGNMENT */
.offer-benefits{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.benefit-item{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:500;
    color:#ffe9b3;
    padding-left:8px;
}

.benefit-item i{
    color:#ffd966;
    font-size:14px;
    min-width:16px;
}

/* ---------- MOBILE OPTIMIZATION ---------- */
@media(max-width:767px){

    .offer-panel{
        padding:20px 14px;
    }

    .offer-img{
        max-width:130px;   /* MOBILE FIX */
    }

    .offer-benefits{
        flex-direction:row;
        justify-content:space-between;
        gap:6px;
        margin-top:10px;
    }

    .benefit-item{
        flex-direction:column;
        gap:4px;
        font-size:11px;
        text-align:center;
        padding-left:0;
    }

    .benefit-item i{
        font-size:13px;
    }
}
