/* 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', 'Montserrat', 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: 'Montserrat', 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: 'Playfair Display', 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: 'Montserrat', 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: 'Playfair Display', 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;
}