/* ===================================
    Crafto - Beauty salon
====================================== */
/* font */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* variable */
:root {
    --base-color: #E99931;
    --dark-gray: #2E3844;
    --medium-gray: #7e8287;
    --light-gray: #ffece7;
    --light-medium-gray: #7e8691;
    --alt-font: 'Marcellus', serif;
    --primary-font: 'Urbanist', sans-serif;
}

/* reset */
body {
    font-size: 17px;
    line-height: 30px;
    letter-spacing: 0.3px;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* custom cursor */
.custom-cursor .circle-cursor-inner {
    background-color: var(--dark-gray);
    width: 16px;
    height: 16px;
}

.custom-cursor .circle-cursor-inner.cursor-link-hover {
    background-color: var(--dark-gray);
}

.custom-cursor .circle-cursor-outer {
    border: 1px solid transparent;
}

/* header */
.navbar .navbar-nav .nav-link {
    font-size: 18px;
    padding: 10px 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

header .navbar-brand img {
    max-height: 62px;
}

header .navbar-brand {
    padding: 25px 0;
}

/* text gradient color */
.text-gradient-san-blue-new-york-red {
    background-image: linear-gradient(to right, #2e3844, #455161, #db7f68, #e17a60, #E99931);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* bg color */
.bg-gradient-blue-ironstone-brown {
    background-image: linear-gradient(to right, #2c3846, #333945, #3e393f, #584344, #8b4d41);
}

.bg-gradient-blue-ironstone-brown-transparent {
    background-image: linear-gradient(to right, rgb(46, 56, 68), rgba(47, 56, 68, .7), rgba(70, 64, 68, .7), rgba(104, 74, 68, .7), rgba(134, 84, 68, .7));
}

.bg-gradient-solitude-blue-fair-pink {
    background-image: linear-gradient(to bottom, #f8ebe9, #f6ebed, #f2ebf0, #eeebf1, #eaecf1);
}

.bg-gradient-dark-transparent {
    background: -webkit-gradient(linear, left bottom, left top, color-stop(7%, #2E3844), to(transparent));
    background: linear-gradient(to top, #2E3844 7%, transparent 100%);
}

/* btn */
.btn {
    text-transform: inherit;
    font-family: var(--primary-font);
    font-weight: 600;
}

.btn.btn-extra-large {
    font-size: 17px;
    padding: 16px 30px;
}

.btn.btn-large {
    font-size: 15px;
    padding: 14px 25px;
}

.btn.btn-medium {
    font-size: 14px;
    padding: 12px 22px;
}

.btn.btn-small {
    font-size: 13px;
    padding: 11px 22px;
}

.btn.btn-very-small {
    font-size: 13px;
    padding: 9px 20px;
}

.btn.btn-base-color {
    color: #232120;
}

.btn.btn-box-shadow.btn-base-color:hover {
    color: #232120;
}

.btn.btn-base-color:hover {
    color: var(--base-color);
}

.btn.btn-transparent-white-light {
    border-color: rgba(255, 255, 255, 0.2);
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
}

/* border radius */
.border-radius-rb-50px {
    border-radius: 0 0 50px 0;
}

/* page title */
.page-title-extra-small h1 {
    font-size: 4.3rem;
    line-height: 4.3rem;
}

/* services box style 01 */
.services-box-style-01:hover .box-overlay {
    opacity: 0.4;
}

/* interactive banner style 01 */
.interactive-banner-style-01 figure:hover .box-overlay {
    opacity: 0.7;
}

/* services box style 01 */
.services-box-style-01 .box-overlay {
    opacity: 0;
    visibility: visible;
}

.services-box-style-01:hover .box-overlay {
    opacity: 0.7;
}

/* contact form style 03 */
.contact-form-style-03 {
    margin-bottom: -85px;
}

/* top right bottom left */
.right-45px {
    right: 45px;
}

.right-minus-45px {
    right: -45px;
}

/* footer */
footer .footer-logo img {
    max-height: 72px;
}

footer .elements-social .medium-icon li a {
    font-size: 18px;
}

footer .elements-social .medium-icon li {
    margin-right: 0px;
}

footer .nav-link {
    color: var(--white);
}

@media (max-width: 1600px) {
    section {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}

@media only screen and (max-width: 1399px) and (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        font-size: 17px;
        padding: 10px 20px;
    }
}

@media (max-width: 991px) {
    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav>.nav-item {
        border-bottom: 0;
        padding: 7px 0px;
    }

    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .nav-item .nav-link {
        font-size: 30px;
    }

    section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    footer ul li {
        line-height: normal;
    }

    header .btn.btn-transparent-white-light,
    header .btn.btn-transparent-white-light:hover {
        border-color: rgba(46, 56, 68, 1);
        color: var(--dark-gray);
    }
}

@media (max-width: 767px) {
    section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .h1,
    .h2,
    .h3,
    .h4,
    .h5,
    .h6,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 20px;
    }
}

/* ===================================
    Header Dropdown Enhancement
====================================== */
.navbar .navbar-nav .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    min-width: 250px;
    background-color: #fff;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-item.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .navbar-nav .dropdown-menu li {
    padding: 0 20px;
    list-style: none;
}

.navbar .navbar-nav .dropdown-menu li a {
    font-size: 15px;
    color: var(--dark-gray) !important;
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}

.navbar .navbar-nav .dropdown-menu li:last-child a {
    border-bottom: none;
}

.navbar .navbar-nav .dropdown-menu li a i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--base-color);
    width: 20px;
    text-align: center;
}

.navbar .navbar-nav .dropdown-menu li a:hover {
    color: var(--base-color) !important;
    padding-left: 5px;
}

/* Dropdown Toggle Icon */
.navbar .navbar-nav .nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar .navbar-nav .nav-item .dropdown-toggle {
    font-size: 10px;
    margin-left: 5px;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    vertical-align: middle;
}

/* Sticky Header adjustment */
header .navbar.sticky .dropdown-menu {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar .navbar-nav .nav-item.dropdown {
        display: block;
    }

    .navbar .navbar-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 20px;
        min-width: auto;
    }

    .navbar .navbar-nav .nav-item.dropdown .dropdown-toggle {
        float: right;
        margin: 15px 0;
    }

    .navbar .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar .navbar-nav .dropdown-menu li a {
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* =================================== 
    Mobile Social Icon Fix (iPhone/Safari)
   =================================== */
.elements-social i[class^="fa-"],
.elements-social i[class*=" fa-"],
.elements-social i.fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 400 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
}

/* Ensure flex container doesn't collapse icons on Safari */
.elements-social ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* Specific Content Overrides for Brand Icons */
.fa-facebook-f:before,
.fa-facebook:before {
    content: "\f39e" !important;
}

.fa-youtube:before {
    content: "\f167" !important;
}

.fa-tiktok:before {
    content: "\e07b" !important;
}

.fa-instagram:before {
    content: "\f16d" !important;
}

.fa-twitter:before {
    content: "\f099" !important;
}

/* ===================================
    Medical Results & Sensitive Shield
====================================== */
.medical-shield-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.medical-shield-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.medical-shield-overlay.unlocked {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
}

.shield-icon {
    font-size: 40px;
    color: var(--base-color);
    margin-bottom: 20px;
}

.shield-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.shield-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    max-width: 280px;
}

.btn-view-results {
    padding: 12px 30px;
    background: var(--base-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(46, 56, 68, 0.3);
}

.btn-view-results:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(46, 56, 68, 0.4);
}

.ba-gallery-item {
    margin-bottom: 50px;
}

.ba-slider-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    width: 50%;
    border-right: 3px solid #fff;
    z-index: 2;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 3;
}

.ba-label-before {
    right: 20px;
}

.ba-label-after {
    left: 20px;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 4;
}

.ba-handle::after {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--base-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.case-meta {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.case-diagnosis {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.case-doctor-note {
    font-style: italic;
    color: #777;
    position: relative;
    padding-left: 20px;
}

.case-doctor-note::before {
    content: '"';
    position: absolute;
    left: 0;
    font-size: 30px;
    top: -5px;
    color: var(--base-color);
    opacity: 0.3;
}

.medical-stamp-applied {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    margin-top: 10px;
}

.medical-stamp-applied i {
    margin-right: 5px;
}

.science-card {
    border-left: 4px solid #c48f56;
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    color: #232323;

    /* Ensure default dark color */
}

.science-card:hover {
    transform: translateY(-5px);
}

.academic-ref {
    font-size: 13px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-style: italic;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c48f56;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* Clinical Table Styles */
.clinical-table-wrapper {
    margin-top: 25px;
    overflow-x: auto;
}

.clinical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.clinical-table th {
    background: #232323;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #333;
}

.clinical-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    background: #fdfbf9;
    color: #555;
}

.bg-medical {
    background: #fff;
    border-bottom: 2px solid #c48f56;
}

/* ===================================
    Custom SEO Elements
====================================== */
.key-takeaways-box {
    background-color: #f0f4fd;

    /* Solitude Blue */
    border-left: 5px solid var(--base-color);
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.key-takeaways-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.key-takeaways-box h3 i {
    color: var(--base-color);
    margin-right: 10px;
}

.key-takeaways-box ul {
    margin: 0;
    padding-left: 20px;
}

.key-takeaways-box ul li {
    list-style-type: disc;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.key-takeaways-box ul li::marker {
    color: var(--base-color);
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    background: transparent;
}

.faq-accordion .accordion-header {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--dark-gray);
    background-color: #fff;
    box-shadow: none;
    padding: 20px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--base-color);
    background-color: #fff;
    box-shadow: none;
}

.faq-accordion .accordion-body {
    background-color: #fff;
    border-radius: 0 0 6px 6px;
    padding: 20px;
    padding-top: 0;
    color: var(--medium-gray);
}

/* Medical Disclaimer */
.medical-disclaimer {
    background-color: #f9f9f9;
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    margin-top: 50px;
    text-align: center;
    line-height: 16px;
}

/* Category Badge display safeguard - Prevents absolute-positioned badges from overlapping if multiple categories are present */
.card-image .category-badge:nth-of-type(n+2) {
    display: none;
}

/* -------------------------------------------------------
   RETENTION & SMART FEATURES (Blog)
   ------------------------------------------------------- */
/* 1. Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999;
}

.reading-progress-bar {
    height: 4px;
    background: var(--base-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* 2. Smart Related Posts */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-post-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 6px 6px 0 0;
}

/* 3. Sticky CTA Button */
.sticky-cta-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 12px 25px;
    background-color: var(--base-color);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(226, 125, 96, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-cta-btn.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta-btn:hover {
    background-color: var(--dark-gray);
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .sticky-cta-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
}

/* ===================================
   FIX: Mobile Menu Duplicate Columns Issue
   Added: 2026-01-07
====================================== */
@media (max-width: 991px) {
    /* Fix: Force single column layout cho navbar-modern */
    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-collapse {
        display: flex !important;
        flex-direction: column !important;

        /* Bắt buộc 1 cột */
        align-items: stretch !important;

        /* Items full-width */
        justify-content: flex-start !important;

        /* Không center để tránh wrap */
        width: 100% !important;
    }

    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav {
        display: flex !important;
        flex-direction: column !important;

        /* 1 cột dọc */
        width: 100% !important;
        padding: 50px 30px !important;
    }

    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav>.nav-item {
        width: 100% !important;

        /* Full width */
        flex: 0 0 auto !important;

        /* Không grow/shrink */
        display: block !important;
    }

    /* Đảm bảo navbar gốc bị ẩn hoàn toàn */
    [data-mobile-nav-style=modern] header .navbar-collapse {
        display: none !important;
        visibility: hidden !important;
    }

    /* Fix scrollbar nếu menu quá dài */
    [data-mobile-nav-style=modern] .navbar-modern-inner .navbar-collapse-clone {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: 100vh !important;
    }
}

/* ===================================
   HERO BANNER MOBILE ENHANCEMENT
   Added: 2026-01-13
   Purpose: Improve readability and contrast on mobile devices
====================================== */
/* Base Hero Banner Styles */
.hero-banner-section {
    background-size: cover;
    background-position: center center;
}

/* Mobile Gradient Overlay - Hidden on desktop */
.hero-mobile-overlay {
    background: linear-gradient(to bottom,
            rgba(46, 56, 68, 0.2) 0%,
            rgba(46, 56, 68, 0.5) 50%,
            rgba(46, 56, 68, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
    display: none;
}

/* Desktop - No overlay needed */
@media (min-width: 768px) {
    .hero-mobile-overlay {
        display: none !important;
    }
}

/* Mobile Enhancements */
@media (max-width: 767px) {
    /* Show overlay on mobile */
    .hero-mobile-overlay {
        display: block !important;
    }

    /* Ensure content is above overlay */
    .hero-banner-section .container {
        z-index: 2;
    }

    /* Hero Title - Mobile Optimizations */
    .hero-title {
        font-size: 2.8rem !important;
        line-height: 3.2rem !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.4);
        letter-spacing: -1px !important;
        margin-bottom: 20px !important;
        font-weight: 500 !important;
    }

    /* Hero Subtitle - Enhanced Readability */
    .hero-subtitle {
        background: rgba(46, 56, 68, 0.59) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 16px 20px !important;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        color: #ffffff !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
        width: 95% !important;
        max-width: 100% !important;
        border-left: 4px solid var(--base-color);
    }

    /* Button Adjustments for Better Visibility */
    .hero-banner-section .btn {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
        font-weight: 600 !important;
    }

    /* Adjust hero section height on small screens */
    .hero-banner-section.sm-h-600px {
        min-height: 600px !important;
        display: flex;
        align-items: center;
    }
}

/* Extra Small Devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2.8rem !important;
        line-height: 2.8rem !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        padding: 14px 18px !important;
        width: 100% !important;
    }

    .hero-banner-section .btn-extra-large {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 50%;
        display: inline;
        text-align: center;
    }

    .hero-mobile-overlay {
        background: linear-gradient(to bottom,
                rgba(46, 56, 68, 0.3) 0%,
                rgba(46, 56, 68, 0.6) 50%,
                rgba(46, 56, 68, 0.8) 100%);
    }
}

/* Medium screens fine tuning (tablets) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 3.4rem !important;
    }

    .hero-subtitle {
        font-size: 17px !important;
        width: 85% !important;
    }
}

/* ===================================
   KNOWLEDGE HUB - CUSTOM STYLES
   Created: 2026-01-13
   Purpose: SEO 2025 optimized knowledge hub page
====================================== */
/* ===================================
   1. HERO SECTION
====================================== */
.knowledge-hub-hero {
    position: relative;
}

.knowledge-hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 244, 253, 0.9) 0%, rgba(255, 243, 243, 0.9) 100%);
    z-index: 0;
}

.knowledge-hub-hero>.container {
    position: relative;
    z-index: 1;
}

/* Medical Review Badge */
.medical-review-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medical-review-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* ===================================
   2. SEARCH WIDGET
====================================== */
.search-widget-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-widget {
    width: 100%;
    padding: 8px 8px 8px 0;
    transition: all 0.3s ease;
}

.search-widget:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.search-widget input {
    height: 50px;
    font-size: 16px;
    color: var(--dark-gray);
}

.search-widget input:focus {
    outline: none;
    box-shadow: none;
}

.search-widget input::placeholder {
    color: var(--medium-gray);
}

.search-widget button {
    height: 42px;
    padding: 0 25px;
    white-space: nowrap;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    max-width: 650px;
    left: 0;
    z-index: 10;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.suggestion-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f5f7fa;
}

/* ===================================
   3. QUICK NAVIGATION PILLS
====================================== */
.quick-nav {
    gap: 10px;
}

.quick-nav .btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-nav .btn:hover,
.quick-nav .btn.active {
    background-color: var(--base-color) !important;
    color: var(--white) !important;
    border-color: var(--base-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 125, 96, 0.3) !important;
}

.quick-nav .btn i {
    font-size: 14px;
}

/* ===================================
   4. ARTICLE CARDS
====================================== */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

/* Fixed: Use padding-top method instead of aspect-ratio for better compatibility */
.article-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;

    /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #f5f7fa;
}

.article-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .card-image img {
    transform: scale(1.08);
}

/* Category Badges */
.category-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    white-space: nowrap;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.featured-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(226, 125, 96, 0.3);
    z-index: 2;
    white-space: nowrap;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Category Border Colors */
.category-benh-ly {
    border-left: 4px solid #E74C3C;
}

.category-dieu-tri {
    border-left: 4px solid #3498DB;
}

.category-cham-soc {
    border-left: 4px solid #27AE60;
}

.category-thanh-phan {
    border-left: 4px solid #F39C12;
}

/* Featured Cards - Larger */
.featured-card {
    height: 100%;
}

.featured-card .card-image {
    padding-top: 62.5%;

    /* 16:10 aspect ratio for featured */
}

.featured-card h4 a {
    transition: color 0.3s ease;
}

.featured-card h4 a:hover {
    color: var(--base-color) !important;
}

/* Regular Article Cards */
.article-card h5 a {
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card h5 a:hover {
    color: var(--base-color) !important;
}

.article-card .btn-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-card .btn-link:hover {
    transform: translateX(5px);
}

/* ===================================
   5. FILTER & SORT SECTION
====================================== */
.form-select {
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    border: 1px solid var(--extra-medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.form-select:hover {
    border-color: var(--base-color);
}

.form-select:focus {
    outline: none;
    border-color: var(--base-color);
    box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.1);
}

/* ===================================
   6. AUTHOR CREDENTIALS SECTION
====================================== */
.bottom-minus-30px {
    bottom: -30px;
}

.left-50 {
    left: 50%;
}

.transform-translateX-minus-50 {
    transform: translateX(-50%);
}

/* ===================================
   7. RESPONSIVE DESIGN
====================================== */
/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .knowledge-hub-hero {
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .search-widget {
        max-width: 100%;
    }

    .quick-nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .quick-nav::-webkit-scrollbar {
        height: 4px;
    }

    .quick-nav::-webkit-scrollbar-thumb {
        background-color: var(--base-color);
        border-radius: 4px;
    }

    .quick-nav .btn {
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Mobile (< 767px) */
@media (max-width: 767px) {
    .knowledge-hub-hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .knowledge-hub-hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .medical-review-badge {
        font-size: 11px !important;
        padding: 8px 15px !important;
    }

    .search-widget input {
        font-size: 16px;

        /* Prevent iOS zoom */
        padding-right: 85px;
    }

    .search-widget button {
        font-size: 13px;
        padding: 0 18px;
    }

    .quick-nav .btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .featured-card .card-body {
        padding: 25px 20px;
    }

    .featured-card h4 {
        font-size: 20px;
        line-height: 1.4;
    }

    .article-card .card-body {
        padding: 20px;
    }

    .article-card h5 {
        font-size: 17px;
    }

    /* Stack filter controls vertically */
    .col-lg-6.text-end {
        text-align: left !important;
        margin-top: 15px;
    }
}

/* Extra Small (< 576px) */
@media (max-width: 575px) {
    .knowledge-hub-hero h1 {
        font-size: 28px;
    }

    .knowledge-hub-hero p {
        font-size: 16px;
    }

    .search-widget-container {
        margin-bottom: 20px;
    }

    .category-badge,
    .featured-badge {
        font-size: 10px;
        padding: 3px 8px;
        max-width: calc(45% - 10px);
    }

    /* Stack badges vertically on very small screens */
    .card-image .category-badge:first-child {
        top: 8px;
        left: 8px;
    }

    .card-image .category-badge:last-child,
    .featured-badge {
        top: 8px;
        right: 8px;
        left: auto;
    }

    /* If there are 2 badges, stack the second one below */
    .card-image .category-badge+.category-badge,
    .card-image .category-badge+.featured-badge {
        top: 30px;
    }

    /* Make author image responsive */
    .bottom-minus-30px {
        bottom: -20px;
    }
}

/* ===================================
   8. UTILITY CLASSES
====================================== */
.hover-bg-light-gray:hover {
    background-color: #f5f7fa;
}

.cursor-pointer {
    cursor: pointer;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

/* ===================================
   9. LOADING STATES & ANIMATIONS
====================================== */
.article-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.article-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Skeleton Loader for Search */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   10. ACCESSIBILITY IMPROVEMENTS
====================================== */
.article-card:focus-within {
    outline: 2px solid var(--base-color);
    outline-offset: 2px;
}

.quick-nav .btn:focus {
    outline: 2px solid var(--base-color);
    outline-offset: 2px;
}

/* High contrast for keyboard navigation */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   11. PRINT STYLES
====================================== */
@media print {
    .knowledge-hub-hero,
    .search-widget-container,
    .quick-nav,
    footer,
    .btn {
        display: none;
    }

    .article-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* -------------------------------------------------------
 * BLOG TABLE OF CONTENTS (TOC) - PREMIUM DESIGN
 * ------------------------------------------------------- */
.toc-box-container {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toc-box-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.toc-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toc-toggle-icon {
    transform: rotate(0deg);
}

.toc-box-container.collapsed .toc-toggle-icon {
    transform: rotate(-90deg);
}

.toc-box-container.collapsed .toc-body {
    display: none;
}

.toc-list li a {
    text-decoration: none;
    line-height: 1.4;
    display: inline-flex;
    padding: 2px 0;
}

.toc-list li a:hover .toc-text {
    color: var(--base-color);
}

.toc-number {
    flex-shrink: 0;
    width: 30px;
}

.toc-item-level-3 {
    padding-left: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 5px;
}

/* Smooth Scroll Adjust for Fixed Header */
:target::before {
    content: "";
    display: block;
    height: 120px;
    margin: -120px 0 0;
}

@media (max-width: 767px) {
    .toc-body {
        padding: 15px !important;
    }

    .toc-header {
        padding: 15px !important;
    }
}

/* -------------------------------------------------------
 * PREMIUM MOBILE TRIPLE-CTA BAR
 * ------------------------------------------------------- */
.premium-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 15px 20px;

    /* Reduced padding */
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-inner-glass {
    background: rgba(46, 56, 68, 0.9);

    /* Slightly more opaque for better contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;

    /* More extreme pill shape */
    padding: 6px 8px;

    /* Compact padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    width: 100%;
    max-width: 350px;

    /* Narrower for better mobile focus */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop Dock Refinement */
@media (min-width: 992px) {
    .premium-mobile-cta {
        bottom: 30px;

        /* Floating above the edge */
        padding: 0;
    }

    .cta-inner-glass {
        width: auto;
        min-width: 270px;

        /* Reduced from 380px */
        max-width: 350px;
        padding: 8px 10px;

        /* More compact */
        background: rgba(26, 36, 48, 0.85);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        justify-content: center;

        /* Center items for desktop */
    }

    .cta-main-btn {
        flex-grow: 0;

        /* Don't stretch on desktop */
        margin: 0 15px;

        /* Slightly reduced margin */
        padding: 8px 18px;

        /* Reduced padding from 10px 25px (~20% reduction) */
        font-size: 13px;

        /* Slightly smaller font for better fit */
    }

    .cta-action-icon:hover {
        transform: translateY(-3px);
        opacity: 1;
    }

    .cta-main-btn:hover {
        background: #ffab4a;
        box-shadow: 0 8px 25px rgba(241, 155, 56, 0.5);
        transform: translateY(-2px);
    }
}

.cta-action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    width: 55px;

    /* Narrower */
    padding: 2px 0;
    transition: all 0.3s ease;
}

.cta-action-icon i,
.cta-action-icon img {
    font-size: 22px;

    /* Slightly larger icons */
    margin-bottom: 4px;
    display: block;
}

.cta-action-icon span {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;

    /* More spaced out caps */
    opacity: 0.9;
    line-height: 1;
}

.cta-main-btn {
    flex-grow: 1;
    background: #f19b38;

    /* Bright orange matching the screenshot */
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;

    /* Compact padding */
    border-radius: 100px;

    /* Pill shape */
    font-weight: 700;
    font-size: 14px;

    /* Balanced font size */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(241, 155, 56, 0.4);
    margin: 0 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.cta-main-btn i {
    font-size: 16px;
    margin-right: 8px;
}

.cta-main-btn:active {
    transform: scale(0.96);
}

.cta-action-icon:active {
    transform: scale(0.85);
}

.zalo-trigger img {
    width: 28px;

    /* Proper Zalo icon size */
    height: 28px;
    border-radius: 50%;

    /* If needed for circular look */
}

/* Hide old redundant buttons on mobile */
@media (max-width: 767px) {
    .sticky-cta-btn {
        display: none !important;
    }
}

/* Animation refinement */
.animate__fadeInUp {
    animation-duration: 0.8s;
}

/* ===================================
   KNOWLEDGE HUB - PREMIUM STYLES
====================================== */
.search-widget-container {
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
}

.search-widget {
    width: 100%;
    padding: 6px 6px 6px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-widget:hover,
.search-widget:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
    background: #fff;
    border-color: rgba(241, 165, 65, 0.2);
}

.search-widget i.bi-search {
    font-size: 20px;
    color: var(--medium-gray);
    margin-right: 15px;
    flex-shrink: 0;
}

.search-widget input {
    height: 54px;
    font-size: 16px;
    color: var(--dark-gray);
    flex-grow: 1;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.search-widget input:focus {
    outline: none;
    box-shadow: none;
}

.search-widget input::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

.search-widget button {
    height: 48px;
    padding: 0 30px;
    white-space: nowrap;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: #f1a541;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(241, 165, 65, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
}

.search-widget button:hover {
    background-color: #e6952d;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(241, 165, 65, 0.4);
}

/* Search Suggestions */
.search-suggestions {
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

.suggestion-item {
    padding: 15px 25px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-weight: 500;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.suggestion-item i {
    margin-right: 15px;
    font-size: 18px;
    color: #f1a541;
}

.suggestion-item:hover {
    background-color: rgba(241, 165, 65, 0.05);
    padding-left: 30px;
    color: #e6952d;
}

/* Topical Clusters (Story Style) */
.topical-clusters-container {
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.topical-clusters {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.topical-clusters::-webkit-scrollbar {
    display: none;
}

.cluster-item {
    flex: 0 0 auto;
    text-align: center;
    width: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.cluster-item:hover {
    transform: translateY(-8px);
}

.cluster-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 3px;
    position: relative;
    z-index: 1;
}

.cluster-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.cluster-item:hover .cluster-icon-wrapper img {
    transform: scale(1.1);
}

.cluster-item.active .cluster-icon-wrapper {
    border-color: #f1a541;
    box-shadow: 0 0 0 4px rgba(241, 165, 65, 0.15);
}

.cluster-item.active .cluster-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #f1a541;
    border-radius: 50%;
    animation: clusterPulse 2s infinite;
    z-index: -1;
}

@keyframes clusterPulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.cluster-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-gray);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cluster-item.active .cluster-label {
    color: #f1a541;
}

/* Article Card Enhancements */
.article-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1) !important;
}

.verified-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #f1a541;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Category Badge Guard */
.card-image .category-badge:nth-of-type(n+2) {
    display: none;
}

/* =================================== 
   5. Quick Tips Section 
====================================== */
.quick-tips-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.quick-tip-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quick-tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.quick-tip-icon {
    width: 45px;
    height: 45px;
    background: rgba(241, 165, 65, 0.1);
    color: #f1a541;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.quick-tip-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.quick-tip-content {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.quick-tip-link {
    font-size: 13px;
    font-weight: 800;
    color: #f1a541;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===================================
   6. Author Credentials & CTA
====================================== */
.bg-gradient-solitude-blue-fair-pink {
    background: linear-gradient(135deg, #f0f4f9 0%, #fff5f6 100%);
}

.author-credentials-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.credentials-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

.credentials-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #f1a541;
}

/* ===================================
   7. Responsive Fixes
====================================== */
@media (max-width: 991px) {
    .knowledge-hub-hero {
        padding-top: 150px !important;
    }

    .topical-clusters {
        justify-content: flex-start;
        padding-bottom: 20px;
    }

    .search-widget {
        padding: 5px 5px 5px 20px;
    }

    .search-widget input {
        height: 48px;
        font-size: 15px;
    }

    .search-widget button {
        padding: 0 20px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .knowledge-hub-hero {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }

    .search-widget-container {
        margin-bottom: 20px;
    }

    .article-card.featured-card .card-body {
        padding: 25px;
    }

    .quick-tips-section {
        padding: 25px;
    }

    .cluster-item {
        width: 85px;
    }

    .cluster-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .cluster-label {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .search-widget {
        border-radius: 15px;
        flex-direction: column;
        padding: 15px;
    }

    .search-widget i.bi-search {
        display: none;
    }

    .search-widget input {
        text-align: center;
        margin-bottom: 10px;
        width: 100%;
    }

    .search-widget button {
        width: 100%;
        margin-left: 0;
    }

    .topical-clusters {
        gap: 15px;
    }
}

.bg-header {
    background-image: linear-gradient(to right, #ff9d3152, #33394563, #3e393f4f, #42361000, #8b4d41);
}