:root {
    --primary-color: #e0a242;
    --bg-body: #0b0f19;
    --bg-card: #0a0c11;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --transition: all 0.3s ease;
}

/* ============================================================
   HOME PAGE CSS — Hải Công Nghệ
   File: public/frontend/css/home.css
   ============================================================ */

/* ============================================================
   BANNER / HERO SECTION
   ============================================================ */
.hero-banner {
    position: relative;
    background: radial-gradient(ellipse at 60% 50%, #1a1200 0%, #0d0d0d 40%, #000000 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0 40px;
}

/* Background circuit pattern */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(224, 162, 66, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 162, 66, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Glow blobs */
.hero-banner__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-banner__glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 162, 66, 0.08) 0%, transparent 70%);
    top: -100px;
    right: 10%;
    animation: glowPulse 4s ease-in-out infinite;
}

.hero-banner__glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 162, 66, 0.05) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: glowPulse 6s ease-in-out infinite reverse;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Container */
.hero-banner__container {
    position: relative;
    z-index: 2;
    width: 100%;
    /* max-width: 1280px; */
    margin: 0 auto;
    /* padding: 0 40px; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* ============================================================
   LEFT CONTENT
   ============================================================ */
.hero-banner__left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Script / italic label */
.hero-banner__script {
    font-family: 'Dancing Script', 'Great Vibes', cursive, 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(224, 162, 66, 0.4);
    font-style: italic;
}

/* Main heading */
.hero-banner__left>h2 {
    font-size: clamp(36px, 5vw, 55px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.hero-banner__left>h2 span {
    display: block;
}

.hero-banner__title-gold {
    color: var(--color-secondary);
    display: block;
}

/* Divider line with text */
.hero-banner__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 20px;
}

.hero-banner__divider-line {
    flex: 1;
    height: 1px;
    /* background: linear-gradient(90deg, var(--color-secondary), transparent); */
    background: var(--color-secondary);
    max-width: 60px;
}

.hero-banner__divider-line.right {
    /* background: linear-gradient(270deg, var(--color-secondary), transparent); */
    background: var(--color-secondary);
}

.hero-banner__divider-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Description */
.hero-banner__desc {
    font-size: 15.5px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

/* CTA Buttons */
.hero-banner__cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 25px;
}

.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.hero-banner__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-banner__btn--primary {
    background: var(--color-secondary);
    color: #000;
    box-shadow: 0 4px 20px rgba(224, 162, 66, 0.35);
    text-transform: uppercase;
}

.hero-banner__btn--primary:hover {
    background: #c8882e;
    color: #000;
}

.hero-banner__btn--outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.hero-banner__btn--outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Stats row */
.hero-banner__stats ul {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner__stats ul li {
    list-style: none;
    position: relative;
}

.hero-banner__stats ul li:not(:first-child)::before {
    content: '';
    width: 1px;
    height: 90%;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    opacity: .4;
}

.hero-banner__stats ul li h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}


.hero-banner__stats ul li h3 i {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
}

.hero-banner__stats ul li h3 span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-align: left;
}

/* ============================================================
   RIGHT IMAGE
   ============================================================ */
.hero-banner__right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Geometric frame (the H-logo diamond shape from the image) */
.hero-banner__frame {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.hero-banner__frame-svg {
    width: 100%;
    height: 100%;
    animation: framePulse 3s ease-in-out infinite;
}

@keyframes framePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 12px rgba(224, 162, 66, 0.5));
        opacity: 0.85;
    }

    50% {
        filter: drop-shadow(0 0 24px rgba(224, 162, 66, 0.9));
        opacity: 1;
    }
}

/* Circuit lines background for right side */
.hero-banner__circuit {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
}

/* Image wrapper */
.hero-banner__image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-banner__ceo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
    /* animation: heroFloat 5s ease-in-out infinite; */
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Signature label */
.hero-banner__signature {
    position: absolute;
    bottom: 24px;
    right: -45px;
    /* text-align: right; */
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(224, 162, 66, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    backdrop-filter: blur(8px);
}

.hero-banner__signature h3 {
    font-family: 'Dancing Script', cursive, 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-secondary);
    font-style: italic;
    display: block;
    margin-bottom: 4px;
}

