/* Trang chủ — hiệu ứng, shape & layout bổ sung */

/* Hero shapes */
.hdn-hero-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
    pointer-events: none;
    animation: hdnFloat 8s ease-in-out infinite;
}
.hdn-hero-shape--1 { width: 340px; height: 340px; top: -120px; right: -80px; }
.hdn-hero-shape--2 { width: 220px; height: 220px; bottom: -90px; left: 8%; opacity: .5; animation-delay: -2s; }
.hdn-hero-shape--3 {
    width: 160px; height: 160px; top: 40%; left: -40px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    animation-delay: -4s;
}

@keyframes hdnFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.03); }
}

/* Section decorative shapes */
.hdn-section--intro,
.hdn-section--events,
.hdn-section--benefits,
.hdn-section--news { position: relative; overflow: hidden; }

.hdn-section-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hdn-section-shape--1 {
    width: 280px; height: 280px; top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(201,162,39,.14), transparent 70%);
}
.hdn-section-shape--2 {
    width: 200px; height: 200px; bottom: 10%; left: -70px;
    background: radial-gradient(circle, rgba(11,36,71,.06), transparent 70%);
}
.hdn-section-shape--3 {
    width: 240px; height: 240px; top: 20px; left: -90px;
    background: radial-gradient(circle, rgba(11,36,71,.05), transparent 70%);
}
.hdn-section-shape--4 {
    width: 320px; height: 320px; bottom: -120px; right: -80px;
    background: radial-gradient(circle, rgba(201,162,39,.12), transparent 70%);
}
.hdn-section-shape--5 {
    width: 180px; height: 180px; top: 60px; right: 5%;
    background: radial-gradient(circle, rgba(11,36,71,.05), transparent 70%);
}

.hdn-section--intro .container,
.hdn-section--events .container,
.hdn-section--benefits .container,
.hdn-section--news .container { position: relative; z-index: 1; }

/* Scroll reveal */
.hdn-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}
.hdn-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hdn-stat-num[data-counter] { min-width: 1ch; }

/* Intro section — text trên, slider + VMV 7/5 dưới */
.hdn-intro-head {
    max-width: 820px;
    margin-bottom: 40px;
}
.hdn-intro-head .hdn-title { margin-bottom: 16px; }
.hdn-intro-lead {
    color: var(--hdn-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 8px;
}
.hdn-intro-body {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 28px;
    align-items: start;
}
.hdn-intro-slider-col { min-width: 0; }
.hdn-intro-vmv-col { min-width: 0; display: flex; flex-direction: column; }

.hdn-intro-slider {
    position: relative;
    border-radius: var(--hdn-radius-lg);
    overflow: hidden;
    box-shadow: var(--hdn-shadow);
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 410px;
    background: var(--hdn-bg-alt);
}
.hdn-intro-slider--fallback {
    aspect-ratio: 16 / 10;
    max-height: 380px;
}
.hdn-intro-slider--fallback img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.hdn-intro-slider-placeholder {
    width: 100%; height: 100%; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; color: var(--hdn-navy-light);
}
.hdn-intro-slider-track { position: relative; width: 100%; height: 100%; }
.hdn-intro-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.hdn-intro-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hdn-intro-slide img,
.hdn-intro-slide-link {
    width: 100%; height: 100%; display: block;
}
.hdn-intro-slide img { object-fit: cover; }
.hdn-intro-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--hdn-navy);
    box-shadow: var(--hdn-shadow-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.hdn-intro-slider-nav:hover { background: var(--hdn-navy); color: #fff; }
.hdn-intro-slider-prev { left: 12px; }
.hdn-intro-slider-next { right: 12px; }
.hdn-intro-slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    z-index: 3;
    display: flex; gap: 8px; padding: 6px 10px;
    background: rgba(11, 36, 71, .45);
    border-radius: 999px;
}
.hdn-intro-slider-dot {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.hdn-intro-slider-dot.is-active {
    background: var(--hdn-gold);
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .hdn-intro-body { grid-template-columns: 1fr; gap: 24px; }
    .hdn-intro-head { margin-bottom: 28px; }
    .hdn-intro-slider,
    .hdn-intro-slider--fallback {
        max-height: none;
        aspect-ratio: 16 / 10;
    }
}

/* Intro collage (legacy — giữ nếu trang khác dùng) */
.hdn-intro-collage {
    position: relative;
    min-height: 380px;
}
.hdn-intro-collage-main {
    width: 72%;
    border-radius: var(--hdn-radius-lg);
    overflow: hidden;
    box-shadow: var(--hdn-shadow);
    position: relative;
    z-index: 2;
}
.hdn-intro-collage-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.hdn-intro-collage-sub {
    position: absolute;
    border-radius: var(--hdn-radius);
    background: linear-gradient(135deg, var(--hdn-navy-light), var(--hdn-navy));
    opacity: .85;
    z-index: 1;
}
.hdn-intro-collage-sub--a { width: 38%; height: 42%; bottom: 0; right: 0; }
.hdn-intro-collage-sub--b { width: 32%; height: 34%; top: 8%; right: 6%; opacity: .55; }
.hdn-intro-badge {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 118px; height: 118px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--hdn-gold);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: var(--hdn-shadow-lg);
    text-align: center;
    animation: hdnPulse 3s ease-in-out infinite;
}
.hdn-intro-badge span { font-size: 11px; font-weight: 700; color: var(--hdn-muted); text-transform: uppercase; letter-spacing: .04em; }
.hdn-intro-badge strong { font-size: 22px; font-weight: 800; color: var(--hdn-navy); line-height: 1.1; }

@keyframes hdnPulse {
    0%, 100% { box-shadow: var(--hdn-shadow-lg); }
    50% { box-shadow: 0 0 0 10px rgba(201,162,39,.12), var(--hdn-shadow-lg); }
}

.hdn-intro-desc p { color: var(--hdn-muted); font-size: 15.5px; margin: 0 0 14px; }
.hdn-link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 14.5px; color: var(--hdn-navy);
    margin-top: 8px;
}
.hdn-link-arrow:hover { color: var(--hdn-gold); gap: 12px; }

