/* ==========================================================================
   BASE STYLES
   ========================================================================== */
:root {
    --primary-color: rgba(62, 196, 225, 0.85);
    /* User requested theme color */
    --primary-solid: #3ec4e1;
    /* Solid fallback if needed */
    --secondary-color: #0a0e27;
    --text-color: #64748b;
    --text-dark: var(--secondary-color);
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Standard Spacing & Padding */
    --section-padding: 50px 0;
    --section-padding-mobile: 60px 0;
    --container-padding: 0 30px;
    --container-padding-mobile: 0 20px;
}

/* Brand Logo Styles */
.nav-brand-logo {
    height: 25px;
    /* Slightly larger than text for visibility */
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    /* Default for dark backgrounds or will be overridden */
    transition: all 0.3s ease;
}

.dropdown-item .nav-brand-logo {
    filter: none !important;
    /* Submenu should show brand colors */
    display: block;
    margin-left: 0;
}

/* Nav Submenu Optical Alignment & Size Fixes */
.dropdown-item .nav-brand-logo[src*="curafloor"] {
    margin-left: -5.5px !important;
    height: 28px;
}

.dropdown-item .nav-brand-logo[src*="curashield"] {
    margin-left: -2.5px !important;
    height: 28px;
}

.dropdown-item .nav-brand-logo[src*="curatrack"] {
    margin-left: -7.5px !important;
    height: 26px;
}

.dropdown-item .nav-brand-logo[src*="curaguard"] {
    margin-left: -5px !important;
}

.dropdown-item .nav-brand-logo[src*="curablinds"] {
    margin-left: -4.5px !important;
}

.dropdown-item:hover .nav-brand-logo {
    opacity: 0.8;
}

.navbar-home:not(.scrolled) .nav-brand-logo {
    filter: brightness(0) invert(1);
}

.scrolled .nav-brand-logo {
    filter: none;
    /* Show color when scrolled/white background */
}

.footer-brand-logo {
    height: 22px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    /* Footer usually dark */
    transition: all 0.3s ease;
    margin-left: 0;
}

.footer-col ul li a:hover .footer-brand-logo {
    filter: none;
}

.page-title-logo {
    height: 100px;
    /* Large enough for a title */
    width: auto;
    vertical-align: middle;
    filter: none;
    /* Show original colors */
    margin-bottom: 10px;
}

.inline-brand-logo {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 3px;
    filter: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    padding-top: 100px;
    margin: 0;
    font-weight: normal;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

p,
span,
li,
td,
a,
div {
    font-weight: normal;
}

strong,
b {
    font-weight: bold;
}

/* Page Header Typography */
.page-header h1 {
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Triple-layer shadow for maximum presence without changing colors */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 5px 15px rgba(0, 0, 0, 0.6),
        0 15px 45px rgba(0, 0, 0, 0.4);
}

.page-header h1,
.text-center h2,
.series-box h3,
.text-gold {
    font-weight: bold;
}

.features-list,
.tech-table,
p {
    font-weight: normal;
}

body.home-page {
    padding-top: 0 !important;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: var(--container-padding);
    /* Increased side padding for better breathing room */
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Consistent content width for text-heavy sections */
.content-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive container adjustments */
@media (max-width: 768px) {

    .container,
    .container-wide {
        padding: var(--container-padding-mobile);
    }
}

/* Section intro paragraph styling */
.section-intro {
    max-width: 100%;
    margin: 10px 0 30px;
    color: #64748b;
    line-height: 1.8;
    text-align: left;
}

/* ---------- TEXT UTILITIES ---------- */
.text-gold {
    color: var(--primary-color) !important;
}

.hero-subtitle,
.about-hero-subtitle,
.project-hero-subtitle,
.news-hero-subtitle,
.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 15px auto 0;
    opacity: 1;
    /* Maximum opacity for legibility */
    line-height: 1.6;
    /* Stronger dual-layer shadow for sub-text */
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.7);
}

/* ---------- EXPERTISE SECTION ---------- */
.expertise-section {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
    background: #f8fafc;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.03) 0%, rgba(62, 196, 225, 0) 70%);
    z-index: 0;
}

.expertise-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.02) 0%, rgba(62, 196, 225, 0) 70%);
    z-index: 0;
}

.expertise-section .container-wide {
    position: relative;
    z-index: 1;
    perspective: 1200px;
    /* Enable 3D depth for brand cards */
}

