
:root {
    --navy: #071739;
    --navy-2: #0b1220;
    --blue: #1d4ed8;
    --gold: #f4b400;
    --gold-soft: #fff7d6;
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #1a1a1a;
    --muted: #64748b;
    --line: #e2e8f0;
    --green-soft: #dcfce7;
    --red: #991b1b;
    --red-soft: #fee2e2;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(244, 180, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

.site-header {
    background: rgba(7, 23, 57, 0.97);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.nav {
    max-width: 1220px;
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    display: grid;
    line-height: 1.15;
}

.brand-main {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.brand-sub {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 13px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    background: rgba(244, 180, 0, 0.16);
    color: #ffffff;
}

/* Top navigation: trainer entry point */
.nav-links a.nav-pill-trainers {
    background: #ffd21f;
    color: #7c3f00;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(244, 180, 0, 0.22);
}

.nav-links a.nav-pill-trainers:hover {
    background: #ffcf10;
    color: #6b3300;
}

main {
    min-height: 70vh;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 36px 22px;
}

.hero {
    background:
        linear-gradient(135deg, rgba(7, 23, 57, 0.98), rgba(29, 78, 216, 0.86)),
        radial-gradient(circle at top right, rgba(244, 180, 0, 0.28), transparent 35%);
    color: #ffffff;
    padding: 74px 22px;
}

.hero .container {
    padding: 0 22px;
}

.hero-two-column {
    max-width: 1220px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 54px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 52px;
    line-height: 1.06;
    max-width: 720px;
    margin-bottom: 18px;
    letter-spacing: -1.4px;
}

.hero-copy p {
    max-width: 760px;
    font-size: 18px;
    color: #dbeafe;
    margin-bottom: 28px;
}

.hero-search-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.50);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-search-card .tag {
    margin-bottom: 12px;
}

.hero-search-card h2 {
    color: var(--navy);
    font-size: 26px;
    line-height: 1.18;
    margin-bottom: 8px;
}

.hero-search-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.hero-search-card form {
    display: grid;
    gap: 12px;
}

.hero-search-card .form-row {
    margin-bottom: 0;
}

.hero-search-card label {
    color: var(--navy);
    font-size: 13px;
}

.hero-search-card input,
.hero-search-card select {
    background: #f8fafc;
    color: var(--text);
}

.hero-trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.hero-trust-stats div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.hero-trust-stats strong {
    display: block;
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
}

.hero-trust-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    margin-top: 5px;
}

.hero-trust-list {
    margin-top: 18px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.hero-trust-list li {
    margin-bottom: 6px;
}

.hero-actions,
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #111827;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    border: none;
    cursor: pointer;
    min-height: 42px;
    box-shadow: 0 8px 18px rgba(202, 138, 4, 0.16);
}

.btn-dark {
    background: var(--navy-2);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.btn-light {
    background: #e8efff;
    color: #1e3a8a;
    box-shadow: none;
}

.btn-danger {
    background: var(--red-soft);
    color: var(--red);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.38);
    box-shadow: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.card h1,
.card h2,
.card h3 {
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.card p {
    color: var(--muted);
    margin-bottom: 12px;
}

/* Homepage feature highlights */
.card-trainer-highlight,
.card-course-highlight {
    position: relative;
    overflow: hidden;
}

.card-trainer-highlight {
    background: #fff4cc;
    border-color: #ffd21f;
    box-shadow: 0 14px 30px rgba(244, 180, 0, 0.16);
}

.card-course-highlight {
    background: #dcebff;
    border-color: #93c5fd;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
}

.card-trainer-highlight::before,
.card-course-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 9px;
}

.card-trainer-highlight::before {
    background: #ffd21f;
}

.card-course-highlight::before {
    background: #3b82f6;
}

.card-trainer-highlight .tag {
    background: #ffd21f;
    color: #7c3f00;
}

.tag {
    display: inline-block;
    background: var(--gold-soft);
    color: #92400e;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.form-card {
    max-width: 860px;
    background: rgba(255,255,255,0.96);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.form-row {
    margin-bottom: 17px;
}

label {
    display: block;
    font-weight: 900;
    margin-bottom: 7px;
    color: var(--navy);
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
}

textarea {
    min-height: 125px;
}

.notice {
    background: var(--green-soft);
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    margin-top: 10px;
}

.table th, .table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.table th {
    background: var(--navy);
    color: #ffffff;
    font-weight: 900;
}

.table tr:last-child td {
    border-bottom: none;
}

.rating {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
    padding: 7px 11px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}

.highlight-panel {
    background: var(--navy);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.highlight-panel h3 {
    color: #ffffff;
    margin-bottom: 12px;
}

.highlight-panel p {
    color: #cbd5e1;
}

.section-gap {
    margin-top: 34px;
}

.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 34px 22px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 22px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    font-size: 14px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.footer-copy {
    max-width: 1220px;
    margin: 16px auto 0;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 980px) {
    .hero-two-column {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-trust-stats {
        grid-template-columns: 1fr;
    }

    .grid,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Trainer public profile enhancement */
.trainer-public-profile .section-gap {
    margin-top: 34px;
}

.trainer-profile-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.trainer-profile-photo-panel {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.trainer-profile-photo {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    margin: 6px auto 18px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.trainer-profile-photo-placeholder {
    background: #e2e8f0;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.trainer-profile-rating-box {
    display: grid;
    gap: 10px;
}

.trainer-profile-rating-box p {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 0;
    color: var(--navy);
}

.trainer-profile-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trainer-profile-info-panel h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.trainer-course-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
}

.trainer-course-table td:first-child {
    min-width: 320px;
}

.trainer-course-table td span {
    color: var(--muted);
    font-size: 13px;
}

.trainer-course-table .btn {
    min-height: 38px;
    padding: 9px 13px;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .trainer-profile-hero {
        grid-template-columns: 1fr;
    }

    .trainer-profile-info-panel h1 {
        font-size: 28px;
    }
}

/* TrainingPlace public trainer profile right-photo fix */
.tp-profile-v2 .tp-profile-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 32px !important;
    align-items: center !important;
}
.tp-profile-v2 .tp-profile-info h1 {
    font-size: 36px;
    line-height: 1.15;
    margin: 14px 0 14px;
}
.tp-profile-v2 .tp-profile-photo-box {
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}
.tp-profile-v2 .tp-profile-photo {
    width: 240px !important;
    height: 240px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
    display: block !important;
    margin: 0 auto 18px !important;
}
.tp-profile-v2 .section-gap {
    margin-top: 34px;
}
.tp-profile-v2 .tp-course-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
}
.tp-profile-v2 .tp-course-table td:first-child {
    min-width: 320px;
}
@media (max-width: 820px) {
    .tp-profile-v2 .tp-profile-hero {
        grid-template-columns: 1fr !important;
    }
    .tp-profile-v2 .tp-profile-photo-box {
        order: -1;
    }
    .tp-profile-v2 .tp-profile-info h1 {
        font-size: 30px;
    }
}

/* TrainingPlace header logo single-line fix */
.site-header .brand {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-direction: row !important;
    gap: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.site-header .brand span {
    display: inline !important;
}

/* TrainingPlace header logo bold fix */
.site-header .brand,
.site-header .brand span,
.brand,
.brand span {
    font-weight: 900 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: -0.4px !important;
}

.site-header .brand {
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    white-space: nowrap !important;
}

.site-header .brand span {
    font-size: inherit !important;
    line-height: inherit !important;
}
