@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #e6f7ef 0%, #d4f3e4 45%, #bcf0d6 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f4fbf7;
    --border-color: rgba(167, 243, 208, 0.9);
    --border-hover: #059669;
    
    --emerald-dark: #022c22;
    --emerald-deep: #064e3b;
    --emerald-main: #047857;
    --emerald-mid: #059669;
    --emerald-bright: #10b981;
    --emerald-mint: #34d399;
    --emerald-light: #a7f3d0;
    --emerald-subtle: #d1fae5;
    --emerald-bg: #ecfdf5;
    
    --primary: #059669;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --accent: #047857;
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    
    --text-primary: #064e3b;
    --text-secondary: #047857;
    --text-muted: #334155;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 6px rgba(6, 78, 59, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(6, 78, 59, 0.12), 0 4px 10px -2px rgba(6, 78, 59, 0.06);
    --shadow-lg: 0 18px 36px -6px rgba(6, 78, 59, 0.18), 0 0 20px rgba(16, 185, 129, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.5;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

/* Glassmorphic Background Blur Panels (Luxury Dark Theme) */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

/* Header / Avatar Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    padding: 24px 20px;
    transition: all var(--transition-normal);
}

.profile-subtitle {
    font-style: normal;
    font-size: 0.95rem;
    color: #047857;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px auto 12px auto;
    text-align: center;
    max-width: 440px;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: var(--primary-gradient);
    box-shadow: 0 8px 20px rgba(161, 98, 7, 0.15);
    animation: pulse 3s infinite ease-in-out;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    background: #eae7dc;
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #eab308;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #0f172a;
}

.profile-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 95%;
    margin: 0 auto;
    line-height: 1.6;
}

.profile-info strong {
    color: #a16207;
}

/* Highlight badge */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(202, 138, 4, 0.08);
    border: 1px solid rgba(202, 138, 4, 0.15);
    color: #a16207;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Social Media Profile Links Row */
.social-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    color: #374151;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.social-icon-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.social-icon-btn.tiktok:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.social-icon-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
}

.social-icon-btn.threads:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* Highlight Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(202, 138, 4, 0.25);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b18;
    background: linear-gradient(to bottom right, #1e1b18, #a16207);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* Search and Filters Section */
.search-filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px 14px 44px;
    color: #1e1b18;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: rgba(202, 138, 4, 0.4);
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.05);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: color var(--transition-normal);
}

.search-input:focus + .search-icon {
    color: #ca8a04;
}

/* District Pills (Horizontal Scroll Single Line) */
.groups-filter-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding: 4px 0;
}

.groups-filter-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding: 2px 4px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    color: #1e1b18;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.filter-pill.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(161, 98, 7, 0.2);
}

/* Group Cards List */
.groups-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
}

.group-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.group-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.group-card:hover::before {
    opacity: 1;
}

.group-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.group-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-normal);
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.group-card:hover .group-icon-container {
    background: rgba(161, 98, 7, 0.05);
    border-color: rgba(161, 98, 7, 0.2);
    color: var(--accent);
}

.group-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e1b18;
    line-height: 1.3;
}

.group-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.district-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #854d0e;
    background: rgba(202, 138, 4, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(202, 138, 4, 0.15);
}

.member-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.group-tags {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: 4px;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    margin-left: 12px;
}

.group-card:hover .action-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(161, 98, 7, 0.25);
}

/* Footer & Support Banner */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: auto;
    padding-bottom: 24px;
}

.support-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 20px rgba(161, 98, 7, 0.18);
}

.support-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(161, 98, 7, 0.28);
}

.support-cta svg {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* No results state */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    gap: 8px;
    width: 100%;
}

