/* Training Mobile Styles (< 768px) */
:root {
    --un-blue: #009EDB;
    --un-dark: #050A18;
    --un-gray: #FAFAFA;
    --text-main: #1a1a1a;
    --text-sub: #555555;
    --premium-gold: #C5A028;
    --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 - Mobile Overlay */
.page-hero {
    position: relative;
    background-image: url('../../assets/images/training-hero.jpg');
    /* Ensure path is correct or generic */
    background-size: cover;
    background-position: center;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 40px;
    /* Fix: Increase top padding to avoid nav overlap */
}

.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%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 20px;
    /* Fix: Layout Stability */
    height: auto !important;
    min-height: fit-content;
    padding-bottom: 60px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(188, 156, 83, 0.4);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #E5E5E5;
}

.hero-title-cn {
    font-size: 1.8rem;
    /* Mobile Size */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    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: 0.9rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--premium-gold);
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.hero-subtitle-en::before,
.hero-subtitle-en::after {
    width: 15px;
}

.hero-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    font-weight: 300;
}

/* Section Layouts */
.content-section {
    padding: 60px 0;
}

.bg-gray {
    background-color: var(--un-gray);
}

/* Premium Section Headers */
.section-header {
    text-align: left !important;
    padding-left: 20px;
    border-left: 4px solid var(--premium-gold);
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.8rem !important;
    margin-bottom: 5px !important;
    color: var(--un-dark);
    font-weight: 700;
}

.section-header .sub {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem !important;
    color: var(--text-sub) !important;
    text-transform: uppercase;
    letter-spacing: 2px !important;
}

/* For inline headers (Curriculum & Organization) */
.section-header-inline {
    display: flex !important;
    flex-direction: column !important;
    /* English below */
    align-items: flex-start !important;
    gap: 8px !important;
    border-bottom: none !important;
    text-align: left !important;
    padding-left: 20px;
    border-left: 4px solid var(--premium-gold);
    margin-bottom: 40px !important;
}

.section-header-inline h2 {
    font-size: 1.8rem !important;
    margin: 0 !important;
    text-align: left !important;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
}

.section-header-inline div {
    /* English text */
    font-size: 0.75rem !important;
    color: var(--text-sub) !important;
    letter-spacing: 2px !important;
    text-align: left !important;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

/* Intro Box - Mobile Stacked */
.intro-box {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    /* Stacked */
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.intro-box::before {
    width: 100%;
    /* Top line */
    height: 4px;
    background: var(--premium-gold);
    top: 0;
    left: 0;
}

.intro-content {
    padding: 40px 20px;
    flex: 1;
}

.intro-img {
    width: 100%;
    height: 250px;
    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: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--un-blue);
}

/* Org Cards */
/* Org Cards - Premium Mobile Style */
.org-unit {
    /* Legacy fallback */
    background: white;
    padding: 30px 20px;
    border-top: 5px solid var(--un-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.org-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    margin-bottom: 15px;
    /* Reduced from 30px */
    background: white;
    position: relative;
    overflow: hidden;
}

.org-card>div[style*="padding"] {
    padding: 30px 25px !important;
}

/* Label Style */
.org-card span[style*="color: #BC9C53"] {
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    color: var(--un-dark) !important;
    background: rgba(197, 160, 40, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    border-bottom: none !important;
    display: inline-block;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

/* Host Title */
.org-card h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.6rem !important;
    color: var(--un-dark);
    margin-bottom: 15px !important;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* Subtitle */
.org-card h4 {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--premium-gold);
    padding-left: 12px;
}

/* Description */
.org-card p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: #666;
    margin-bottom: 0 !important;
    text-align: justify;
}

.org-logo-text {
    font-size: 1.3rem;
}

/* Curriculum Cards */
.curr-card {
    background: white;
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.curr-head {
    padding: 15px 20px;
}

.curr-body {
    padding: 20px;
}

/* Timeline Process - Mobile Vertical */
/* Timeline Process - Premium Mobile Vertical */
.step-process {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--premium-gold);
}

.step-process::before {
    display: none;
}

.process-item {
    text-align: left;
    padding: 25px 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    position: relative;
}

.step-dot {
    margin: 0;
    position: absolute;
    left: -46px;
    /* 30px padding + 2px border + half width */
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: var(--premium-gold);
    /* Fallback */
    background: var(--premium-gold-grad);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(197, 160, 40, 0.3);
    border: 2px solid white;
    z-index: 2;
}

.process-item .step-title {
    font-size: 1.1rem;
    color: var(--un-dark);
    margin-bottom: 5px;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
}

.process-item .step-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Certificate Preview */
.cert-mockup {
    padding: 10px;
    background: white;
    margin: 50px auto 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 100%;
}

.btn-apply {
    background: var(--premium-gold-grad);
    color: white;
    padding: 15px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    /* Fix: Avoid overlap */
    position: relative !important;
    margin-top: 30px !important;
    bottom: auto !important;
    transform: none !important;
}

/* Grids - 1 Column */
.grid-2-cols,
.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Standardized Modal Styles - Premium Decoration */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker for focus */
    z-index: 100001;
    /* High z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(8px);
    /* Stronger blur */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 85%;
    max-width: 380px;
    padding: 55px 25px 30px;
    /* Increased top padding for title safety */
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 5px solid #cba174;
    /* Gold Top Border */
}

/* Decorative Title */
.modal-container h3 {
    font-family: 'Playfair Display', serif !important;
    text-align: center;
    font-size: 1.6rem !important;
    margin-bottom: 5px !important;
    color: var(--un-dark);
    font-weight: 700;
}

/* Gold Underline */
.modal-container h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #cba174;
    margin: 12px auto 25px;
    border-radius: 2px;
}

.modal-container p {
    text-align: center;
    color: #888;
    font-size: 0.85rem !important;
    margin-bottom: 25px !important;
    line-height: 1.6;
}

.modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    /* Smaller square */
    border-radius: 6px;
    /* Smaller rounded corners */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    /* Soft gradient */
    border: 1px solid white;
    /* Highlight border */
    color: #555;
    /* Darker X */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    /* Smaller icon */
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--un-dark);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fdfcfb;
    /* Warm off-white */
}

.form-input:focus {
    outline: none;
    border-color: #cba174;
    background: white;
    box-shadow: 0 4px 12px rgba(203, 161, 116, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--premium-gold-grad);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(203, 161, 116, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(203, 161, 116, 0.3);
}

/* Premium Curriculum Cards */
.curr-card-premium {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    border: none !important;
    background: white;
}

.curr-card-premium>div[style*="padding"] {
    padding: 25px 25px !important;
}

/* Title */
.curr-card-premium h4 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.6rem !important;
    color: var(--un-dark) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Percentage Badge */
.curr-card-premium span[style*="Montserrat"] {
    font-size: 1.8rem !important;
    color: var(--premium-gold) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(197, 160, 40, 0.2);
}

/* List Items */
.curr-card-premium .curr-list li {
    padding-left: 20px;
    margin-bottom: 12px;
    position: relative;
    list-style: none;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}

.curr-card-premium .curr-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--premium-gold);
    transform: rotate(45deg);
    /* Diamond shape */
    border-radius: 1px;
}

.curr-card-premium .curr-list li strong {
    color: var(--un-dark);
    font-weight: 600;
}