/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Refined Nature & Earth */
    --primary: #2d5a27;
    /* Forest Green */
    --primary-dark: #1e3d1a;
    /* deep depth */
    --primary-light: #4c8a42;
    /* vibrant focus */
    --secondary: #6b8e23;
    /* Olive */
    --accent: #e2f0d9;
    /* Light Sage */
    --gold: #c5a059;
    /* Sophisticated Gold */
    --sand: #f8f9f5;
    /* Premium Sand */
    --dark: #0f1a0f;
    /* Deep Carbon */
    /* New Modal Tokens */
    --modal-bg: #ffffff;
    --modal-header-bg: linear-gradient(135deg, #2d5a27 0%, #1e3d1a 100%);
    --input-border: #e8eee8;
    --input-focus: #2d5a27;
    --shadow-modal: 0 40px 100px rgba(0, 0, 0, 0.25);
    --text-muted: #5c665c;
    /* Subtle Text */
    --white: #ffffff;

    /* Elevated Tokens */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-med: 0 20px 50px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 30px 80px rgba(0, 0, 0, 0.12);
    --radius-sm: 16px;
    --radius-md: 32px;
    --radius-lg: 48px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Fluid Typography - Compact & Sleek Modern Scale */
    --font-h1: clamp(32px, 5.5vw, 54px);
    --font-h2: clamp(24px, 3.8vw, 38px);
    --font-h3: clamp(18px, 2.8vw, 26px);
    --font-h4: clamp(16px, 2vw, 20px);
    --font-body: clamp(14px, 1.1vw, 15.5px);
    --font-nav: 14px;
    --font-small: 13px;
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.65;
    font-size: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.outfit {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-h1);
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--font-h2);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: var(--font-h3);
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

button,
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-med);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-mobile-only {
    display: none;
}

/* --- Responsive Form Layouts --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.mobile-stack {
    display: flex;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* --- Sticky Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    box-shadow: var(--shadow-soft);
    border-bottom: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--primary);
}

header.scrolled .logo {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: var(--font-nav);
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-light);
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary-light) !important;
    font-weight: 700 !important;
}

header.scrolled .nav-links a.active {
    color: var(--primary) !important;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-med);
    border-radius: var(--radius-sm);
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
    overflow: hidden;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--sand);
    color: var(--primary);
}

/* --- Hero System --- */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06) translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Slider Navigation Arrows */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(76, 138, 66, 0.4);
}

.hero-nav-prev {
    left: 30px;
}

.hero-nav-next {
    right: 30px;
}

/* Hero Indicator Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover,
.hero-dot.active {
    background: var(--primary-light);
    width: 32px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(129, 199, 132, 0.6);
}

.hero-popup-btn {
    transition: all 0.3s ease;
}

.hero-popup-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.hero-slide-text h1 {
    font-size: var(--font-h1);
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-slide-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);

    max-width: 650px;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Page Components --- */

/* Filter Bar */
.filter-bar {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 24px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-med);
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 32px;
    border-right: 1px solid #eee;
}

.filter-item:last-of-type {
    border-right: none;
    margin-right: 20px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-item select,
.filter-item input {
    border: none;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Product Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-med);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: var(--font-h4);
    margin-bottom: 12px;
    color: var(--dark);
}

.product-card p {
    font-size: var(--font-small);
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Gallery Section */
/* Gallery Section Redesign */
.gallery-grid {
    columns: 3 300px;
    column-gap: 24px;
    margin-top: 60px;
}

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--sand);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 15, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    color: var(--white);
    padding: 30px;
}