.no-results svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(161, 98, 7, 0.1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(161, 98, 7, 0.22);
    }
    100% {
        box-shadow: 0 8px 20px rgba(161, 98, 7, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 16px 8px;
    }
    
    .glass-panel {
        padding: 18px;
        border-radius: 20px;
    }
    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 8px 4px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .group-card {
        padding: 12px 14px;
        border-radius: 16px;
    }
    
    .group-icon-container {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .group-title {
        font-size: 0.9rem;
    }
    
    .district-badge {
        font-size: 0.7rem;
    }
    
    .member-count {
        font-size: 0.7rem;
    }
}

/* Multi-column Layout & Stats Panel Styles */
.stats-panel-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #a16207;
    margin-bottom: 18px;
    text-align: center;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: grid !important;
        grid-template-columns: 270px 1fr 270px !important;
        grid-template-rows: 1fr auto !important;
        gap: 16px !important;
        align-items: start !important;
    }
    
    .layout-left, .layout-middle, .layout-right {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .footer {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 12px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 320px 1fr 320px !important;
        grid-template-rows: 1fr auto !important;
        gap: 24px !important;
        align-items: start !important;
    }
    
    .layout-left, .layout-middle, .layout-right {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .footer {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 580px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    
    .layout-left {
        order: 1;
    }
    
    .layout-middle {
        order: 2;
    }
    
    .footer {
        order: 3;
    }

    .layout-right {
        display: none !important;
    }

    .profile-section {
        padding: 16px 14px !important;
        gap: 10px !important;
    }

    .avatar-wrapper {
        width: 72px !important;
        height: 72px !important;
    }

    .profile-info h1 {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
    }

    .profile-subtitle {
        font-size: 0.82rem !important;
        margin: 4px auto 6px auto !important;
        line-height: 1.35 !important;
    }

    .profile-desc {
        display: none !important;
    }

    .promo-badge {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        margin-top: 4px !important;
    }
}

/* Floating Contact Buttons (Zalo & Call) */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-zalo {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
    animation: fab-pulse-zalo 2.4s infinite;
}

.fab-zalo:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.fab-phone {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    animation: fab-pulse-phone 2.4s infinite 1.2s;
}

.fab-phone:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

/* Tooltip Labels */
.fab-label {
    position: absolute;
    right: 64px;
    background: rgba(30, 27, 24, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fab-btn:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fab-pulse-zalo {
    0% { box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35), 0 0 0 0px rgba(0, 104, 255, 0.4); }
    70% { box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35), 0 0 0 12px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35), 0 0 0 0px rgba(0, 104, 255, 0); }
}

@keyframes fab-pulse-phone {
    0% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), 0 0 0 0px rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), 0 0 0 0px rgba(16, 185, 129, 0); }
}

/* Top Areas Highlight Filter Pills */
.filter-pill.top-pill:not(.active) {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(5, 150, 105, 0.4) !important;
    color: #047857 !important;
    font-weight: 700;
}

.filter-pill.top-pill:hover:not(.active) {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(5, 150, 105, 0.6) !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.filter-pill.top-pill span {
    margin-right: 2px;
    animation: fire-wiggle 1.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes fire-wiggle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.15); }
}

/* Top District Badge inside Group Cards */
.district-badge.top-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(5, 150, 105, 0.45) !important;
    color: #047857 !important;
    font-weight: 700 !important;
}

.district-badge.top-badge span {
    margin-right: 2px;
    animation: fire-wiggle 1.5s infinite ease-in-out;
    display: inline-block;
}

/* Tree Diagram Structure Layout */
.tree-district-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tree-district-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tree-district-badge {
    background: rgba(6, 78, 59, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.tree-district-badge.top-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(5, 150, 105, 0.4) !important;
    color: #047857 !important;
}

.tree-district-badge.top-badge span {
    margin-right: 2px;
    animation: fire-wiggle 1.5s infinite ease-in-out;
    display: inline-block;
}

.tree-cards-container {
    position: relative;
    padding-left: 28px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-cards-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 2px;
    height: calc(100% - 24px);
    background: rgba(161, 98, 7, 0.18);
    border-radius: 1px;
}

.tree-card-wrapper {
    position: relative;
    width: 100%;
}

.tree-card-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -28px;
    width: 20px;
    height: 2px;
    background: rgba(161, 98, 7, 0.18);
}

.tree-card-connector-dot {
    position: absolute;
    top: calc(50% - 4px);
    left: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ca8a04;
    box-shadow: 0 0 6px rgba(202, 138, 4, 0.45);
    z-index: 2;
}

@media (max-width: 480px) {
    .tree-cards-container {
        padding-left: 20px;
        margin-left: 10px;
    }
    
    .tree-cards-container::before {
        left: 0;
    }
    
    .tree-card-wrapper::after {
        left: -20px;
        width: 14px;
    }
    
    .tree-card-connector-dot {
        left: -9px;
        width: 6px;
        height: 6px;
        top: calc(50% - 3px);
    }
}

