/* assets/css/trainings.css */

.training-hero {
    padding: 42px 20px;
    border-bottom: 1px solid #eee7d8;
    background: #fff;
}

.training-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.training-hero h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 10px;
    color: #1f2937;
}

.training-hero p {
    max-width: 700px;
    color: #666;
    line-height: 1.7;
}

.training-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a6f32;
    font-size: 13px;
    white-space: nowrap;
}

.training-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.training-breadcrumb a:hover {
    color: #c9a959;
}

.training-page,
.training-detail-page {
    background: #fff;
}

.training-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.training-sidebar {
    display: grid;
    gap: 18px;
}

.training-sidebar-widget {
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.training-search-widget {
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.training-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.training-search-form input {
    min-width: 0;
    border: 0;
    padding: 14px 16px;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
}

.training-search-form input:focus {
    outline: none;
}

.training-search-form button {
    border: 0;
    background: #c9a959;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.training-search-form button:hover {
    background: #b89847;
}

.training-widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f5f3ef;
    color: #333;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 400;
    border-bottom: 1px solid #eee7d8;
}

.training-widget-title i {
    color: #c9a959;
}

.training-category-list {
    max-height: 430px;
    overflow: auto;
}

.training-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1eee6;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.training-category-row:last-child {
    border-bottom: 0;
}

.training-category-row span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.training-category-row i {
    color: #222;
    width: 16px;
    text-align: center;
}

.training-category-row strong {
    min-width: 26px;
    height: 22px;
    border-radius: 999px;
    background: #c9a959;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 400;
}

.training-category-row:hover,
.training-category-row.active {
    background: #fbf7ed;
    color: #8a6f32;
}

.training-mini-list {
    display: grid;
}

.training-mini-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1eee6;
    text-decoration: none;
    color: #333;
}

.training-mini-item:last-child {
    border-bottom: 0;
}

.training-mini-item img {
    width: 74px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f3ef;
}

.training-mini-item strong {
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 5px;
}

.training-mini-item small {
    color: #888;
    font-size: 12px;
}

.training-mini-item:hover strong {
    color: #c9a959;
}

.training-main {
    min-width: 0;
}

.training-main-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee7d8;
}

.training-main-header h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
}

.training-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid #e6dfcf;
    border-radius: 999px;
    padding: 9px 14px;
    color: #8a6f32;
    background: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.training-reset-link:hover {
    color: #fff;
    border-color: #c9a959;
    background: #c9a959;
}

.training-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.training-list-card {
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.training-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.training-list-image {
    display: block;
    background: #f5f3ef;
}

.training-list-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.training-list-content {
    padding: 22px;
}

.training-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.training-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8a6f32;
    background: #fbf7ed;
    border: 1px solid #eee7d8;
    border-radius: 999px;
    padding: 6px 10px;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.training-pill:hover {
    color: #fff;
    background: #c9a959;
    border-color: #c9a959;
}

.training-card-icon,
.training-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ef;
    color: #c9a959;
    font-size: 20px;
    margin-bottom: 14px;
}

.training-list-card h3 {
    font-size: 21px;
    line-height: 1.35;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1f2937;
}

.training-list-card h3 a {
    color: inherit;
    text-decoration: none;
}

.training-list-card h3 a:hover {
    color: #c9a959;
}

.training-list-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.training-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8a6f32;
    text-decoration: none;
    font-size: 14px;
}

.training-read-more:hover {
    color: #c9a959;
}

.training-empty-state {
    grid-column: 1 / -1;
    padding: 46px 34px;
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    text-align: center;
}

.training-empty-state h2,
.training-empty-state h3 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 10px;
}

.training-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

.training-detail-layout {
    align-items: start;
}

.training-detail-card {
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.training-detail-image {
    background: #f5f3ef;
    border-bottom: 1px solid #eee7d8;
}

.training-detail-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.training-detail-content {
    padding: 34px;
}

.training-detail-badges {
    margin-bottom: 20px;
}

.training-detail-content h2 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 18px;
}

.training-detail-lead {
    font-size: 18px;
    line-height: 1.75;
    color: #555;
    padding: 20px 22px;
    background: #fbf7ed;
    border-left: 4px solid #c9a959;
    border-radius: 8px;
    margin-bottom: 28px;
}

.training-rich-content {
    color: #444;
    font-size: 16px;
    line-height: 1.85;
}

.training-rich-content p,
.training-rich-content ul,
.training-rich-content ol,
.training-rich-content blockquote,
.training-rich-content table {
    margin-bottom: 18px;
}

