:root {
    --light-orange: #F2A444;
    --deep-orange: #F29849;
    --brown: #8C5F45;
    --white: #f2f2f2;
    --dark-grey: #404040;
    --navbar-height: 70px;
}

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

body {
    background-color: var(--white);
    color: var(--dark-grey);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    /* Removed restrictive overflow and selection for Fix 5.0 */
}

h1,
h2,
h3,
h4,
.navbar a {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--dark-grey);
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-right {
    display: flex;
    align-items: center;
}

.login-icon {
    width: 28px;
    height: 28px;
    fill: var(--deep-orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-icon:hover {
    fill: var(--white);
    transform: scale(1.1);
}

.navbar .logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--deep-orange);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
    font-size: 0.9rem;
}

.nav-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--deep-orange);
    z-index: 1001;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/HeroSectionImages/01.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: var(--navbar-height);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--deep-orange);
}

.hero-text {
    padding-left: 15%;
    padding-right: 15%;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: inline-block;
    margin: 10px;
}

.btn-primary {
    background-color: var(--deep-orange);
    color: var(--white);
    border: 2px solid var(--deep-orange);
}

.btn-primary:hover {
    background-color: var(--light-orange);
    border: 2px solid var(--light-orange);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}

.btn-tertiary {
    background-color: transparent;
    border: 2px solid var(--deep-orange);
    color: var(--deep-orange);
}

.btn-tertiary:hover {
    background-color: var(--deep-orange);
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons .btn {
    margin: 0;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* Footer Refined */
.footer {
    background-color: var(--dark-grey);
    color: var(--deep-orange);
    padding: 10px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
    /* Prevent mobile blowout */
}

.footer-logo img {
    height: 40px;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-nav li a {
    color: var(--deep-orange);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.footer-nav li a:hover {
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--deep-orange);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 0px;
    border-top: 1px solid rgba(242, 152, 73, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(242, 152, 73, 0.6);
}

/* Forms & Cards */
.form-container {
    padding-top: calc(var(--navbar-height) + 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.card h2 {
    margin-bottom: 10px;
    color: var(--brown);
}

.card p {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-grey);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    margin: 10px 0;
}

.mt-20 {
    margin-top: 20px;
}

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

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 25px;
        margin: 0 20px;
    }
}

/* Design Trends Styles */
.site-main-wrapper {
    display: flex;
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}



.site-content-area {
    width: 100%;
    padding: 40px;
    background-color: #f8f9fa;
    /* Light grey backdrop to match live */
}

.site-content-area h1 {
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

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

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

    .site-content-area {
        padding: 20px;
    }

    .site-content-area h1 {
        font-size: 2rem;
    }
}

.trend-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 440px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.trend-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0.2) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.trend-card:hover::before {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 50%,
            rgba(0, 0, 0, 0.6) 100%);
}

.trend-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    border-color: var(--light-orange);
}

.trend-motif,
.trend-name,
.trend-origin,
.trend-desc,
.trend-keywords {
    position: relative;
    z-index: 2;
}

.trend-motif {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--deep-orange);
    opacity: 0.9;
    line-height: 1;
    transition: transform 0.3s ease;
}

.trend-card:hover .trend-motif {
    transform: scale(1.1);
}

