/* ============================
   Credence Housing Ltd - Main Stylesheet
   Pixel-match to https://www.credencehousingltd.com
   ============================ */

:root {
    --primary-dark: #1a1a2e;
    --primary-darker: #0f0f23;
    --accent-gold: #c8a97e;
    --accent-gold-hover: #b8955e;
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --text-dark: #333333;
    --text-muted: #777777;
    --text-light: rgba(255, 255, 255, 0.75);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* ============================
   Reset & Base
   ============================ */

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    font-size: 14px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-dark);
}

a { color: var(--accent-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold-hover); }
img { max-width: 100%; height: auto; }

/* ============================
   Navbar — Dark bar, gold accents
   ============================ */

#mainNavbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#mainNavbar.scrolled {
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    padding: 0;
}

#mainNavbar .navbar-brand { padding: 8px 0; }
#mainNavbar .logo-img { height: 45px; width: auto; }

#mainNavbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 22px 14px !important;
    position: relative;
    transition: var(--transition);
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--accent-gold) !important;
}

#mainNavbar .nav-link.nav-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

#mainNavbar .nav-link.nav-underline:hover::after,
#mainNavbar .nav-link.nav-underline.active::after {
    width: 60%;
}

#mainNavbar .dropdown-toggle::after {
    border-top-color: rgba(255,255,255,0.7);
    margin-left: 6px;
}

#mainNavbar .dropdown-menu {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    min-width: 180px;
    padding: 5px 0;
    margin-top: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#mainNavbar .dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

#mainNavbar .dropdown-item:hover {
    background: rgba(200,169,126,0.15);
    color: var(--accent-gold);
}

.navbar-toggler { border-color: rgba(255,255,255,0.2); padding: 4px 8px; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================
   Hero Slider — Full Screen
   ============================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26,26,46,0.3) 0%,
        rgba(26,26,46,0.15) 40%,
        rgba(26,26,46,0.4) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1;
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    animation: letterFadeIn 0.5s ease forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
    font-weight: 300;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    animation: wordFadeIn 0.5s ease forwards;
    margin-right: 8px;
}

@keyframes letterFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wordFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 0.7;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
}

.hero-section .carousel-control-prev { left: 0; border-radius: 0 4px 4px 0; }
.hero-section .carousel-control-next { right: 0; border-radius: 4px 0 0 4px; }

.hero-section .carousel-indicators {
    bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 30px;
    height: 3px;
    border-radius: 0;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.4);
    border: none;
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    background-color: var(--accent-gold);
    width: 45px;
}

/* ============================
   Page Header (inner pages)
   ============================ */

.page-header {
    background: var(--primary-dark);
    padding: 120px 0 50px;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-header .page-subtitle {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* ============================
   Section Titles
   ============================ */

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-dark);
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 15px auto 0;
}

/* ============================
   Buttons
   ============================ */

.btn-gold {
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    transition: var(--transition);
    border-radius: 0;
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    transition: var(--transition);
    border-radius: 0;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--white);
}

/* ============================
   Tagline Section (Deluxe Abodes)
   ============================ */

.tagline-section {
    background: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.tagline-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: normal;
}

.tagline-section p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 35px;
}

.btn-explore {
    display: inline-block;
    background: transparent;
    color: #333;
    border: 1px solid #333;
    padding: 14px 60px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
}

.btn-explore:hover {
    background: #333;
    color: #fff;
}

/* ============================
   Home Projects Section (Featured Projects)
   ============================ */

.home-projects-section {
    background: var(--light-grey);
    padding: 60px 0;
}

.home-projects-section .section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    text-transform: none;
    letter-spacing: normal;
}

.home-projects-section .project-card-image {
    height: 420px;
}

/* ============================
   Project Carousel (Featured Projects)
   ============================ */

.project-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-carousel-track-container {
    flex: 1;
    overflow: hidden;
}

.project-carousel-track {
    display: flex;
    will-change: transform;
}

.project-carousel-item {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    padding: 0 12px;
    box-sizing: border-box;
}

.carousel-card {
    position: relative;
    overflow: hidden;
}

.carousel-card .project-card-image {
    height: 420px;
}

.carousel-card .project-card-image img {
    filter: brightness(0.85);
    transition: transform 0.6s ease, filter 0.4s ease;
}

