/* Training Desktop Styles (>=1200px) */
/* UN International Style Theme - Atmospheric & Noble */
:root {
    --un-blue: #009EDB;
    --un-dark: #050A18;
    /* Deeper Midnight */
    --un-gray: #FAFAFA;
    --text-main: #1a1a1a;
    --text-sub: #555555;
    --premium-gold: #C5A028;
    /* Polished Gold */
    --premium-gold-grad: linear-gradient(135deg, #E6C86E 0%, #C5A028 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 50px rgba(197, 160, 40, 0.15);
}

body {
    font-family: 'Noto Sans SC', 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background-color: #fff;
}

h1,
h2,
h3,
h4 {
    font-family: 'Noto Sans SC', sans-serif;
}

/* Hero Section - Official & Grand */
.page-hero {
    position: relative;
    background-image: url('../../assets/images/training-hero.jpg');
    background-size: cover;
    background-position: center;
    height: auto !important;
    /* User fix: Auto height */
    min-height: calc(500px * var(--hero-ratio, 1));
    /* User fix: Min height */
    padding-bottom: calc(80px * var(--hero-ratio, 1));
    /* User fix: Bottom padding */
    /* Taller for grandeur */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
    height: auto !important;
    /* User fix: Auto height */
    min-height: calc(500px * var(--hero-ratio, 1));
    /* User fix: Min height */
    padding-bottom: calc(80px * var(--hero-ratio, 1));
    /* User fix: Bottom padding */
    /* Taller for grandeur */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
    padding-top: calc(200px * var(--hero-ratio, 1));
    /* Fix: Increase top padding to avoid nav overlap */
    /* Prevent overlap with nav */
}

/* Premium Hover Effects for Grid Items */
.content-section div[style*="background: white"]:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 28, 54, 0.95) 0%, rgba(0, 158, 219, 0.85) 100%);
}

/* Subtle pattern overlay */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 calc(30px * var(--hero-ratio, 1));
    /* Fix: Text and Button Overlap */
    height: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 60px auto;
    padding-bottom: calc(60px * var(--hero-ratio, 1));
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 8px 24px;
    border-radius: 50px;
    /* More elegant rounded pill */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(188, 156, 83, 0.4);
    /* Gold hint border */
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    color: #E5E5E5;
}

.hero-title-cn {
    font-size: 4.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 4px;
    /* Wide spacing = Atmospheric */
    line-height: 1.2;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-en {
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
    /* Serif for English looks noble */
    font-style: italic;
    letter-spacing: 2px;
    color: var(--premium-gold);
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
    padding: 0 40px;
}

.hero-subtitle-en::before,
.hero-subtitle-en::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--premium-gold);
    opacity: 0.6;
}

.hero-subtitle-en::before {
    left: 0;
}

.hero-subtitle-en::after {
    right: 0;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Section Layouts */
.content-section {
    padding: 120px 0;
    /* More breathing room */
}

.bg-gray {
    background-color: var(--un-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--un-dark);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-header .sub {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--premium-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Intro Box - Elevated */
.intro-box {
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    display: flex;
    border-radius: 2px;
    /* Sharp official corners */
    overflow: hidden;
    border: none;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* Gold accent line top of intro */
.intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-gold);
}

.intro-content {
    padding: 80px;
    flex: 1;
}

.intro-img {
    width: 45%;
    background-image: url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.sdg-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--un-dark);
    padding: 8px 0;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--un-blue);
}

/* Org Cards - Premium */
.org-unit {
    background: white;
    padding: 50px 40px;
    border-top: 5px solid var(--un-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.org-unit:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-top-color: var(--premium-gold);
}

.org-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--premium-gold);
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.org-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--un-dark);
    margin-bottom: 25px;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.5px;
}

/* Curriculum Cards */
.curr-card {
    background: white;
    padding: 0;
    border: 1px solid #eaeaea;
    transition: all 0.4s;
}

.curr-card:hover {
    border-color: var(--premium-gold);
    box-shadow: 0 20px 40px rgba(188, 156, 83, 0.15);
    transform: translateY(-5px);
}