.trend-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.trend-origin {
    font-size: 0.8rem;
    color: var(--white);
    background-color: var(--brown);
    width: fit-content;
    padding: 2px 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trend-desc {
    font-size: 0.92rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transition: text-shadow 0.3s ease;
}

.trend-card:hover .trend-name,
.trend-card:hover .trend-desc {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.trend-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trend-keywords span {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #eee;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.trend-card:hover .trend-keywords span {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

/* Specific Trend Backgrounds */
.trend-japandi {
    background-image: url('../assets/Trends/japandi.webp');
}

.trend-biophilic {
    background-image: url('../assets/Trends/biophilic.webp');
}

.trend-minimalist {
    background-image: url('../assets/Trends/minimalist.webp');
}

.trend-wabisabi {
    background-image: url('../assets/Trends/wabisabi.webp');
}

.trend-scandinavian {
    background-image: url('../assets/Trends/scandinavian.webp');
}

.trend-artdeco {
    background-image: url('../assets/Trends/artdeco.webp');
}

/* Trend Detail H1 Override */
.trend-detail-hero h1 {
    color: var(--deep-orange) !important;
}

/* Luxury Tiers Homepage Styles */
.luxury-tiers {
    padding: 80px 6%;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tier-card {
    background: var(--dark-grey);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    height: 405px;
    /* Taller, immersive aspect ratio (90% constraint) */
}

.tier-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tier-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.tier-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.tier-card:hover .tier-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.tier-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tier-info h3 {
    color: var(--white);
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.tier-card:hover .tier-info h3 {
    color: var(--deep-orange);
    transform: translateY(-5px);
}

.tier-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.tier-card:hover .tier-info p {
    opacity: 1;
}

.learn-more {
    font-weight: 700;
    color: var(--deep-orange);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: opacity 0.4s ease;
    display: inline-block;
}

.tier-card:hover .learn-more {
    opacity: 1;
}

/* Tier Detail Pages Styles */
.tier-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tier-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.tier-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.tier-hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-orange);
}

.tier-hero .tagline {
    font-size: 1.5rem;
    font-weight: 400;
}

.harmony-hero {
    background-image: url('../assets/CategoryImages/Harmony.webp');
}

.majesty-hero {
    background-image: url('../assets/CategoryImages/Majesty.webp');
}

.elysium-hero {
    background-image: url('../assets/CategoryImages/Elysium.webp');
}

.tier-details {
    padding: 60px 5%;
}

.tier-intro {
    margin-bottom: 60px;
    max-width: 900px;
}

.tier-intro h2 {
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.tier-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.tier-specs {
    display: grid;
    gap: 60px;
}

.spec-group h3 {
    font-size: 1.8rem;
    color: var(--deep-orange);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--deep-orange);
    display: inline-block;
    padding-bottom: 5px;
}

.spec-group ul {
    list-style: none;
    padding: 0;
}

.spec-group ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.spec-group ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--deep-orange);
    font-weight: bold;
}

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

.spec-grid div {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--deep-orange);
}

.spec-grid h4 {
    margin-bottom: 10px;
    color: var(--dark-grey);
    font-size: 1.1rem;
}

.spec-grid p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tier-hero h1 {
        font-size: 2.5rem;
    }

    .tier-hero .tagline {
        font-size: 1.1rem;
    }

    .tier-intro h2 {
        font-size: 2rem;
    }
}

/* Mobile Responsiveness */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--deep-orange);
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 5%;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        display: flex;
        flex-direction: column;
        background-color: var(--dark-grey);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        height: calc(100vh - var(--navbar-height));
        justify-content: flex-start;
        padding-top: 50px;
        z-index: 1000;
        opacity: 1;
    }

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

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }
}

/* Approach Page Flowchart Styles (Vanilla CSS) */
.approach-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.approach-sub {
    color: var(--deep-orange);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.approach-title {
    font-size: 3rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.approach-desc {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 300;
}

.approach-desc .highlight {
    color: var(--brown);
    font-weight: 600;
}

.flowchart-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px;
}

.flow-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .flow-row {
        flex-direction: row;
    }

    .flow-row.reverse {
        flex-direction: row-reverse;
    }
}

.flow-side {
    width: 100%;
}

@media (min-width: 768px) {
    .flow-side {
        width: 41.666667%;
        display: flex;
        align-items: center;
    }

    .flow-side.left {
        justify-content: flex-end;
        text-align: right;
        padding-right: 2rem;
    }

    .flow-side.right {
        justify-content: flex-start;
        text-align: left;
        padding-left: 2rem;
    }
}

.flow-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.glow-dot {
    width: 14px;
    height: 14px;
    background: var(--deep-orange);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(242, 152, 73, 0.4);
    border: 2px solid white;
    z-index: 10;
}

.connector {
    width: 2px;
    background: linear-gradient(to bottom, var(--light-orange) 0%, rgba(242, 164, 68, 0.1) 100%);
    flex-grow: 1;
}

