/* Training Tablet Styles (768px - 1199px) */
: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 */
.page-hero {
    position: relative;
    background-image: url('../../assets/images/training-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
    /* Fix: User Requested Tablet Layout */
    height: auto !important;
    padding: 180px 40px 60px;
    /* 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%);
}

.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;
    padding: 0 20px;
    /* Fix: Layout Stability */
    width: 100%;
    max-width: 100%;
    top: 0;
    transform: none;
    height: auto !important;
    min-height: fit-content;
    padding-bottom: 60px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid rgba(188, 156, 83, 0.4);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #E5E5E5;
}

.hero-title-cn {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 3px;
    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;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--premium-gold);
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
    padding: 0 30px;
}

.hero-subtitle-en::before,
.hero-subtitle-en::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    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.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Sections */
.content-section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--un-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.3rem;
    color: var(--un-dark);
    margin-bottom: 12px;
}

/* Intro Box - Responsive */
.intro-box {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--premium-gold);
}

.intro-content {
    padding: 50px 40px;
    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;
}

/* Tablet Overrides for smaller tablets */
@media (max-width: 900px) {
    .intro-box {
        flex-direction: column;
    }

    .intro-box::before {
        width: 100%;
        height: 4px;
    }

    .intro-img {
        width: 100%;
        height: 300px;
    }

    .hero-title-cn {
        font-size: 2.5rem;
    }

    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr;
    }

    .step-process {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .step-process::before {
        display: none;
    }
}

/* Org Cards */
.org-unit {
    background: white;
    padding: 40px 30px;
    border-top: 5px solid var(--un-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* Curriculum Cards */
.curr-card {
    background: white;
    border: 1px solid #eaeaea;
    transition: all 0.4s;
}

.curr-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-sub);
    font-size: 0.95rem;
    list-style: none;
    /* Ensure no default bullet */
}

.curr-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    /* Golden dot */
    background: var(--premium-gold);
    position: absolute;
    left: 0;
    top: 9px;
}

/* Timeline Process */
.step-process {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
}

.step-process::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    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);
}

/* Certificate Preview */
.cert-mockup {
    border: 15px solid #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 40px;
    max-width: 90%;
    margin: 60px auto 0;
    position: relative;
}

.cert-border {
    border: 6px double var(--premium-gold);
    padding: 30px;
    height: 100%;
    position: relative;
}

.btn-apply {
    background: var(--premium-gold-grad);
    color: white;
    padding: 16px 45px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Fix: Avoid overlap per user request */
    position: relative !important;
    margin-top: 30px !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-block;
}

/* Grids */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cols for tablet */
    gap: 25px;
}

/* Modals */
/* 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: 80%;
    max-width: 500px;
    border-radius: 8px;
    padding: 30px;
    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;
}