.hero-banner__signature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero-banner {
        padding: 40px 0 40px;
    }

    .hero-banner__container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 40px 24px;
        gap: 32px;
    }

    .hero-banner__right {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-banner__image-wrap {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-banner__script {
        font-size: 34px;
        text-align: center;
    }

    .hero-banner__desc {
        max-width: 100%;
        text-align: center;
    }

    .hero-banner__divider {
        justify-content: center;
    }

    .hero-banner__cta {
        justify-content: center;
    }

    .hero-banner__stats {
        justify-content: center;
        gap: 20px;
    }

    .hero-banner__signature {
        right: 0;
        bottom: 10px;
    }

    .hero-banner__stats ul {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero-banner {
        padding: 30px 0 30px;
    }

    .hero-banner__container {
        padding: 24px 20px;
        gap: 24px;
    }

    .hero-banner__script {
        font-size: 28px;
    }

    .hero-banner__title {
        font-size: 32px;
    }

    .hero-banner__desc {
        font-size: 14px;
    }

    .hero-banner__stats {
        gap: 16px;
    }

    .hero-banner__stat-number {
        font-size: 16px;
    }

    .hero-banner__image-wrap {
        max-width: 300px;
    }

    .hero-banner__btn {
        padding: 11px 20px;
        font-size: 13px;
    }

    .hero-banner__stats ul
}

/* ============================================================
   RESPONSIVE — SMALL (≤ 575px)
   ============================================================ */
@media (max-width: 575px) {
    .hero-banner__script {
        font-size: 24px;
    }

    .hero-banner__title {
        font-size: 28px;
    }

    .hero-banner__stats {
        gap: 12px;
    }

    .hero-banner__stat {
        gap: 8px;
    }

    .hero-banner__stat-icon {
        width: 30px;
        height: 30px;
    }

    .hero-banner__stat-icon svg {
        width: 15px;
        height: 15px;
    }

    .hero-banner__cta {
        /* flex-direction: column; */
        align-items: stretch;
    }

    .hero-banner__btn {
        justify-content: center;
        padding: 13px;
    }

    .hero-banner__signature {
        /* position: static; */
        text-align: center;
        margin-top: 12px;
    }

    .hero-banner__stats ul {
        /* display: grid;
        grid-template-columns: repeat(2, 1fr); */
        gap: 20px;
    }

    .hero-banner__stats ul li:not(:first-child)::before {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .hero-banner__container {
        padding: 16px 16px;
    }

    .hero-banner__script {
        font-size: 22px;
    }

    .hero-banner__title {
        font-size: 24px;
    }

    .hero-banner__stats {
        /* display: grid;
        grid-template-columns: 1fr 1fr; */
        gap: 10px;
    }

    .hero-banner__stat {
        justify-content: flex-start;
    }
}



#block-post {
    padding: 30px 0;
}



/* Updated Section Header with connecting line in the middle */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.section-header::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.2;
    order: 1;
}

.section-title {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    order: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.section-header .section-title {
    margin-bottom: 0px;
}

/* Remove the old underline from previous style */
.section-title::after {
    display: none !important;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: var(--transition);
    order: 2;
}

.view-all:hover {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 575px) {
    .view-all {
        display: none;
    }
}

/* Latest Posts */
.post-card {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(to right, #513100 0%, rgb(224 162 66 / 21%) 0%, #0c0c0cc7 100%) border-box;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

/* .post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
} */

.post-image {
    width: 280px;
    height: 173px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.post-image:hover img {
    transform: scale(1.1);
}

.post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.post-bookmark-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-bookmark-btn:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.post-bookmark-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.post-bookmark-btn:hover .post-bookmark-icon {
    fill: rgba(224, 162, 66, 0.2);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.box-about {
    margin-bottom: 15px;
    --gutter: 7px;
}

.about-avatar {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-desc {
    color: #FFF;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.btn-more {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    width: 70%;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-more:hover {
    background: var(--primary-color);
    color: #000;
}

.btn-more-arrow {
    transition: transform 0.3s ease;
    transform: translateY(-1px);
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /* border-bottom: 1px solid var(--border-color); */
    /* color: var(--text-muted); */
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.popular-posts-widget {
    border: 1px solid rgba(224, 162, 66, 0.25) !important;
    box-shadow: 0 4px 24px rgba(224, 162, 66, 0.04) !important;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.popular-item:first-child {
    padding-top: 0;
}

.popular-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.popular-rank {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    width: 32px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.popular-thumb {
    width: 90px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info {
    flex-grow: 1;
    min-width: 0;
}

.popular-title {
    margin: 0;

}

.popular-title a {
    /* color: var(--text-muted); */
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-views {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    font-weight: 500;
}

.popular-views svg {
    color: var(--text-muted);
    opacity: 0.7;
    width: 15px;
    height: 15px;
}

@media (max-width: 991px) {

    .sidebar-widget {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 575px) {
    .btn-more {
        width: 100%;
    }
}

/* ============================================================
   POPULAR TOPICS SECTION
   ============================================================ */
.popular-topics-sec {
    background: #060913;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 18px 0;
}

.topics-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topics-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.topics-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 10px;
    padding: 6px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    -webkit-overflow-scrolling: touch;
}

.topics-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Slick Slider support for topics-list */
.topics-list.slick-initialized {
    display: block;
    overflow: hidden;
}

.topics-list.slick-initialized .slick-track {
    display: flex;
    align-items: center;
}

.topics-list.slick-initialized .slick-slide {
    margin: 0 6px;
    outline: none;
    display: flex;
    align-items: center;
}

.topics-list.slick-initialized .slick-list {
    padding: 8px 0;
    overflow: visible;
}

.topic-pill {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.topic-pill:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(224, 162, 66, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 162, 66, 0.08);
}

.topics-view-all {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: var(--transition);
}

.topics-view-all:hover {
    color: #fff;
}

.topics-arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.topics-view-all:hover .topics-arrow {
    transform: translateX(4px);
}

/* Responsive adjustments for topics */
@media (max-width: 991px) {
    .topics-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .topics-list {
        /* margin: 10px 0; */
        width: 100%;
        justify-content: flex-start;
        padding: 6px 15px;
    }
}