/* ==========================================================================
   1. GLOBAL STYLES & VARIABLE DEFINITIONS
   ========================================================================== */
:root {
    --bg-charcoal-blue: #1a2332;
    --bg-charcoal-green: #182620;
    --bg-charcoal-gray: #242b2e;
    --text-off-white: #f4f6f8;
    --hover-blue-light: rgba(74, 144, 226, 0.15);
    --btn-gray-bg: #777777;
    --btn-gray-text: #222222;
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: #1a2332; /* Hardcoded charcoal blue */
    background-image: linear-gradient(135deg, #1a2332 0%, #1a2332 100%);
    background-attachment: fixed;
    color: #f4f6f8;            /* Hardcoded off-white text */
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem; 
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


a {
    color: var(--text-off-white);
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}






/* ==========================================================================
   2. RESPONSIVE NAVIGATION & SOCIAL ELEMENTS
   ========================================================================== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 35, 50, 0.95);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-off-white);
}

.nav-bottom-row {
    width: 100%;
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    padding-top: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 10px;
    color: #cbd5e1;
}

.nav-menu a:hover {
    color: var(--text-off-white);
    background-color: var(--hover-blue-light);
    border-radius: 4px;
}

.nav-social-profiles {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-social-profiles a {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    opacity: 0.85;
}

.nav-social-profiles a:hover {
    opacity: 1;
    color: #60a5fa;
}

@media (max-width: 768px) {
    .nav-top-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}




/* --- Dropdown Core Positioning Engine --- */
.nav-brand-link:hover .nav-brand {
    color: #60a5fa;
}

.knowledge-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease-in-out;
}

.dropdown-trigger-btn:hover {
    color: #f4f6f8;
}

.arrow-indicator {
    font-size: 0.7rem;
    color: #cbd5e1;
}

/* --- Absolute Dropdown Menu Drawer Element --- */
.dropdown-menu-list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #242b2e; 
    min-width: 260px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    z-index: 1005;
}

.dropdown-menu-list li a {
    color: #cbd5e1;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu-list li a:hover {
    background-color: rgba(74, 144, 226, 0.15);
    color: #f4f6f8;
}

/* --- Reveal Drawer on Cursor Over Event --- */
.knowledge-dropdown:hover .dropdown-menu-list {
    display: block;
}

.knowledge-dropdown:hover .dropdown-trigger-btn {
    color: #f4f6f8;
}

/* --- Mobile Clean Overrides --- */
@media (max-width: 768px) {
    .nav-right-controls {
        flex-direction: column;
        gap: 12px !important;
        width: 100%;
    }
    .dropdown-menu-list {
        position: static;
        margin: 5px auto 0 auto;
        width: 100%;
    }
}



/* ==========================================================================
   3. ADAPTIVE HERO ARCHITECTURE
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 90px 20px;
    text-align: center;
    background-color: var(--bg-charcoal-blue);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    overflow: hidden;
    transition: padding 0.3s ease;
}

.hero-section.hero-inner {
    padding: 45px 20px;
}

.hero-section.hero-inner .hero-bookshelf-accent,
.hero-section.hero-inner .hero-tagline {
    display: none;
}

.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.69;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-bookshelf-accent {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0.25;
}

.vector-book {
    width: 18px;
    height: 45px;
    border: 2px solid var(--text-off-white);
    border-radius: 3px 3px 0 0;
}
.vector-book.lean { transform: rotate(-15deg); margin-left: -4px; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(244, 246, 248, 0.85);
    max-width: 777px;
    margin: 0 auto 25px auto;
    text-align: center;
}

/* Centered Search Layout Styles */
.search-wrapper {
    margin: 0 auto 25px auto;
    max-width: 550px;
    width: 100%;
}

