:root {
    /* Updated to #673D77 Theme */
    --primary-color: #673D77;
    --primary-deep: #4D2E59;
    --primary-soft: #8E5E9E;

    /* Accents remain fresh green to contrast the purple */
    --accent-color: #9be15d;
    --accent-soft: #d9f99d;

    --white: #ffffff;
    --light-bg: #FAF8FB; /* Slight purple tint in background */
    --text-dark: #2D2430; /* Darker plum-tinted text */
    --text-light: #6B7280;
    --border-color: #E9E1ED;
    --success-color: #10b981;
    --error-color: #dc2626;
    --shadow-soft: 0 12px 30px rgba(103, 61, 119, 0.1);
    --shadow-strong: 0 16px 40px rgba(77, 46, 89, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img, video {
    -webkit-user-drag: none;
    user-drag: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    color: var(--text-light);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: none;
}

hr {
    border: none;
    border-top: 1px solid #ece7f8;
    margin: 40px 0;
}

.section {
    padding: 70px 20px;
}

.section:nth-child(even) {
    background: var(--light-bg);
}

.section-heading-wrap {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 30px;
}

.section-mini-title {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-soft));
    color: #244014;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.05rem;
    color: #4b5563;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #efe8ff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-image {
    width: 144px;
    height: 144px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 6px;
}

.logo-brand-text {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-deep);
}

.logo-text-sub {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-soft));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-color), #7ddf64);
    color: #17320c;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 4px;
}

/* =============================================
   HERO SECTION — New Background Design
   Subtle Waves + Floating Orbs
   ============================================= */

.hero {
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    padding: 90px 20px;
}

.royal-hero {
    position: relative;
    min-height: 85vh;
    padding: 100px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;

    /* Base background color */
    background-color: #4D2E59;

    /* 🎨 New: Layered floating orbs */
    background-image: radial-gradient(circle at 15% 20%, rgba(217, 249, 157, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(142, 94, 158, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(217, 249, 157, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(103, 61, 119, 0.4) 0%, transparent 40%);

    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: cover, cover, cover, cover;
    background-position: center, center, center, center;
}

/* 🎨 New: Decorative floating orb 1 */
.royal-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 94, 158, 0.15), transparent 70%);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

/* 🎨 New: Decorative floating orb 2 */
.royal-hero::after {
    content: "";
    position: absolute;
    bottom: 10%;
    left: -8%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 249, 157, 0.08), transparent 70%);
    pointer-events: none;
    animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}

/* 🎨 New: Floating animation for orbs */
@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

.hero-small {
    min-height: 260px;
    padding: 60px 20px;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    letter-spacing: -0.5px;
}

.hero-tagline {
    color: #d9f99d;
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero-subtitle-strong {
    color: #ffffff;
    font-weight: 600;
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* Glass card effect for hero content */
.hero-content-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #673D77, #4D2E59);
    color: #fff;
    box-shadow: 0 10px 24px rgba(103, 61, 119, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8E5E9E, #673D77);
    box-shadow: 0 14px 28px rgba(103, 61, 119, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #7ddf64);
    color: #17320c;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.9rem;
}

/* Grids / Cards */
.features-grid,
.projects-grid,
.services-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.feature-card,
.project-card,
.service-card,
.value-card,
.location-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    border: 1px solid #eee7fb;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-card:hover,
.project-card:hover,
.service-card:hover,
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

/* =============================================
   OPERATING LOCATIONS — New Background Design
   Removed checkered pattern, added soft orbs
   ============================================= */

.operating-locations-enhanced {
    background: radial-gradient(circle at left top, rgba(155, 225, 93, 0.12), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f8f4ff 100%);
}

.location-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 35px;
}

.district-card {
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    position: relative;
}

/* 🎨 New: Soft glow orbs instead of checkered pattern */
.district-raigad {
    background: radial-gradient(circle at 100% 0%, rgba(217, 249, 157, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(103, 61, 119, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #4D2E59 0%, #673D77 100%);
}

.district-raigad::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 249, 157, 0.07), transparent 70%);
    pointer-events: none;
}

.district-ratnagiri {
    background: radial-gradient(circle at 100% 100%, rgba(142, 94, 158, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 20%, rgba(217, 249, 157, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #673D77 0%, #8E5E9E 100%);
}

.district-ratnagiri::before {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    pointer-events: none;
}

/* Ensure district content stays above decorative elements */
.district-card > * {
    position: relative;
    z-index: 2;
}

.district-card-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.district-card h3,
.district-card p {
    color: #fff;
}

.district-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

/* =============================================
   LOCATION PILLS — Refined Responsive Grid
   ============================================= */

.location-pill-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(clamp(130px, 22%, 175px), 100%), 1fr));
    gap: 12px;
    margin-top: 22px;
    align-items: stretch;
    justify-content: start;
}

.location-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    height: 100%;
    min-height: 52px;
    width: 100%;
}

.location-pill::before {
    content: "📍";
    font-size: 1.05rem;
    flex-shrink: 0;
}

.location-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Raigad District — Green-tinted pills */
.district-raigad .location-pill {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.14),
    rgba(217, 249, 157, 0.1));
    border: 1px solid rgba(217, 249, 157, 0.3);
}

