/*
Theme Name: TFS
Description: A minimalistic child theme of Twenty Twenty-Five
Template: twentytwentyfive
Version: 1.0.0
Author: TFS Team
*/

/* ---------------------------------------
   Import parent theme
---------------------------------------- */
@import url("../twentytwentyfive/style.css");

/* ---------------------------------------
   Base minimalistic customizations
---------------------------------------- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Simplified header */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Clean navigation */
.main-navigation {
    font-size: 0.9rem;
}
.main-navigation a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}
.main-navigation a:hover {
    color: #007cba;
}

/* Simplified content area */
.site-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Clean typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Simplified footer */
.site-footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
}

/* Remove unnecessary decorative elements */
.wp-block-separator {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}

/* Clean button styles */
.wp-block-button__link {
    background-color: #007cba;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.wp-block-button__link:hover {
    background-color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-content {
        padding: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ---------------------------------------
   Manual Chapter Styles (Base)
---------------------------------------- */
.manual-page-wrapper {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.manual-layout {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

/* Chapter Header Bar */
.chapter-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1rem 2rem;
}

.header-left .tfs-logo {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.header-center .search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.search-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.notes-btn {
    background: #000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Chapter Title Section */
.chapter-title-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}
.chapter-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.chapter-version {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

/* Chapter Hero */

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Chapter Navigation Sidebar (Base) */
.chapter-nav-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: white;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.chapter-nav-section { margin-bottom: 2rem; }


.status-tag {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.status-tag.active { background: #e8f5e8; color: #2e7d32; }
.status-tag.upcoming { background: #f5f5f5; color: #666; }
.chapter-icon { margin-right: 0.5rem; font-size: 0.8rem; }

/* Sections Navigation */
.sections-list { margin-bottom: 1.5rem; }
.section-nav-item { margin-bottom: 0.5rem; }
.section-nav-link {
    display: block;
    /*padding: 0.5rem 0;*/
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}
.section-nav-link:hover { /*color: #005a87; */}
.section-nav-link.active {
    background: #d32f2f;
    color: white;
    
    border-radius: 4px;
    margin: 0 -0.5rem;
}

/* Exhibits Section */
.exhibits-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
.exhibit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;

}
.exhibit-icon { font-size: 1rem; }
.exhibit-text {
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* Chapter Content */
.chapter-content {
    flex: 1;
    background: white;
    padding: 2rem;
}

.section-content { margin-bottom: 3rem; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;

}
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d32f2f;
    margin: 0;
}
.take-notes-btn {
    background: #f5f5f5;
    color: #555;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    float:right;
}

.section-body {
    line-height: 1.7;
    color: #333;
}
.section-body h3 {
    color: #d32f2f;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.section-body p { margin-bottom: 1rem; }

/* Attachments */
.section-attachments {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.section-attachments h4 { color: #333; margin-bottom: 1rem; }
.attachments-list { list-style: none; padding: 0; }
.attachment-item { margin-bottom: 0.5rem; }
.attachment-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #007cba;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.attachment-link:hover { background: #e3f2fd; }

/* Responsive (Base) */
@media (max-width: 1200px) {
    .manual-layout { flex-direction: column; }
    .chapter-nav-sidebar { width: 100%; position: static; }
}
@media (max-width: 768px) {
    .chapter-header-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .header-center .search-container {
        margin: 0;
        max-width: 100%;
    }
    .chapter-title { font-size: 2rem; }
    .chapter-content { padding: 1rem; }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =========================================================
   OVERWRITES / PORTAL STYLES (take precedence below)
   ========================================================= */

/* Small typo? Keeping in case it's intentional */
.sections-content {
    font-size: 18px;
}

/* TFS Portal Layout */
.tfs-portal-layout {
    display: flex;
    min-height: 100vh;
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Navigation Sidebar */
.main-nav-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    flex-shrink: 0;
    transition: width 0.3s ease;
    position: relative;
}

/* Collapsed sidebar state */
.main-nav-sidebar.collapsed {
    width: 60px !important;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -15px;
    z-index: 100;
}

.collapse-btn {
    background: #E0241A;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.collapse-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.main-nav-sidebar.collapsed .collapse-icon {
    transform: rotate(180deg);
}

/* Collapsed sidebar content styles */
.main-nav-sidebar.collapsed .nav-section-title {
    display: none !important;
}

.main-nav-sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding: 12px 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
}

.main-nav-sidebar.collapsed .nav-link .nav-icon {
    margin-right: 0 !important;
    font-size: 1.3em !important;
    color: #333 !important;
    text-indent: 0 !important;
}

.main-nav-sidebar.collapsed .chevron {
    display: none !important;
}

.nav-section { margin-bottom: 30px; }
.nav-section-title {
    font-size: 12px;
    color: #000;
    font-weight: 400;
    margin: 0 0 10px 20px;
    letter-spacing: 0.5px;
}
.nav-items { list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; }
.nav-link {
    display: flex;
    align-items: center;
    padding: 4px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    margin-left:3px; 
    margin-right:3px;
    border-radius: 8px;
}
.nav-link:hover { background: #f8f9fa; }
.active .nav-link {
    background: #e0241a;
    color: white;
    border-left: 3px solid #e0241a;
}
.h6-with-notes h6{
    color: #e0241a !important;
}
.nav-icon { margin-right: 12px; font-size: 1.1em; }
.chevron { margin-left: auto; color: #999; font-size: 1.2em; }

/* Chapter Navigation Sidebar (OVERWRITE) */
.chapter-nav-sidebar {
    width: 280px;
    background: white;
    padding: 20px;
    flex-shrink: 0;
    /* overwrite removes sticky; sticky handled in .active-chapter-section */
}

/* Active Chapter Section */
.active-chapter-section {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 20px;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid #e0e0e0;
}

.chapter-nav-section { margin-bottom: 30px; }

.chapter-nav-title {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
    margin-left:-10px;

}

.active-chapter, .upcoming-chapter {
    display: block;
   
}

.chapter-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    
}

.status-tag {
    font-size:10px;
    margin-top:5px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size:10px;
    font-weight: 400;
}
.status-tag.active { background: #f8f9fa; color: #666; }
.status-tag.upcoming { background: #f8f9fa; color: #666; float:right;}

.sections-list { list-style: none; margin: 0; padding: 0; }
.section-nav-item { margin: 0; }
.section-nav-link {
    display: block;
    padding: 4px 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    margin-left:-0.5rem;
}
.section-nav-link:hover { background: rgba(220, 53, 69, 0.1); }
.section-nav-link.active { background: #E0241A; color: white; }



/* Main Content Area */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Content Header */
.content-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left { display: flex; align-items: center; }
.logo {
    display: inline-block;
    width: 80px;
    
    background: url('/wp-content/uploads/2025/10/TFS-Logo-e1761066841909.png') center center no-repeat;
    background-size: contain;
    margin-right: 10px;
    vertical-align: middle;
    /* Remove text styling since image is used */
    text-indent: -9999px;
    overflow: hidden;
}
.portal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.welcome-text { color: #666; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 15px; }

.search-container { display: flex; align-items: center; }
.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;

    width: 200px;
}
.search-btn {
    background: #e0241a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 14px;

}
.my-notes-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;

}

/* Chapter Content (OVERWRITE tweaks) */
.chapter-content {
    flex: 1;
    background: white;
    /* base padding remains unless overridden elsewhere */
}

.chapter-header { margin-bottom: 30px; }
.chapter-title {
    font-size: 36px;
    color: #000;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.chapter-version { color: #666; font-size: 12px; }


.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Section Content (OVERWRITE) */
.section-content {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}
.section-content:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* overwrite removes bold red underline from base header */
}

.section-title, h6 {
    font-size: 24px;
    color: #E0241A;
    margin: 0;
    font-weight: 700;
    font-family: 'Roboto', sans-serif !important;
    text-transform: initial !important;
}

.take-notes-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.section-body {
    font-size: 1em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
}
.section-body p { margin-bottom: 15px; }

/* Attachments (OVERWRITE) */
.section-attachments {
    background: #fff3cd;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}
.section-attachments h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}
.attachments-list { list-style: none; margin: 0; padding: 0; }
.attachment-item { margin-bottom: 8px; }
.attachment-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}
.attachment-link:hover { background: #f8f9fa; }
.attachment-icon { margin-right: 8px; }

/* Responsive Design (OVERWRITE) */
@media (max-width: 1200px) {
    .main-nav-sidebar:not(.collapsed) { width: 200px; }
    .chapter-nav-sidebar { width: 250px; }
}
@media (max-width: 768px) {
    .tfs-portal-layout { flex-direction: column; }
    .main-nav-sidebar:not(.collapsed),
    .chapter-nav-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .main-nav-sidebar.collapsed {
        width: 60px !important;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
    }
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .search-container { flex: 1; margin-right: 10px; }
    .search-input { width: 100%; }
    .chapter-content { margin: 10px; padding: 20px; }
    .chapter-title { font-size: 2em; }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


h6, h5{
    letter-spacing: initial;
}

.nav-icon svg{
    height: 16px;
    width: 16px;
}