/* ===========================
   DASHBOARD PAGE
   =========================== */

.main-content {
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

#gioi-thieu,
#quy-trinh,
#danh-muc,
#danh-muc-grid,
#lien-he {
    scroll-margin-top: 96px;
}

.hero {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    animation: fadeInDown 0.6s ease-in-out;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    pointer-events: none;
    transform: translateY(-50%);
    animation: driftBlob 8s ease-in-out infinite;
}

.hero::before {
    background: var(--primary-light);
    left: 6%;
}

.hero::after {
    background: var(--secondary);
    right: 6%;
    animation-delay: -4s;
}

.hero-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.18);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: var(--spacing-md);
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25);
    animation: pulseDot 2s ease-in-out infinite;
}

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

.hero h2 {
    position: relative;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.hero h2.hero-title-shimmer {
    background: linear-gradient(90deg,
        var(--primary-dark) 0%, var(--primary) 25%, var(--secondary) 50%,
        var(--primary) 75%, var(--primary-dark) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTitleShimmer 6s linear infinite;
    will-change: background-position;
}

@keyframes heroTitleShimmer {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.hero h2.hero-title-compact {
    font-size: 1.7rem;
    line-height: 1.35;
}

.hero-desc {
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 780px;
    margin: 0 auto;
    text-wrap: pretty;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes driftBlob {
    0%, 100% { transform: translateY(-50%) translateX(0) scale(1); }
    50% { transform: translateY(-50%) translateX(14px) scale(1.08); }
}

/* ---------- Additional Links band (Ket noi voi Khoa) ---------- */

.links-band {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
}

.links-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary-light), var(--secondary));
}

.links-band-head {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hero-eyebrow-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.links-band-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.links-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.link-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: transform var(--transition-base), background var(--transition-base);
}

.link-tile:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.link-tile-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.link-tile-icon svg {
    width: 19px;
    height: 19px;
}

.link-tile h4 {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.link-tile p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.category-zone {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    overflow: hidden;
}

.category-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* ---------- Process Flow (Quy trình khai báo chung) ---------- */

.process-panel {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
}

.process-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.process-panel-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto var(--spacing-xl);
}

.process-panel-head .hero-eyebrow {
    margin-bottom: var(--spacing-md);
}

.process-panel-head h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.process-panel-head p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
    text-wrap: pretty;
}

.process-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: var(--spacing-md);
}

.process-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.process-flow-step:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.process-flow-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.28);
}

.process-flow-icon svg {
    width: 28px;
    height: 28px;
}

.process-flow-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.process-flow-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.process-flow-step p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.55;
}

.process-flow-arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 45px;
    color: var(--gray-300);
}

.process-flow-arrow svg {
    width: 22px;
    height: 22px;
}

/* ---------- Hero Split Layout ---------- */

.hero-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-lg);
}

.hero-split .hero-eyebrow {
    margin-bottom: var(--spacing-md);
}

.hero-split .hero-desc {
    margin-left: 0;
    max-width: none;
}

@media (min-width: 1025px) {
    .hero-split h2.hero-title-shimmer {
        font-size: 1.6rem;
        white-space: nowrap;
    }
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-illustration {
    width: 100%;
    max-width: 225px;
    height: auto;
}

.hero-right .stats-row {
    width: 100%;
    flex-direction: column;
    margin-top: 0;
}

.hero-right .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
    padding: var(--spacing-xs) var(--spacing-md);
}

.hero-right .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary);
}

.hero-right .stat-icon svg {
    width: 16px;
    height: 16px;
}

.hero-right .stat-number {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hero-right .stat-label {
    font-size: 0.68rem;
    margin-top: 0;
    text-align: left;
}

/* ---------- Hero CTA Button ---------- */

.hero-cta-btn {
    display: inline-flex;
    margin-top: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
    animation: ctaPulse 2.4s ease-in-out infinite;
}

.hero-cta-btn:hover {
    animation-play-state: paused;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35); }
    50% { box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5); }
}

.hero-slogan {
    position: relative;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    color: var(--gray-800);
    background: rgba(30, 64, 175, 0.06);
    border-left: 3px solid var(--secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--spacing-md) 0 var(--spacing-lg);
    text-wrap: pretty;
}

/* ---------- Stat Counters ---------- */

.stats-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.72rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-top: 2px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .categories-grid,
    .links-band-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .categories-grid,
    .links-band-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .links-band {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .category-card {
        padding: var(--spacing-lg);
    }
}
