/* ============================================================
   TRAINGOGY.UK — CLEAN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Questrial&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #7A7A7A;
    background-color: #E2E8F0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    color: #32373c;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER ── */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo a { display: inline-block; }
.header-logo img { height: 50px; width: auto; }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 35px; list-style: none; margin: 0; padding: 0; }

.main-nav a {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active { color: #2D5DA7; }

.btn-login, .btn-header-login {
    background-color: #2D5DA7;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-login:hover, .btn-header-login:hover { background-color: #1a4080 !important; color: #fff !important; }

.header-action { margin-left: auto; display: flex; align-items: center; }


/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ── HERO ── */
.hero-section { position: relative; width: 100%; }

.hero-bg {
    background: url('../images/student-images-1.webp') no-repeat center center / cover;
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 11, 46, 0.72);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    max-width: 780px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-cta-bar {
    background-color: #2D5DA7;
    padding: 28px 20px;
    text-align: center;
}

.hero-cta-bar .cta-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta-bar h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    color: #fff;
    font-weight: 400;
    margin: 0;
}

.btn-enquire {
    display: inline-block;
    background-color: #32373c;
    color: #fff;
    padding: 13px 40px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-enquire:hover { background-color: #000; transform: translateY(-1px); color: #fff; }

/* ── WELCOME SECTION ── */
.welcome-section {
    background-color: #fff;
    padding: 70px 20px;
}

.welcome-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-pre {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: #7A7A7A;
    margin-bottom: 6px;
    display: block;
}

.welcome-logo { margin: 10px auto 30px; height: 45px; width: auto; }

.welcome-text {
    font-family: 'Questrial', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #7A7A7A;
    margin-bottom: 18px;
}

/* ── VISION & MISSION ── */
.vm-section {
    background-color: #E2E8F0;
    padding: 80px 20px;
}

.vm-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: url('../images/mission-image.webp') center center / cover;
    position: relative;
    border-radius: 5px;
    padding: 55px 45px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.vm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
}

.vm-card-content { position: relative; z-index: 1; }

.vm-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.vm-card p {
    font-family: 'Questrial', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.btn-read-more {
    display: inline-block;
    background-color: #32373c;
    color: #fff;
    padding: 11px 32px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

.btn-read-more:hover { background-color: #2D5DA7; color: #fff; }

/* ── PROGRAMME CATEGORIES ── */
.programmes-section {
    background-color: #E2E8F0;
    padding: 0 20px 80px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 400;
    color: #2D5DA7;
    text-align: center;
    padding: 50px 0 40px;
    margin: 0;
}

.prog-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.prog-card {
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.prog-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }

.prog-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.prog-card h3 {
    margin: 0;
    padding: 22px 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-card h3 a {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
}

.prog-card h3 a:hover { color: #2D5DA7; }

/* Category Cards for Programme Footer */
.category-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.category-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.14); transform: translateY(-3px); }

.category-card img { width: 100%; height: 160px; object-fit: cover; }

.category-card h3 {
    margin: 0;
    padding: 20px 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: color 0.2s;
}

.category-card:hover h3 { color: #2D5DA7; }

/* ── ACADEMIC PARTNERS ── */
.partners-section {
    background-color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.partners-section .section-title { padding-top: 0; }

.partners-sub {
    font-family: 'Questrial', sans-serif;
    font-size: 17px;
    color: #7A7A7A;
    margin-bottom: 40px;
    margin-top: -10px;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partners-logos img { max-height: 80px; width: auto; object-fit: contain; }

.partner-join img { max-width: 300px; height: auto; margin: 0 auto; }

/* ── FOOTER ── */
.site-footer {
    background-color: #E2E8F0;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #d0d8e4;
}

.site-footer img { height: 40px; width: auto; margin: 0 auto 16px; }

.site-footer p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    margin: 0;
}

/* ── INNER PAGE HERO ── */
.page-hero {
    background: linear-gradient(135deg, #030b2e 0%, #2D5DA7 100%);
    padding: 70px 20px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.page-hero p {
    font-family: 'Questrial', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── CONTENT SECTIONS ── */
.content-section {
    background-color: #fff;
    padding: 70px 20px;
}

.content-section .container { max-width: 900px; }

.content-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #2D5DA7;
    margin-bottom: 20px;
}

.content-section p {
    font-family: 'Questrial', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #7A7A7A;
    margin-bottom: 18px;
}

/* ── ABOUT PAGE ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.about-text h2 { font-size: 36px; color: #2D5DA7; margin-bottom: 20px; }
.about-text p { font-family: 'Questrial', sans-serif; font-size: 17px; line-height: 1.85; color: #7A7A7A; margin-bottom: 16px; }
.about-img img { width: 100%; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* ── PROGRAMME PAGE ── */
.programme-hero {
    background: linear-gradient(135deg, #030b2e 0%, #1a4080 60%, #2D5DA7 100%);
    padding: 70px 20px;
    text-align: center;
}

.programme-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 4vw, 46px); color: #fff; margin-bottom: 12px; }
.programme-hero p { font-family: 'Questrial', sans-serif; font-size: 18px; color: rgba(255,255,255,0.85); max-width: 650px; margin: 0 auto; }

.courses-section {
    background-color: #E2E8F0;
    padding: 60px 20px;
}

.courses-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.course-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.14); transform: translateY(-3px); }

.course-card img { width: 100%; height: 200px; object-fit: cover; }

.course-card-body { padding: 20px; flex-grow: 1; }

.course-card-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.35;
}

.course-card-body p {
    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    color: #7A7A7A;
    line-height: 1.6;
    margin-bottom: 16px;
}

.course-tag {
    display: inline-block;
    background-color: #2D5DA7;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.btn-enrol {
    display: block;
    background-color: #2D5DA7;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    transition: background-color 0.2s;
    margin-top: auto;
}

.btn-enrol:hover { background-color: #1a4080; color: #fff; }

/* ── FAQ PAGE ── */
.faq-section {
    background-color: #fff;
    padding: 70px 20px;
}

.faq-list { max-width: 850px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.faq-question {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #2D5DA7;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
    display: none;
    font-family: 'Questrial', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #7A7A7A;
    padding-top: 15px;
}

.faq-item.open .faq-answer { display: block; }

/* ── CONTACT PAGE ── */
.contact-section {
    background-color: #fff;
    padding: 70px 20px;
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 { font-size: 32px; color: #2D5DA7; margin-bottom: 25px; }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background-color: #2D5DA7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.contact-detail-text h4 { font-family: 'Oswald', sans-serif; font-size: 16px; color: #333; margin-bottom: 4px; }
.contact-detail-text p { font-family: 'Questrial', sans-serif; font-size: 15px; color: #7A7A7A; margin: 0; line-height: 1.5; }

.contact-form h2 { font-size: 32px; color: #2D5DA7; margin-bottom: 25px; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d8e4;
    border-radius: 4px;
    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    color: #444;
    background-color: #fafafa;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #2D5DA7; background-color: #fff; }

.form-group textarea { height: 130px; resize: vertical; }

.btn-submit {
    background-color: #2D5DA7;
    color: #fff;
    border: none;
    padding: 13px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-submit:hover { background-color: #1a4080; }

/* ── ALL PROGRAMMES PAGE ── */
.all-programmes-section {
    padding: 60px 20px;
    background-color: #E2E8F0;
}

.all-programmes-section .container { max-width: 1140px; }

.category-block { margin-bottom: 60px; }

.category-block h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #2D5DA7;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2D5DA7;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .prog-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .vm-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { 
        display: flex; 
        flex-direction: column; 
        position: fixed; 
        top: 0; 
        left: -300px; 
        width: 260px; 
        height: 100vh; 
        background: #fff; 
        padding: 80px 20px 20px; 
        box-shadow: 2px 0 15px rgba(0,0,0,0.15); 
        gap: 20px; 
        transition: left 0.3s ease-in-out;
        z-index: 10000;
        margin: 0;
    }
    .main-nav.open { left: 0; }
    .nav-overlay {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        background: rgba(0,0,0,0.5);
        z-index: 990;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    .nav-overlay.open {
        display: block;
        opacity: 1;
    }
    .menu-toggle { display: flex; z-index: 10001; position: relative; color: #2D5DA7; }
    .site-header { position: sticky; top: 0; z-index: 1001; background: #fff; }
    .hero-cta-bar .cta-inner { flex-direction: column; text-align: center; }
    .prog-grid { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
}

/* ── CONTACT PAGE SPECIFICS ── */
.contact-icon-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-circle {
    width: 60px;
    height: 60px;
    background: #2354A4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.contact-circle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.contact-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin: 0 0 5px;
    color: #333;
}
.contact-text p {
    font-family: 'Questrial', sans-serif;
    margin: 0;
    color: #7A7A7A;
    line-height: 1.6;
}


@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .vm-card { padding: 35px 25px; }
}