.tree-district-header {
    cursor: pointer;
    user-select: none;
}

.tree-district-header:hover .tree-district-badge {
    border-color: #059669 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.tree-chevron {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-secondary);
}

.tree-district-group.collapsed .tree-chevron {
    transform: rotate(-90deg);
}

.tree-cards-container {
    overflow: hidden;
    max-height: 1200px;
    opacity: 1;
    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.3s ease;
}

.tree-district-group.collapsed .tree-cards-container {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ==========================================================================
   LiveChat Room Registration Popup Widget
   ========================================================================== */

.livechat-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.livechat-popup-card {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: calc(100vw - 32px);
    max-width: 390px;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 20px 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.livechat-popup-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.livechat-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.livechat-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.livechat-header-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf8ee;
    border: 1.5px solid #f6e6c8;
    color: #945305;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    margin-top: 2px;
}

.livechat-intro {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 14px;
    text-align: left;
}

.livechat-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.livechat-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.livechat-field input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
}

.livechat-field input::placeholder {
    color: #94a3b8;
}

.livechat-field input:focus {
    outline: none;
    border-color: #0084ff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}

.livechat-info-box {
    background: #fefcf5;
    border: 1.5px dashed #f6d29b;
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 4px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.livechat-info-box .info-hotline {
    font-size: 0.88rem;
    font-weight: 700;
    color: #945305;
}

.livechat-info-box .info-hotline a {
    color: #c2410c;
    font-weight: 800;
    text-decoration: none;
}

.livechat-info-box .info-hotline .badge-24h {
    color: #c2410c;
    font-weight: 700;
}

.livechat-info-box .info-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-top: 2px;
}

.livechat-info-box .info-group-link a {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c2410c;
    text-decoration: underline;
    word-break: break-all;
}

.livechat-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.livechat-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.45);
}

.livechat-submit-btn:active {
    transform: translateY(0);
}

.livechat-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.livechat-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .livechat-popup-card {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
        padding: 20px 16px 16px 16px;
        border-radius: 20px;
    }
    .livechat-toast {
        width: 90%;
        text-align: center;
        white-space: normal;
    }
}

/* ==========================================================================
   LANDING PAGE REDESIGN STYLES (100% Complete Layout)
   ========================================================================== */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(2, 44, 34, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid #10b981;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(2, 44, 34, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #34d399;
}

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

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 0.72rem;
    color: #a7f3d0;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d1fae5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-highlight {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.nav-link-highlight:hover {
    color: #ffffff;
    background: #10b981;
    border-color: #10b981;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #34d399;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.landing-page-wrapper {
    max-width: 1180px;
    margin: 90px auto 40px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-company {
    padding: 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #d1fae5;
    box-shadow: 0 12px 30px -6px rgba(6, 78, 59, 0.06);
}

.company-hero-banner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid #ecfdf5;
}

.company-badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.company-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.25;
    margin-bottom: 10px;
}

.company-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 14px;
}

.company-desc {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 24px;
}

.company-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4fbf7;
    border: 1.5px solid #a7f3d0;
    color: #064e3b;
    padding: 14px 22px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #059669;
}

.company-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.c-stat-card {
    background: #f4fbf7;
    border: 1px solid #d1fae5;
    padding: 20px 16px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.c-stat-card:hover {
    transform: translateY(-2px);
    border-color: #059669;
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.08);
}

.c-stat-card.highlight {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.c-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #047857;
}

.c-stat-card.highlight .c-stat-num {
    color: #059669;
}

.c-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-top: 4px;
}

.company-strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #090d16 0%, #042f2e 50%, #064e3b 100%);
    border-radius: 20px;
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.strength-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px);
}

.strength-box:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.strength-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.strength-text-wrap {
    display: flex;
    flex-direction: column;
}

.strength-box h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.strength-box p {
    font-size: 0.78rem;
    color: #d1fae5;
    line-height: 1.3;
    margin: 0;
}

.section-projects {
    padding: 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #d1fae5;
}

.section-header-box {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 28px auto;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 6px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.9rem;
    color: #475569;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

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

a.project-card,
.project-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.project-card *,
.project-card * {
    text-decoration: none !important;
}

a.project-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    border-color: #10b981;
    box-shadow: 0 16px 32px rgba(6, 78, 59, 0.15);
}