.carousel-card:hover .project-card-image img {
    transform: scale(1.08);
    filter: brightness(0.75);
}

/* Carousel Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.carousel-arrow:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Project Badge Overlay */
.project-badge-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.project-badge-circle {
    width: 160px;
    height: 85px;
    background: var(--white);
    border-radius: 160px 160px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px 5px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.project-badge-circle .badge-icon {
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.project-badge-circle .badge-name {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
}

.project-badge-circle .badge-address {
    font-family: var(--font-body);
    font-size: 8px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
}

/* ============================
   Parallax Section
   ============================ */

.parallax-section {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-heading {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
}

.parallax-subtext {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ============================
   Project Cards — Shared
   ============================ */

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.project-card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-body {
    padding: 18px 15px;
    text-align: center;
    background: var(--white);
}

.project-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.project-card-body p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.5;
}

.no-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-grey);
    color: #ccc;
    font-size: 3rem;
}

/* ============================
   Project Filter Tabs (All / Ongoing / Completed)
   ============================ */

.project-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project-filter-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.project-filter-tabs .filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.project-filter-tabs .filter-btn:hover,
.project-filter-tabs .filter-btn.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.project-location-filter .form-select {
    border-radius: 0;
    font-size: 13px;
    padding: 8px 35px 8px 15px;
    border-color: #ddd;
    min-width: 180px;
}

.project-size-toggle {
    border: 1px solid #ddd;
    background: transparent;
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.project-size-toggle:hover,
.project-size-toggle.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* ============================
   News & Events — Card layout with badge
   ============================ */

.news-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card .news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-date {
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.news-card-body p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
}

.news-card-body .read-more-link {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: auto;
}

.news-card-body .read-more-link:hover {
    color: var(--accent-gold-hover);
}

.load-more-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 40px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
}

.load-more-btn:hover {
    background: var(--accent-gold);
    color: var(--white);
}

/* News Detail */
.news-detail-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-content {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
}

.news-content p { margin-bottom: 15px; }
.news-content img { max-width: 100%; height: auto; margin: 15px 0; }

/* ============================
   Query Pages — Buyers / Landowners
   ============================ */

.query-hero {
    background: var(--primary-dark);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.query-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.query-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.query-hero h2 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
    font-weight: 400;
}

.query-intro {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
}

.query-form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.query-form-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.query-form .form-control,
.query-form .form-select {
    border-radius: 0;
    border-color: #ddd;
    padding: 10px 15px;
    font-size: 13px;
}

.query-form .form-control:focus,
.query-form .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: none;
}

.query-form .form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.query-form .btn-submit {
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border-radius: 0;
}

.query-form .btn-submit:hover {
    background: var(--accent-gold-hover);
}

/* ============================
   Project Detail
   ============================ */

.project-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 25px;
    border-radius: 0;
    transition: var(--transition);
}

.project-tabs .nav-link.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: transparent;
}

.project-tabs .nav-link:hover {
    color: var(--accent-gold);
}

.spec-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-dark);
}

.spec-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 500;
    font-size: 13px;
    width: 250px;
    vertical-align: top;
    border: 1px solid rgba(255,255,255,0.1);
}

.spec-table td {
    padding: 12px 20px;
    font-size: 13px;
    border: 1px solid #eee;
}

/* Gallery Grid */
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26,26,46,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i { color: var(--white); font-size: 1.5rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px; right: 0;
    background: none; border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.project-map iframe { border-radius: 0; }

/* ============================
   Footprints Section (Homepage)
   ============================ */

.footprints-section { background: var(--light-grey); }

.footprints-text p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
}