.curr-head {
    background: var(--un-dark);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curr-head h4 {
    margin: 0;
    font-weight: 500;
}

.curr-body {
    padding: 30px;
}

.curr-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-sub);
    font-size: 0.95rem;
    list-style: none;
}

.curr-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--premium-gold);
    position: absolute;
    left: 0;
    top: 9px;
}

/* Timeline Process */
.step-process {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step-process::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.process-item {
    position: relative;
    z-index: 2;
    text-align: center;
    background: var(--un-gray);
    padding: 0 10px;
    flex: 1;
}

.step-dot {
    width: 60px;
    height: 60px;
    background: white;
    border: 1px solid var(--premium-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--un-dark);
    box-shadow: 0 0 0 8px var(--un-gray);
    transition: all 0.3s;
}

.process-item:hover .step-dot {
    background: var(--premium-gold);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(188, 156, 83, 0.3);
}

.step-title {
    font-weight: 700;
    color: var(--un-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Certificate Preview */
.cert-mockup {
    padding: 15px;
    background: white;
    /* Grand shadow */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 80px auto 0;
    position: relative;
    text-align: center;
}

.cert-mockup img {
    margin: 0;
    max-width: 100%;
}

.btn-apply {
    background: var(--premium-gold);
    background: var(--premium-gold-grad);
    color: white;
    padding: 18px 50px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 50px;
    box-shadow: 0 10px 20px rgba(188, 156, 83, 0.3);
    border: none;
    /* Fix: Avoid overlap - User requested specifics */
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 40px !important;
    display: inline-block;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(188, 156, 83, 0.4);
    filter: brightness(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--un-blue);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--un-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0081b3;
}

/* Grids */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   Modern UI Additions (Glassmorphism & Animations)
   ========================================================================== */

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-panel-dark {
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.gradient-text {
    background: linear-gradient(135deg, #E6C86E 0%, #C5A028 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-border-card {
    background: white;
    position: relative;
    border-radius: 12px;
    z-index: 1;
}

.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--un-blue), var(--premium-gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border-card:hover::before {
    opacity: 1;
}

.gradient-border-card > * {
    background: white;
    border-radius: 12px;
    height: 100%;
    padding: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

.animate-float {
    animation: floatElement 6s ease-in-out infinite;
}

/* ==========================================================================
   Cinematic & Minimalist Luxury Theme (theme-premium) - MODULAR DESIGN
   ========================================================================== */

body.theme-premium {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
}

body.theme-premium h1,
body.theme-premium h2,
body.theme-premium h3,
body.theme-premium h4,
body.theme-premium h5,
body.theme-premium h6 {
    font-family: 'Noto Serif SC', serif !important;
    letter-spacing: 2px;
}

/* --- Section Backgrounds & Typography --- */

.bg-navy {
    background-color: #070B14;
    color: rgba(255, 255, 255, 0.7);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
    color: #FFFFFF !important;
}
.bg-navy .luxury-subtitle {
    color: #1D8FF2; /* Bright Blue Accent */
}

.bg-white {
    background-color: #FFFFFF;
    color: rgba(5, 10, 24, 0.7);
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4 {
    color: #050A18 !important;
}
.bg-white .luxury-subtitle {
    color: #006bb3; /* Royal Blue Accent */
}

.bg-gray {
    background-color: #FAFAFA;
    color: rgba(5, 10, 24, 0.7);
}
.bg-gray h1, .bg-gray h2, .bg-gray h3, .bg-gray h4 {
    color: #050A18 !important;
}
.bg-gray .luxury-subtitle {
    color: #006bb3;
}

.bg-soft-blue {
    background-color: #F0F6FA; /* Very soft ice blue */
    color: rgba(5, 10, 24, 0.7);
}
.bg-soft-blue h1, .bg-soft-blue h2, .bg-soft-blue h3, .bg-soft-blue h4 {
    color: #050A18 !important;
}
.bg-soft-blue .luxury-subtitle {
    color: #006bb3;
}


/* --- Cinematic Hero --- */
body.theme-premium .cinematic-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

body.theme-premium .cinematic-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    animation: kenBurns 30s ease-out infinite alternate;
}

/* Gradient overlay to ensure text readability over the image */
body.theme-premium .cinematic-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7,11,20,0.2) 0%, #070B14 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

body.theme-premium .hero-content-minimal {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

body.theme-premium .luxury-title {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

body.theme-premium .luxury-subtitle {
    font-family: 'Noto Sans SC', sans-serif !important;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: block;
    font-weight: 300;
}

body.theme-premium .luxury-desc {
    font-family: 'Noto Sans SC', sans-serif !important;
    font-size: 1.1rem;
    line-height: 2.2;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Buttons --- */
body.theme-premium .btn-luxury {
    display: inline-block;
    padding: 16px 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    transition: all 0.5s ease;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Noto Sans SC', sans-serif;
}

/* Button styles for Dark bg */
.bg-navy .btn-luxury { border: 1px solid rgba(255,255,255,0.3); color: #FFF; }
.bg-navy .btn-luxury:hover { border-color: #1D8FF2; color: #1D8FF2; background: rgba(29, 143, 242, 0.05); }
.bg-navy .btn-luxury-solid { background: #1D8FF2; color: #FFF; border-color: #1D8FF2; }
.bg-navy .btn-luxury-solid:hover { background: #FFF; color: #070B14; border-color: #FFF; }

/* Button styles for Light bg */
.bg-gray .btn-luxury, .bg-white .btn-luxury, .bg-soft-blue .btn-luxury { border: 1px solid rgba(5,10,24,0.3); color: #050A18; }
.bg-gray .btn-luxury:hover, .bg-white .btn-luxury:hover, .bg-soft-blue .btn-luxury:hover { border-color: #006bb3; color: #006bb3; background: rgba(0, 107, 179, 0.05); }
.bg-gray .btn-luxury-solid, .bg-white .btn-luxury-solid, .bg-soft-blue .btn-luxury-solid { background: #050A18; color: #FFF; border-color: #050A18; }
.bg-gray .btn-luxury-solid:hover, .bg-white .btn-luxury-solid:hover, .bg-soft-blue .btn-luxury-solid:hover { background: #006bb3; color: #FFF; border-color: #006bb3; }

/* --- Feature Numbers --- */
body.theme-premium .luxury-feature {
    padding: 60px 40px;
    border: 1px solid rgba(5, 10, 24, 0.05);
    background: #fff;
    transition: all 0.6s ease;
    text-align: center;
    position: relative;
}

body.theme-premium .luxury-feature:hover {
    border-color: rgba(0, 107, 179, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

body.theme-premium .luxury-number {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(5, 10, 24, 0.05);
    line-height: 1;
    margin-bottom: 20px;
}

/* --- Intro Editorial Layout --- */
body.theme-premium .editorial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

body.theme-premium .editorial-img {
    height: 600px;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) contrast(1.1) brightness(1.1);
    transition: filter 1s ease;
}

body.theme-premium .editorial-img:hover {
    filter: grayscale(20%) contrast(1) brightness(1);
}

/* --- Hairline Grid --- */
body.theme-premium .hairline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(5, 10, 24, 0.05);
    border: 1px solid rgba(5, 10, 24, 0.05);
}

body.theme-premium .hairline-card {
    background: #fff;
    padding: 50px 40px;
    position: relative;
    transition: all 0.5s ease;
}

body.theme-premium .hairline-card:hover {
    background: #FAFAFA; /* slight dip */
}

body.theme-premium .hairline-card h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

body.theme-premium .hairline-card .path-alpha {
    color: rgba(5, 10, 24, 0.05) !important;
    font-size: 3rem;
    font-weight: 300;
    position: absolute;
    top: 30px;
    right: 30px;
    transition: color 0.5s ease;
}

body.theme-premium .hairline-card:hover .path-alpha {
    color: #006bb3 !important;
}

/* --- Minimal Animations --- */
@keyframes cinematicFadeIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

body.theme-premium .cinematic-fade {
    animation: cinematicFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}