/* VMV list style (YBA-like) */
.hdn-vmv-list { display: grid; gap: 16px; margin-top: 40px; }
.hdn-vmv-list--stack { margin-top: 0; height: 100%; align-content: start; }
.hdn-vmv-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff;
    border: 1px solid var(--hdn-border);
    border-left: 4px solid var(--hdn-gold);
    border-radius: var(--hdn-radius);
    padding: 20px 22px;
    box-shadow: var(--hdn-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hdn-vmv-item:hover { transform: translateX(4px); box-shadow: var(--hdn-shadow); }
.hdn-vmv-item--mission { border-left-color: var(--hdn-navy-light); }
.hdn-vmv-item--value { border-left-color: var(--hdn-navy); }
.hdn-vmv-item-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--hdn-bg-alt);
    color: var(--hdn-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.hdn-vmv-item h3 { font-size: 16px; font-weight: 700; color: var(--hdn-navy); margin: 0 0 6px; }
.hdn-vmv-item p { font-size: 14px; color: var(--hdn-muted); margin: 0; line-height: 1.55; }

/* Events grid */
.hdn-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 767px) { .hdn-events-grid { grid-template-columns: 1fr; } }

.hdn-event-card {
    display: flex; gap: 18px;
    background: #fff;
    border: 1px solid var(--hdn-border);
    border-radius: var(--hdn-radius-lg);
    padding: 18px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.hdn-event-card::before {
    content: '';
    position: absolute; inset: 0 auto 0 0; width: 4px;
    background: var(--hdn-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}
.hdn-event-card:hover { box-shadow: var(--hdn-shadow); transform: translateY(-3px); }
.hdn-event-card:hover::before { transform: scaleY(1); }
.hdn-event-date {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: var(--hdn-radius);
    background: var(--hdn-navy);
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hdn-event-date strong { font-size: 20px; font-weight: 800; line-height: 1; }
.hdn-event-date span { font-size: 11px; color: var(--hdn-gold-light); text-transform: uppercase; }
.hdn-event-body h4 { font-size: 15.5px; font-weight: 700; color: var(--hdn-navy); margin: 0 0 6px; }
.hdn-event-body h4 a:hover { color: var(--hdn-gold); }
.hdn-event-body p { font-size: 13.5px; color: var(--hdn-muted); margin: 0 0 10px; }
.hdn-event-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--hdn-navy);
}
.hdn-event-link:hover { color: var(--hdn-gold); }

.hdn-events-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed var(--hdn-border);
    border-radius: var(--hdn-radius-lg);
}
.hdn-events-empty-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--hdn-bg-alt);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--hdn-muted);
}
.hdn-events-empty p { color: var(--hdn-muted); margin: 0 0 18px; }

