/* =============================================================================
   Teachers Proposal Template – teachers-proposal.css

   2026-06-25: Centred the "Why" section title (.tp-why .tp-section-title) and the
   Courses section header (.tp-courses-header now a centred column, so the title and
   the optional "See all courses" link stack centred per FIGMA, instead of a
   left/right flex row).
   ============================================================================= */

/* ── GP overrides ────────────────────────────────────────────────────────────── */
.tp-page .inside-article { padding: 0 !important; }
.tp-page .site-main { padding-top: 0 !important; padding-bottom: 0 !important; }
.tp-page .entry-header,
.tp-page .entry-footer,
.tp-page .post-navigation { display: none !important; }
.tp-page .content-area,
.tp-page #primary { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

/* ── Container ───────────────────────────────────────────────────────────────── */
.tp-page .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Section titles ──────────────────────────────────────────────────────────── */
.tp-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #1d2327;
    margin: 0 0 32px;
    line-height: 1.2;
}
.tp-section-title--center { text-align: center; }

/* ── Link arrow ──────────────────────────────────────────────────────────────── */
.tp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary, #004f80);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.tp-link-arrow:hover { text-decoration: underline; }

/* ── 1. HERO ─────────────────────────────────────────────────────────────────── */
.tp-hero {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1152px;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin: 16px auto 0;
    border-radius: 10px;
    overflow: hidden;
}
.tp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}
.tp-hero__content {
    position: relative;
    z-index: 1;
    padding: 0 0 36px;
}
.tp-hero__title {
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    max-width: 700px;
}
.tp-hero__subtitle {
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.55;
    max-width: 600px;
    margin: 0;
}

/* ── 2. INTRO ────────────────────────────────────────────────────────────────── */
.tp-intro {
    padding: 56px 0;
}
.tp-intro__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 52px;
    align-items: start;
}
.tp-intro__badge {
    margin-bottom: 16px;
}
.tp-intro__title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #1d2327;
    line-height: 1.2;
    margin: 0 0 20px;
}
.tp-intro__body {
    font-size: 15px;
    line-height: 1.7;
    color: #3c434a;
    margin-bottom: 20px;
}
.tp-intro__body strong { color: #1d2327; }
.tp-intro__body p { margin: 0 0 14px; }

/* Intro video card */
.tp-video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    cursor: pointer;
}
.tp-video-card .video-thumbnail { position: relative; }
.tp-video-card .video-thumbnail img { width: 100%; height: auto; display: block; }
.tp-video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    transition: transform .2s, background .2s;
}
.tp-video-card .play-button:hover { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.tp-video-card .play-button .fa-play { color: var(--color-primary, #004f80); font-size: 18px; margin-left: 3px; }
.tp-video-card .video-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
}
.tp-video-card .video-name { display: block; font-weight: 600; font-size: 14px; }
.tp-video-card .video-country { font-size: 12px; opacity: .85; }

/* ── 3. WHY / FEATURES ───────────────────────────────────────────────────────── */
.tp-why {
    padding: 52px 0;
    background: #f6f7f7;
}
.tp-why .tp-section-title { text-align: center; }
.tp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}
.tp-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.tp-feature-icon {
    width: 52px;
    height: 52px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.tp-feature-icon .material-icons {
    font-size: 26px;
    color: var(--color-primary, #004f80);
}
.tp-feature-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.4;
    margin: 0;
}

/* ── 4. FEATURED COURSES ─────────────────────────────────────────────────────── */
.tp-courses { padding: 56px 0; }
.tp-courses-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 32px;
}
.tp-courses-header .tp-section-title { margin-bottom: 0; }
.tp-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tp-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.tp-course-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); transform: translateY(-2px); }
.tp-course-card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tp-course-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tp-course-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffe033;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1;
}
.tp-course-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tp-course-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}
.tp-course-card__title a { color: #1d2327; text-decoration: none; }
.tp-course-card__title a:hover { color: var(--color-primary, #004f80); }
.tp-course-card__desc {
    font-size: 13px;
    color: #646970;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}
.tp-course-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.tp-course-card__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #646970;
}
.tp-course-card__meta .material-icons { font-size: 16px; color: #9ca3af; }
.tp-course-card__cta {
    margin-top: auto;
    text-align: center;
    background: var(--color-primary, #004f80);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: background .2s;
}
.tp-course-card__cta:hover { background: #003a60; color: #fff; }

/* ── 5. CONTENT FAQ ──────────────────────────────────────────────────────────── */
.tp-cfaq { padding: 56px 0; background: #f6f7f7; }
.tp-cfaq__grid {
    display: grid;
    gap: 48px;
    align-items: start;
}
.tp-cfaq__grid.has-sidebar { grid-template-columns: 1fr 320px; }
.tp-cfaq__grid.no-sidebar  { grid-template-columns: 1fr; max-width: 780px; }

.tp-cfaq__item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}
.tp-cfaq__question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}
.tp-cfaq__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-cfaq__icon .material-icons { font-size: 18px; color: var(--color-primary, #004f80); }
.tp-cfaq__question-text { flex: 1; }
.tp-cfaq__chevron {
    flex-shrink: 0;
    font-size: 13px;
    color: #646970;
    transition: transform .25s;
}
.tp-cfaq__item.active .tp-cfaq__chevron { transform: rotate(180deg); }
.tp-cfaq__answer {
    display: none;
    padding: 0 20px 20px 68px; /* 68 = 36px icon + 12px gap + 20px left */
    font-size: 14px;
    line-height: 1.7;
    color: #3c434a;
}
.tp-cfaq__answer p { margin: 0 0 12px; }

.tp-cfaq__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}
.tp-cfaq__img {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.tp-cfaq__img img { width: 100%; height: auto; display: block; }

/* ── 7. CONTACT + MAP ────────────────────────────────────────────────────────── */
.tp-contact { padding: 56px 0; }
.tp-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.tp-contact__title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
    margin: 0 0 24px;
}
.tp-contact__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #3c434a;
    margin: 0 0 14px;
}
.tp-contact__row i { color: var(--color-primary, #004f80); margin-top: 3px; flex-shrink: 0; }
.tp-contact__row a { color: #3c434a; text-decoration: none; }
.tp-contact__row a:hover { color: var(--color-primary, #004f80); }
.tp-contact__btn {
    margin-top: 8px;
    background: var(--color-primary, #004f80);
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.tp-contact__btn:hover { background: #003a60; color: #fff; }
.tp-contact__map {
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.tp-contact__map iframe { width: 100%; height: 100%; border: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tp-courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .tp-intro__grid,
    .tp-cfaq__grid.has-sidebar,
    .tp-contact__grid { grid-template-columns: 1fr; }
    .tp-cfaq__grid.has-sidebar .tp-cfaq__sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .tp-cfaq__img { flex: 1 1 260px; }
    .tp-intro__video { order: -1; }
}
@media (max-width: 640px) {
    .tp-hero { min-height: 280px; border-radius: 6px; margin-top: 8px; }
    .tp-courses-grid { grid-template-columns: 1fr; }
    .tp-features-grid { grid-template-columns: repeat(2, 1fr); }
}