.district-raigad .location-pill:hover {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.24),
    rgba(217, 249, 157, 0.2));
    border-color: rgba(217, 249, 157, 0.5);
}

/* Ratnagiri District — Soft purple-tinted pills */
.district-ratnagiri .location-pill {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.12),
    rgba(142, 94, 158, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.district-ratnagiri .location-pill:hover {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.22),
    rgba(142, 94, 158, 0.24));
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive location pills */
@media (max-width: 1024px) {
    .location-pill-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(clamp(120px, 28%, 160px), 100%), 1fr));
        gap: 10px;
    }

    .location-pill {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .location-pill-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(clamp(110px, 40%, 150px), 100%), 1fr));
        gap: 10px;
    }

    .location-pill {
        padding: 11px 14px;
        font-size: 0.85rem;
    }

    .location-pill::before {
        font-size: 1rem;
    }

    .royal-hero::before,
    .royal-hero::after {
        display: none; /* Remove orbs on mobile for performance */
    }

    .hero-content-card {
        padding: 28px 20px;
        backdrop-filter: blur(6px);
    }
}

@media (max-width: 480px) {
    .location-pill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .location-pill {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* =============================================
   CTA SECTION — Enhanced Background
   ============================================= */

.cta-section {
    text-align: center;
    padding: 85px 20px;
}

.enhanced-cta {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background-color: #673D77;

    background-image: radial-gradient(circle at 20% 50%, rgba(217, 249, 157, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(142, 94, 158, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 30%);
}

.enhanced-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,154.7C960,139,1056,149,1152,138.7C1248,128,1344,96,1392,80L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    pointer-events: none;
}

.enhanced-cta h2 {
    color: #ffffff;
    font-size: 2.4rem;
    margin-bottom: 18px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.cta-highlight-text {
    color: #d9f99d;
    font-size: 1.18rem;
    font-weight: 700;
    max-width: 760px;
    margin: 0 auto 26px;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.enhanced-cta .btn {
    position: relative;
    z-index: 2;
}

/* Media placeholders */
.media-gallery-section {
    background: linear-gradient(180deg, #fcfbff 0%, #f6f0ff 100%);
}

.media-scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-deep));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.media-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e9ddff;
}

.media-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.media-scroll-wrapper::-webkit-scrollbar-track {
    background: #ede9fe;
    border-radius: 20px;
}

.media-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-soft));
    border-radius: 20px;
}

.media-card {
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    padding: 24px;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #ebe4fb;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.media-thumb {
    height: 170px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.3rem;
    margin-bottom: 16px;
    color: #fff;
}

.photo-card .media-thumb {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.video-card .media-thumb {
    background: linear-gradient(135deg, #84cc16, #22c55e);
}

/* Project-specific small utilities */
.project-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.project-card ul,
.service-card ul {
    list-style: none;
    margin: 12px 0 18px;
}

.project-card li,
.service-card li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.project-card li::before,
.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #65a30d;
    font-weight: 800;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge-agricultural {
    background: #dcfce7;
    color: #166534;
}

.badge-residential {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-commercial {
    background: #fef3c7;
    color: #92400e;
}

/* Project carousel */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 26px;
}

.carousel-header h2 {
    margin-bottom: 4px;
}

.subtitle {
    margin: 0;
    color: #6b7280;
}

.carousel-nav-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.projects-list {
    display: grid;
    gap: 24px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    align-items: start;
}

.project-carousel-card {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-carousel-card .project-header {
    padding: 18px 20px 0;
}

.project-carousel-card .badge {
    flex-shrink: 0;
}

.inner-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ede9fe;
    flex: 0 0 auto;
    isolation: isolate;
}

.inner-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.inner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.25s ease;
}

.inner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.inner-slide img,
.inner-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: hidden;
}

.media-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.media-slide-link img,
.media-slide-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 0;
    min-height: 0;
    background: #111827;
}

.caro-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(27, 16, 46, 0.68);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 1;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.caro-btn:focus-visible {
    opacity: 1;
}

.caro-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.caro-btn:hover {
    background: rgba(27, 16, 46, 0.9);
    transform: translateY(-50%) scale(1.08);
}