.training-rich-content h1,
.training-rich-content h2,
.training-rich-content h3,
.training-rich-content h4 {
    color: #1f2937;
    font-weight: 400;
    line-height: 1.35;
    margin: 30px 0 14px;
}

.training-rich-content h2 {
    font-size: 28px;
}

.training-rich-content h3 {
    font-size: 23px;
}

.training-rich-content a {
    color: #8a6f32;
}

.training-rich-content a:hover {
    color: #c9a959;
}

.training-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.training-rich-content ul,
.training-rich-content ol {
    padding-left: 24px;
}

.training-rich-content blockquote {
    padding: 18px 22px;
    background: #f8f5ee;
    border-left: 4px solid #c9a959;
    color: #555;
    border-radius: 8px;
}

.training-back-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.training-related-section {
    margin-top: 28px;
}

.training-related-header {
    margin-bottom: 18px;
}

.training-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.training-related-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.training-related-card:hover {
    border-color: #c9a959;
    transform: translateY(-2px);
}

.training-related-card img {
    width: 96px;
    height: 74px;
    border-radius: 7px;
    object-fit: cover;
    background: #f5f3ef;
}

.training-related-card strong {
    display: block;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 4px;
}

.training-related-card small {
    color: #8a6f32;
    font-size: 12px;
}

@media (max-width: 1040px) {
    .training-page-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .training-list-grid {
        gap: 20px;
    }

    .training-list-image img {
        height: 200px;
    }

    .training-detail-image img {
        height: 360px;
    }

    .training-detail-content {
        padding: 28px;
    }
}

@media (max-width: 860px) {
    .training-hero-inner,
    .training-main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-breadcrumb {
        white-space: normal;
    }

    .training-page-layout {
        grid-template-columns: 1fr;
    }

    .training-sidebar {
        order: 1;
    }

    .training-main {
        order: 2;
    }

    .training-category-list {
        max-height: 280px;
    }

    .training-list-grid,
    .training-related-grid {
        grid-template-columns: 1fr;
    }

    .training-detail-image img {
        height: 300px;
    }
}

@media (max-width: 560px) {
    .training-hero {
        padding: 32px 18px;
    }

    .training-hero h1 {
        font-size: 30px;
    }

    .training-page,
    .training-detail-page {
        padding: 34px 16px;
    }

    .training-search-form {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .training-widget-title {
        padding: 12px 14px;
    }

    .training-category-row {
        padding: 11px 14px;
    }

    .training-mini-item {
        grid-template-columns: 66px minmax(0, 1fr);
        padding: 13px 14px;
    }

    .training-mini-item img {
        width: 66px;
        height: 54px;
    }

    .training-list-image img {
        height: 190px;
    }

    .training-list-content,
    .training-detail-content {
        padding: 20px;
    }

    .training-list-card h3 {
        font-size: 19px;
    }

    .training-detail-content h2 {
        font-size: 26px;
    }

    .training-detail-image img {
        height: 230px;
    }

    .training-detail-lead {
        font-size: 16px;
        padding: 16px 18px;
    }

    .training-rich-content {
        font-size: 15px;
        line-height: 1.78;
    }

    .training-reset-link,
    .training-back-row .btn,
    .training-back-row .btn-light-public {
        width: 100%;
        justify-content: center;
    }

    .training-related-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .training-related-card img {
        width: 78px;
        height: 62px;
    }
}

.training-meta-row,
.training-detail-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #8a6f32;
    font-size: 14px;
    margin-bottom: 16px;
}

.training-meta-row span,
.training-detail-facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.training-detail-facts {
    padding: 16px 18px;
    border: 1px solid #eee7d8;
    border-radius: 8px;
    background: #fffdf8;
    margin-bottom: 26px;
}

@media (max-width: 560px) {
    .training-meta-row,
    .training-detail-facts {
        align-items: flex-start;
        flex-direction: column;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* V5.5 - Breadcrumb/dropdown overlap fix */
.training-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 18px;
}

.training-breadcrumb {
    justify-self: start;
    width: auto;
    max-width: 100%;
    white-space: normal;
    padding: 8px 11px;
    border: 1px solid #eee7d8;
    border-radius: 999px;
    background: #fbf7ed;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

@media (max-width: 560px) {
    .training-breadcrumb {
        padding: 7px 10px;
        font-size: 12px;
        border-radius: 12px;
    }
}
