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

:root {
    --primary: #60a5fa;
    --primary-light: #93c5fd;
    --secondary: #1e293b;
    --text: #f3f4f6;
    --text-light: #d1d5db;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --border: #334155;
}

/* Legacy light mode variables - kept for compatibility but not used */
[data-theme="light"] {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Floating Consultation Button */
.consultation-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    background: var(--primary-light);
}

.consultation-button:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .consultation-button {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 14px;
    }
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
}

/* Navigation - Fortune 500 Style */
.navbar {
    background: #0f172a !important; /* Force dark background */
    background-color: #0f172a !important;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
}

/* Ensure navbar keeps dark background in all states */
.navbar,
.navbar.navbar-hidden {
    background: #0f172a !important;
    background-color: #0f172a !important;
}

/* Mobile: Increase navbar z-index so menu children are above other content */
@media (max-width: 768px) {
    .navbar {
        z-index: 9999;
    }
}

/* Hidden state for navbar on scroll down */
.navbar.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    background: transparent;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo svg {
    width: auto;
    height: 80px !important;
    max-width: 400px !important;
}

/* Logo text color changes with theme */
.nav-logo svg text {
    fill: var(--text);
}

/* Keep the green period constant in both modes */
.nav-logo svg circle {
    fill: #059669;
}

.nav-logo-text {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg-alt);
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
}

/* Dark Mode Toggle - HIDDEN */
.dark-mode-toggle {
    display: none !important;
}

/* Hero - Premium Corporate Style */
.hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.40) 0%, rgba(96, 165, 250, 0.35) 100%),
                url('../images/image-library/hero-bright-modern-desktop.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 140px 60px 100px 60px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10) 0%, rgba(15, 23, 42, 0.30) 100%);
    z-index: 1;
}

.hero > div {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 50px;
    opacity: 0.98;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
}

.hero-stats > div {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px 40px;
    border-radius: 16px;
    min-width: 220px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-stats > div:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-stat-number {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Content */
.content {
    padding: 100px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    margin-bottom: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.section-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    letter-spacing: -1px;
}

.section-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Stats Box */
.stats-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 16px;
    margin: 40px 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
}

/* Table */
.metrics-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 40px 0;
}

.metrics-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.metrics-table th {
    background: var(--bg-alt);
    color: var(--text);
    padding: 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.metrics-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
}

.metrics-table tr:last-child td {
    border-bottom: none;
}

.metrics-table td:last-child {
    font-weight: 700;
    color: var(--primary);
}

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.service-card.expanded {
    transform: translateY(0);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.expand-icon {
    font-size: 32px;
    color: var(--primary);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    user-select: none;
}

.service-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.service-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.service-card.expanded .service-expanded-content {
    max-height: 2000px;
    margin-top: 24px;
    opacity: 1;
}

.service-expanded-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.service-expanded-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}

.service-expanded-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-expanded-content ul li {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.service-expanded-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-expanded-content ul li strong {
    color: var(--text);
}


/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 40px;
}

.team-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.team-title {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.team-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.team-contact-item {
    color: var(--text-light);
    font-size: 15px;
}

.team-contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.team-contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 12px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 28px;
}

.contact-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-light);
}

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