.step-card {
    background-color: white;
    border: 2px solid rgba(242, 164, 68, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    background-color: var(--light-orange);
    border-color: var(--deep-orange);
    box-shadow: 0 20px 40px -15px rgba(242, 152, 73, 0.3);
}

.step-number {
    color: var(--brown);
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.25rem;
}

.step-card h3 {
    color: var(--dark-grey);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.step-card p {
    color: #6b7280;
    font-size: 1.1 em;
}

.step-card:hover .step-number,
.step-card:hover h3,
.step-card:hover p,
.step-card:hover h4 {
    color: white !important;
}

.view-hint {
    margin-top: 1rem;
    color: var(--deep-orange);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.step-card:hover .view-hint {
    opacity: 0;
    transform: translateY(-10px);
}

.detail-pane {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    overflow: hidden;
}

.step-card:hover .detail-pane {
    max-height: 350px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-pane h4 {
    color: var(--brown);
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.purpose-box {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: #fcf8f5;
    border-left: 3px solid var(--deep-orange);
    transition: all 0.3s ease;
}

.step-card:hover .purpose-box {
    background-color: rgba(255, 255, 255, 0.85);
    border-left-color: #000000;
}

.step-card:hover .purpose-text,
.step-card:hover .purpose-label {
    color: #000000 !important;
}

.purpose-label {
    color: var(--deep-orange);
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    display: block;
}

.purpose-text {
    color: var(--dark-grey);
    font-size: 0.75rem;
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

.approach-quote {
    color: var(--brown);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .approach-title {
        font-size: 2.25rem;
    }

    .flow-side {
        padding: 0.5rem;
    }

    .connector {
        height: 30px;
    }
}

/* Site-wide Sidebar Styles */
.site-main-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f7f7f7;
    margin-top: 0;
    align-items: stretch;
}

.site-sidebar {
    width: 60px;
    background-color: #F29849;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    flex-shrink: 0;
    overflow: hidden;
    z-index: 100;
}

.site-sidebar-label {
    transform: rotate(-90deg);
    white-space: nowrap;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    width: max-content;
    text-align: center;
}

.site-content-area {
    flex-grow: 1;
    min-width: 0;
    padding: 30px 5% 60px 5%;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 0px;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.about-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown)
}

.about-body {
    font-size: 1.1rem;
}

.about-text h1 {
    font-size: 3.5rem;
    color: var(--dark-grey);
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}


/* .about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
} */


.about-text .highlight-text {
    color: var(--deep-orange);
    font-weight: 700;
}

.about-text .italic-quote {
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--brown);
    margin-top: 30px;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-self: flex-start;
}

.stat-card {
    background-color: #333;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f2a444;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.operate-section {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}

.operate-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-grey);
    font-family: 'Montserrat', sans-serif;
}

.city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.city-pill {
    padding: 10px 25px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #666;
    background-color: white;
    transition: all 0.3s ease;
}

.city-pill:hover {
    border-color: #f29489;
    color: #f29489;
    background-color: #fffaf9;
}

/* Project Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    aspect-ratio: 4/3;
    min-width: 0;
    /* Prevent grid blowout */
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 95%;
    max-width: 1500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: var(--deep-orange);
    /* background-color: white; */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--deep-orange);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

.carousel {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container img {
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;
    -webkit-user-drag: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--deep-orange);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-info h2 {
    font-size: 2rem;
    color: var(--dark-grey);
    border-bottom: 2px solid var(--deep-orange);
    padding-bottom: 10px;
}

.project-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.project-stats p {
    margin: 0;
    font-size: 0.9rem;
    color: #444;
}

.project-stats strong {
    display: block;
    color: var(--deep-orange);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.project-details {
    font-style: italic;
    color: #666;
    border-left: 4px solid var(--deep-orange);
    padding-left: 15px;
}

@media (max-width: 768px) {
    .site-main-wrapper {
        flex-direction: column;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .site-sidebar {
        width: 100%;
        height: auto;
        min-height: 60px;
        position: relative;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-sidebar-label {
        transform: rotate(0);
        font-size: 1rem;
        letter-spacing: 0.1em;
        white-space: normal;
        text-align: center;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .site-content-area {
        padding: 20px 10px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Remove heavy spacing from standard containers to let items fill screen */
    .config-card {
        padding: 1.5rem 1rem !important;
        border-radius: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* User Session Styles */
.user-session {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.user-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-orange);
}

.logout-icon {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: fill 0.3s;
    cursor: pointer;
}

.logout-icon:hover {
    fill: var(--deep-orange);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    font-family: 'Montserrat', sans-serif;
}

/* Quick Estimate Page */
.estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 20px 0;
}

.estimate-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.estimate-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.estimate-header p {
    color: #666;
    margin-bottom: 30px;
}

.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: var(--dark-grey);
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--deep-orange);
    box-shadow: 0 0 0 3px rgba(242, 152, 73, 0.1);
}

.calculate-btn {
    padding: 15px;
    background: var(--deep-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 152, 73, 0.3);
}

.calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.estimate-result-container {
    position: sticky;
    top: calc(var(--navbar-height) + 40px);
}

#resultArea {
    display: none;
    animation: fadeInScale 0.5s ease forwards;
}

.result-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--deep-orange);
    text-align: center;
    box-shadow: 0 15px 40px rgba(242, 152, 73, 0.1);
}

.result-title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.result-range {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--deep-orange);
    margin-bottom: 25px;
}

.result-meta {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.5;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    .estimate-result-container {
        position: static;
    }
}

/* Detailed Estimate Page Styles */
.config-card {
    background: #fff;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

#locationMap {
    height: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

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

.form-input {
    width: 100%;
    padding: 1.25rem !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 1rem !important;
    background: #f8fafc !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.form-input:focus {
    border-color: var(--deep-orange) !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(242, 152, 73, 0.1) !important;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-box {
    padding: 1rem 1.5rem;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.option-box:hover {
    border-color: var(--deep-orange);
    background: #fffaf5;
    transform: translateY(-2px);
}

.option-box.active {
    border-color: var(--deep-orange) !important;
    background: var(--deep-orange) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(242, 152, 73, 0.3);
}

.count-badge {
    background: var(--deep-orange);
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 6px -1px rgba(242, 152, 73, 0.2);
}

.count-input {
    width: 60px;
    height: 48px;
    border: 2px solid #f1f5f9;
    border-radius: 0.85rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark-grey);
    background: #fff;
    transition: all 0.3s ease;
}

.count-input:focus {
    border-color: var(--deep-orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 152, 73, 0.1);
}

/* Matrix Table Enhancements */
.matrix-wrapper {
    overflow-x: auto !important;
    overflow-y: visible;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    box-sizing: border-box;
}

.matrix-wrapper:active {
    cursor: grabbing;
}

#detailedMatrix {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#detailedMatrix th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    font-weight: 800;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    white-space: nowrap;
}

#detailedMatrix td {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    min-width: 300px;
    /* Increased for Fix 2.0 */
}

#detailedMatrix th:first-child,
#detailedMatrix td:first-child {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    color: #1f2937;
    z-index: 110;
    border-right: 1px solid #e2e8f0;
    min-width: 300px;
}

