/* ============================================
   TRAINING & CEP PAGES - Distinct Professional Designs
   Each page has its own visual identity
   ============================================ */

/* ============================================
   TRAINING PAGE - Blue/Indigo Theme
   Certification, Learning, Academic
   ============================================ */
/* Page canvas — logo navy #1D2B53 + gold #C58F2F (aligned with index.css html/body) */
body.training-page {
    background-color: #eef1f7;
    background-image:
        radial-gradient(ellipse 130% 85% at 50% -28%, rgba(29, 43, 83, 0.1) 0%, transparent 54%),
        radial-gradient(ellipse 65% 50% at 100% 8%, rgba(197, 143, 47, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 0% 92%, rgba(29, 43, 83, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #eef1f7 45%, #f3f5f9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Training Hero — colours from Logo.png: navy #1D2B53 + gold #C58F2F */
body.training-page .training-hero {
    background:
        radial-gradient(ellipse 100% 82% at 50% 0%, rgba(197, 143, 47, 0.2) 0%, transparent 52%),
        radial-gradient(ellipse 52% 42% at 92% 86%, rgba(197, 143, 47, 0.14) 0%, transparent 55%),
        linear-gradient(168deg, #151d38 0%, #1d2b53 44%, #182445 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.training-page .training-hero::before {
    height: 5px;
    background: linear-gradient(90deg,
        transparent 0%,
        #1d2b53 18%,
        #c58f2f 50%,
        #1d2b53 82%,
        transparent 100%);
}

body.training-page .training-hero::after {
    background: radial-gradient(
        ellipse 90% 70% at 50% 0%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(197, 143, 47, 0.1) 38%,
        transparent 72%
    );
}

/* Soft spotlight behind copy — logo gold tint */
body.training-page .training-hero .training-hero-content::before {
    background-size: 100% 100%;
    background-image: radial-gradient(
        ellipse 95% 75% at 50% 42%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(197, 143, 47, 0.07) 40%,
        transparent 68%
    );
}

body.training-page .training-hero-accent {
    color: #d9ae52;
}

body.training-page .training-hero-accent::after {
    background: linear-gradient(90deg, #1d2b53, #c58f2f);
    opacity: 0.95;
}

body.training-page .training-hero-badge {
    border: 1px solid rgba(197, 143, 47, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(29, 43, 83, 0.45) 100%);
}

body.training-page .training-hero-badge::before {
    background: #c58f2f;
    box-shadow: 0 0 12px rgba(197, 143, 47, 0.55);
}

body.training-page .training-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

/* Training Cards - Certification style: horizontal, formal, ribbon accent */
body.training-page .training-list::before {
    background: none;
}

body.training-page .course {
    border-left-color: #3b82f6;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left-width: 5px;
}

body.training-page .course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    z-index: 1;
}

body.training-page .course:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0,0,0,0.08);
}

body.training-page .course:nth-child(even) {
    border-right-color: #3b82f6;
    border-left-width: 1px;
    border-right-width: 5px;
}

body.training-page .course:nth-child(even)::before {
    left: 0;
    right: 0;
}

body.training-page .course-left img {
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

body.training-page .vertical-line {
    background: linear-gradient(180deg, #3b82f6, #93c5fd);
}

body.training-page .course-right h2 {
    color: #1e40af;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
}

body.training-page .course-right a[href*="Brochure"],
body.training-page .course-right a[style*="color: #1c244b"] {
    color: #1e40af !important;
}

body.training-page .course-right a[href*="Brochure"]:hover,
body.training-page .course-right a[style*="color: #1c244b"]:hover {
    color: #1d4ed8 !important;
}

body.training-page #read-more-btn,
body.training-page #read-more-btn-2 {
    color: #1e40af !important;
}

body.training-page #read-more-btn:hover,
body.training-page #read-more-btn-2:hover {
    color: #1d4ed8 !important;
}

body.training-page .btn.clr {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

body.training-page .btn.clr:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

body.training-page .btn.btn-dark-blue {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.training-page .btn.btn-dark-blue:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

/* ============================================
   CEP PAGE - Logo navy/gold theme (aligned with Training page)
   Layout: vertical card banners; colours match Logo.png #1D2B53 + #C58F2F
   ============================================ */
body.cep-page {
    background-color: #eef1f7;
    background-image:
        radial-gradient(ellipse 130% 85% at 50% -28%, rgba(29, 43, 83, 0.1) 0%, transparent 54%),
        radial-gradient(ellipse 65% 50% at 100% 8%, rgba(197, 143, 47, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 0% 92%, rgba(29, 43, 83, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #eef1f7 45%, #f3f5f9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* CEP Hero — same logo palette as Training page */
body.cep-page .training-hero {
    background:
        radial-gradient(ellipse 100% 82% at 50% 0%, rgba(197, 143, 47, 0.2) 0%, transparent 52%),
        radial-gradient(ellipse 52% 42% at 92% 86%, rgba(197, 143, 47, 0.14) 0%, transparent 55%),
        linear-gradient(168deg, #151d38 0%, #1d2b53 44%, #182445 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.cep-page .training-hero::before {
    height: 5px;
    background: linear-gradient(90deg,
        transparent 0%,
        #1d2b53 18%,
        #c58f2f 50%,
        #1d2b53 82%,
        transparent 100%);
}

body.cep-page .training-hero::after {
    background: radial-gradient(
        ellipse 90% 70% at 50% 0%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(197, 143, 47, 0.1) 38%,
        transparent 72%
    );
}

body.cep-page .training-hero .training-hero-content::before {
    background-size: 100% 100%;
    background-image: radial-gradient(
        ellipse 95% 75% at 50% 42%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(197, 143, 47, 0.07) 40%,
        transparent 68%
    );
}

body.cep-page .training-hero-accent {
    color: #d9ae52;
}

body.cep-page .training-hero-accent::after {
    background: linear-gradient(90deg, #1d2b53, #c58f2f);
    opacity: 0.95;
}

body.cep-page .training-hero-badge {
    border: 1px solid rgba(197, 143, 47, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(29, 43, 83, 0.45) 100%);
}

body.cep-page .training-hero-badge::before {
    background: #c58f2f;
    box-shadow: 0 0 12px rgba(197, 143, 47, 0.55);
}

body.cep-page .training-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

/* CEP Cards - Workshop style: vertical layout, image banner on top */
body.cep-page .training-list::before {
    background: none;
}

body.cep-page .course {
    flex-direction: column;
    border: 1px solid rgba(29, 43, 83, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(29, 43, 83, 0.08), 0 0 0 1px rgba(29, 43, 83, 0.06);
}

body.cep-page .course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1d2b53, #c58f2f, #1d2b53);
    z-index: 1;
}

body.cep-page .course:hover {
    box-shadow: 0 20px 50px rgba(29, 43, 83, 0.14), 0 0 0 1px rgba(197, 143, 47, 0.18);
}

body.cep-page .course:nth-child(even) {
    flex-direction: column;
}

/* CEP: Image as full-width banner on top */
body.cep-page .course-left {
    flex: none;
    max-width: 100%;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 21/9;
}

body.cep-page .course-left img {
    border-radius: 0;
    border: none;
}

body.cep-page .course:hover .course-left img {
    transform: scale(1.03);
}

/* CEP: Horizontal divider instead of vertical line */
body.cep-page .vertical-line {
    width: 100%;
    height: 4px;
    min-height: 4px;
    background: linear-gradient(90deg, transparent, #1d2b53, #c58f2f, transparent);
}

/* CEP: Content area with soft navy top border */
body.cep-page .course-right {
    position: relative;
}

body.cep-page .course-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(29, 43, 83, 0.25), transparent);
}

body.cep-page .course-right h2 {
    color: #1d2b53;
    border-left: 3px solid #c58f2f;
    padding-left: 12px;
}

body.cep-page .course-right a[href*="Brochure"],
body.cep-page .course-right a[style*="color: #1c244b"] {
    color: #1d2b53 !important;
}

body.cep-page .course-right a[href*="Brochure"]:hover,
body.cep-page .course-right a[style*="color: #1c244b"]:hover {
    color: #c58f2f !important;
}

body.cep-page #read-more-btn,
body.cep-page #read-more-btn-2 {
    color: #1d2b53 !important;
}

body.cep-page #read-more-btn:hover,
body.cep-page #read-more-btn-2:hover {
    color: #c58f2f !important;
}

body.cep-page .btn.clr,
body.cep-page .btn.btn-dark-blue {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.cep-page .btn.clr:hover,
body.cep-page .btn.btn-dark-blue:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

/* ============================================
   SHARED - Hero & Card Structure
   ============================================ */
.training-hero {
    padding: 120px 24px 100px;
    position: relative;
    overflow: hidden;
}

.training-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.training-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.training-hero .training-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}

.training-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    animation: trainingHeroFadeIn 0.8s ease-out forwards;
}

@keyframes trainingHeroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.training-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.training-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.training-hero-content h1 {
    font-size: clamp(42px, 6.5vw, 60px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.training-hero-accent {
    position: relative;
    display: inline-block;
}

.training-hero-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    opacity: 0.7;
}

.training-hero-subtitle {
    font-size: clamp(17px, 2.2vw, 20px);
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.75;
    font-weight: 400;
}

/* Training List */
.training-list {
    padding: 80px clamp(16px, 3vw, 48px) 100px;
    max-width: min(1680px, 100%);
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.training-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.course {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 60px;
    scroll-margin-top: 140px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    border-left: 4px solid;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
}

.course.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.course:hover {
    transform: translateY(-6px);
}

.course:nth-child(even) {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid;
}

.course-left {
    flex: 0 0 36%;
    max-width: 36%;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
}

.course-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course:hover .course-left img {
    transform: scale(1.05);
}

.vertical-line {
    width: 4px;
    min-height: 100%;
    flex-shrink: 0;
}

.course:nth-child(even) .vertical-line {
    order: -1;
}

.course-right {
    flex: 1;
    min-width: 0;
    padding: 40px clamp(28px, 3vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.course-right h1 {
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.course-right h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-right p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.course-right ul {
    margin: 8px 0 16px 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.course-right ul li {
    margin-bottom: 6px;
}

.course-right a[href*="Brochure"],
.course-right a[style*="color: #1c244b"] {
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-right a[href*="Brochure"]:hover,
.course-right a[style*="color: #1c244b"]:hover {
    text-decoration: underline;
}

#read-more-btn,
#read-more-btn-2 {
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Buttons */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    max-width: 100%;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn.clr {
    color: #fff !important;
    box-shadow: var(--shadow-sm);
}

.btn.clr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.btn-dark-blue {
    color: #fff !important;
    box-shadow: var(--shadow-sm);
}

.btn.btn-dark-blue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Large desktop: keep image modest so .course-right stays wide */
@media (min-width: 1280px) {
    .course-left {
        flex: 0 0 38%;
        max-width: 38%;
        min-height: 340px;
    }

    .course-right {
        padding: 44px clamp(36px, 3.25vw, 64px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    /* Training: switch to column, keep ribbon */
    body.training-page .course,
    body.training-page .course:nth-child(even) {
        flex-direction: column;
        border-left: 5px solid #3b82f6 !important;
        border-right: none !important;
    }

    body.training-page .course-left {
        flex: none;
        max-width: 100%;
        min-height: 280px;
        aspect-ratio: 16/10;
    }

    body.training-page .course-left img {
        border-radius: 8px 8px 0 0;
    }

    body.training-page .vertical-line {
        width: 100%;
        height: 4px;
        min-height: 4px;
        background: linear-gradient(90deg, #3b82f6, #93c5fd);
    }

    /* CEP: already column, adjust image height */
    body.cep-page .course-left {
        min-height: 200px;
        aspect-ratio: 21/8;
    }

    body.cep-page .vertical-line {
        width: 100%;
        height: 4px;
        min-height: 4px;
        background: linear-gradient(90deg, transparent, #1d2b53, #c58f2f, transparent);
    }

    .course-right {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    .training-hero {
        padding: 100px 20px 80px;
    }

    .training-list {
        padding: 50px 16px 80px;
        overflow-x: hidden;
    }

    .course {
        margin-bottom: 40px;
    }

    .course-right {
        padding: 28px 20px;
    }

    .course-right h1 {
        font-size: 20px;
    }

    .course-right p,
    .course-right ul {
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .course-left {
        min-height: 220px;
    }
}
