/* ============================================
   PRIME Hubs Meghalaya - Enhanced Stylesheet
   Full-width layout with improved readability
   ============================================ */

:root {
    --accent-1: #0f172a;
    --accent-2: #0ea5a4;
    --muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.6);
    --border-light: rgba(15, 23, 42, 0.06);
    --shadow-light: rgba(2, 6, 23, 0.06);
    
    /* Unified font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* ============ BASE STYLES ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-size: 17px; /* Increased base font size */
    line-height: 1.6;
}

/* ============ FULL-WIDTH LAYOUT ============ */
.tight, .prime-tight {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 3rem;
}

section {
    padding: 3rem 3rem;
    width: 100%;
}

/* ============ COMPONENTS ============ */
.card, .box {
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-light);
    padding: 1.5rem !important; /* Ensure consistent padding */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all boxes equal height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Make sure content above images takes available space */
.box h3 {
    font-size: var(--text-2xl); /* 24px */
    font-weight: 700;
    color: var(--accent-1);
    margin: 0 0 1rem 0;
}

.box p {
    font-size: var(--text-lg); /* 18px */
    line-height: 1.7;
    color: #475569;
    margin: 0 0 1.5rem 0;
    
}

.box .mt-4:first-of-type {
    margin-bottom: 1.5rem;
}

/* Fix the list styling */
.box ul {
    margin: 0.5rem 0 1.5rem 0;
    padding-left: 1rem;
}

.box ul li {
    font-size: var(--text-base); /* 16px */
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 2px 0 rgba(2, 6, 23, 0.04);
    border: none;
    cursor: pointer;
}

.btn-primary, .btn-accent {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: white;
}

.btn-primary:hover, .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 95, 86, 0.12);
}