.footprints-map iframe {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================
   About Section
   ============================ */

.about-content p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

/* ============================
   Department Cards
   ============================ */

.department-card-link { text-decoration: none; color: inherit; display: block; }

.department-card {
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    background: var(--white);
}

.department-card:hover { transform: translateY(-5px); }

.department-card-image { height: 200px; overflow: hidden; }
.department-card-image img { width: 100%; height: 100%; object-fit: cover; }

.department-card-body { padding: 18px; text-align: center; }
.department-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

/* ============================
   Team Members
   ============================ */

.team-member-card {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.team-member-card:hover { transform: translateY(-3px); }

.member-image {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.member-image img { width: 100%; height: 100%; object-fit: cover; }

.member-placeholder {
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.member-info h5 { font-size: 0.95rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.member-info p { color: var(--accent-gold); font-size: 12px; margin-bottom: 0; }

/* ============================
   Management Page
   ============================ */

.management-section { background: var(--white); }

.management-photo img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.management-photo-placeholder {
    height: 400px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
}

.management-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.management-designation {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.management-bio p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 15px;
}

/* ============================
   Career Section
   ============================ */

.career-card {
    background: var(--white);
    padding: 25px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.career-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

.career-card h5 { color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 5px; }
.career-deadline { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.career-desc { font-size: 13px; color: var(--text-muted); }

/* ============================
   Contact Section
   ============================ */

.office-item h6 { color: var(--primary-dark); font-weight: 600; margin-bottom: 5px; }
.office-item p { color: var(--text-muted); font-size: 13px; }

/* ============================
   Footer
   ============================ */

.footer-section {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 25px;
}

.footer-title {
    color: var(--accent-gold) !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-address {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-light);
}

.footer-address a { color: var(--text-light); transition: var(--transition); }
.footer-address a:hover { color: var(--accent-gold); }

.footer-logo { height: 40px; }

.footer-divider { border-color: rgba(255,255,255,0.1); margin: 25px 0 15px; }

.footer-copyright { color: rgba(255,255,255,0.5); font-size: 12px; margin: 0; }

/* ============================
   Floating Action Buttons
   ============================ */

.floating-buttons {
    position: fixed;
    bottom: 25px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-buttons.left-buttons { left: 20px; }
.floating-buttons.right-buttons { right: 20px; }

.floating-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.floating-btn:hover { transform: scale(1.1); color: var(--white); }

.floating-btn-phone { background: var(--accent-gold); }
.floating-btn-whatsapp { background: #25d366; }

/* ============================
   Forms
   ============================ */

.form-control, .form-select { border-radius: 0; font-size: 13px; }

.form-control:focus, .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.15rem rgba(200,169,126,0.2);
}

.form-label { font-weight: 500; font-size: 13px; color: var(--text-dark); }

/* ============================
   Misc
   ============================ */

.news-meta { color: var(--text-muted); font-size: 13px; }
.badge.bg-gold { background: var(--accent-gold) !important; }
.alert { border-radius: 0; font-size: 14px; }

/* ============================
   Responsive
   ============================ */

@media (max-width: 991px) {
    .hero-slide, .hero-section { height: 70vh; min-height: 400px; }
    .hero-title { font-size: 2.5rem; letter-spacing: 8px; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 3px; }
    .page-header { padding: 90px 0 35px; }
    .page-header h1 { font-size: 1.8rem; letter-spacing: 3px; }
    #mainNavbar .nav-link { padding: 10px 15px !important; }
    .project-filter-bar { flex-direction: column; align-items: flex-start; }
    .project-carousel-item { flex: 0 0 50%; max-width: 50%; }
    .carousel-card .project-card-image { height: 350px; }
    .parallax-heading { font-size: 2rem; }
    .parallax-section { min-height: 300px; background-attachment: scroll; }
}

@media (max-width: 767px) {
    .hero-slide, .hero-section { height: 55vh; min-height: 350px; }
    .hero-title { font-size: 1.8rem; letter-spacing: 5px; }
    .hero-subtitle { font-size: 0.7rem; letter-spacing: 2px; }
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next { display: none; }
    .section-title h2 { font-size: 1.3rem; letter-spacing: 2px; }
    .project-card-image { height: 200px; }
    .news-card-image { height: 180px; }
    .floating-btn { width: 42px; height: 42px; font-size: 1rem; }
    .query-hero h1 { font-size: 1.8rem; }
    .query-hero h2 { font-size: 1rem; }
    .project-carousel-item { flex: 0 0 100%; max-width: 100%; }
    .carousel-card .project-card-image { height: 300px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 13px; }
    .project-badge-circle { width: 130px; height: 70px; }
    .project-badge-circle .badge-name { font-size: 9px; }
    .parallax-heading { font-size: 1.5rem; letter-spacing: 1px; }
    .parallax-subtext { font-size: 0.8rem; letter-spacing: 1px; }
    .parallax-section { min-height: 250px; background-attachment: scroll; }
}