/* ---------- SHARED BUTTONS ---------- */
.btn-primary {
    display: inline-block;
    /* Frosted Glass - High Opacity */
    background: linear-gradient(180deg, rgba(62, 196, 225, 0.95) 0%, rgba(62, 196, 225, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white !important;
    padding: 14px 34px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 8px 20px rgba(62, 196, 225, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(62, 196, 225, 1) 0%, rgba(62, 196, 225, 0.9) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 12px 30px rgba(62, 196, 225, 0.4);
}

/* NOTE: .curaguard-btn has its own distinct styling at lines ~1450-1472 with cyan gradient */

.btn-outline {
    display: inline-block;
    padding: 14px 34px;
    background: rgba(62, 196, 225, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary-color) !important;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(62, 196, 225, 0.3);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(62, 196, 225, 0.4);
}

/* ==========================================================================
   UNIFIED BACK BUTTON COMPONENT
   All "Back to ..." buttons across the site share this single design.
   Targets: .back-to-projects, .back-to-news, .back-to-series,
            .hero-back-link, .product-back-link
   ========================================================================== */
.back-to-projects,
.back-to-news,
.back-to-series,
.hero-back-link,
.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.back-to-projects svg,
.back-to-news svg,
.back-to-series svg,
.hero-back-link svg,
.product-back-link svg,
.hero-back-link .arrow,
.product-back-link .arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.back-to-projects:hover,
.back-to-news:hover,
.back-to-series:hover,
.hero-back-link:hover,
.product-back-link:hover {
    color: #24b1a5;
    background: #f0f9ff;
    border-color: #24b1a5;
    transform: translateX(-5px);
}

.back-to-projects:hover svg,
.back-to-news:hover svg,
.back-to-series:hover svg,
.hero-back-link:hover svg,
.product-back-link:hover svg,
.hero-back-link:hover .arrow,
.product-back-link:hover .arrow {
    transform: translateX(-3px);
}

/* Active / tap state for mobile */
.back-to-projects:active,
.back-to-news:active,
.back-to-series:active,
.hero-back-link:active,
.product-back-link:active {
    transform: scale(0.97);
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .back-to-projects,
    .back-to-news,
    .back-to-series,
    .hero-back-link,
    .product-back-link {
        font-size: 0.82rem;
        padding: 7px 16px;
        gap: 6px;
    }
}

@media (max-width: 480px) {

    .back-to-projects,
    .back-to-news,
    .back-to-series,
    .hero-back-link,
    .product-back-link {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

/* ---------- NAVBAR ---------- */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    /* Default frosted */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Fade in animation */
    opacity: 0;
    transform: translateY(-100%);
}

.navbar.navbar-loaded {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.6);
    /* Half transparent on scroll */
    padding: 0.8rem 0;
    /* Shrink slightly */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-transparent {
    background: transparent !important;
    position: absolute !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

/* Ensure navbar becomes fixed and frosted when scrolled on homepage */
.navbar-transparent.scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    position: fixed !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-home {
    /* For subpages, start frosted but allow scroll override */
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Animated Underline Effect (Now on ::before to share with ::after chevron) */
.nav-link:not(.nav-btn)::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link:not(.nav-btn):hover::before,
.nav-link:not(.nav-btn).active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Base style for all Nav Items */
.nav-links li {
    display: flex;
    align-items: center;
}

/* DROPDOWN CHEVRON (Now on ::after) */
/* DROPDOWN CHEVRON (Now on ::after) */
.dropdown>.nav-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block;
    margin-top: -4px;
    /* Move slightly up for optical centering */
    margin-left: 2px;
}

.dropdown:hover>.nav-link::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Fix for Contact Us Button */
.nav-links li:last-child .nav-link {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 8px 24px;
    border-radius: 12px;
    color: var(--primary-color) !important;
    margin-left: 10px;
    gap: 0;
}

.nav-links li:last-child .nav-link:hover {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 8px 20px rgba(62, 196, 225, 0.3);
    transform: translateY(-2px);
}

.nav-links li:last-child .nav-link::before {
    display: none;
    /* No underline for button */
}



/* ---------- DROPDOWN MENU ---------- */
.dropdown {
    position: relative;
}



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 150px;
    width: max-content;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border-radius: 25px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Removed arrow triangle for cleaner look */
.dropdown-menu::before {
    display: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: #475569 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-bottom: 2px;
    border-left: none;
    /* Remove conflicting border style */
}

.dropdown-item:hover {
    background: rgba(62, 196, 225, 0.08);
    color: var(--primary-color) !important;
    padding-left: 25px;
    /* Subtle slide */
    transform: translateX(2px);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* ---------- HERO SLIDER ---------- */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    position: relative;
    height: 100%;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto !important;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------- LAYOUT 3 COLUMN ---------- */
.gallery-grid,
.project-container,
.color-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    margin-top: 40px;
}

/* ---------- CARDS & COMPONENTS ---------- */
.gallery-item,
.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Note: .project-card has its own premium styling at lines 1247-1263 */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ---------- CURA BRAND CARDS (ULTRA PREMIUM) ---------- */
/* Note: .expertise-section .container-wide properties consolidated at line 121 */

.cura-brand-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 45px 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Glass Edge Light */
.cura-brand-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Brand Wash Background */
.cura-brand-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--brand-color, var(--primary-color)) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    z-index: -1;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.5) rotate(45deg);
}

.cura-brand-card:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(-2deg);
    box-shadow: 0 30px 60px var(--brand-glow, rgba(62, 196, 225, 0.25));
}

.cura-brand-card:hover::after {
    opacity: 0.1;
    transform: scale(1.5) rotate(0deg);
}

/* Floating Initial Background */
.brand-bg-initial {
    position: absolute;
    top: 55%;
    right: -10px;
    transform: translateY(-50%);
    font-size: 180px;
    font-weight: 900;
    color: var(--brand-color, var(--primary-color));
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
    transition: all 0.6s ease;
    user-select: none;
}

.cura-brand-card:hover .brand-bg-initial {
    opacity: 0.1;
    right: 20px;
}

/* Shimmer Glint */
.brand-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.cura-brand-card:hover .brand-shimmer {
    animation: shimmerGlint 0.8s ease;
}

@keyframes shimmerGlint {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.brand-logo-container {
    text-align: center;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.cura-brand-logo {
    max-height: 85px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cura-brand-card:hover .cura-brand-logo {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}

.brand-tagline {
    color: var(--brand-color, var(--primary-color));
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-align: center;
    min-height: 10px;
    display: flex;
    align-items: flex-end;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.brand-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.brand-list li {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.brand-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--brand-color, var(--primary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cura-brand-card:hover .brand-list li {
    color: #111;
}

.cura-brand-card:hover .brand-list li::before {
    transform: rotate(45deg);
    border-radius: 50%;
}

.brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--brand-color, var(--primary-color));
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-footer .arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.cura-brand-card:hover .brand-footer .arrow-icon {
    transform: translateX(8px);
}

/* Specific Brand Colors & Glows */
.brand-shield {
    --brand-color: #e6274e;
    --brand-glow: rgba(230, 39, 78, 0.25);
}

.brand-track {
    --brand-color: #07aa93;
    --brand-glow: rgba(7, 170, 147, 0.25);
}

.brand-guard {
    --brand-color: #f36f23;
    --brand-glow: rgba(243, 111, 35, 0.25);
}

.brand-blind {
    --brand-color: #32b563;
    --brand-glow: rgba(50, 181, 99, 0.25);
}

.brand-floor {
    --brand-color: #8a59a5;
    --brand-glow: rgba(138, 89, 165, 0.25);
}

.product-collection-card {
    background: white;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

/* ---------- BUTTONS ---------- */
.btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* NOTE: .btn-primary and .btn-outline base styles are defined at lines 129-176 */
/* Hero-specific button variants use .btn-outline-light class */

/* ---------- PAGE HEADER ---------- */
.page-header {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.8) 100%);
    position: relative;
    color: white !important;
    padding: 130px 0 60px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding-top: 140px !important;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.page-header .container {
    padding-top: 0;
}

.main-content-section {
    padding-top: 50px !important;
}

.section-padding {
    padding: var(--section-padding);
}

/* .section-padding+.section-padding {
    margin-top: 40px;
}

.section-padding:last-of-type {
    margin-bottom: 80px;
} */

.section-padding-fixed {
    padding-top: 100px;
}

/* ---------- TABLES, MODAL ---------- */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    max-height: fit-content;
}

.tech-table td,
.tech-table th {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Modal styles are in modal.css */

.intro-text {
    padding-top: 10px;
}

/* ---------- BRAND GRID ---------- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Premium Brand Image Card */
.brand-img {
    position: relative;
    min-height: 600px;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Premium Design */
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* Deep but soft shadow */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Ultra smooth ease */
    z-index: 1;
}

/* Hover Animation: Lift & Glow */
.brand-img:hover {
    transform: translateY(-10px) scale(1.01) !important;
    box-shadow: 0 30px 60px rgba(62, 196, 225, 0.2);
    /* Tinted shadow */
    border-color: rgba(62, 196, 225, 0.4);
}

/* Vignette Overlay for Depth */
.brand-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
    /* Let clicks pass */
    z-index: 1;
    /* Below Hotspots (z-10) */
}

.brand-img:hover::after {
    opacity: 0.8;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
    text-align: center;
    padding: 30px;
}

.brand-img:hover .brand-overlay {
    opacity: 1;
}

.brand-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.brand-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eaeaea;
}

.brand-tags {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-tags span {
    background: rgba(62, 196, 225, 0.15);
    border: 1px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ---------- HOTSPOTS ---------- */
.hotspot {
    position: absolute;
    display: inline-block;
    text-decoration: none;
    /* Ensure no underline from anchor */
    z-index: 10;
}

.hotspot-arrow {
    display: inline-block;
    background: var(--primary-color);
    color: white !important;
    /* Force white color */
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(62, 196, 225, 0.6);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 11;
}

.hotspot:hover .hotspot-arrow {
    transform: scale(1.1);
    background: #24b1a5;
    /* Slightly darker on hover */
    color: white !important;
}

.hotspot-info {
    position: absolute;
    display: block;

    /* Premium Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);

    padding: 5px 10px;
    /* Slightly more breathing room */
    border-radius: 15px;
    /* Smoother corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    width: max-content;
    max-width: 180px;
    z-index: 100;
    left: 43px;
    top: 50%;

    /* Always Visible State */
    opacity: 1;
    visibility: visible;
    transform: translateY(-20%);
    transform-origin: left center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    pointer-events: auto;
}

.hotspot:hover .hotspot-info {
    /* Hover Effect: "Pop" closer to the user */
    transform: translateY(-22%) scale(1.05);
    background: rgba(255, 255, 255, 0.9);
    /* Brighter / Less transparent on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Deeper shadow */
    border-color: rgba(255, 255, 255, 0.9);
    z-index: 102;
}

.hotspot-info h4 {
    margin: 0 0 2px 0;
    font-size: 0.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    /* Match logo style */
    font-weight: 800;
}

.hotspot-info p {
    margin: 0;
    font-size: 0.6rem;
    line-height: 1.3;
    color: #333;
}

/* Specific Adjustments for different positions if needed to prevent overflow */
.floor-hotspot {
    bottom: 15%;
    left: 30%;
}

.wall-hotspot {
    top: 50%;
    left: 20%;
}

.shield-hotspot {
    top: 50%;
    left: 25%;
    transform: translateY(-50%);
}

.track-hotspot {
    top: 12%;
    right: 65%;
    /* Moved further left to ensure full visibility */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(62, 196, 225, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(62, 196, 225, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(62, 196, 225, 0);
    }
}

.image-slider-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eee;
}

.image-slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .image-slider-wrapper img {
    transform: scale(1.1);
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.btn-view-more {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important;
    padding: 15px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-more:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 196, 225, 0.3);
}

.btn-view-more:active {
    transform: translateY(-1px);
}

/* ---------- COLOR & GALLERY GRID ---------- */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.color-card {
    text-align: center;
}

/* Basic color swatch box - for inline color cards */
.color-swatch-box {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
}

.btn-learn-more {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), #0fb9d7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(62, 196, 225, 0.35);
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(62, 196, 225, 0.45);
    background: linear-gradient(135deg, #0fb9d7, var(--primary-color));
}

.gallery-item {
    height: auto !important;
    min-height: 350px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- PRODUCT IMAGES ---------- */
.product-img-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-standard-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.img-standard-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.gallery-item img.gallery-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
}

.flow-img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    object-position: center;
}

.img-details-main {
    width: 100% !important;
    max-width: 450px;
    height: 300px !important;
    object-fit: contain;
    background: #fdfdfd;
}

/* ---------- CURAGUARD ---------- */
/* ---------- RECENT MILESTONES (ULTRA PREMIUM) ---------- */
.milestones-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.project-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

/* Floating Milestone Tag */
.milestone-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 30px;
    background: white;
    position: relative;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.tag-beds {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-beds::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.project-info p:not(.tag-beds) {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.project-card * {
    text-decoration: none !important;
}

/* ---------- WHO WE ARE / STATS (ULTRA PREMIUM) ---------- */
.about-stats-section {
    padding: var(--section-padding);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.stat-card p {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Decorative Stat Icon Backgrounds */
.stat-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--stat-glow, rgba(62, 196, 225, 0.05));
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: scale(4);
}

/* Custom Animated Line for Headers */
.design-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #0fb9d7);
    border-radius: 10px;
    margin: 25px 0;
    position: relative;
}

.design-line::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ---------- CALL TO ACTION ---------- */
.cta-section {
    padding: var(--section-padding);
    background: transparent;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

.cta-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Specific Stat Card Variants */
.stat-exp {
    --stat-glow: rgba(62, 196, 225, 0.1);
}

.stat-proj {
    --stat-glow: rgba(7, 170, 147, 0.1);
}

.stat-qual {
    --stat-glow: rgba(230, 39, 78, 0.1);
}

.stat-support {
    --stat-glow: rgba(243, 111, 35, 0.1);
}

.curaguard-btn {
    display: inline-block;
    padding: 14px 36px;
    /* Frosted Glass - High Opacity */
    background: linear-gradient(180deg, rgba(62, 196, 225, 0.95) 0%, rgba(62, 196, 225, 0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 10px 20px rgba(62, 196, 225, 0.25);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.curaguard-btn:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 15px 30px rgba(62, 196, 225, 0.4);
    background: linear-gradient(180deg, rgba(62, 196, 225, 1) 0%, rgba(62, 196, 225, 0.9) 100%);
    transform: translateY(-2px);

}

.curaguard-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 5px 10px rgba(62, 196, 225, 0.2);
    background: linear-gradient(180deg, rgba(62, 196, 225, 0.55) 0%, rgba(62, 196, 225, 0.35) 100%);
}




.flowchart-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.flow-step {
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

/* ---------- PRODUCT SHOWCASE TABLE ---------- */
.gallery-item .tech-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85rem;
}

.gallery-item .tech-table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    word-wrap: break-word;
}

.gallery-item .tech-table td:first-child {
    width: 40%;
    background: #fafafa;
    font-weight: 600;
}

.gallery-item .tech-table td:last-child {
    width: 60%;
}

.tech-details-dropdown {
    text-align: left;
    width: 100%;
}

.model-label {
    font-size: 0.85rem;
    background: #f8f8f8;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ---------- CURABLIND ---------- */
.product-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 400px;
}

.product-preview-img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    background: #f9f9f9;
}

/* ---------- CATEGORY GRID ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.category-card {
    padding: 20px;
    text-align: center;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.category-card p {
    color: var(--primary-solid);
    margin: 20px 0;
    padding: 0 10px;
    line-height: 1.6;
}

.category-card .btn-learn-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ---------- CURAGUARD PAGE ---------- */
.page-header-curaguard {
    background: rgba(10, 14, 39, 0.95);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 25px;
    min-height: 0;
    text-align: center;
    margin-bottom: 0;
}

.page-header-curaguard h1 {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-size: 2.3rem;
}

.page-header-curaguard .highlight {
    color: var(--primary-color);
}

.product-grid-curaguard {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.product-card-curaguard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    padding: 24px 18px 18px 18px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.product-card-curaguard:hover {
    box-shadow: 0 8px 24px rgba(62, 196, 225, 0.13);
}

.img-standard-container-curaguard {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
}

.img-standard-container-curaguard img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-grid-curaguard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item-curaguard {
    max-width: 400px;
    width: 100%;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    background: #fff;
}

.gallery-img-curaguard {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.img-fit-small-curaguard {
    height: 120px !important;
}

.tech-table-curaguard {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 30px 0;
    font-size: 0.97rem;
}

.tech-table-curaguard td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
}

.tech-table-curaguard .table-section-head {
    background: #f7f7f7;
    font-weight: bold;
    color: #222;
    width: 40%;
}

.features-list-curaguard {
    margin: 18px 0 30px 0;
    padding-left: 20px;
}

.features-list-curaguard li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet & Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .brand-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .brand-img {
        min-height: 400px;
        height: 50vh;
    }

    .hotspot {
        font-size: 0.9rem;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* Mobile Landscape & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 40px 20px !important;
    }

    .swiper-slide {
        min-height: 400px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
    }

    .brand-img {
        min-height: 300px;
    }

    .gallery-grid,
    .project-container,
    .product-detail-grid,
    .flowchart-container,
    .color-panel-grid {
        grid-template-columns: 1fr !important;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .intro-text h2 {
        font-size: 1.8rem !important;
    }

    .intro-text p {
        font-size: 1rem !important;
    }

    .page-header {
        padding: 100px 0 40px !important;
        min-height: 220px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    body {
        padding-top: 60px;
    }

    .swiper-slide {
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .btn,
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .brand-img {
        min-height: 250px;
    }

    .hotspot {
        position: relative;
        margin: 10px;
    }

    .text-center h2 {
        font-size: 1.6rem !important;
    }

    .text-center h6 {
        font-size: 0.85rem !important;
    }

    .text-center p {
        font-size: 0.9rem;
    }

    .intro-text h2 {
        font-size: 1.5rem !important;
    }

    .intro-text h6 {
        font-size: 0.85rem !important;
    }

    .intro-text p {
        font-size: 0.9rem !important;
    }

    .brand-list li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .btn-view-more {
        font-size: 0.9rem;
        padding: 12px 28px;
    }

    .page-header {
        padding: 80px 0 30px !important;
        min-height: 180px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .text-center h2 {
        font-size: 1.4rem !important;
    }

    .intro-text h2 {
        font-size: 1.3rem !important;
    }

    .brand-img {
        min-height: 200px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}

/* Landscape Orientation Fix */
@media (max-height: 500px) and (orientation: landscape) {
    .swiper-slide {
        min-height: 100vh;
    }

    .hero-content {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {

    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none;
    }
}

footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 2rem 0 2rem;
    border-top: 1px solid rgba(62, 196, 225, 0.2);
    margin-top: 0rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

footer h5 {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-col ul li a:hover {
    color: var(--primary-color) !important;
}

.footer-col ul li a .footer-brand-logo {
    margin-left: -4px;
    /* Optical adjustment to pull logos closer to left edge */
    max-width: 180px;
}

/* Specific optical fixes for inconsistent image padding & sizes */
.footer-brand-logo[src*="curafloor"] {
    margin-left: -5px !important;
    height: 25px;
}

.footer-brand-logo[src*="curashield"] {
    margin-left: -2.5px !important;
    height: 26px;
}

.footer-brand-logo[src*="curatrack"] {
    margin-left: -6.5px !important;
    height: 23px;
}

.footer-brand-logo[src*="curaguard"] {
    margin-left: -4.5px !important;
}

.footer-brand-logo[src*="curablinds"] {
    margin-left: -4px !important;
}

.footer-col ul li {
    margin-bottom: 1rem;
    /* Slightly more space between logos */
    padding-left: 0;
    list-style: none;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-brand p {
    line-height: 1.8;
    opacity: 0.8;
}

.footer-brand .footer-logo {
    height: 95px;
    width: auto;
    /* margin-bottom: 20px; */
    margin-left: 30px;
}

/* Footer Tagline & Brand Centering */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;

}

.footer-description {
    margin-top: 1rem;
}

.footer-contact-item {
    margin-top: 10px;
}

.footer-contact-link {
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* cyrafloor-colour selection-luxury */
.curafloor-specific-grid {
    display: grid;
    /* Menetapkan 5 kolom sebaris */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.curafloor-specific-grid .color-item {
    text-align: center;
}

.curafloor-specific-grid .color-img-box {
    width: 100%;
    /* Memastikan gambar kotak sempurna (1:1) */
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
    display: block;
    border: 1px solid #eee;
    /* Border halus untuk kemasan */
}

.curafloor-specific-grid .color-code {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* Responsif: Jika skrin kecil (Tablet), tukar jadi 3 sebaris */
@media (max-width: 992px) {
    .curafloor-specific-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsif: Jika skrin telefon, tukar jadi 2 sebaris */
@media (max-width: 576px) {
    .curafloor-specific-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.color-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* pastikan segi empat sama */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    /* optional, bagi kelihatan kemas */
}

.curafloor-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 gambar per row */
    gap: 15px;
}

.curafloor-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.curafloor-color-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* segi empat sama */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    /* optional untuk kemas */
    margin-bottom: 8px;
}

.curafloor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 gambar per baris */
    gap: 15px;
    margin-top: 20px;
}

.curafloor-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* segi empat sama */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.curafloor-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.curafloor-gallery-img:hover {
    transform: scale(1.05);
}

/* luxury-gallery */
.luxury-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 gambar per baris */
    gap: 15px;
    margin-top: 20px;
}

.luxury-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* segi empat sama */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.luxury-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.luxury-gallery-img:hover {
    transform: scale(1.05);
}

/* Note: If you need auto-fit grid for products, use .product-grid-auto */
.product-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-box {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    /* pastikan box rapat dengan gambar */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Square aspect ratio wrapper for product images */
.product-img-wrapper-square {
    width: 100%;
    aspect-ratio: 1/1;
    /* kotak segi empat sama */
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* pastikan gambar penuh kotak */
}

.product-content {
    padding: 15px;
}

.product-content h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: bold;
}

.product-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.product-content .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

/* curafloor-profile-subproduct */
.profile-subproduct-curafloor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-subproduct-curafloor-card {
    border: 1px solid #eee;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-subproduct-curafloor-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* segi empat sama */
    overflow: hidden;
    margin-bottom: 15px;
}

.profile-subproduct-curafloor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* gambar penuh kotak */
    border-radius: 8px;
}

.profile-subproduct-curafloor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.profile-subproduct-curafloor-card p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}


/* curaguard-subproduct-grid */
.grid-subproduct-curaguard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 1 baris ada 2 sahaja */
    gap: 30px;
    margin-top: 20px;
}

.card-subproduct-curaguard {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.card-subproduct-curaguard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


.img-container-rect-curaguard {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Memastikan bentuk segi empat tepat */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

/* Full Card Image Optimization */
.full-card-img-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin: 20px auto;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.full-card-img-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.full-card-img-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.img-container-rect-curaguard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Imej akan memenuhi ruang segi empat tepat */
}

@media (max-width: 768px) {
    .grid-subproduct-curaguard {
        grid-template-columns: 1fr;
        /* Responsif untuk telefon */
    }
}

/* button-index-spacing */
.hero-action-buttons {
    margin-top: 30px;
    /* Tambah jarak antara text dan button */
}

/* ========================================
   RESPONSIVE ABOUT US PAGE
======================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {

    /* About grid menjadi 1 column */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Header adjustments */
    .page-header h1 {
        font-size: 1.8rem !important;
    }

    .page-header p {
        font-size: 0.95rem !important;
        padding: 0 15px;
    }

    /* Section padding reduced */
    .section-padding {
        padding: 40px 20px !important;
    }

    /* Container padding */
    .container {
        padding: 0 20px;
    }

    /* Text size adjustments */
    .about-grid h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .about-grid h6 {
        font-size: 0.9rem !important;
    }

    .about-grid p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .about-grid h4 {
        font-size: 1.2rem !important;
        margin-top: 25px !important;
    }

    .about-grid ul {
        font-size: 0.9rem !important;
    }

    /* Image full width on mobile */
    .about-grid img {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Project cards stack */

    /* Stat card mobile adjustments - base hover keeps desktop behavior */
    .brand-list {
        padding-left: 20px;
        /* Indent slightly */
        margin: 0;
    }

    .brand-list li {
        margin-bottom: 10px;
        /* Space between items */
        font-size: 0.9rem;
        /* Clean, readable size */
        color: #475569;
        /* Softer dark gray */
        line-height: 1.5;
        /* Better readability */
        position: relative;
    }

    /* Optional: Custom bullet color if distinct from text */
    .brand-list li::marker {
        color: var(--primary-color);
        /* Brand cyan color */
    }

    .project-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .project-card {
        margin-bottom: 15px;
    }

    .project-info h3 {
        font-size: 1.1rem !important;
    }

    .project-info p {
        font-size: 0.9rem !important;
    }

    /* Past projects grid */
    .past-projects-grid,
    div[style*="grid-template-columns: repeat(auto-fill,minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* View more button */
    .btn-view-more {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem !important;
        padding: 0 10px;
    }

    .page-header {
        padding: 40px 15px !important;
    }

    .about-grid h2 {
        font-size: 1.5rem !important;
    }

    .about-grid h6 {
        font-size: 0.85rem !important;
    }

    .about-grid p {
        font-size: 0.9rem !important;
    }

    .about-grid h4 {
        font-size: 1.1rem !important;
    }

    .about-grid ul li {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    .section-padding {
        padding: 30px 15px !important;
    }

    .container {
        padding: 0 20px;
    }

    /* Recent Projects heading */
    .text-center h2 {
        font-size: 1.6rem !important;
    }

    .text-center p {
        font-size: 0.9rem !important;
    }

    /* Past projects smaller text */
    div[style*="background: white; padding: 15px"] span {
        font-size: 0.8rem !important;
    }
}

/* Small desktop (992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .about-grid {
        gap: 40px !important;
    }

    .about-grid p {
        font-size: 1rem !important;
    }
}

/* table-modify */
div[style*="overflow-x: auto"] {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    /* Menghilangkan gap antara border */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    border: 1px solid #dee2e6;
    /* Border luar utama */
}

/* Header Utama Table */
.tech-table thead th {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 700;
    /* Bold kan header */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    /* Border setiap sel header */
    text-align: left;
}

/* Setiap Sel dalam Body */
.tech-table tbody td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    /* Menampakkan border setiap sel */
    line-height: 1.5;
}

/* Warna baris berselang-seli (Zebra Stripes) */
.tech-table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

/* Hover effect supaya nampak interaktif */
.tech-table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

/* Header Seksyen (Safety Criteria, Performance, etc.) */
.table-section-head td {
    background-color: var(--primary-color) !important;
    /* Menggunakan warna tema anda */
    color: #ffffff !important;
    font-weight: 700 !important;
    /* Bold kan teks seksyen */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px !important;
    border: 1px solid #13b5ce !important;
}

/* Bold kan bahagian Result untuk penekanan */
.tech-table td:last-child {
    font-weight: 600;
    color: #000;
}

/* media-news-css */
/* Media & News Page - Box Layout (Image Top, Text Bottom) */
/* Note: .page-header base styles are defined at lines 770-786 */

.mxn-news-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--section-padding);
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

/* Filter Chips */
.mxn-filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.mxn-chip {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.mxn-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mxn-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* News Grid - defined in about-interactions.css for proper responsive auto-fit */

/* News Cards - Box Style */
/* Note: .mxn-news-card base styles are in about-interactions.css (premium crystal design) */
/* Keeping only hover override if needed */

/* Image */
.mxn-news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mxn-news-card:hover img {
    transform: scale(1.05);
}

/* Content Below Image */
.mxn-news-overlay {
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.mxn-news-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.mxn-news-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #1a1d3f;
}

.mxn-news-date {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* Ensure news page content uses same mobile gutters as global containers */
@media (max-width: 768px) {
    .mxn-news-page-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .mxn-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .mxn-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .mxn-news-card img {
        height: 180px;
    }
}

/* Modal Overlay */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal-overlay.open {
    display: flex;
    opacity: 1;
}

/* Modal Content Container */
.news-modal-content {
    background: white;
    width: 90%;
    max-width: 1100px;
    /* Wide layout */
    height: 90vh;
    /* Takes up most of the screen */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.news-modal-close:hover {
    color: #e6274e;
}

/* Modal Body - Grid Layout (Left: Content, Right: Sidebar) */
.news-modal-body {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* LEFT: Main Content */
.news-modal-body .news-detail-main {
    flex: 3;
    /* 60-70% width */
    padding: 0 30px;
    overflow-y: auto;
    /* Scrollable content */
    border-right: 1px solid #eee;
}

.news-detail-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-detail-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-detail-date {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.news-detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* RIGHT: Sidebar (More News) */
.news-modal-body .news-detail-sidebar {
    flex: 1.5;
    /* 30-40% width */
    background: #f9f9f9;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Sidebar Item */
.sidebar-item {
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-item:hover {
    transform: translateX(5px);
}

.sidebar-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-item-info h4 {
    font-size: 14px;
    margin: 0 0 5px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item-info span {
    font-size: 12px;
    color: #999;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .news-modal-body {
        flex-direction: column;
    }

    .news-modal-body .news-detail-main,
    .news-modal-body .news-detail-sidebar {
        flex: none;
        width: 100%;
        border-right: none;
    }

    .news-modal-body .news-detail-main {
        height: 60%;
    }

    .news-modal-body .news-detail-sidebar {
        height: 40%;
    }
}

/* Global WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Global LinkedIn Float Button */
.linkedin-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0077b5;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.5);
}

.linkedin-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Ensure news cards have pointer cursor */
.mxn-news-card {
    cursor: pointer;
}

/* ==========================================================================
   MOBILE FIXES (Consolidated from mobile-fixes.css)
   Targeting devices <= 992px (Tablets & Mobile)
   ========================================================================== */

/* ----------------------------------------------------
   1. NAVIGATION & HEADER (Mobile Menu)
---------------------------------------------------- */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

@media screen and (max-width: 992px) {

    /* Show Hamburger on Tablet/Mobile */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 2000;
        position: relative;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 5px 0;
        transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.4s;
        border-radius: 2px;
    }

    /* Change bar color if needed when overlay is active */
    .menu-toggle.active .bar {
        background-color: var(--secondary-color);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.6);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Navigation Dropdown - Tidy & Premium */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 100vh;
        width: 100%;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: calc(90px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)) 20px;
        /* Tidier padding */
        z-index: 1001;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);

        /* Entrance Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }

    /* Tidy List Items */
    .nav-links>li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        display: block !important;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease-out;
    }

    .nav-links.active>li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Delay Logic */
    .nav-links.active>li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-links.active>li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-links.active>li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-links.active>li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-links.active>li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-links>li:last-child {
        border-bottom: none;
        padding-top: 25px;
    }

    .nav-link {
        font-size: 1.05rem;
        /* Tidier font size */
        font-weight: 700;
        color: var(--secondary-color) !important;
        padding: 16px 0 !important;
        /* Tigther padding */
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
        position: relative;
    }

    /* Tidy Products Section */
    .nav-links li.dropdown {
        border-bottom: none;
    }

    /* Header for the sublist */
    .nav-links li.dropdown>.nav-link {
        color: var(--primary-color) !important;
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding-bottom: 8px !important;
        border-bottom: 1px solid rgba(62, 196, 225, 0.1);
        margin-bottom: 5px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 15px !important;
        /* Systematic indent */
        width: 100% !important;
        margin: 0 !important;
        border-left: 1px solid rgba(62, 196, 225, 0.2);
        /* Subtle guide line */
        margin-left: 5px;
        transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
        transform: translateY(-6px) !important;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px;
        padding: 6px 0 15px 15px !important;
        transform: translateY(0) !important;
    }

    .nav-links.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px;
        padding: 6px 0 15px 15px !important;
        transform: translateY(0) !important;
    }

    .dropdown-menu li {
        border-bottom: none !important;
    }

    .dropdown-item {
        padding: 10px 0 !important;
        /* Tidier sub-padding */
        font-size: 0.95rem !important;
        font-weight: 500;
        color: #64748b !important;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .dropdown-item::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 1px;
        background: var(--primary-color);
        margin-right: 12px;
        vertical-align: middle;
        opacity: 0.4;
    }

    .dropdown-item:active {
        color: var(--primary-color) !important;
        padding-left: 8px !important;
    }

    /* Tidy Contact Button */
    .nav-links li:last-child .nav-link {
        background: var(--primary-color);
        color: white !important;
        box-shadow: 0 8px 20px rgba(62, 196, 225, 0.2);
        width: 100%;
        border-radius: 8px;
        justify-content: center;
        padding: 14px !important;
        font-size: 1rem;
        border: none;
        text-transform: uppercase;
        font-weight: 800;
    }

    /* Hide the chevron on mobile */
    .dropdown>.nav-link::after {
        display: none !important;
    }
}

/* ----------------------------------------------------
   2. CORE TYPOGRAPHY & LAYOUT FIXES
   Targeting <= 768px
---------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* Fix Root Font Size */
    html,
    body {
        font-size: 15px;
        width: 100%;
        overflow-x: clip;
        /* Clip horizontal overflow without breaking sticky */
    }

    /* Container Padding */
    .container,
    .container-wide {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.4rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Override Inline Grid Styles for Single Column */
    .intro-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        display: flex !important;
        flex-direction: column;
    }

    .project-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
    }

    /* Stats Section */
    .intro-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Expertise Brand Grid (The auto-fit one) */
    .expertise-section .container-wide>div.reveal-on-scroll {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
    }

    /* ----------------------------------------------------
       3. SECTION SPECIFIC ADJUSTMENTS
    ---------------------------------------------------- */

    /* Hero Section - STABLE SCROLL FOR MOBILE */
    .medical-hero {
        height: 250vh !important;
        /* Slightly shorter for better mobile experience */
        background: var(--secondary-color);
        position: relative;
        overflow: visible !important;
    }

    .medical-sticky-wrapper {
        position: -webkit-sticky;
        position: sticky !important;
        top: 0;
        height: 100vh;
        height: 100dvh;
        display: flex !important;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        z-index: 10;
        background: var(--secondary-color);
    }

    /* Adjust Hero Content Position */
    .hero-content-wrapper {
        padding: 100px 20px 20px 20px;
        /* Account for fixed nav */
        position: relative;
        z-index: 20;
        text-align: center;
        width: 100%;
    }

    .hero-text-item {
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }

    .hero-text-item.active {
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0);
    }

    .hero-text-item h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 20px !important;
    }

    .hero-text-item p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 30px !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }

    /* HUD Adjustments */
    .medical-hud {
        display: flex !important;
        padding: 20px;
    }

    .hud-corner {
        width: 15px !important;
        height: 15px !important;
        opacity: 0.3;
    }

    .hud-sidebar {
        left: 15px !important;
        transform: scale(0.6) translateY(-50%) !important;
    }

    .hud-status {
        right: 20px !important;
        bottom: 30px !important;
        font-size: 0.6rem !important;
    }

    /* Standardized Vertical Padding for Mobile */
    .section-padding,
    .expertise-section,
    .milestones-section,
    .about-stats-section,
    .cta-section,
    .video-section,
    .specs-section,
    .features-section,
    .product-cta-section,
    .news-page-wrapper {
        padding: var(--section-padding-mobile) !important;
    }

    /* Product Cards / Expertise Grid - OVERRIDE INLINE STYLES */
    .brand-grid,
    .expertise-section .stagger-container[style*="grid"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Ensure all transition-based elements are forced visible if they break */
    .reveal-on-scroll,
    .stagger-container>*,
    .cura-brand-card,
    .project-card {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition-delay: 0s !important;
    }

    .brand-img {
        height: 550px !important;
        min-height: 550px !important;
        margin-bottom: 30px !important;
        position: relative;
        width: 100%;
        background-size: cover;
        background-position: center;
        border-radius: 20px;
        overflow: visible !important;
        z-index: 1;
    }

    /* Hotspots: Portrait Optimizations */
    .hotspot {
        transform: none !important;
        z-index: 10;
        position: absolute;
        display: block;
        width: auto;
        height: auto;
    }

    .hotspot-arrow {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 14px !important;
        background: var(--primary-color) !important;
        color: white !important;
        box-shadow: 0 0 20px rgba(62, 196, 225, 0.6) !important;
    }

    /* Restored Positions adapted for Portrait Mobile */
    .hotspot.floor-hotspot {
        bottom: 18% !important;
        left: 35% !important;
        top: auto !important;
    }

    .hotspot.wall-hotspot {
        top: 45% !important;
        left: 25% !important;
    }

    .hotspot.track-hotspot {
        top: 15% !important;
        left: 30% !important;
    }

    .hotspot.shield-hotspot {
        top: 55% !important;
        left: 35% !important;
    }

    /* Product Cards (Info Tooltips) */
    .hotspot-info {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute !important;
        top: 50% !important;
        left: 40px !important;
        transform: translateY(-50%) !important;
        width: 140px !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(10px);
        padding: 8px 10px !important;
        border-radius: 10px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
        pointer-events: auto !important;
        border: 1px solid rgba(62, 196, 225, 0.2) !important;
    }


    .hotspot-info img {
        max-height: 24px !important;
        margin-bottom: 4px !important;
    }

    .hotspot-info p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        color: #333 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        text-align: center !important;
    }

    /* About Section */
    .intro-text {
        text-align: left;
    }

    /* About Page Split Layout Fixes */
    .row .col-left,
    .row .col-right {
        position: static !important;
        top: auto !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .row {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .intro-text h2 {
        font-size: 2.2rem !important;
    }

    /* CTA Section */
    .cta-title {
        font-size: 2rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h5 {
        text-align: center;
    }

    .footer-col ul li a {
        justify-content: center !important;
        display: flex !important;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .footer-brand-logo,
    [class*="footer-brand-logo"],
    .footer-brand-logo[src*="cura"] {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 0;
        display: block !important;
        float: none !important;
        left: 0 !important;
    }

    .footer-col ul {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 !important;
    }

    /* ----------------------------------------------------
       4. COMPONENT TWEAKS
    ---------------------------------------------------- */

    /* Buttons */
    .btn-primary,
    .curaguard-btn,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 10px auto;
        text-align: center;
    }

    .hero-action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Popups */
    .popup-content {
        width: 95% !important;
    }

    .popup-close {
        top: 10px;
        right: 15px;
        color: #fff;
        background: rgba(0, 0, 0, 0.5);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
}

/* ----------------------------------------------------
   5. EXTRA SMALL DEVICES (<= 480px)
---------------------------------------------------- */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .intro-stats {
        width: 100%;
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 20px;
    }
}

/* ----------------------------------------------------
   6. GLOBAL FOOTER FIXES
---------------------------------------------------- */
/* Developer Link Hover Effect - Overrides inline styles */
.copyright p a[href*="ips.com.my"] {
    transition: color 0.3s ease;
}

.copyright p a[href*="ips.com.my"]:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Shared Page Hero (Restored) */
.page-hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -100px;
    /* Offset body padding-top */
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    /* background-image: url('../images/hero-2.jpg'); */
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed dark overlay */
    background: transparent;
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    padding-top: 100px;
}

.page-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    /* Enhanced shadow for legibility without overlay */
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.page-hero-content p {
    color: #ffffff;
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 1px 5px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

@media (max-width: 768px) {
    .page-hero {
        height: 60vh;
        min-height: 450px;
    }

    .page-hero-content {
        padding-top: 60px;
    }

    .page-hero-content h1 {
        font-size: 3rem;
    }

    .page-hero-content p {
        font-size: 1.15rem;
        padding: 0 25px;
    }
}