.project-img-box {
    position: relative;
    width: 100%;
    height: 190px;
    background: #e6f7ef;
    overflow: hidden;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.project-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    background: #ffffff;
}

.project-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a !important;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.project-card:hover .project-name {
    color: #059669 !important;
}

.project-meta {
    font-size: 0.82rem;
    color: #475569 !important;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.project-tags span {
    font-size: 0.74rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857 !important;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.section-groups {
    padding: 36px 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 2px solid #a7f3d0;
    box-shadow: 0 16px 40px -10px rgba(5, 150, 105, 0.18);
}

.groups-hero-banner {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #000000;
    border: 2px solid #a7f3d0;
    box-shadow: 0 14px 35px -8px rgba(5, 150, 105, 0.22);
}

.groups-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.groups-filter-wrapper {
    margin-bottom: 24px;
}

.fb-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fb-group-card {
    background: #ffffff;
    border: 1.5px solid #d1fae5;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
}

.fb-group-card:hover {
    border-color: #1877f2;
    box-shadow: 0 12px 28px -6px rgba(24, 119, 242, 0.25);
    transform: translateY(-3px);
}

.fb-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fb-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1877f2 0%, #0052cc 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.fb-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-group-title {
    font-size: 1rem;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.35;
}

.fb-group-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fb-member-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 6px;
}

