:root {
    --primary-green: #00A651;
    --primary-light: #00c862;
    --primary-dark: #008f45;
    --secondary-dark: #0f172a;
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-white: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-green: 0 10px 25px -5px rgba(0, 166, 81, 0.2);
    --radius-full: 500px;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
}

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

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

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-soft);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.breadcrumb {
    padding: 12px 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    background: var(--primary-dark);
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

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

/* ========================================
   TOP NAVIGATION
======================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: #009046;
    backdrop-filter: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    margin: 0;
}

.nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-nav.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 166, 81, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 166, 81, 0.2));
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.brand-florian {
    color: white;
    transition: var(--transition-smooth);
}

.top-nav.scrolled .brand-florian {
    color: var(--secondary-dark);
}

.brand-bd {
    color: white;
    transition: var(--transition-smooth);
}

.top-nav.scrolled .brand-bd {
    color: #00703a;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.top-nav.scrolled .nav-link {
    color: var(--text-muted);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.top-nav.scrolled .nav-link:hover {
    color: var(--secondary-dark);
}

.nav-link:hover i {
    transform: translateY(-2px) scale(1.1);
}

.nav-link.active {
    color: white !important;
    background: #006b32;
    box-shadow: 0 10px 25px -5px rgba(0, 107, 50, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    width: 46px;
    height: 46px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.top-nav.scrolled .nav-btn {
    background: rgba(0, 0, 0, 0.03);
    color: var(--secondary-dark);
}

.nav-btn:hover {
    background: #006b32;
    color: white;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 10px 25px -5px rgba(0, 107, 50, 0.3);
}

.top-nav.scrolled .nav-btn:hover {
    background: #006b32;
    color: white;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

.top-nav.scrolled .mobile-menu-btn {
    color: var(--secondary-dark);
}

.top-nav.scrolled .mobile-menu-btn span {
    background: var(--secondary-dark);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 3px auto;
    transition: var(--transition-smooth);
    border-radius: 10px;
    transform-origin: center;
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 80px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.open {
    left: 0;
    visibility: visible;
}

.sidebar-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.sidebar-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sidebar-brand-text {
    font-weight: 800;
}

.sidebar-brand-text .brand-florian { color: var(--secondary-dark); }
.sidebar-brand-text .brand-bd { color: var(--primary-green); }

.sidebar-close {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--bg-soft);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sidebar-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    padding: 0 40px 40px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::after {
    content: '';
    height: 1px;
    background: linear-gradient(to right, rgba(0, 166, 81, 0.2), transparent);
    flex: 1;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 14px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.sidebar-menu a:hover {
    background: white;
    color: var(--primary-green);
    border-color: rgba(0, 166, 81, 0.1);
    transform: translateX(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-footer {
    padding: 40px;
    background: var(--bg-soft);
    border-top: 1px solid #f1f5f9;
}

.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    color: var(--secondary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.quick-contact i {
    font-size: 1.1rem;
    color: var(--primary-green);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

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

.main-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ========================================
   POLICY HEADER (HERO)
======================================== */
.policy-header.bestbd-hero {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a5e30 100%);
    padding: 180px 20px 220px;
    color: white;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
    overflow: hidden;
    text-align: center;
    z-index: 10;
}

.policy-header.bestbd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.policy-header.bestbd-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.4));
    pointer-events: none;
}

.bestbd-hero .header-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.bestbd-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.bestbd-hero .last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.story-ledger {
    position: absolute;
    top: 15px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
    pointer-events: none;
}

.visible-h1 {
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.type-cursor {
    animation: blink 0.8s infinite;
    color: var(--primary-light);
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.header-glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.4));
    pointer-events: none;
}

/* Intro Section */
.hub-intro {
    padding: 60px 20px;
    background: #fff;
}

.hub-intro h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.hub-intro p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Grid Section */
.hub-grid-section {
    padding: 60px 20px;
    background: var(--bg-soft);
}

.hub-grid-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.hub-grid-section .section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hub-grid-section .section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light));
    opacity: 0;
    transition: var(--transition-smooth);
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
    border-color: rgba(0, 166, 81, 0.15);
}

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

.hub-card .card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 166, 81, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--primary-green);
}

.hub-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.hub-card .card-arrow {
    margin-top: 16px;
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-smooth);
}

.hub-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Stats Section */
.hub-stats {
    background: var(--secondary-dark);
    padding: 50px 20px;
}

.hub-stats .stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.hub-stats .stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.hub-stats .stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.hub-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 40px 20px;
    text-align: center;
}

.hub-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hub-footer a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Categories legend */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary-green);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    .nav-center {
        display: none;
    }
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    .policy-header.bestbd-hero {
        padding: 120px 16px 160px;
    }
    .bestbd-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-intro h2 {
        font-size: 1.4rem;
    }
}
