/* =============================================================================
   Teachers Course Page – teachers-course.css
   (About + Prices sub-pages with shared Hero / Tabs / Sidebar)

   2026-06-25 (fix): removed a stray comment-terminator sequence (asterisk-slash)
   inside the Yellow-pill comment that closed the comment early and corrupted the
   following .tc-hero__badge selector, so the browser dropped the rule at parse
   time (badge rendered grey, no pill). Comment reworded; rule unchanged.
   2026-06-25: Hero badge moved to the TOP-LEFT of the hero (new .tc-hero__top
   grid row) and turned into a yellow pill (.tc-hero__badge, accent #ffe033),
   matching the student-course / institute heroes. Was previously plain grey text
   sitting low next to the title. Pairs with page-teachers-course.php (2026-06-25).
   2026-06-24: .tc-date-note enlarged (12→15px, readable grey, line-height +
   paragraph spacing) for the new textarea-based Próximas Fechas description.
   ============================================================================= */

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

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

/* ── Back link ────────────────────────────────────────────────────────────── */
.tc-back { padding: 14px 0 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.tc-hero {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1152px;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-rows: auto 1fr auto;
    margin: 12px auto 0;
    border-radius: 10px;
    overflow: hidden;
}
.tc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.20) 55%, transparent 100%);
}
.tc-hero__content {
    position: relative;
    z-index: 1;
    grid-row: 3;
    padding: 0 0 32px;
}
/* Badge row pinned to the TOP-LEFT of the hero (own grid row), so the badge
   sits at the top like the student-course / institute heroes, while the
   title/subtitle stay anchored at the bottom (.tc-hero__content, grid-row 3). */
.tc-hero__top {
    position: relative;
    z-index: 1;
    grid-row: 1;
    padding: 24px 24px 0;
}
/* Yellow pill — self-contained here (the old "academy-badge badge--yellow"
   classes are not enqueued on this template). Colour = design-system accent. */