.fb-tag-pill {
    font-size: 0.72rem;
    color: #047857;
    background: #f4fbf7;
    border: 1px solid #d1fae5;
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-fb-join {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1877f2 0%, #0052cc 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
    transition: all 0.2s ease;
}

.btn-fb-join:hover {
    background: linear-gradient(135deg, #166fe5 0%, #0045b3 100%);
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
    transform: translateY(-1px);
}

.section-cta-bottom {
    padding: 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.cta-bottom-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.cta-bottom-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.cta-btns-wrap {
    max-width: 400px;
    margin: 0 auto;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 991px) {
    .nav-menu {
        display: none !important;
    }
    
    .company-hero-banner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .company-strengths-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .fb-groups-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .top-navbar .nav-container {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    
    .nav-brand {
        gap: 8px !important;
    }

    .nav-logo {
        width: 38px !important;
        height: 38px !important;
    }
    
    .brand-name {
        font-size: 1.05rem !important;
    }
    
    .brand-sub {
        display: none !important;
    }
    
    .nav-cta-btn {
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 100px !important;
        white-space: nowrap !important;
    }
    
    .landing-page-wrapper {
        margin-top: 68px !important;
        padding: 0 10px !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .section-company, .section-projects, .section-groups, .section-cta-bottom {
        padding: 18px 12px !important;
        border-radius: 20px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .groups-hero-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
        padding: 0 !important;
    }

    .groups-banner-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    
    .company-title {
        font-size: 1.35rem !important;
    }
    
    .company-strengths-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .strength-box {
        padding: 10px 10px !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }

    .strength-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1.1rem !important;
    }

    .strength-box h3 {
        font-size: 0.82rem !important;
    }

    .strength-box p {
        font-size: 0.72rem !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    .fb-groups-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .fb-group-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .fb-card-top {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .fb-card-info {
        min-width: 0 !important; /* Critical flex child containment */
        flex: 1 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .fb-group-title {
        font-size: 0.98rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .fb-group-meta-row {
        gap: 6px !important;
    }

    .fb-member-badge, .fb-tag-pill {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .c-stat-num {
        font-size: 1.25rem !important;
    }
    
    /* FAB Contact Floating Buttons */
    .fab-container {
        bottom: 16px !important;
        right: 14px !important;
        gap: 10px !important;
        z-index: 9999 !important;
    }
    
    .fab-btn {
        width: 46px !important;
        height: 46px !important;
    }
    
    .fab-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .fab-label {
        display: none !important;
    }
}

/* Full Width Rich Emerald Green Footer (Multi-shade Green Palette) */
.site-footer {
    width: 100%;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #043e2f 100%);
    color: #e2e8f0;
    padding: 48px 0 24px 0;
    margin-top: 40px;
    border-top: 3px solid #10b981;
    box-shadow: 0 -10px 30px rgba(6, 78, 59, 0.25);
    font-family: inherit;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.5fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #34d399;
    object-fit: cover;
}

.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.footer-desc {
    font-size: 0.85rem;
    color: #a7f3d0;
    line-height: 1.6;
    margin-bottom: 18px;
}

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

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.social-circle:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.social-circle.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #a7f3d0;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #d1fae5;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-info p {
    font-size: 0.85rem;
    color: #d1fae5;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.footer-contact-info svg {
    color: #34d399;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info strong {
    color: #ffffff;
}

.footer-divider {
    height: 1px;
    background: rgba(167, 243, 208, 0.2);
    margin-bottom: 20px;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: #a7f3d0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

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

/* Minimal Single-Line Green Footer Bar */
.site-footer-minimal {
    width: 100%;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #043e2f 100%);
    color: #a7f3d0;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    border-top: 2px solid #10b981;
    margin-top: 40px;
    box-shadow: 0 -4px 14px rgba(6, 78, 59, 0.15);
}

.site-footer-minimal p {
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   PROJECT DETAIL PAGE & GALLERY STYLES
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #047857;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #047857;
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: #064e3b;
    text-decoration: underline;
}

.breadcrumb-nav .sep {
    color: #10b981;
    font-size: 0.95rem;
}

.breadcrumb-nav .current {
    color: #0f172a;
    font-weight: 700;
}

/* Project Detail Hero */
.project-detail-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.08);
}

.project-hero-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.project-detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.project-detail-sub {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

/* Specifications Grid */
.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.spec-card:hover {
    background: #e6f7ef;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 78, 59, 0.08);
}

.spec-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
}

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

.spec-label {
    font-size: 0.78rem;
    color: #047857;
    font-weight: 700;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 800;
}

/* Photo Gallery Section */
.project-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.08);
    margin-top: 24px;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #064e3b;
}

.main-image-wrapper {
    width: 100%;
    max-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d1fae5;
    box-shadow: 0 12px 36px rgba(6, 78, 59, 0.12);
    background: #f0fdf4;
}

.project-main-image {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.project-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.project-thumb-item {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.project-thumb-item:hover,
.project-thumb-item.active {
    opacity: 1;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Content Section & Tags */
.project-content-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.08);
    margin-top: 24px;
}

.summary-highlight-box {
    padding: 18px 22px;
    background: #ecfdf5;
    border-left: 5px solid #10b981;
    border-radius: 12px;
    color: #064e3b;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.65;
}

.project-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 14px;
    border-radius: 100px;
    background: #e6f7ef;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-content-body {
    color: #1e293b;
    font-size: 0.98rem;
    line-height: 1.8;
}

.project-content-body h3 {
    font-size: 1.3rem;
    color: #064e3b;
    margin: 24px 0 12px 0;
    font-weight: 800;
}

.project-content-body ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.project-content-body li {
    margin-bottom: 8px;
}

/* Project Detail CTA Buttons */
.project-detail-cta-wrap {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.detail-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    flex: 1;
    min-width: 260px;
    white-space: nowrap;
}

.btn-zalo-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-zalo-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-consult-secondary {
    background: #064e3b;
    border: 1px solid #10b981;
    color: #ffffff;
}

.btn-consult-secondary:hover {
    background: #047857;
}

/* Project Card Image Thumbnail styling for Cards Grid */
.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

@media (max-width: 768px) {
    .project-detail-hero,
    .project-gallery-section,
    .project-content-section {
        padding: 20px 14px !important;
        border-radius: 18px !important;
    }
    .main-image-wrapper {
        max-height: 320px !important;
        border-radius: 14px !important;
    }
    .project-main-image {
        max-height: 320px !important;
    }
    .project-detail-cta-wrap {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .detail-cta-btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 18px !important;
        font-size: 0.88rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        text-align: center !important;
    }
    .summary-highlight-box {
        padding: 14px 16px !important;
        font-size: 0.88rem !important;
    }
    .livechat-popup-card {
        width: calc(100vw - 24px) !important;
        max-width: 440px !important;
        padding: 20px 16px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 600px) {
    .project-specs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .spec-card {
        padding: 12px 14px;
    }
    .project-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .project-thumb-item {
        height: 85px;
    }
    .project-detail-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    .top-navbar .nav-container {
        padding: 8px 10px !important;
    }
    .brand-name {
        font-size: 0.98rem !important;
    }
    .nav-cta-btn {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
    }
    .nav-cta-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
}

