/*
Theme Name: Total Child Theme
Theme URI: https://your-site.com
Description: Your site description. Go to Appearance > Editor to modify this file.
Author: Your Name
Author URI: https://your-site.com
Template: Total
Version: 1.0
*/

/* ==========================================================================
   Partner Hub Page Template
   ========================================================================== */

/* User bar */
.partner-hub-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e0e0da;
    font-size: 0.8125rem;
    color: #5f5e5a;
}

.partner-hub-user-bar-name strong {
    color: #1a1a18;
    font-weight: 500;
}

.partner-hub-user-bar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-hub-user-bar-link {
    color: #0b3562;
    text-decoration: none;
    font-size: 0.8125rem;
}

.partner-hub-user-bar-link:hover {
    text-decoration: underline;
}

.partner-hub-user-bar-sep {
    color: #b4b2a9;
}

/* Body & sections */
.partner-hub-body {
    padding-top: 0;
    padding-bottom: 2rem;
}

.partner-hub-section {
    padding: 1.75rem 0;
}

.partner-hub-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.partner-hub-section-desc {
    font-size: 0.875rem;
    color: #5f5e5a;
    margin-bottom: 1.25rem;
}

.partner-hub-divider {
    border: none;
    border-top: 1px solid #e0e0da;
    margin: 0;
}

.partner-hub-placeholder,
.partner-hub-no-content {
    font-size: 0.875rem;
    color: #888780;
    font-style: italic;
}

/* Subsection headings */
.partner-hub-subsection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a18;
}

.partner-hub-subsection-title--videos {
    margin-top: 2rem;
}

/* Training subcategories */
.partner-hub-training-subcat {
    margin-bottom: 0.5rem;
}

.partner-hub-subcat-divider {
    border: none;
    border-top: 1px dashed #d5d4cf;
    margin: 1.5rem 0;
}

.partner-hub-training-videos-offset {
    margin-top: 1rem;
}

.partner-hub-view-all {
    margin-top: 1.5rem;
    text-align: center;
}

.partner-hub-view-all-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0b3562;
    border: 1px solid #0b3562;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.partner-hub-view-all-link:hover {
    background: #0b3562;
    color: #fff;
}

/* Training Resources full page */
.training-resources-page-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.training-resources-page-intro {
    font-size: 0.9375rem;
    color: #5f5e5a;
    margin-bottom: 2rem;
}

.training-resources-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.training-resources-sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: 130px;
}

.training-resources-sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a8985;
    margin: 0 0 0.5rem;
}

.training-resources-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e0e0da;
}

.training-resources-sidebar-list li {
    margin: 0;
}

.training-resources-sidebar-link {
    display: block;
    padding: 0.4rem 0 0.4rem 0.875rem;
    font-size: 0.8125rem;
    color: #5f5e5a;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.training-resources-sidebar-link:hover {
    color: #0b3562;
    border-left-color: #0b3562;
}

.training-resources-main {
    flex: 1;
    min-width: 0;
}

@media ( max-width: 768px ) {
    .training-resources-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .training-resources-sidebar {
        width: 100%;
        position: static;
        border-bottom: 1px solid #e0e0da;
        padding-bottom: 1rem;
    }

    .training-resources-sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        border-left: none;
    }

    .training-resources-sidebar-link {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
}

.training-resources-subcat {
    margin-bottom: 0.5rem;
    scroll-margin-top: 130px;
}

.training-resources-subcat-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #1a1a18;
}

.training-resources-subcat-desc {
    font-size: 0.875rem;
    color: #5f5e5a;
    margin-bottom: 1rem;
}

.training-resources-divider {
    border: none;
    border-top: 1px solid #e0e0da;
    margin: 2rem 0;
}

/* ==========================================================================
   Resources — Video List (vertical list view)
   ========================================================================== */

.resources-video-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0da;
    border-radius: 8px;
    overflow: hidden;
}