.btn-outline {
    background: white;
    color: var(--accent-1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn.ghost {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid var(--accent-2);
}

.btn.ghost:hover {
    background: var(--accent-2);
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), 
                transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

/* ============ HEADER ============ */
.site-header {
    background-color: rgba(15, 23, 42, 0.95);
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    width: 100%;
}

.wb-header-wrapper {
    padding: 1rem 3rem;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
}

.logo {
    width: 160px;
    height: auto;
}

.contact-buyer-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(90deg, #34d399, #14b8a6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-buyer-btn:hover {
    background: linear-gradient(90deg, #10b981, #0d9488);
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============ HERO SECTIONS ============ */
.prime-hero {
    padding: 4rem 3rem;
    width: 100%;
}

.prime-hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    margin: 0;
    font-weight: 800;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: var(--accent-1);
}

.hero-subject {
    display: block;
    color: var(--accent-2);
}

.hero-lead {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Regions Hero */
.regions-hero {
    padding: 4rem 3rem;
    text-align: center;
    width: 100%;
}

.regions-hero-inner {
    max-width: 100%;
}

.regions-hero .hero-title {
    font-size: 52px;
}

.regions-hero .hero-lead {
    font-size: 20px;
    margin: 1rem auto 0;
}

/* Page Hero */
.page-hero {
    padding: 4rem 3rem 2.5rem;
    text-align: center;
    width: 100%;
}

.page-hero h1 {
    margin: 0;
    font-weight: 800;
    font-size: 48px;
    color: var(--accent-1);
}

.page-hero p {
    margin: 1rem auto 0;
    color: #475569;
    font-size: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .2rem;
    width: 550px;
}

.stat-box {
    background: #fff;
    border-radius: 12px;
    padding-bottom : 3rem;
	padding-top: 3rem;
    text-align: center;
    box-shadow: 0 6px 18px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-1);
    letter-spacing: -0.5px;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 15px;
    color: #475569;
}

/* ============ NEWS TICKER ============ */
.news-ticker-wrap {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid rgba(15, 23, 42, 0.02);
    padding: 12px 3rem;
    background: transparent;
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.news-track {
    display: inline-flex;
    gap: 3rem;
    will-change: transform;
}

.news-item {
    display: inline-block;
    background: rgba(15, 23, 42, 0.03);
    color: var(--accent-1);
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 6px;
}

/* ============ REGIONS & HUBS ============ */
.region-columns, .hub-columns {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.region-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.hub-columns {
    grid-template-columns: repeat(3, 1fr);
}

.rbox, .hub-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.rbox:hover, .hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.rbox.active, .hub-card.active {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.rbox-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.rbox-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbox-media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1.25rem;
}

.rbox-media-label {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.rbox-body {
    padding: 1.5rem;
}

.rbox-body h3 {
    font-size: 20px;
}

.rbox-body p {
    font-size: 16px;
}

/* Region Block */
.region-block {
    width: 100%;
    padding: 0 3rem;
}

.region-inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    width: 100%;
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.region-left {
    flex: 1;
    min-width: 300px;
}

.kicker {
    font-size: 15px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#region-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--accent-1);
    margin: 0.5rem 0;
}

.region-blurb {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
    margin-top: 1rem;
}

.region-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hub grid fade transition */
.hub-columns {
    transition: opacity 0.3s ease;
}

.hub-columns.fade-out {
    opacity: 0;
}

/* ============ CONTACT DRAWER ============ */
.drawer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
}

.drawer .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.drawer .panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.95));
    transform: translateX(18px) scale(0.995);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.32s ease;
    opacity: 0;
    box-shadow: -18px 30px 60px rgba(2, 6, 23, 0.12);
}

.drawer.show {
    pointer-events: auto;
}

.drawer.show .backdrop {
    opacity: 1;
}

.drawer.show .panel {
    transform: translateX(0);
    opacity: 1;
}

.drawer input, .drawer textarea {
    font-size: 16px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--accent-1);
    color: white;
    margin: 0;
    padding: 4rem 3rem 2rem;
    width: 100%;
}

.footer-container {
    width: 100%;
    margin: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: var(--accent-2);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.footer-content p, .footer-links p {
    color: #cbd5e1;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
    font-size: 16px;
}

.footer-links a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.contact-item {
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
    font-size: 15px;
}

/* ============ MAP STYLES ============ */
.map-preview-section {
    width: 100%;
    margin: 2rem 0;
    padding: 0 3rem;
}

.map-preview-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.map-preview-header {
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.map-preview-header h3 {
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 28px;
}

.map-preview-header p {
    margin: 0;
    color: #64748b;
    font-size: 18px;
}

.map-preview-wrapper {
    position: relative;
    width: 90%;
    height: 500px;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.map-preview-wrapper #mapImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.map-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.map-loading-spinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============ SEARCH & FILTERS ============ */
.controls-section {
    width: 100%;
    margin: 0;
    padding: 2rem 3rem;
}

.search-filter-wrap {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 17px;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.25rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.filter-btn.active {
    background: var(--accent-2);
    color: white;
}

/* ============ PRODUCT LOCATOR ============ */
body.grad {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

#locator {
    padding: 3rem;
}

#locator .max-w-7xl {
    max-width: 100%;
    width: 100%;
}

#hubCards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#hubCards .hub-card {
    background: #fff;
    border: 1px solid rgba(2,6,23,0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(2,6,23,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

#hubCards .hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2,6,23,0.08);
    border-color: #0ea5e9;
}

#hubCards .hub-card.active {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

#hubCards .hub-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 19px;
    font-weight: 700;
}

#hubCards .hub-card p {
    margin: 0;
    font-size: 16px;
    color: #475569;
}

/* ============ HUB PROFILES ============ */
.hubs-container {
    max-width: none;
    margin: 0 2rem;
    padding: 2rem;
}

.hub-profile-card {
    background: white;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
    width: 100%;
}

.hub-profile-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hub-profile-card.active {
    border-left: 4px solid var(--accent-2);
}

.hub-profile-card.active .hub-header {
    background: rgba(14, 165, 164, 0.03);
}

.hub-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,0.5));
    -webkit-tap-highlight-color: transparent;
}

