:root {
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-hover: #fcfcfc;
    --brand-red: #d32f2f; /* Touch of red */
    --brand-red-light: #fff5f5;
}

body {
    background-color: #f9fafb;
    color: var(--text-main);
    font-family: Inter, sans-serif;
    padding-top: 40px;
    padding-bottom: 80px;
    line-height: 1.6;
}

.header-section {
    margin-bottom: 50px;
}

.header-section h1 {
    font-weight: 700;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #000;
}

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

.tabs-container {
    position: sticky;
    top: 40px;
}

.nav-pills.custom-tabs {
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.nav-pills.custom-tabs::-webkit-scrollbar {
    display: none;
}

.nav-pills .nav-link {
    color: var(--text-light);
    text-align: left;
    border-radius: 0;
    padding: 12px 20px;
    margin-bottom: 4px;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    white-space: nowrap;
}

.nav-pills .nav-link:hover {
    color: var(--brand-red);
    background-color: var(--brand-red-light);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--brand-red);
    background-color: var(--brand-red-light);
    border-bottom: 3px solid var(--brand-red);
    font-weight: 600;
}

@media (width > 768px) {
    .nav-pills.custom-tabs {
        flex-direction: column;
        border-bottom: none;
        padding-bottom: 0;
        overflow-x: visible;
        margin-bottom: 0;
    }

    .nav-pills .nav-link {
        border-bottom: none;
        border-left: 3px solid transparent;
        white-space: normal;
        padding: 14px 24px;
    }

    .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
        border-bottom: none;
        border-left: 3px solid var(--brand-red);
    }
}

.content-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px #00000008;
    border: 1px solid #0000000a;
}

@media (width < 767px) {
    .content-card {
        padding: 25px;
    }

    .nav-pills.custom-tabs{
        overflow-x: auto;
    }
}

.tab-pane {
    animation: fade-in 0.3s ease-in-out;
}

@keyframes fade-in {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }

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

.tab-pane h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #000;
}

.tab-pane h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #111827;
}

.tab-pane p, .tab-pane li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tab-pane ul {
    margin-bottom: 20px;
    padding-left: 1.5rem;
}

.tab-pane strong {
    color: #111827;
    font-weight: 600;
}

@media (width < 767.98px) {
    .tabs-container .nav-pills {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
    }

    .tabs-container .nav-pills .nav-link {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-right: 8px !important; 
    }

    .tabs-container .nav-pills::-webkit-scrollbar {
        display: none !important; 
    }
}

.aic-policy-logo{
    max-height: 100px; 
}

.tabs-style{
    top: 20px;
}

.tabs-container {
    max-height: 80vh;
    overflow-y: auto;
}