#detailedMatrix th:first-child {
    z-index: 120;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {

    #detailedMatrix th,
    #detailedMatrix th:first-child,
    #detailedMatrix td:first-child {
        border-right: none;
    }

    .matrix-wrapper {
        border-radius: 1rem;
    }
}

.category-label {
    font-weight: 800;
    font-size: 1rem;
    color: #1f2937;
    padding: 0;
    display: block;
}

.cat-sub-label {
    font-weight: 400;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.room-index-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--deep-orange);
    margin-bottom: 0.25rem;
}

.matrix-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    margin: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #475569;
}

.matrix-toggle-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.matrix-toggle-btn.selected {
    background: var(--deep-orange) !important;
    color: #fff !important;
    border-color: var(--deep-orange) !important;
    font-weight: 600;
}

/* Custom Scrollbar */
.matrix-wrapper::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    display: block !important;
}

.matrix-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.matrix-wrapper::-webkit-scrollbar-thumb {
    background: var(--deep-orange);
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

.matrix-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--light-orange);
}

/* --- Vision & Mission Redesign --- */
.vision-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 20px;
}

.vision-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.hero-bg-left {
    flex: 1;
    background: url('../assets/blueprint_vision.webp') center/cover no-repeat;
    opacity: 0.8;
}

.hero-bg-right {
    flex: 1;
    background: url('../assets/HeroSectionImages/04.webp') center/cover no-repeat;
}