.contact-value a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* News Page */
.news-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.news-category {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category.hud {
    background: #dbeafe;
    color: #1e40af;
}

.news-category.nhrp {
    background: #d1fae5;
    color: #065f46;
}

.news-category.nlha {
    background: #fce7f3;
    color: #9f1239;
}

.news-content {
    padding: 30px;
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.news-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #d1d5db;
    padding: 80px 60px 40px 60px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-contact-item {
    color: #9ca3af;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-contact-item a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 14px;
}

/* New Team Page Styles - FIXED */
.team-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

.team-card-new {
    background: var(--bg);
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.team-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-info-new {
    text-align: center;
    width: 100%;
}

.team-role {
    color: #d97706;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-name-new {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.team-bio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-bio-preview {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.team-bio-full {
    /* Inline continuation of the bio text */
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-decoration: underline;
    margin-bottom: 10px;
}

.read-more-btn:hover {
    color: var(--primary);
}

.team-contact-new {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.team-contact-new .team-contact-item {
    color: var(--text-light);
    font-size: 15px;
}

.team-contact-new .team-contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.team-contact-new .team-contact-item a:hover {
    text-decoration: underline;
}

/* Mobile responsive for new team layout */
@media (max-width: 768px) {
    .team-grid-new {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .team-name-new {
        font-size: 28px;
    }
    
    .team-image-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .team-name-new {
        font-size: 24px;
    }
    
    .team-bio-preview {
        font-size: 15px;
    }
}
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 0;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .metrics-table {
        font-size: 14px;
    }
    
    .metrics-table th,
    .metrics-table td {
        padding: 15px 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-info {
        padding: 30px;
    }
    
    .team-name {
        font-size: 24px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-info h3 {
        font-size: 24px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .footer {
        padding: 50px 20px 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .nav-logo-text {
        font-size: 18px;
    }
    
    .nav-logo svg {
        width: auto;
        height: 45px;
        max-width: 220px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .dark-mode-toggle span {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hero .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-stat-number {
        font-size: 40px;
    }
    
    .hero-stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-text {
        font-size: 15px;
    }
    
    .stats-box {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .metrics-table th,
    .metrics-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 25px;
    }
    
    .team-name {
        font-size: 22px;
    }
    
    .team-title {
        font-size: 15px;
    }
    
    .team-bio {
        font-size: 14px;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .contact-info h3 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 16px 32px;
    }
    
    .footer {
        padding: 40px 20px 20px 20px;
    }
    
    .footer-logo svg {
        width: 60px;
        height: 60px;
    }
    
    .footer-logo-text {
        font-size: 18px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-contact-item {
        font-size: 14px;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding-top: 30px;
    }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero .subtitle {
        font-size: 14px;
    }
    
    .hero-stat-number {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .nav-logo-text {
        font-size: 16px;
    }
}

/* New Team Page Styles */
.team-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

.team-card-new {
    background: var(--bg);
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.team-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-info-new {
    text-align: center;
    width: 100%;
}

.team-role {
    color: #d97706;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-name-new {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.team-bio-preview {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--primary);
}

.team-bio-full {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    line-height: 1.8;
}

.team-bio-full p {
    margin-bottom: 20px;
}

.team-contact-new {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-contact-new .team-contact-item {
    color: var(--text-light);
    font-size: 15px;
}

.team-contact-new .team-contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.team-contact-new .team-contact-item a:hover {
    text-decoration: underline;
}

/* Mobile responsive for new team layout */
@media (max-width: 768px) {
    .team-grid-new {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .team-name-new {
        font-size: 28px;
    }
    
    .team-image-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .team-name-new {
        font-size: 24px;
    }
    
    .team-bio-preview {
        font-size: 15px;
    }
}

/* Calculator Styles */
.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.calculator-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.sample-calc-btn {
    background: #fbbf24;
    color: #78350f;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-calc-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.calc-input-group input {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculation-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calc-step {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.step-header {
    margin-bottom: 20px;
}

.step-number {
    display: inline-block;
    background: var(--secondary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.step-description {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.calc-row.subtract,
.calc-row.multiply {
    padding-left: 20px;
    border-left: 3px solid var(--border);
}

.calc-row.total-row {
    background: #e0f2fe;
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 600;
}

[data-theme="dark"] .calc-row.total-row {
    background: #1e3a5f;
}

.calc-row.final-row {
    background: var(--secondary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
}

.calc-label {
    font-size: 15px;
    color: var(--text-light);
}

.calc-row.total-row .calc-label,
.calc-row.final-row .calc-label {
    color: inherit;
    font-weight: 600;
}

.calc-operator {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 10px;
}

.calc-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.calc-value.highlight {
    color: white;
    font-size: 24px;
}

.calculator-note {
    margin-top: 30px;
    padding: 20px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

[data-theme="dark"] .calculator-note {
    background: #422006;
    color: #fbbf24;
    border-left-color: #f59e0b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-container {
        padding: 25px;
    }
    
    .calculator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .calc-step {
        padding: 20px;
    }
    
    .calc-row {
        font-size: 14px;
    }
    
    .calc-value {
        font-size: 15px;
    }
    
    .calc-value.highlight {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 20px;
    }
    
    .calculator-header h3 {
        font-size: 22px;
    }
    
    .sample-calc-btn {
        width: 100%;
    }
    
    .calc-step {
        padding: 15px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.case-study-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

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

.case-study-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.case-study-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image {
    transform: scale(1.05);
}

.case-study-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card:hover .case-study-overlay {
    opacity: 1;
}

.view-case-study {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-info {
    padding: 25px;
}

.case-study-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.case-study-location {
    font-size: 15px;
    color: var(--text-light);
}

/* Case Study Detail Page */
.case-study-detail {
    max-width: 900px;
    margin: 0 auto;
}

.case-study-hero-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.case-study-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    color: var(--text);
}

.case-study-intro {
    margin-bottom: 50px;
}

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.case-study-section {
    margin-bottom: 50px;
}

.case-study-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

.case-study-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

.case-study-metrics {
    margin: 60px 0;
    max-width: 1600px;
}

.case-study-metrics h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

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

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

.metric-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    white-space: nowrap;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
}

.case-study-back {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-study-hero-image {
        height: 300px;
        margin-bottom: 40px;
    }
    
    .intro-text {
        font-size: 18px;
    }
    
    .case-study-section h2 {
        font-size: 28px;
    }
    
    .case-study-section p {
        font-size: 16px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metric-value {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .case-study-image-wrapper {
        height: 200px;
    }
    
    .case-study-title {
        font-size: 20px;
    }
    
    .case-study-hero-image {
        height: 250px;
    }
    
    .case-study-section h2 {
        font-size: 24px;
    }
    
    .metric-value {
        font-size: 32px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and Mobile (up to 1024px) */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0 30px;
    }
    
    .content {
        padding: 60px 30px;
    }
    
    .hero {
        padding: 100px 30px 80px 30px;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.40) 0%, rgba(96, 165, 250, 0.35) 100%),
                    url('../images/image-library/hero-bright-modern-mobile.jpg') center center;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero .subtitle {
        font-size: 20px;
    }
    
    .hero-stats {
        gap: 50px;
    }
}

/* Mobile and Small Tablet (up to 768px) */
@media (max-width: 768px) {
    /* Mobile Menu Backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Navigation */
    .nav-content {
        padding: 0 20px;
    }
    
    .nav-logo svg {
        height: 45px;
        max-width: 220px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 10000;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        max-width: 300px;
        display: block;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 18px 20px;
        font-size: 18px;
        border-bottom: 1px solid var(--border);
        display: block;
        color: var(--text);
        background: transparent;
    }
    
    .nav-menu a:hover {
        background: var(--bg-alt);
        color: var(--primary);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px;
        z-index: 99999 !important;
        position: fixed !important;
        top: 20px;
        right: 20px;
        transition: all 0.3s ease;
        pointer-events: all;
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
        background: var(--text);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
        position: relative;
        z-index: 99999;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        z-index: 99999 !important;
    }
    
    .mobile-menu-toggle.active span {
        background: #ffffff !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-right {
        gap: 15px;
        position: relative;
        z-index: 10003;
    }
    
    .dark-mode-toggle {
        display: none !important;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 20px 60px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero .subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-stat-number {
        font-size: 44px;
    }
    
    .hero-stat-label {
        font-size: 13px;
    }
    
    /* Content Sections */
    .content {
        padding: 60px 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .section {
        margin-bottom: 60px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-image {
        width: 80px;
        height: 80px;
    }
    
    .section-title {
        font-size: 32px;
        word-wrap: break-word;
    }
    
    .section-text {
        font-size: 16px;
        word-wrap: break-word;
    }
    
    /* Stats Box - MOBILE CARD LAYOUT */
    .stats-box {
        background: transparent;
        border: none;
        padding: 0;
        margin: 30px 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 25px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .stat-label {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-light);
        order: 2;
    }
    
    .stat-value {
        font-size: 40px;
        font-weight: 700;
        color: var(--primary);
        order: 1;
        line-height: 1;
    }
    
    /* Tables - MOBILE CARD LAYOUT (No Scroll) */
    .metrics-table-wrapper {
        margin: 20px 0;
        overflow: visible;
    }
    
    .metrics-table {
        display: block;
        border: none;
        min-width: auto;
    }
    
    .metrics-table thead {
        display: none;
    }
    
    .metrics-table tbody {
        display: block;
    }
    
    .metrics-table tr {
        display: block;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .metrics-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
        background: transparent;
        white-space: normal;
    }
    
    .metrics-table td:first-child {
        font-weight: 600;
        color: var(--text);
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }
    
    .metrics-table td:nth-child(2) {
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
        margin: 10px 0;
    }
    
    .metrics-table td:last-child {
        font-size: 14px;
        color: var(--text-light);
        font-weight: 500;
        font-style: italic;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-image {
        height: 300px;
    }
    
    .team-info {
        padding: 30px 20px;
    }
    
    .team-name {
        font-size: 24px;
    }
    
    .team-title {
        font-size: 16px;
    }
    
    .team-bio {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px 40px 20px;
    }
    
    .footer-logo svg {
        height: 80px;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .submit-button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    /* News/Resources */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-content {
        padding: 0 15px;
    }
    
    .nav-logo svg {
        height: 40px;
        max-width: 180px;
    }
    
    /* Hero */
    .hero {
        padding: 60px 15px 50px 15px;
    }
    
    .hero h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .hero-stat-number {
        font-size: 36px;
    }
    
    .hero-stat-label {
        font-size: 11px;
    }
    
    /* Content */
    .content {
        padding: 40px 15px;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-text {
        font-size: 15px;
    }
    
    /* Stats - MOBILE CARDS */
    .stats-box {
        padding: 0;
        margin: 20px 0;
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Tables - MOBILE CARDS */
    .metrics-table-wrapper {
        overflow: visible;
        margin: 15px 0;
    }
    
    .metrics-table {
        display: block;
        min-width: auto;
        font-size: 13px;
    }
    
    .metrics-table tr {
        padding: 18px 15px;
        margin-bottom: 12px;
    }
    
    .metrics-table td:first-child {
        font-size: 15px;
    }
    
    .metrics-table td:nth-child(2) {
        font-size: 26px;
    }
    
    .metrics-table td:last-child {
        font-size: 13px;
    }
    
    /* Services */
    .service-card {
        padding: 25px 15px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    /* Team */
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 25px 15px;
    }
    
    .team-name {
        font-size: 22px;
    }
    
    .team-bio {
        font-size: 14px;
    }
    
    /* Footer */
    .footer-content {
        padding: 50px 15px 30px 15px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-contact-item {
        font-size: 14px;
    }
    
    /* Floating Button */
    .consultation-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .consultation-button span:first-child {
        display: none;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero .subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* ============================================
   FIX FOR WHITE SCROLLBAR ON MOBILE
   ============================================ */

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Allow only specific elements to exceed 100% (within scrollable containers) */
.metrics-table {
    max-width: none;
}

/* Hide horizontal scrollbar but allow vertical */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Ensure all major containers don't overflow */
.container,
.content,
.hero,
.footer,
.navbar,
.nav-content,
section,
.stats-box,
.section,
.service-card,
.case-study-card {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for tables on mobile - only allow horizontal scroll within wrapper */
@media (max-width: 768px) {
    /* On mobile, tables become cards, so we don't need scrolling */
    .metrics-table-wrapper {
        display: block;
        overflow: visible;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .metrics-table {
        display: block;
        white-space: normal;
    }
    
    /* Ensure stat boxes don't overflow */
    .stats-box {
        max-width: 100%;
        overflow: visible;
    }
    
    .stat-item {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Prevent images from causing overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Hide scrollbar for IE, Edge and Firefox */
body,
.nav-menu {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .nav-menu a {
        padding: 12px 20px;
    }
    
    .hero {
        padding: 60px 20px 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .consultation-button,
    .mobile-menu-toggle,
    .dark-mode-toggle {
        display: none !important;
    }
    
    .hero {
        padding: 40px 20px;
        background: white;
        color: black;
    }
    
    .content {
        padding: 20px;
    }
    
    a {
        text-decoration: underline;
    }
}