.hub-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-1);
    margin: 0 0 0.5rem 0;
}

.hub-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
}

.hub-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.expand-icon {
    font-size: 24px;
    color: var(--accent-2);
    transition: transform 0.3s;
}

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

.hub-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.hub-profile-card.expanded .hub-body {
    max-height: 3000px;
}

.hub-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}


/* ============ RESPONSIVE DESIGN ============ */

/* Large tablets */
@media (max-width: 1200px) {
    .prime-hero-grid {
        grid-template-columns: 1fr 400px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .tight, .prime-tight, section, .wb-header-wrapper,
    .news-ticker-wrap, .region-block, .map-preview-section,
    .controls-section, .site-footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hub-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-preview-wrapper {
        height: 400px;
    }
}

/* Small tablets */
@media (max-width: 880px) {
    .prime-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    display: grid;
		padding: 20px;
    gap: .2rem;
    width: 100%;
    }
    
    #region-title {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .tight, .prime-tight, section, .wb-header-wrapper,
    .news-ticker-wrap, .region-block, .map-preview-section,
    .controls-section, .site-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-lead {
        font-size: 16px;
    }
    
    .page-hero h1, .regions-hero .hero-title {
        font-size: 36px;
    }
    
    .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .hub-columns, .region-columns {
        grid-template-columns: 1fr;
    }
    
    .search-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .map-preview-wrapper {
        height: 300px;
        width: 100%;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .region-header {
        flex-direction: column;
    }
    
    .region-actions {
        width: 100%;
    }
    
    .region-actions .btn {
        flex: 1;
        text-align: center;
    }

}

/* Small mobile */
@media (max-width: 520px) {
    .tight, .prime-tight, section, .wb-header-wrapper,
    .news-ticker-wrap, .region-block, .map-preview-section,
    .controls-section, .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .logo {
        width: 120px;
    }
    
    .contact-buyer-btn {
        font-size: 14px;
        padding: 0.5rem 1rem;
    }
    
    .map-preview-wrapper {
        height: 250px;
    }
    
    .map-preview-header h3 {
        font-size: 22px;
    }
    
    .map-preview-header p {
        font-size: 16px;
    }
    
    .news-item {
        font-size: 14px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .news-track {
        transform: none !important;
        transition: none !important;
    }
    
    .reveal, .hub-profile-card, .btn, .hub-columns {
        transition: none;
    }
}

/* Focus styles */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(14, 165, 164, 0.12);
    outline-offset: 2px;
}

/* Loading states */
.no-results, .loading-fallback {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: 17px;
}

/* Media */
.media {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #e6eef0, #ffffff);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Push images to bottom of flex container */
    position: relative;
}

.media img {
    width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover; /* This ensures images crop properly */
    display: block;
}

@media (max-width: 880px) {
    .media {
        min-height: 160px;
    }
    
    .media img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .media {
        min-height: 140px;
    }
    
    .media img {
        height: 140px;
    }
}


/* Hub Profile Card Content Styles */
.hub-header-left {
    flex: 1;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-1);
    margin: 0 0 1rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--accent-1);
    line-height: 1.5;
}

/* Crops Table */
.crops-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.crops-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-1);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.crops-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

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

/* Expand icon fix */
.expand-icon {
    font-size: 1.5rem;
    color: var(--accent-2);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

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

/* Ensure hub body is visible when expanded */
.hub-profile-card.expanded .hub-body {
    max-height: none; /* Remove the max-height restriction */
    overflow: visible;
}

.hub-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ============ HUB QUICK SELECT STYLES ============ */
.hubs-quick-select-section {
    width: 100%;
    padding: 2rem 3rem;
}

.hubs-quick-select-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.hubs-quick-select-container h3 {
    margin: 0 0 1.5rem 0;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 1.5rem;
}

.hubs-quick-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.hub-quick-select-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--accent-1);
}