/* Benefits — blob + icon colors */
.hdn-benefit-card {
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hdn-benefit-card:hover { transform: translateY(-6px); box-shadow: var(--hdn-shadow); }
.hdn-benefit-blob {
    position: absolute;
    top: -20px; right: -20px;
    width: 90px; height: 90px;
    border-radius: 50%;
    opacity: .18;
    background: var(--hdn-gold);
    transition: transform .4s ease;
}
.hdn-benefit-card:hover .hdn-benefit-blob { transform: scale(1.25); }
.hdn-benefit-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin: 0 auto 14px;
    position: relative; z-index: 1;
}
.hdn-benefit-icon--navy { background: var(--hdn-navy); }
.hdn-benefit-icon--gold { background: var(--hdn-gold); color: var(--hdn-navy-dark); }
.hdn-benefit-icon--red { background: #c0392b; }
.hdn-benefit-icon--green { background: #1f9d55; }
.hdn-benefit-icon--orange { background: #e67e22; }

.hdn-benefit-cta {
    text-align: center;
    margin-top: 36px;
}
.hdn-benefit-cta p {
    font-size: 13.5px;
    color: var(--hdn-muted);
    margin: 12px 0 0;
}

/* News split — featured + list */
.hdn-news-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .hdn-news-split { grid-template-columns: 1fr; } }

.hdn-news-featured { border-radius: var(--hdn-radius-lg); overflow: hidden; }
.hdn-news-featured-media {
    display: block;
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
}
.hdn-news-split .hdn-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hdn-news-featured-media img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center center;
    transition: transform .45s ease;
}
.hdn-news-featured:hover .hdn-news-featured-media img { transform: scale(1.05); }
.hdn-news-featured-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--hdn-navy); color: rgba(255,255,255,.35); font-size: 40px;
}
.hdn-news-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,23,48,.08) 0%, rgba(7,23,48,.72) 55%, rgba(7,23,48,.96) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.hdn-news-featured-cate {
    align-self: flex-start;
    background: var(--hdn-gold);
    color: var(--hdn-navy-dark);
    font-size: 11.5px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    margin-bottom: 10px;
}
.hdn-news-featured-overlay h3 {
    font-size: 20px; font-weight: 800; line-height: 1.35; margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hdn-news-featured-overlay p {
    font-size: 14px; color: rgba(255,255,255,.78); margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hdn-news-featured-link {
    font-size: 13.5px; font-weight: 700; color: var(--hdn-gold-light);
    display: inline-flex; align-items: center; gap: 6px;
}

.hdn-news-list-item {
    display: flex; gap: 14px;
    background: #fff;
    border: 1px solid var(--hdn-border);
    border-radius: var(--hdn-radius);
    padding: 12px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.hdn-news-list-item:hover { box-shadow: var(--hdn-shadow-sm); transform: translateX(4px); }
.hdn-news-list-thumb {
    flex-shrink: 0;
    width: 110px; height: 78px;
    border-radius: var(--hdn-radius-sm);
    overflow: hidden;
    background: var(--hdn-bg-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--hdn-muted);
}
.hdn-news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hdn-news-list-body {
    flex: 1;
    min-width: 0;
}
.hdn-news-list-body time {
    display: block;
    font-size: 12px; color: var(--hdn-muted); margin-bottom: 6px;
}
.hdn-news-list-body h4 {
    font-size: 14.5px; font-weight: 700; color: var(--hdn-navy);
    margin: 0 0 8px; line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hdn-news-list-body h4 a:hover { color: var(--hdn-gold); }
.hdn-news-list-more {
    font-size: 12.5px; font-weight: 700; color: var(--hdn-navy);
    display: inline-flex; align-items: center; gap: 5px;
}
.hdn-news-list-more:hover { color: var(--hdn-gold); }

/* Card entrance animations */
.hdn-vmv-item, .hdn-field-card, .hdn-news-card, .hdn-member-card, .hdn-benefit-card {
    animation: hdnFadeUp .5s ease both;
}
@keyframes hdnFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hdn-reveal { opacity: 1; transform: none; transition: none; }
    .hdn-hero-shape, .hdn-intro-badge { animation: none; }
}