.caro-prev {
    left: 10px;
}

.caro-next {
    right: 10px;
}

.inner-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 4;
}

.inner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.inner-dots span.active {
    background: #fff;
    transform: scale(1.3);
}

.project-card-body {
    padding: 18px 20px 22px;
}

.project-card-body p {
    margin-bottom: 8px;
}

.project-note {
    font-size: 0.92rem;
    color: #6b7280;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #faf8fb;
    border: 1px solid #eee7fb;
}

.detail-meta div {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.detail-carousel {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #ede9fe;
    box-shadow: var(--shadow-soft);
}

.detail-track {
    position: relative;
    width: 100%;
    height: 72vh;
    overflow: hidden;
}

.detail-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    height: 100%;
    transition: opacity 0.25s ease;
}

.detail-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.detail-media {
    width: 100%;
    height: 100%;
}

.detail-media img,
.detail-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
    display: block;
}

.detail-media video {
    background: #000;
}

.detail-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(27, 16, 46, 0.72);
    color: #fff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.detail-prev {
    left: 14px;
}

.detail-next {
    right: 14px;
}

.detail-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.detail-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.detail-dots span.active {
    background: #fff;
}

.scan-error-banner,
.no-media-message {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-weight: 600;
}

.scan-error-banner {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.no-media-message {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

.cta-box {
    background: #fff;
    border: 1px solid #eee7fb;
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
    padding: 38px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: #1b102e;
    color: #fff;
    padding: 55px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 20px;
}

.footer-section h4,
.footer-section h5 {
    color: #d9f99d;
    margin-bottom: 12px;
}

.footer-section p,
.footer-section a {
    color: #ddd6fe;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 18px 0;
}

.footer-bottom {
    text-align: center;
    color: #c4b5fd;
}

/* Contact form retained compatibility */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.contact-form-wrapper {
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #eee7fb;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.1);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.required {
    color: #dc2626;
}

.form-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

/* =============================================
   Project Media Placeholders (10 Guntha Mahad)
   ============================================= */

.project-media-showcase {
    background: #fff;
    border: 2px dashed #673D77;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-soft);
}

.media-section-label {
    text-align: center;
    margin-bottom: 24px;
}

.label-badge {
    display: inline-block;
    background: #673D77;
    color: #fff;
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.media-section-label p {
    margin-top: 10px;
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
}

.placeholder-card {
    border: 2px dashed #d4c5e0;
    background: #FAF8FB;
    min-width: 300px;
    max-width: 300px;
}

.placeholder-card .media-thumb {
    background: linear-gradient(135deg, #e9dff0, #d4c5e0);
    color: #673D77;
}

.placeholder-icon {
    font-size: 3.5rem !important;
}

.placeholder-label {
    color: #6b7280;
    font-style: italic;
    font-size: 0.92rem;
    background: #f3eff6;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 4px solid #673D77;
    margin: 12px 0;
}

.media-tag {
    display: inline-block;
    background: #673D77;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.upload-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}

.project-feature-card {
    border-left: 4px solid #673D77;
}

/* Responsive placeholder cards */
@media (max-width: 768px) {
    .placeholder-card {
        min-width: 260px;
        max-width: 260px;
    }

    .project-media-showcase {
        padding: 18px;
    }
}

/* =============================================
   RESPONSIVE (General)
   ============================================= */

@media (max-width: 991px) {
    .navbar-flex {
        min-height: 94px;
    }

    .logo-image {
        width: 96px;
        height: 96px;
    }

    .logo-text-main {
        font-size: 1.1rem;
    }

    .location-showcase,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .district-card-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero {
        min-height: 380px;
        padding: 70px 18px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .nav-menu {
        position: absolute;
        top: 94px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        max-height: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #ece7f8;
    }

    .nav-menu.active {
        max-height: 420px;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-brand-text {
        display: none;
    }

    .logo-image {
        width: 84px;
        height: 84px;
    }

    .features-grid,
    .projects-grid,
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        gap: 18px;
    }

    .project-card-body {
        padding: 16px 16px 18px;
    }

    .project-card-body .btn {
        width: 100%;
    }

    .enhanced-cta h2 {
        font-size: 1.9rem;
    }

    .cta-highlight-text {
        font-size: 1.02rem;
    }

    .inner-carousel {
        height: 190px;
    }

    .caro-btn {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-meta {
        grid-template-columns: 1fr 1fr;
    }

    .detail-track {
        height: 52vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .section {
        padding: 50px 14px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .logo-image {
        width: 72px;
        height: 72px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inner-carousel {
        height: 210px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-track {
        height: 44vh;
    }
}