.hub-quick-select-btn:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.1);
}

.hub-quick-select-btn.active {
    border-color: var(--accent-2);
    background: rgba(14, 165, 164, 0.05);
    color: var(--accent-2);
}

/* ============ SELECTED HUB SECTION STYLES ============ */
.selected-hub-section {
    width: 100%;
    padding: 0 3rem 3rem;
}

.selected-hub-container {
    width: 100%;
}

.selected-hub-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* Selected hub card styles */
.selected-hub-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.selected-hub-header {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,0.5));
    border-bottom: 1px solid #e2e8f0;
}

.selected-hub-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-1);
    margin: 0 0 0.5rem 0;
}

.selected-hub-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #64748b;
}

.selected-hub-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.selected-hub-content {
    padding: 2rem;
}

/* ============ RESPONSIVE UPDATES ============ */
@media (max-width: 768px) {
    .hubs-quick-select-section,
    .selected-hub-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hubs-quick-select-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .hub-quick-select-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .hubs-quick-select-section,
    .selected-hub-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hubs-quick-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============ BASE STYLES ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-size: var(--text-base); /* 16px base */
    line-height: 1.6;
}

/* ============ CONSISTENT TYPOGRAPHY ============ */

/* Headings */
.hero-title {
    margin: 0;
    font-weight: 800;
    font-size: var(--text-6xl); /* 60px */
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: var(--accent-1);
}

.page-hero h1, .regions-hero .hero-title {
    font-size: var(--text-5xl); /* 48px */
    font-weight: 800;
    color: var(--accent-1);
    margin: 0;
}

#region-title {
    font-size: var(--text-4xl); /* 36px */
    font-weight: 800;
    color: var(--accent-1);
    margin: 0.5rem 0;
}

h2 {
    font-size: var(--text-3xl); /* 30px */
    font-weight: 700;
}

h3 {
    font-size: var(--text-2xl); /* 24px */
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl); /* 20px */
    font-weight: 600;
}

/* Paragraphs - 2 sizes larger than index (18px instead of 16px) */
p, .text-base {
    font-size: var(--text-lg); /* 18px */
    line-height: 1.7;
    color: #475569;
}

/* Specific paragraph styles for different sections */
.hero-lead, .regions-hero .hero-lead, .page-hero p {
    font-size: var(--text-xl); /* 20px for hero paragraphs */
    line-height: 1.7;
}

.region-blurb, .text-slate-600 {
    font-size: var(--text-lg); /* 18px */
    line-height: 1.7;
}

.rbox-body p, .hub-card p, .footer-content p, .footer-links p {
    font-size: var(--text-lg); /* 18px */
}

/* Small text */
.text-sm, .stat-label, .kicker, .footer-bottom p, .contact-item, .info-label {
    font-size: var(--text-sm); /* 14px */
}

.text-xs {
    font-size: var(--text-xs); /* 12px */
}

/* Buttons */
.btn, .contact-buyer-btn, .filter-btn {
    font-size: var(--text-base); /* 16px */
}

/* News items */
.news-item {
    font-size: var(--text-base); /* 16px */
}

/* Table text */
.crops-table th, .crops-table td {
    font-size: var(--text-sm); /* 14px */
}

/* ============ SPECIFIC COMPONENT UPDATES ============ */

/* Update the regions section paragraphs to be larger */
.box p.text-sm.text-slate-700 {
    font-size: var(--text-lg) !important; /* 18px instead of 14px */
    line-height: 1.7;
}

/* Update the regions list items */
.box ul.text-sm.text-slate-800 li {
    font-size: var(--text-base) !important; /* 16px instead of 14px */
    line-height: 1.6;
}

/* Quality section paragraphs */
.card p.text-sm.text-slate-600 {
    font-size: var(--text-base) !important; /* 16px instead of 14px */
    line-height: 1.6;
}

/* FAQ section */
details p.text-sm.text-slate-700 {
    font-size: var(--text-base) !important; /* 16px instead of 14px */
    line-height: 1.6;
}

