/* ============================================
   众智商学院 - 官方网站样式系统
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --navy: #0B2A4A;
    --navy-light: #14406B;
    --navy-dark: #061A2E;
    --gold: #C9A227;
    --gold-light: #E0BC42;
    --gold-dark: #A0821D;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --red: #DC2626;
    --green: #059669;

    /* Typography */
    --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-navy: 0 8px 30px rgba(11, 42, 74, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.bg-gray {
    background: var(--gray-50);
}

.bg-navy {
    background: var(--navy);
    color: var(--white);
}

.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    padding: 6px 16px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 100px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.header-top a:hover {
    color: var(--gold-light);
}

.header-top .top-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-main {
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled .header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text .brand-en {
    font-size: 0.6875rem;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--navy);
    background: var(--gray-100);
}

.nav a.active {
    color: var(--navy);
    font-weight: 600;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 42, 74, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(20, 64, 107, 0.3) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--gold-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero h1 .highlight {
    color: var(--gold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat .number span {
    font-size: 1rem;
    color: var(--gold-light);
}

.hero-stat .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.3);
}

.hero-card-1 {
    top: 0;
    left: 0;
    width: 260px;
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    top: 180px;
    right: 0;
    width: 240px;
    animation: float 6s ease-in-out infinite 2s;
}

.hero-card-3 {
    bottom: 0;
    left: 60px;
    width: 280px;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.hero-card .card-icon.gold {
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light);
}

.hero-card .card-icon.blue {
    background: rgba(20, 64, 107, 0.4);
    color: #6BB6FF;
}

.hero-card h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-card .card-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Certification Cards Grid
   ============================================ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.cert-card-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cert-card-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.cert-card-banner .cert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.cert-card-banner .cert-code {
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cert-card-banner h3 {
    color: var(--white);
    font-size: 1.375rem;
    margin-bottom: 4px;
}

.cert-card-banner .cert-en {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.cert-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-body .cert-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex: 1;
}

.cert-card-body .cert-features {
    margin-bottom: 20px;
}

.cert-card-body .cert-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray-700);
    padding: 6px 0;
}

.cert-card-body .cert-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.cert-card-body .cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.cert-card-body .cert-meta .meta-item {
    text-align: center;
}

.cert-card-body .cert-meta .meta-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.cert-card-body .cert-meta .meta-label {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.cert-card-body .btn {
    width: 100%;
}

/* ============================================
   Features / Why Choose Us
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.feature-item .feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--gold);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: var(--space-2xl) 0;
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-item .stat-number span {
    font-size: 0.5em;
    color: var(--gold-light);
}

.stat-item .stat-label {
    margin-top: 12px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Teachers Section
   ============================================ */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.teacher-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.teacher-avatar {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teacher-avatar .avatar-placeholder {
    font-size: 5rem;
    color: var(--gray-300);
}

.teacher-card .teacher-info {
    padding: 20px;
    text-align: center;
}

.teacher-card .teacher-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.teacher-card .teacher-info .teacher-title {
    font-size: 0.8125rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.teacher-card .teacher-info .teacher-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.teacher-card .teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.teacher-card .teacher-tags span {
    font-size: 0.6875rem;
    padding: 3px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 100px;
}

/* ============================================
   Editorial / Articles Section
   ============================================ */
.editorial-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.editorial-featured {
    grid-row: span 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.editorial-featured:hover,
.editorial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.editorial-featured .article-img {
    height: 280px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editorial-featured .article-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(11, 42, 74, 0.6), transparent);
}

.editorial-featured .article-img .img-icon {
    font-size: 3rem;
    color: rgba(201, 162, 39, 0.6);
}

.editorial-featured .article-body {
    padding: 28px;
}

.editorial-featured .article-body .article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 12px;
}

.editorial-featured .article-body h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.editorial-featured .article-body p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.editorial-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.editorial-card .article-img-sm {
    height: 140px;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
}

.editorial-card .article-img-sm .img-icon {
    font-size: 2rem;
    color: rgba(201, 162, 39, 0.5);
}

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

.editorial-card .article-body .article-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 8px;
}

.editorial-card .article-body h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.editorial-card .article-body p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(11, 42, 74, 0.9), transparent);
    color: var(--white);
}

.gallery-item .gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.gallery-item .gallery-overlay p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-item .gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(201, 162, 39, 0.4);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-question .faq-icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1.25rem;
    color: var(--gray-500);
}

.faq-item.active .faq-icon {
    background: var(--gold);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.faq-answer .faq-contact {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.faq-answer .faq-contact strong {
    color: var(--navy);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-phone {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 32px;
    display: block;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text .brand {
    color: var(--white);
}

.footer-brand .logo-text .brand-en {
    color: rgba(255, 255, 255, 0.4);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-brand .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.footer-brand .footer-contact-item .icon {
    color: var(--gold);
    font-size: 1rem;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-seo {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-seo .seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-seo .seo-tags a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: var(--transition);
}

.footer-seo .seo-tags a:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 39, 0.3);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   Detail Page Styles
   ============================================ */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.page-hero .page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.page-hero .page-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.page-hero .page-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .page-meta .meta-item .icon {
    color: var(--gold);
}

/* Course Highlights */
.course-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.highlight-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.highlight-card .highlight-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
}

.highlight-card h4 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Course Modules */
.course-modules {
    display: grid;
    gap: 16px;
}

.module-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
}

.module-number {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.module-card:hover .module-number {
    background: var(--gold);
    color: var(--navy-dark);
}

.module-header h4 {
    flex: 1;
    font-size: 1.0625rem;
}

.module-header .module-duration {
    font-size: 0.8125rem;
    color: var(--gray-400);
    white-space: nowrap;
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.module-card.active .module-content {
    max-height: 400px;
    padding: 0 24px 20px;
}

.module-content ul {
    padding-left: 56px;
}

.module-content ul li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 20px;
}

.module-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 2px;
    background: var(--gold);
}

/* Application Guide */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gray-200));
    z-index: 0;
}

.guide-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.guide-step .step-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    transition: var(--transition);
}

.guide-step:hover .step-circle {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.guide-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.guide-step p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Content Article (for detail pages) */
.article-content {
    max-width: 820px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
}

.article-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content ul li, .article-content ol li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.article-content ul li::marker {
    color: var(--gold);
}

.article-content .info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--gold);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.article-content .info-box h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.article-content .info-box p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--gray-600);
}

/* Sidebar CTA */
.sidebar-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-cta .cta-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.sidebar-cta .cta-float:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: scale(1.1);
}

.sidebar-cta .cta-float.primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.sidebar-cta .cta-float.primary:hover {
    background: var(--gold-light);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .cert-grid,
    .features-grid,
    .teachers-grid,
    .gallery-grid,
    .course-highlights,
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-featured {
        grid-row: span 1;
        grid-column: span 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .guide-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0,  0.1);
        gap: 0;
        align-items: stretch;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
    }

    .nav a.active::after {
        display: none;
    }

    .nav-cta {
        margin: 16px 0 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-top {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cert-grid,
    .features-grid,
    .teachers-grid,
    .gallery-grid,
    .course-highlights,
    .guide-steps,
    .editorial-grid,
    .editorial-featured,
    .stats-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .editorial-featured {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-phone {
        font-size: 1.75rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}