.tc-hero__badge {
    display: inline-block;
    background: var(--color-accent, #ffe033);
    color: #1d2327;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 20px;
}
.tc-hero__title {
    color: #fff;
    font-size: clamp(22px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    max-width: 700px;
}
.tc-hero__subtitle {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0;
}

/* ── Tab navigation ───────────────────────────────────────────────────────── */
.tc-tabs {
    border-bottom: 1px solid #e2e4e7;
    margin: 24px 0 0;
    background: #fff;
}
.tc-tabs__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.tc-tabs__link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #646970;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.tc-tabs__link:hover { color: #1d2327; }
.tc-tabs__link.is-active {
    color: var(--color-primary, #004f80);
    border-bottom-color: var(--color-primary, #004f80);
    font-weight: 600;
}

/* ── Body grid ────────────────────────────────────────────────────────────── */
.tc-body { padding: 40px 0 56px; }
.tc-body__grid {
    display: grid;
    gap: 48px;
    align-items: start;
}
.tc-body__grid.has-sidebar { grid-template-columns: 1fr 300px; }
.tc-body__grid.no-sidebar  { grid-template-columns: 1fr; }

/* ── Características bar ──────────────────────────────────────────────────── */
.tc-caracteristicas { margin-bottom: 32px; }
.tc-caracteristicas__title {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 20px;
}
.tc-caract-bar {
    display: flex;
    gap: 0;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.tc-caract-item {
    flex: 1;
    padding: 14px 20px;
    border-right: 1px solid #e2e4e7;
}
.tc-caract-item:last-child { border-right: none; }
.tc-caract-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    margin-bottom: 6px;
}
.tc-caract-label .material-icons { font-size: 14px; }
.tc-caract-item strong { font-size: 15px; color: #1d2327; font-weight: 600; }

/* Icon badges row */
.tc-icon-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.tc-icon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f6f7f7;
    border-radius: 20px;
    font-size: 12px;
    color: #3c434a;
}
.tc-icon-badge .material-icons { font-size: 14px; color: #646970; }

/* ── Main content typography ──────────────────────────────────────────────── */
.tc-main-content { font-size: 15px; line-height: 1.7; color: #3c434a; }
.tc-main-content h2 { font-size: 20px; font-weight: 700; color: #1d2327; margin: 32px 0 12px; }
.tc-main-content h2:first-child { margin-top: 0; }
.tc-main-content h3 { font-size: 17px; font-weight: 700; color: #1d2327; margin: 24px 0 10px; }
.tc-main-content p { margin: 0 0 14px; }
.tc-main-content ul { padding-left: 20px; margin: 0 0 16px; }
.tc-main-content li { margin-bottom: 6px; }
.tc-main-content a { color: var(--color-primary, #004f80); font-weight: 600; }

/* ── Próximas fechas ──────────────────────────────────────────────────────── */
.tc-upcoming { margin-top: 40px; }
.tc-upcoming__title { font-size: 20px; font-weight: 700; color: #1d2327; margin: 0 0 16px; }
.tc-month-select {
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23646970' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    margin-bottom: 16px;
}
.tc-date-block {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
}
.tc-date-table { display: flex; flex-direction: column; gap: 0; }
.tc-date-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.tc-date-row:last-of-type { border-bottom: none; }
.tc-date-row span:first-child { color: #646970; }
.tc-date-row span:last-child  { color: #1d2327; font-weight: 500; text-align: right; }
.tc-date-note { font-size: 15px; line-height: 1.6; color: #4b5563; margin: 10px 0 0; }
.tc-date-note p { margin: 0 0 8px; }
.tc-date-note p:last-child { margin-bottom: 0; }

/* ── Price groups ─────────────────────────────────────────────────────────── */
.tc-prices { display: flex; flex-direction: column; gap: 20px; }
.tc-price-group {
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 24px;
    background: #fff;
}
.tc-price-group__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.tc-price-group__flag { font-size: 22px; }
.tc-price-group__title { font-size: 17px; font-weight: 700; color: #1d2327; margin: 0; }
.tc-payment-label { display: block; font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.tc-payment-select {
    width: 100%;
    padding: 9px 36px 9px 12px;
    font-size: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23646970' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    margin-bottom: 16px;
    cursor: pointer;
}
.tc-price-items { list-style: none; margin: 0; padding: 0; }
.tc-price-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tc-price-item:last-child { border-bottom: none; }
.tc-price-item__label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d2327;
}
.tc-price-item__label .fa-check { color: #2ea44f; font-size: 12px; flex-shrink: 0; }
.tc-price-item__price { font-size: 14px; font-weight: 600; color: #1d2327; white-space: nowrap; }
.tc-price-item__note { width: 100%; font-size: 12px; color: #9ca3af; margin: 4px 0 0 24px; }

/* ── Sidebar card ─────────────────────────────────────────────────────────── */
.tc-sidebar { position: sticky; top: 100px; }
.tc-sidebar-card {
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.tc-sidebar-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
    line-height: 1.4;
}
.tc-sidebar-card__divider { border: none; border-top: 1px solid #e2e4e7; margin: 0 0 16px; }
.tc-sidebar-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #646970;
    margin: 0 0 14px;
}
.tc-sidebar-card__date .material-icons { font-size: 16px; color: #9ca3af; }
.tc-sidebar-card__from { font-size: 13px; color: #646970; display: block; }
.tc-sidebar-card__price {
    font-size: 24px;
    font-weight: 800;
    color: #1d2327;
    margin: 0 0 16px;
}
.tc-sidebar-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-primary, #004f80);
    color: #fff;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background .2s;
    box-sizing: border-box;
}
.tc-sidebar-card__cta:hover { background: #003a60; color: #fff; }
.tc-sidebar-card__info {
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid var(--color-primary, #004f80);
    color: var(--color-primary, #004f80);
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, color .2s;
    box-sizing: border-box;
}
.tc-sidebar-card__info:hover { background: var(--color-primary, #004f80); color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tc-body__grid.has-sidebar { grid-template-columns: 1fr; }
    .tc-sidebar { position: static; }
    .tc-tabs__list { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .tc-hero { min-height: 260px; }
    .tc-caract-bar { flex-direction: column; }
    .tc-caract-item { border-right: none; border-bottom: 1px solid #e2e4e7; }
    .tc-caract-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .tc-tabs__link { padding: 12px 14px; font-size: 13px; }
    .tc-hero { min-height: 220px; border-radius: 6px; }
    .tc-hero__top { padding: 16px 24px 0; }
}