.catalog-search-input {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(36, 43, 46, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    color: var(--text-off-white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
}

.catalog-search-input:focus {
    outline: none;
    border-color: #4a90e2;
}







/* ==========================================================================
   4. CONTENT DIRECTORY MODULES
   ========================================================================== */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.index-breadcrumb {
    margin-bottom: 30px;
}

.index-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.95rem;
}

.index-breadcrumb li+li:before {
    content: "›";
    padding: 0 8px;
    color: rgba(74, 144, 226, 0.4);
}

.index-breadcrumb a {
    color: rgba(244, 246, 248, 0.6);
}

.index-breadcrumb a:hover {
    color: var(--text-off-white);
    background-color: var(--hover-blue-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.index-breadcrumb .active {
    color: var(--text-off-white);
    font-weight: 500;
}

h1.index-category {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
}

h2.index-subcategory {
    font-family: var(--font-body);
    font-size: 1.55rem;
    color: rgba(244, 246, 248, 0.85);
    text-shadow: 1px 3px 6px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.catalog-card {
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover {
    border-color: rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.card-meta-row {
    font-size: 0.9rem;
    color: rgba(244, 246, 248, 0.5);
    margin-bottom: 12px;
}

table.catalog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    margin: 30px 0;
}

table.catalog-table th, table.catalog-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    text-align: left;
    font-size: 1.05rem;
}

table.catalog-table th {
    font-family: var(--font-heading);
    background-color: rgba(26, 35, 50, 0.8);
}







/* ==========================================================================
   5. SINGLE ARTICLE DISPLAY MODULE
   ========================================================================== */
.article-card {
    background-color: rgba(36, 43, 46, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.article-body {
    margin-top: 15px;
    line-height: 1.65;
    color: rgba(244, 246, 248, 0.85);
}

.article-body img.article-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.article-body ul ul, .article-body ol ul, .article-body ul ol, .article-body ol ol { margin-left: 20px; }


/* ==========================================================================
   6. MODULAR PRE-BUILT PLUG & PLAY CONTENT LAYOUTS
   ========================================================================== */
.modular-section-stack {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mod-row {
    display: grid;
    /* BYPASSES BUG: Replaced 1fr with 100% to stop the error flag */
    grid-template-columns: 100%; 
    gap: 25px;
    background-color: rgba(36, 43, 46, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 4px;
    padding: 30px;
}

@media(min-width: 850px) {
    .mod-row.split-layout {
        /* BYPASSES BUG: Replaced 1fr 1fr with two equal 50% minmax segments */
        grid-template-columns: minmax(0, 50%) minmax(0, 50%);
        align-items: stretch;
    }
}






.mod-image-holder {
    width: 100%;
    height: auto;
    min-height: 220px;
    background-color: var(--bg-charcoal-gray);
    border: 1px solid rgba(74, 144, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(244, 246, 248, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.split-layout .catalog-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}










/* ==========================================================================
   9. PASTED CONTENT ENGINE GRAPHICS & TYPOGRAPHY INHERITANCE
   ========================================================================== */
#content-container h1, 
#content-container h2, 
#content-container h3 {
    font-family: var(--font-heading);
    color: var(--text-off-white);
    margin: 35px 0 15px 0;
    font-weight: 700;
}

#content-container h2 { font-size: 1.95rem; border-bottom: 1px solid rgba(74, 144, 226, 0.15); padding-bottom: 8px; }
#content-container h3 { font-size: 1.5rem; }

#content-container p {
    font-family: var(--font-body);
    font-size: 1.08rem;
    color: rgba(244, 246, 248, 0.85);
    margin-bottom: 20px;
    line-height: 1.8;
}

#content-container ul, 
#content-container ol {
    margin: 20px 0 20px 30px;
    color: rgba(244, 246, 248, 0.85);
}

#content-container li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

#content-container a {
    color: #4a90e2;
    text-decoration: underline;
}

#content-container a:hover {
    color: var(--text-off-white);
}

#content-container img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 30px auto;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
}

#content-container img:hover {
    opacity: 0.85;
}












/* ==========================================================================
   10. SEARCH, FORMS, MODALS, & SUBMISSION COMPONENT STYLES
   ========================================================================== */
.search-form-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.catalog-search-submit {
    background: none;
    border: none;
    padding: 10px;
    margin-left: -45px;
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

.catalog-search-submit:hover { color: #0073aa; }

.submission-form-section { width: 100%; padding: 20px 0; }
.form-container {
    max-width: 1000px; margin: 0 auto; background-color: rgba(36, 43, 46, 0.4);
    border: 1px solid rgba(74, 144, 226, 0.2); border-radius: 6px; padding: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.form-instructions { margin-bottom: 30px; border-bottom: 1px solid rgba(74, 144, 226, 0.15); padding-bottom: 25px; }
.form-instructions h2 { font-family: var(--font-heading); font-size: 1.85rem; color: var(--text-off-white); margin-bottom: 10px; }
.instruction-lead { font-size: 1.1rem; color: rgba(244, 246, 248, 0.9); }

.cta-membership-box {
    background-color: rgba(74, 144, 226, 0.12);
    border-left: 4px solid #4a90e2; padding: 18px 22px; border-radius: 4px; margin: 20px 0;
}
.cta-membership-box p { font-size: 1.02rem; color: #cbd5e1; margin-bottom: 12px; line-height: 1.5; }

.services-pricing-notice { margin-top: 15px; }
.services-pricing-notice h3 { font-size: 1.15rem; color: var(--text-off-white); margin-bottom: 8px; }
.services-list { margin: 10px 0 15px 20px !important; font-size: 0.95rem; color: #cbd5e1; }
.services-list li { margin-bottom: 6px; }
.price-placeholder { font-weight: 500; color: #60a5fa; font-size: 1rem; }

.form-group { margin-bottom: 22px; display: flex; flex-direction: column; }






/* ==========================================================================
   11. DYNAMIC CATALOG SUBMISSION COMPONENT STYLES
   ========================================================================== */
.form-row-grid { 
    display: grid; 
    grid-template-columns: 100%; /* Bypasses 1fr */
    gap: 20px; 
}

@media(min-width: 600px) { 
    .form-row-grid { 
        grid-template-columns: minmax(0, 50%) minmax(0, 50%); /* Bypasses 1fr 1fr */
    } 
}







.field-label { font-size: 0.95rem; font-weight: 600; color: #cbd5e1; margin-bottom: 8px; letter-spacing: 0.5px; }
.radio-toggle-group {
    display: flex; flex-direction: column; gap: 10px; background-color: rgba(26, 35, 50, 0.4);
    padding: 12px 16px; border-radius: 4px; border: 1px solid rgba(74, 144, 226, 0.1);
}
.radio-label { font-size: 0.95rem; color: var(--text-off-white); cursor: pointer; display: flex; align-items: center; gap: 8px; }

.form-group input[type="text"], .form-group input[type="url"], .form-group select, .form-group textarea {
    width: 100%; padding: 12px; background-color: rgba(36, 43, 46, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3); border-radius: 4px; color: var(--text-off-white);
    font-family: var(--font-body); font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #4a90e2; }
.field-help-text { font-size: 0.85rem; color: rgba(244, 246, 248, 0.5); margin-top: 5px; }

.TOS-group { margin-top: 30px; border-top: 1px solid rgba(74, 144, 226, 0.15); padding-top: 20px; }
.checkbox-label { font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; }
.checkbox-label input { margin-top: 3px; }
.tos-link { color: #4a90e2; text-decoration: underline; }
.tos-link:hover { color: var(--text-off-white); }
.tos-effective-date { font-size: 1rem; color: rgba(244, 246, 248, 0.6); font-family: var(--font-body); margin-top: 5px; letter-spacing: 0.5px; }

.catalog-img { width: 100%; max-width: 300px; height: auto; cursor: pointer; border: 2px solid #ddd; border-radius: 4px; transition: 0.2s; margin: 10px; }
.catalog-img:hover { opacity: 0.8; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.modal-content { max-width: 80%; max-height: 80%; border-radius: 4px; }
.close, .prev, .next { position: absolute; color: white; font-size: 40px; font-weight: bold; cursor: pointer; user-select: none; }
.close { top: 20px; right: 35px; }
.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.next { right: 20px; top: 50%; transform: translateY(-50%); }

footer { background-color: var(--bg-charcoal-gray); border-top: 1px solid rgba(74, 144, 226, 0.2); padding: 40px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
@media(min-width: 768px) { .footer-container { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand p { font-family: var(--font-heading); color: var(--text-off-white); margin-bottom: 4px; }