/* Hub cards */
#hubCards .hub-card p {
    font-size: var(--text-base); /* 16px */
}

/* ============ RESPONSIVE UPDATES ============ */

/* Tablets */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;       /* 48px */
        --text-5xl: 2.5rem;     /* 40px */
        --text-4xl: 2rem;       /* 32px */
        --text-3xl: 1.75rem;    /* 28px */
        --text-2xl: 1.5rem;     /* 24px */
        --text-xl: 1.25rem;     /* 20px */
        --text-lg: 1.125rem;    /* 18px */
        --text-base: 1rem;      /* 16px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;     /* 40px */
        --text-5xl: 2rem;       /* 32px */
        --text-4xl: 1.75rem;    /* 28px */
        --text-3xl: 1.5rem;     /* 24px */
        --text-2xl: 1.375rem;   /* 22px */
        --text-xl: 1.125rem;    /* 18px */
        --text-lg: 1rem;        /* 16px */
        --text-base: 0.9375rem; /* 15px */
    }
    
    body {
        font-size: var(--text-base); /* 15px base on mobile */
    }
    
    p, .text-base {
        font-size: var(--text-lg); /* 16px on mobile */
    }
}

/* Small mobile */
@media (max-width: 520px) {
    :root {
        --text-6xl: 2rem;       /* 32px */
        --text-5xl: 1.75rem;    /* 28px */
        --text-4xl: 1.5rem;     /* 24px */
        --text-3xl: 1.375rem;   /* 22px */
        --text-2xl: 1.25rem;    /* 20px */
        --text-xl: 1.125rem;    /* 18px */
        --text-lg: 1rem;        /* 16px */
        --text-base: 0.875rem;  /* 14px */
    }
}

/* ============ HUB DETAILS WITH PHOTOS LAYOUT - UPDATED ============ */
.hub-details-with-photos {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
}

.hub-photos-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-photo-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.hub-photo-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hub-photo-container img:hover {
    transform: scale(1.02);
}

.hub-photo-caption {
    padding: 0.75rem;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--muted);
    background: var(--glass);
    border-top: 1px solid var(--border-light);
}

.hub-details-compact {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.hub-details-compact .selected-hub-header {
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    background: none;
}

.hub-details-compact .selected-hub-title {
    font-size: var(--text-3xl);
    margin-bottom: 0.5rem;
}

.hub-details-compact .selected-hub-meta {
    gap: 1rem;
    font-size: var(--text-sm);
}

.hub-details-compact .info-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}

.hub-details-compact .info-section h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
}

.hub-details-compact .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.hub-details-compact .info-label {
    font-size: var(--text-xs);
}

.hub-details-compact .info-value {
    font-size: var(--text-sm);
}

.hub-details-compact .crops-table {
    font-size: var(--text-sm);
}

.hub-details-compact .crops-table th,
.hub-details-compact .crops-table td {
    padding: 0.5rem 0.75rem;
}

/* Mobile layout */
@media (max-width: 1024px) {
    .hub-details-with-photos {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .hub-photos-column:first-child {
        grid-column: 1;
    }
    
    .hub-details-compact {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    
    .hub-photos-column:last-child {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .hub-details-with-photos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hub-photos-column:first-child {
        grid-column: 1;
        grid-row: 1;
    }
    
    .hub-details-compact {
        grid-column: 1;
        grid-row: 2;
    }
    
    .hub-photos-column:last-child {
        grid-column: 1;
        grid-row: 3;
    }
    
    .hub-photo-container img {
        height: 200px;
    }
}

/* Compact table for mobile */
@media (max-width: 640px) {
    .hub-details-compact .crops-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .hub-details-compact .info-grid {
        grid-template-columns: 1fr;
    }
}
/* Image loading animation */
.hub-photo-container img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-photo-container img.loaded {
    opacity: 1;
}

.hub-photo-container img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}