.gallery-overlay i {
    font-size: 32px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-caption {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.gallery-caption h4 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.gallery-caption p {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover {
    box-shadow: var(--shadow-premium);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover i,
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2 250px;
        column-gap: 16px;
    }

    .gallery-item {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-muted);
    font-size: var(--font-small);
}

.faq-item.active .faq-content {
    padding-bottom: 24px;
    max-height: 200px;
}

/* Footer Design System */
footer {
    background: linear-gradient(180deg, #0e1a0e 0%, #060b06 100%) !important;
    color: #9cb09a;
    padding: 85px 0 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

footer.no-rounding {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-about-text {
    color: #9cb09a;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 340px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0c2ae;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-social-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 138, 66, 0.35);
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: -0.01em;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9cb09a;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #9cb09a;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 15px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #9cb09a;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 55px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #7a8c78;
    font-size: 13px;
    margin: 0;
}

.footer-bottom p a {
    color: #9cb09a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #7a8c78;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* --- Detail Page Layouts --- */
.page-header {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(15, 26, 15, 0.85), rgba(15, 26, 15, 0.85)), url('../assets/images/v4/surveying_hero_1772108947766.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: var(--font-h1);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

.product-detail-section,
.service-detail-section {
    padding: 80px 0;
    background: var(--white);
}

.product-split-grid,
.service-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 100px);
}

.product-meta h2,
.service-meta h2 {
    font-size: var(--font-h2);
    margin-bottom: 30px;
}

.product-meta .long-desc,
.service-meta .long-desc {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.stat-item h2 {
    font-size: clamp(3rem, 10vw, 5rem) !important;
    line-height: 1 !important;
    color: var(--primary-light) !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    .menu-toggle {
        display: block;
        font-size: 24px;
        color: var(--white);
        cursor: pointer;
    }

    header.scrolled .menu-toggle {
        color: var(--primary);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark);
        font-size: var(--font-nav);
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: #f4f7f4;
        border-radius: 8px;
        margin: 6px 0 10px;
        padding: 4px 0;
        min-width: 100% !important;
        display: none !important;
    }

    .dropdown.active .dropdown-content {
        display: flex !important;
        flex-direction: column;
    }

    .dropdown-content a {
        padding: 10px 16px !important;
        border-bottom: none !important;
        font-size: 14px !important;
        color: var(--dark) !important;
    }

    .logo {
        font-size: 24px;
    }

    .header-actions {
        display: none;
    }

    .btn-mobile-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .product-split-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        margin-top: 40px;
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        width: 100%;
    }

    .hero-btns {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: 95% !important;
        margin: 0 auto;
        padding: 0 10px;
    }

    .hero-btns .btn {
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex: 1;
        width: auto !important;
        min-width: 0 !important;
        max-width: 160px;
        text-align: center;
        letter-spacing: -0.2px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        gap: 6px !important;
    }

    .hero-btns .btn {
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* --- Restored Components & Logic --- */

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Global Enquiry Modal (Premium Design) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 15, 0.7);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--modal-bg);
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 90vh;
    border-radius: 28px;
    box-shadow: var(--shadow-modal);
    position: relative;
    overflow-y: auto;
    transform: translateY(30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: var(--modal-header-bg);
    padding: 20px 30px 15px;
    color: var(--white);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .header-content h2 {
    font-size: 22px;
    margin-bottom: 2px;
    font-weight: 700;
}

.modal-header .header-content p {
    font-size: 12px;
    opacity: 0.85;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 30px 25px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-field label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 10px;
    background: #fbfcfb;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.06);
    outline: none;
}

.security-check-block {
    background: #f7f9f7;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-info span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.security-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.captcha-box input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    outline: none;
}

.submit-btn {
    width: 100%;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

#modal-status {
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

#modal-status.success {
    background: #e7f5e7;
    color: #2d5a27;
    border: 1px solid #d4ecd4;
    display: block;
}

#modal-status.error {
    background: #fdeaea;
    color: #dc3545;
    border: 1px solid #f9d6d6;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner for loading state */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btn-spin 0.6s linear infinite;
    display: none;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.button-loading .btn-loader {
    display: block;
}

.button-loading span,
.button-loading i {
    display: none;
}

/* Stats Section */
.stat-item p {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Industry Cards */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.industry-card h3 {
    font-size: var(--font-h4);
    margin-bottom: 12px;
}

.industry-card p {
    font-size: var(--font-small);
    opacity: 0.7;
}

/* USP Section */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.usp-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.usp-card h4 {
    font-size: var(--font-h4);
    margin-bottom: 12px;
}

/* --- Video Showcase Section --- */
.video-showcase-section {
    position: relative;
    background: linear-gradient(135deg, #0f1a0f 0%, #1a2a1a 100%);
}

.video-container-premium {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(45, 90, 39, 0.2);
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111; /* Fallback color */
}

.premium-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.premium-video.loaded {
    opacity: 1;
}

.video-overlay-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 26, 15, 0.3) 0%, transparent 50%, rgba(15, 26, 15, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.video-accent-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(45, 90, 39, 0.3);
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 3;
}

@media (max-width: 768px) {
    .video-container-premium {
        border-radius: var(--radius-sm);
        margin-top: 30px;
    }
    .video-accent-border {
        border-radius: var(--radius-sm);
    }
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-med);
    transition: var(--transition);
}

.testimonial-text {
    font-style: italic;
    font-size: 17px;
    margin-bottom: 30px;
}

/* Workflow */
.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-card h3 {
    font-size: var(--font-h4);
    margin-bottom: 12px;
}

.step-card p {
    font-size: var(--font-body);
    color: var(--text-muted);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Utility Classes for Backgrounds */
.bg-dark {
    background-color: var(--dark) !important;
    color: var(--white);
}

.bg-sand {
    background-color: var(--sand) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
    color: var(--white);
}

/* Animation Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Animation Types */
.fade-up {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(50px);
}

.fade-right {
    transform: translateX(-50px);
}

.zoom-in {
    transform: scale(0.9);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Custom Component Fixes */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.hero-glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: var(--font-h2);
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
}

/* Premium Project Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card-premium {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.project-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

.project-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.project-meta {
    padding: 30px;
}

.project-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.project-details {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--accent);
    font-size: 13px;
    color: var(--text-muted);
}

/* GIS Section Specifics */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mini-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

.mini-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Brand Assets */
.hero-bottom-logo {
    position: absolute;
    bottom: 40px;
    left: 40px;
    height: 250px;
    width: auto;
    object-fit: contain;
    z-index: 10;
    opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    transition: var(--transition);
}

.footer-logo-img {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

@media (max-width: 768px) {
    .hero-bottom-logo {
        width: clamp(100px, 30vw, 150px);
        height: auto;
        bottom: 4vh;
        left: 4%;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* Global Styles */
/* Testimonial Styles */
.testimonial-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.star-rating {
    color: #ffb400;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* CTA & Blog Extensions */
.cta-btns {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.btn-secondary-premium {
    background: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-article {
    padding: 40px;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

/* About Page Specifics */
.about-hero {
    background: linear-gradient(rgba(15, 26, 15, 0.8), rgba(15, 26, 15, 0.8)), url('../assets/images/v4/surveying_hero_1772108947766.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--white);
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(76, 138, 66, 0.2);
    border: 1px solid var(--primary-light);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 20px;
    opacity: 0.9;
}

.about-grid-3.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bg-dark .industry-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.industry-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.industry-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.industry-icon-box {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.industry-card:hover .industry-icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-list li {
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f0;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
}

.industry-list li:last-child {
    border-bottom: none;
}

.industry-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.premium-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.premium-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
}

/* Expert & Team Sections */
.expert-item {
    text-align: center;
    padding: 30px;
}

.expert-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.team-img-placeholder {
    height: 250px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--accent);
}

.team-info {
    padding: 30px;
}

/* Stats Counter */
.stats-container {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white);
}

/* Presence & Badges */
.city-badge {
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.tech-icon-box {
    background: var(--sand);
    padding: 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.tech-icon-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-med);
    transform: translateY(-5px);
}

.tech-icon-box i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.no-rounding {
    border-radius: 0 !important;
}

/* Layout Helpers */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Page Headers & Shared Layouts */
.services-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/hero2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-glass-card {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service & Product Rows */
.service-row {
    padding: 100px 0;
    overflow: hidden;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
}

.service-row.bg-sand {
    background-color: var(--sand);
}

.service-row.reverse .service-grid {
    direction: rtl;
}

.service-row.reverse .service-grid>* {
    direction: ltr;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .service-row.reverse .service-grid {
        direction: ltr;
    }

    .service-text ul {
        display: inline-block;
        text-align: left;
    }
}

.service-text h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
}

.service-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-med);
}

/* Details Page Components */
.product-split-grid,
.service-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.image-showcase {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.premium-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.specs-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-card {
    background: #f8faf8;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #edf2ed;
}

.spec-card label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.spec-card span {
    font-weight: 600;
    color: var(--primary);
}

.features-premium-list {
    display: grid;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary);
}

.deliverables-box {
    background: #f8faf8;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #edf2ed;
    margin-top: 30px;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--sand);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: #e9ecef;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 992px) {

    .service-row,
    .product-split-grid,
    .service-split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-row:nth-child(even) {
        direction: ltr;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Detail Pages: FAQ Refined */
.faq-grid-detail {
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    gap: 20px;
}

.faq-item-detail {
    background: var(--white);
    border: 1px solid #edf2ed;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item-detail:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.faq-question h4 {
    margin: 0;
    font-size: 20px;
    color: var(--dark);
    font-weight: 600;
}

.faq-question .chevron {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item-detail.active .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fcfdfc;
}

.faq-item-detail.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 30px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}

.faq-container-centered {
    max-width: 1000px;
    margin: 0 auto;
}

/* Detail Pages: Action Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-med);
    cursor: pointer;
    transition: var(--transition);
    height: fit-content;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.gallery-item-info {
    padding: 20px;
    background: var(--white);
    display: none;
    border-top: 1px solid #eee;
    animation: fadeIn 0.4s ease;
}

.gallery-item.active .gallery-item-info {
    display: block;
}

.gallery-item-info h5 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.gallery-item-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Detail Pages: Bottom CTA */
.premium-cta-block {
    background: var(--primary);
    color: var(--white);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.premium-cta-block h2 {
    font-size: var(--font-h1);
    margin-bottom: 20px;
    font-weight: 800;
}

.premium-cta-block p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.premium-cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Layout Refinements */
.product-main-section,
.service-main-section,
.action-gallery {
    padding: 120px 0;
    position: relative;
    clear: both;
    background: var(--white);
    display: block;
}

.product-faq-refined,
.service-faq-refined {
    padding: 120px 0 160px;
    position: relative;
    clear: both;
    background: #fcfdfc;
    display: block;
}

.long-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .premium-cta-block {
        padding: 40px 20px;
    }

    .premium-cta-block h2 {
        font-size: 30px;
    }
}

/* Industries We Serve Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.industry-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #edf2ed;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.industry-icon-box {
    width: 48px;
    height: 48px;
    background: #f0f7f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    transition: var(--transition);
}

.industry-card:hover .industry-icon-box {
    background: var(--primary);
    color: var(--white);
}

.industry-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin: 0;
    font-weight: 700;
}

.industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.industry-list li {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Specifics */
.about-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: linear-gradient(rgba(15, 26, 15, 0.7), rgba(15, 26, 15, 0.7)), url('../assets/images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
}

.about-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.about-hero .tagline {
    display: inline-block;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.about-hero .hero-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.premium-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #edf2ed;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.premium-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 30px;
}

.expert-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.city-badge {
    background: var(--white);
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 700;
    border: 1.5px solid var(--accent);
    color: var(--primary);
    transition: var(--transition);
}

.city-badge:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
}

/* Floating Contact Buttons */
.floating-contacts,
.floating-left {
    position: fixed;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-contacts {
    right: 30px;
}

.floating-left {
    left: 30px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-brochure {
    background-color: var(--gold);
    width: auto;
    min-width: 60px;
    padding: 0 18px;
    border-radius: 30px;
    justify-content: flex-start;
}

.btn-brochure i {
    font-size: 22px;
    min-width: 24px;
}

.brochure-label {
    font-size: 14px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    transition: var(--transition);
}

.btn-brochure:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-brochure:hover .brochure-label {
    max-width: 150px;
    opacity: 1;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.btn-call {
    background-color: var(--primary);
}

.btn-call:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .floating-contacts,
    .floating-left {
        bottom: 20px;
    }

    .floating-contacts {
        right: 20px;
    }

    .floating-left {
        left: auto;
        right: 20px;
        bottom: 150px;
        /* Stacked above Call and WhatsApp */
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .btn-brochure {
        min-width: 50px;
        padding: 0;
        justify-content: center;
    }

    .brochure-label {
        display: none;
    }
}
}

/* Comparison Section */
.comparison-premium {
    background: var(--white);
    padding: 100px 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: var(--white);
}

.comp-table thead th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.comp-table thead th:first-child {
    background: var(--primary);
    text-align: center;
}

.comp-table thead th.highlight {
    background: var(--primary-light);
    color: var(--white);
}

.comp-table tbody tr {
    border-bottom: 1px solid var(--accent);
    transition: var(--transition);
}

.comp-table tbody tr:last-child {
    border-bottom: none;
}

.comp-table td {
    padding: 24px 20px;
    font-size: 16px;
    color: var(--dark);
    line-height: 1.6;
}

.comp-table td:first-child {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--sand);
    text-align: center;
    width: 20%;
}

.comp-table td.highlight-cell {
    background: rgba(76, 138, 66, 0.05);
    font-weight: 600;
    border-left: 2px solid var(--primary-light);
}

.comp-table tr:hover {
    background: var(--sand);
}

@media (max-width: 992px) {
    .comp-table {
        min-width: 650px;
    }
}

@media (max-width: 768px) {

    .comp-table td,
    .comp-table th {
        padding: 15px 12px;
        font-size: 14px;
    }
}

/* Global Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Premium Project Card (Gallery) */
.project-card-premium {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #edf2ed;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.project-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.project-card-premium .project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.project-card-premium .project-meta {
    padding: 30px;
}

.project-card-premium .project-title {
    font-size: var(--font-h4);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.project-card-premium .project-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}

.project-card-premium .project-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-card-premium .project-details i {
    color: var(--primary);
    font-size: 14px;
}

/* Card Icon Standard */
.card-icon {
    width: 60px;
    height: 60px;
    background: #f0f7f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Unified Responsive Patch (Aggressive & Consolidated) --- */
html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-slide-text h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-glass-card {
        padding: 30px 20px !important;
        max-width: 100% !important;
        width: 95% !important;
        margin: 10px auto !important;
        left: auto !important;
        transform: none !important;
        position: relative !important;
    }

    .hero-slide-text p {
        font-size: 16px !important;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-h1: 32px;
        --font-h2: 26px;
        --font-h3: 22px;
        --font-h4: 18px;
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    header {
        padding: 12px 16px !important;
    }

    .logo {
        font-size: 1.2rem !important;
    }

    .header-actions {
        display: none !important;
        /* Forces use of mobile only button */
    }

    .nav-links {
        width: 100% !important;
        max-width: 320px;
    }

    .btn-mobile-only {
        display: block !important;
        margin-top: 20px;
        width: 100% !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Force all grids to single column and remove rigid constraints */
    .card-grid,
    .industry-grid,
    .usp-grid,
    .workflow-timeline,
    .team-grid,
    .tech-grid,
    .stats-grid,
    .product-detail-grid,
    .product-split-grid,
    .service-split-grid,
    .contact-grid,
    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        display: grid !important;
        width: 100% !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .gallery-grid .gallery-item {
        grid-column: span 1 !important;
    }

    .hero-btns {
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 0 !important;
        gap: 12px !important;
    }

    .hero-btns .btn {
        width: 100% !important;
    }

    .cta-btns {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .cta-btns .btn {
        width: 100% !important;
    }

    .floating-contacts {
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        gap: 12px !important;
        z-index: 1000 !important;
    }

    .floating-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
    }

    /* Modal responsiveness */
    .modal-container {
        width: 95% !important;
        margin: 10px auto !important;
        max-height: 74vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 20px !important;
    }

    /* Industry grid icons fix */
    .industry-card {
        padding: 25px !important;
        text-align: center;
    }

    .industry-icon {
        margin: 0 auto 15px !important;
    }

    /* Deliverables box in details */
    .deliverables-box {
        padding: 20px !important;
        width: 100% !important;
    }
}

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

    h1,
    .hero-slide-text h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    .section-title {
        font-size: 24px !important;
    }

    .mobile-stack {
        flex-direction: column !important;
        gap: 20px !important;
        display: flex !important;
    }

    .mobile-stack>* {
        width: 100% !important;
        flex: none !important;
    }


    /* Gallery mobile fix */
    .gallery-item {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
    }

    .gallery-item img {
        object-fit: contain !important;
        background: #fff;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gallery-grid .gallery-item {
        grid-column: span 1 !important;
        aspect-ratio: 4 / 3 !important;
    }

    /* Detail Pages Responsiveness */
    .page-header {
        padding: 60px 0 !important;
        min-height: auto !important;
    }

    #page-title {
        font-size: 28px !important;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    #page-subtitle {
        font-size: 16px !important;
        margin-bottom: 0;
    }

    .service-detail-section,
    .product-detail-section {
        padding: 40px 0 !important;
    }

    .service-split-grid,
    .product-split-grid {
        gap: 30px !important;
    }

    .action-gallery {
        margin-top: 40px !important;
        padding: 0 !important;
    }

    .premium-cta-block {
        padding: 40px 20px !important;
        border-radius: 24px !important;
    }

    .premium-cta-block h2 {
        font-size: 24px !important;
    }

    .premium-cta-block p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }

    /* Fix image aspect ratios across the site */
    .service-img img,
    .product-visual img,
    .project-hero {
        height: auto !important;
        min-height: 250px;
    }
}



/* --- Contact Form & CAPTCHA Redesign --- */
.security-check-block {
    background: #f8faf8;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #edf2ed;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-info i {
    color: var(--primary);
    font-size: 20px;
}

.security-info span {
    display: block;
    font-weight: 700;
    font-size: 10px;
    color: var(--dark);
}

.security-info p {
    margin: 0;
    font-size: 12px !important;
    color: var(--text-muted);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.captcha-box span {
    font-weight: 700;
    color: var(--primary);
    font-family: monospace;
    font-size: 15px;
}

.captcha-box input {
    width: 60px !important;
    padding: 5px !important;
    text-align: center;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

#modal-status,
.form-status {
    display: none;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

#modal-status.error,
.form-status.error {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #fecaca;
    display: block;
}

#modal-status.success,
.form-status.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

@media (max-width: 480px) {
    .security-check-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .captcha-box {
        width: 100%;
        justify-content: center;
    }
}


/* --- Mobile Menu Fixes & Scroll Management --- */
.body-lock {
    overflow: hidden !important;
    height: 100vh !important;
}

.menu-close {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #f8faf8;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 1001;
    transition: var(--transition);
}

.menu-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .menu-close {
        display: flex;
        /* Visible only on mobile menu open */
    }

    .nav-links {
        overflow-y: auto !important;
        /* Enable internal scrolling */
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
}


/* --- Premium Engineering Portfolio Overhaul --- */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 30px;
}

.gallery-view-trigger {
    cursor: pointer !important;
}

.gallery-item-premium {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: transform 0.4s ease;
}

.gallery-item-premium:hover {
    transform: translateY(-5px);
}

.gallery-item-premium.span-2 {
    grid-column: span 2;
}

.gallery-item-premium.row-2 {
    grid-row: span 2;
}

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

.gallery-item-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

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

.gallery-glass-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: var(--dark);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-item-premium:hover .gallery-glass-overlay {
    transform: translateY(0);
    opacity: 1;
}

.tech-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-glass-overlay h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary);
}

.gallery-glass-overlay p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.view-detail-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 768px) {
    .gallery-grid-premium {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-item-premium.span-2,
    .gallery-item-premium.row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-glass-overlay {
        opacity: 1;
        transform: translateY(0);
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 15px;
        background: var(--white);
        backdrop-filter: none;
    }
}

/* Lightbox System - Visibility Repair */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lb-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 26px;
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10005;
    transition: all 0.3s ease;
}

.lb-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

.lb-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
}

.lb-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.lb-nav:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.lb-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lb-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lb-info-box {
    text-align: center;
    color: white;
    max-width: 800px;
}

.lb-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.lb-desc {
    font-size: 15px;
    color: #ccc;
    font-weight: 400;
}

.lb-counter {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .lb-content {
        flex-direction: column;
        gap: 20px;
    }

    .lb-nav {
        display: none;
        /* Hide nav arrows on mobile, use swiping if implemented or simple tap */
    }

    .lb-image {
        max-height: 50vh;
    }

    .lb-title {
        font-size: 18px;
    }

    .lb-desc {
        font-size: 13px;
    }
}

/* ==========================================
   MOBILE & RESPONSIVE DESIGN ENHANCEMENTS
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.25;
    }
}

@media (max-width: 768px) {
    /* Layout & Section Padding */
    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Header & Mobile Navigation Drawer */
    header {
        padding: 14px 20px;
        height: auto;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        padding: 70px 25px 30px;
        gap: 15px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
        color: #333;
        border-bottom: 1px solid #f2f2f2;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 15px;
        display: none;
        background: #fafafa;
        border-radius: 8px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Form Grid Collapse */
    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 85vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-glass-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .hero-slide-text h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .hero-slide-text p {
        font-size: 14px !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

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

    /* Cards & Grids */
    .card-grid, 
    .industry-grid, 
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Modal Mobile Friendly Scaling */
    .modal-container {
        width: 95% !important;
        max-width: 480px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 25px 20px !important;
        border-radius: 16px !important;
        margin: 20px auto !important;
    }

    .modal-header h2 {
        font-size: 20px !important;
    }

    /* Floating Action Buttons Mobile Position */
    .floating-contacts {
        bottom: 20px !important;
        right: 15px !important;
        gap: 10px !important;
    }

    .floating-btn {
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
    }

    .floating-left {
        bottom: 20px !important;
        left: 15px !important;
    }

    .btn-brochure {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .hero-slide-text h1 {
        font-size: 24px !important;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px; /* Touch target minimum */
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}

/* Clickable Image Cursor Pointer & Subtle Hover Zoom */
.product-card img, 
.gallery-item img, 
.gallery-item-premium img, 
.service-card img, 
.project-card img, 
.detail-image img, 
.hero-slider-container {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.product-card img:hover, 
.gallery-item img:hover, 
.gallery-item-premium img:hover {
    transform: scale(1.03);
}

/* ==========================================
   EQUAL & BALANCED LAPTOP/DESKTOP GRID SYSTEM
   ========================================== */
@media (min-width: 1200px) {
    .usp-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px !important;
    }
    .industry-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px !important;
    }
    .card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* 4-item grids split into 2x2 equal rows (2 cards per row) on laptop screens */
    .usp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    .industry-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    .card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Close Button & Viewport Visibility Shield */
.menu-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.close-modal {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* ===================================================
   NAVBAR ACCESSIBILITY & HEADER GLASSMORPHIC BACKGROUND
   =================================================== */
header {
    background: rgba(15, 26, 15, 0.84) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 16px 5% !important;
}

header.scrolled {
    background: rgba(15, 26, 15, 0.95) !important;
    padding: 14px 5% !important;
}

.nav-links a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: #81c784 !important;
}

/* Hide / Remove Left Side Black Logo Overlay Box */
.hero-bottom-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===================================================
   UNIFORM & FULL-CONTENT FIT CARDS CONTAINER SYSTEM
   =================================================== */
.industry-card,
.usp-card,
.product-card {
    aspect-ratio: auto !important;
    height: 100% !important;
    min-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border-radius: 20px !important;
    padding: 30px 24px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2ebe2 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

.industry-card h3 {
    font-size: 19px !important;
    margin-bottom: 16px !important;
    margin-top: 4px !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.industry-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

.industry-list li {
    font-size: 13.5px !important;
    padding: 6px 0 6px 26px !important;
    border-bottom: 1px solid #f0f3f0 !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    position: relative !important;
    text-align: left !important;
}

.industry-list li::before {
    content: "→" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.industry-list li:last-child {
    border-bottom: none !important;
}

.industry-icon-box {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    margin-left: auto !important;
    align-self: flex-end !important;
}

.industry-icon-box i,
.industry-icon-box svg {
    width: 22px !important;
    height: 22px !important;
}

.hero-nav-btn {
    display: none !important;
}

@media (max-width: 768px) {
    /* Hero Mobile Refinements */
    .hero {
        min-height: 100vh !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .hero-content {
        padding-top: 10px !important;
    }

    .hero-glass-card {
        padding: 18px 16px !important;
        margin: 40px auto 0 auto !important;
        background: rgba(15, 26, 15, 0.65) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        text-align: center !important;
        max-width: 95% !important;
    }

    .hero-slide-badge {
        font-size: 10px !important;
        padding: 3px 10px !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        max-width: 100% !important;
        white-space: normal !important;
        display: inline-block !important;
    }

    .hero-slide-text h1 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
    }

    .hero-slide-text h1 span {
        font-size: 18px !important;
    }

    .hero-slide-text p {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .hero-btns {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 8px !important;
        width: 100% !important;
    }

    .hero-btns .btn {
        width: auto !important;
        flex: 1 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        min-height: 38px !important;
        text-align: center !important;
    }

    .hero-slide {
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Cards Mobile Refinements (Fixes vertical stretch and wrapping) */
    .industry-card,
    .usp-card,
    .step-card {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: auto !important;
        padding: 24px 20px !important;
        border-radius: 16px !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .industry-card h3 {
        font-size: 18px !important;
        text-align: left !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        color: var(--primary-dark) !important;
    }

    .industry-list {
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .industry-list li {
        font-size: 13.5px !important;
        text-align: left !important;
        justify-content: flex-start !important;
        line-height: 1.4 !important;
        padding: 6px 0 6px 26px !important;
        border-bottom: 1px solid #f0f3f0 !important;
        color: var(--text-muted) !important;
        position: relative !important;
    }

    .industry-icon-box {
        margin-left: 0 !important;
        align-self: flex-start !important;
        margin-bottom: 12px !important;
    }
}

/* ===================================================
   HERO TITLE & SUBTITLE PERFECT ALIGNMENT FIX
   =================================================== */
.hero-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(30px, 4.5vw, 52px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.18 !important;
    text-align: center !important;
    margin: 0 auto 6px auto !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.hero-sub-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(14px, 1.6vw, 19px) !important;
    font-weight: 500 !important;
    color: #e2f0d9 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    margin: 0 auto 16px auto !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.2px !important;
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }
    .hero-sub-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
        color: #dcedc8 !important;
    }
}

/* ===================================================
   100% FULLY TRANSPARENT HERO TITLE & SUBTITLE CONTAINER
   =================================================== */
.hero-glass-card {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 900px !important;
}

@media (max-width: 768px) {
    .hero-glass-card {
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 20px auto 0 auto !important;
    }
}

/* ===================================================
   WORKFLOW STEP CARDS & FULL UNCLIPPED STEP CIRCLES
   =================================================== */
.step-card {
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border-radius: 20px !important;
    padding: 34px 22px 24px 22px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    border: 1px solid #e2ebe2 !important;
    overflow: visible !important;
    position: relative !important;
    margin-top: 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

.step-num {
    position: absolute !important;
    top: -24px !important;
    left: 24px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    box-shadow: 0 6px 18px rgba(76, 138, 66, 0.4) !important;
    z-index: 10 !important;
}

@media (max-width: 768px) {
    .step-card {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: auto !important;
        padding: 36px 20px 20px 20px !important;
        margin-top: 25px !important;
        overflow: visible !important;
        border-radius: 16px !important;
    }
    .step-num {
        top: -22px !important;
        left: 20px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
    }
}

/* ===================================================
   HEADER HIGHLIGHTED LOGIN BUTTON
   =================================================== */
.nav-links a[href*="login"],
.nav-login-btn {
    background: #4C8A42 !important;
    color: #ffffff !important;
    padding: 7px 20px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    border: 1px solid #81c784 !important;
    box-shadow: 0 4px 14px rgba(76, 138, 66, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.nav-links a[href*="login"]:hover,
.nav-login-btn:hover {
    background: #81c784 !important;
    color: #0f1a0f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.6) !important;
}

/* ===================================================
   CENTERED BOOK CONSULTATION BUTTON & CTA BLOCK
   =================================================== */
.cta-btns {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 25px auto 0 auto !important;
    width: 100% !important;
    text-align: center !important;
}

.cta-btns .btn {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .cta-btns {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
    }
    .cta-btns .btn {
        width: 90% !important;
        max-width: 320px !important;
        text-align: center !important;
    }
}

/* ===================================================
   3-COLUMN TESTIMONIALS GRID LAYOUT (3 REVIEWS)
   =================================================== */
#testimonials .card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    margin-top: 40px !important;
}

@media (max-width: 992px) {
    #testimonials .card-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ===================================================
   BLOG ARTICLES & TECH ECOSYSTEM CARD PROPORTIONS
   =================================================== */
.blog-article {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding: 28px 24px !important;
}

.tech-ecosystem-card {
    aspect-ratio: auto !important;
    min-height: 360px !important;
    height: 100% !important;
    padding: 24px 20px !important;
}

/* ===================================================
   DROPDOWN MENU CONTRAST & LEGIBILITY FIX
   =================================================== */
.dropdown-content {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 14px !important;
    padding: 8px 0 !important;
    min-width: 210px !important;
}

.dropdown-content a {
    color: #1b2e1b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    text-shadow: none !important;
    background: transparent !important;
}

.dropdown-content a:hover {
    color: #4C8A42 !important;
    background: #f0f7f0 !important;
}

/* ===================================================
   USP CARDS ("WHY CHOOSE TERRANOVA") AUTO-HEIGHT FIX
   =================================================== */
.usp-card {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding: 28px 24px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}

/* ===================================================
   TECHNOLOGY ECOSYSTEM CARDS DARK BACKGROUND & WHITE TEXT
   =================================================== */
.tech-ecosystem-card,
#technology .usp-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: 100% !important;
    padding: 22px 20px !important;
    border-radius: 20px !important;
}

.tech-ecosystem-card h4,
#technology .usp-card h4 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 14px !important;
    margin-bottom: 6px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.tech-ecosystem-card p,
#technology .usp-card p {
    color: #dcedc8 !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* ===================================================
   MOBILE NAVIGATION DRAWER TEXT COLOR FIX
   =================================================== */
@media (max-width: 768px) {
    .nav-links {
        background: #ffffff !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.3) !important;
        padding: 75px 24px 30px 24px !important;
    }

    .nav-links a {
        color: #1b2e1b !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #edf2ed !important;
        text-shadow: none !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #4C8A42 !important;
    }

    .nav-links a[href*="login"],
    .nav-login-btn {
        margin-top: 15px !important;
        color: #ffffff !important;
        background: #4C8A42 !important;
        text-align: center !important;
    }

    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8faf8 !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        margin: 6px 0 !important;
    }

    .dropdown-content a {
        color: #2c3e50 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #eef2ee !important;
        text-shadow: none !important;
    }

    /* Mobile Header Clearance & Card Center Alignment */
    .page-header,
    .hero-page,
    .inner-hero,
    .contact-header {
        padding-top: 115px !important;
    }

    .page-header h1,
    #page-title,
    .contact-header h1 {
        font-size: 24px !important;
        margin-top: 8px !important;
        line-height: 1.25 !important;
    }

    .value-card,
    .about-card,
    .team-card,
    .usp-card,
    .industry-card,
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* ===================================================
   FAQ COMPACT ACCORDION FIX (NO EXTRA PADDING/MIN-HEIGHT)
   =================================================== */
.faq-item,
.faq-item-detail {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #edf2ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.faq-question,
.faq-item .faq-header {
    padding: 18px 24px !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.faq-question h4,
.faq-item .faq-header h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.faq-answer,
.faq-content {
    padding: 0 !important;
    margin: 0 !important;
}

.faq-answer p,
.faq-content p,
.faq-content {
    padding: 0 24px 18px 24px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
}

@media (max-width: 992px) {
    .faq-question,
    .faq-item .faq-header {
        padding: 16px 20px !important;
    }
    .faq-question h4,
    .faq-item .faq-header h4 {
        font-size: 15px !important;
    }
    .faq-answer p,
    .faq-content {
        padding: 0 20px 16px 20px !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 768px) {
    .faq-question,
    .faq-item .faq-header {
        padding: 14px 16px !important;
    }
    .faq-question h4,
    .faq-item .faq-header h4 {
        font-size: 14px !important;
    }
    .faq-answer p,
    .faq-content {
        padding: 0 16px 14px 16px !important;
        font-size: 13px !important;
    }
}