.resource-video-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e0e0da;
}

.resource-video-list-item:last-child {
    border-bottom: none;
}

.resource-video-list-thumb {
    flex-shrink: 0;
    position: relative;
    width: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a3a4a;
}

.resource-video-list-thumb a {
    display: block;
    position: relative;
    padding-top: 56.25%;
}

.resource-video-list-thumb a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.resource-video-list-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-video-list-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.resource-video-list-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid rgba(255,255,255,0.9);
    margin-left: 2px;
}

.resource-video-list-thumb:hover a::after {
    background: rgba(0, 0, 0, 0.15);
}

.resource-video-list-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.resource-video-list-info .resource-item-link {
    margin-bottom: 0.2rem;
}

@media ( max-width: 480px ) {
    .resource-video-list-item {
        flex-direction: column;
        gap: 0.625rem;
    }

    .resource-video-list-thumb {
        width: 100%;
        max-width: 140px;
    }
}

/* Announcements */
.partner-hub-announcements {
    border: 1px solid #e0e0da;
    border-radius: 8px;
    overflow: hidden;
}

.partner-hub-announcement-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0da;
}

.partner-hub-announcement-item:last-child {
    border-bottom: none;
}

.partner-hub-announcement-date {
    display: block;
    font-size: 0.75rem;
    color: #8a8985;
    margin-bottom: 0.25rem;
}

.partner-hub-announcement-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.partner-hub-announcement-desc {
    font-size: 0.875rem;
    color: #5f5e5a;
    margin: 0 0 0.5rem;
}

.partner-hub-announcement-link {
    font-size: 0.8125rem;
    color: #0b3562;
    text-decoration: none;
}

.partner-hub-announcement-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Resources — Documents & Links
   ========================================================================== */

.resources-docs-links {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0da;
    border-radius: 8px;
    overflow: hidden;
}

.resource-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e0e0da;
}

.resource-doc-item:last-child {
    border-bottom: none;
}

.resource-doc-item-left {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-doc-item-left .resource-item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.resource-doc-item-right {
    flex: 1;
    min-width: 0;
}

.resource-item-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0b3562;
    text-decoration: none;
    display: block;
    margin-bottom: 0.2rem;
}

.resource-item-link:hover {
    text-decoration: underline;
}

.resource-item-link .file-size {
    font-weight: 400;
    color: #888780;
    font-size: 0.8125rem;
    margin-left: 4px;
}

.resource-item-desc {
    font-size: 0.8125rem;
    color: #5f5e5a;
    margin: 0;
    line-height: 1.5;
}

.resource-item-read-more {
    font-size: 0.8125rem;
    color: #0b3562;
    text-decoration: none;
    white-space: nowrap;
}

.resource-item-read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Resources Video Grid
   ========================================================================== */

.resources-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 760px;
}

@media ( max-width: 768px ) {
    .resources-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }
}

@media ( max-width: 480px ) {
    .resources-video-grid {
        grid-template-columns: 1fr;
    }
}

.resources-video-grid-item {
    border: 1px solid #e0e0da;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.resources-video-grid-thumb {
    position: relative;
    background: #1a3a4a;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.resources-video-grid-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.resources-video-grid-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resources-video-grid-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.resources-video-grid-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid rgba(255,255,255,0.9);
    margin-left: 3px;
    position: relative;
    z-index: 2;
}

.resources-video-grid-link:hover .resources-video-grid-thumb {
    opacity: 0.9;
}

.resources-video-grid-info {
    padding: 0.625rem 0.875rem 0.75rem;
}

.resources-video-grid-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.resources-video-grid-title a {
    text-decoration: none;
    color: inherit;
}

.resources-video-grid-title a:hover {
    text-decoration: underline;
}

.resources-video-grid-desc {
    font-size: 0.8125rem;
    color: #5f5e5a;
    line-height: 1.5;
}

.resources-video-grid-desc p {
    margin: 0;
}