.vision-glass-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 80%;
}

@media (max-width: 768px) {
    .vision-hero {
        min-height: 450px;
        align-items: center;
    }

    .vision-hero-bg {
        flex-direction: column;
    }

    .vision-glass-content {
        padding: 20px 30px;
        width: 85%;
        text-align: center;
    }
}

.vision-glass-content h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 400;
}

.vision-glass-content h1 em {
    font-style: italic;
    font-weight: 700;
}

.vision-glass-content h1 strong {
    font-weight: 800;
}

.vision-glass-content span {
    display: block;
    font-size: 1.5rem;
    color: var(--dark-grey);
    margin-top: 10px;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding-bottom: 80px;
}

.vision-card {
    text-align: center;
    padding: 40px 20px;
}

.vision-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-card-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--deep-orange);
}

.vision-card h2 {
    font-size: 1.25rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 700;
}

.vision-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.values-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.values-list li {
    font-size: 1.1rem;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--deep-orange);
    border-radius: 50%;
}

@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vision-glass-content h1 {
        font-size: 2.5rem;
    }
}

/* --- FAQ Page Redesign --- */
.faq-container {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 80px;
    /* Base height for 1-2 lines */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.faq-card:hover {
    max-height: 500px;
    /* Expanded height */
    border-color: var(--deep-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.faq-card h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-card:hover h3 {
    color: var(--deep-orange);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--deep-orange);
    transition: transform 0.4s ease;
    margin-left: 20px;
    flex-shrink: 0;
}

.faq-card:hover .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.faq-card:hover .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-card {
        padding: 15px 20px;
        max-height: 100px;
    }

    .faq-card h3 {
        font-size: 1rem;
    }
}

/* =========================================
   Global User Dashboard Modal
   ========================================= */
.dashboard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.dashboard-modal {
    background: var(--white);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dashboard-modal-overlay.active .dashboard-modal {
    transform: translateY(0);
}

.dashboard-header {
    background: var(--dark-grey);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--deep-orange);
}

.dashboard-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.dashboard-close:hover {
    color: var(--deep-orange);
}

.dashboard-body {
    padding: 30px;
    overflow-y: auto;
    background: #f9f9f9;
}

/* =========================================
   Mobile Material Selection Matrix
   ========================================= */
@media (max-width: 768px) {

    /* Prevent root level horizontal scrolling caused by margins */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Hide Desktop Table View entirely on mobile */
    .desktop-matrix-view {
        display: none !important;
    }

    /* Reveal Mobile Stack View */
    .mobile-matrix-view {
        display: block !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Mobile Room Tabs (Horizontal Scrolling) */
    .mobile-room-tabs {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-room-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-room-tab {
        flex-shrink: 0;
        padding: 10px 24px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.95rem;
        background: #f3f4f6;
        color: #4b5563;
        transition: all 0.2s;
        cursor: pointer;
    }

    .mobile-room-tab.active {
        background: #ee9d52;
        color: #fff;
        box-shadow: 0 4px 6px -1px rgba(238, 157, 82, 0.3);
    }

    /* Mobile Category Cards */
    .mobile-category-card {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        /* Reduced from 24px to prevent horizontal blowout */
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .mobile-card-header {
        font-size: 0.75rem;
        font-weight: 800;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    /* Override Pill wrapping just for mobile to support vertical stack inside cards */
    .mobile-pill-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    /* Stop long pill names from blowing out the display width */
    .mobile-category-card .matrix-toggle-btn {
        max-width: 100%;
        height: auto;
        white-space: normal;
        word-break: break-word;
        box-sizing: border-box;
        text-align: center;
        margin: 0;
        /* Reset desktop margin */
    }
}

/* Ensure mobile classes stay hidden on desktop sizes naturally */
@media (min-width: 769px) {
    .mobile-matrix-view {
        display: none !important;
    }
}

.mobile-username-li { display: none; }
@media (max-width: 768px) {
    .mobile-username-li { display: block; margin-bottom: 20px; }
    .user-name { display: none !important; }
}