/* Bloomberg-inspired Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #0078d4;
    --dark-color: #000000;
    --light-color: #ffffff;
    --text-color: #333333;
    --light-text: #ffffff;
    --border-color: #e1e1e1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0px;
    --section-border: 1px solid #e1e1e1;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 2rem 0;
    border-bottom: var(--section-border);
}

.section-intro {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.primary {
    background-color: var(--dark-color);
    color: var(--light-text);
    border: none;
}

.primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
}

.secondary:hover {
    background-color: #444444;
    color: var(--light-text);
}

.outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
}

.outline:hover {
    background-color: var(--dark-color);
    color: var(--light-text);
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

/* Header */
header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 900;
}

.logo p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

#main-nav ul {
    display: flex;
}

#main-nav li {
    margin-left: 1.5rem;
    position: relative;
}

#main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

#main-nav a:hover, #main-nav a.active {
    color: var(--accent-color);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.8rem 1rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--light-color);
    color: var(--dark-color);
    text-align: left;
    padding: 8rem 0 3rem;
    border-bottom: var(--section-border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

/* Overview Section */
.overview {
    background-color: var(--light-color);
    border-bottom: var(--section-border);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.overview-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.overview-card:hover {
    box-shadow: var(--box-shadow);
}

.overview-card .icon {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Modules Section */
.modules {
    background-color: var(--light-color);
    border-bottom: var(--section-border);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.module-card:hover {
    box-shadow: var(--box-shadow);
}

.module-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--dark-color);
    color: var(--light-text);
    width: 30px;
    height: 30px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.module-card h3 {
    margin-top: 0.5rem;
    padding-right: 2rem;
}

.module-card .btn {
    margin-top: 1rem;
}

/* Visual Elements Section */
.visual-elements {
    background-color: var(--light-color);
    border-bottom: var(--section-border);
}

.diagrams-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.diagram-item {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.diagram-item:hover {
    box-shadow: var(--box-shadow);
}

.diagram-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.diagram-item h3 {
    padding: 1rem;
    text-align: center;
}

/* Journey Map Preview */
.journey-map-preview {
    background-color: var(--light-color);
    border-bottom: var(--section-border);
}

.journey-map-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.journey-features {
    margin: 2rem 0;
}

.journey-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.journey-features i {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

.journey-image img {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Resources Section */
.resources {
    background-color: var(--light-color);
    border-bottom: var(--section-border);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: left;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: var(--box-shadow);
}

.resource-card .icon {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.resource-card .btn {
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #999999;
}

.footer-nav h4, .footer-modules h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-nav ul li, .footer-modules ul li {
    margin-bottom: 0.5rem;
}

.footer-nav a, .footer-modules a {
    color: #999999;
}

.footer-nav a:hover, .footer-modules a:hover {
    color: var(--light-text);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Module Content Pages */
.module-header {
    background: var(--light-color);
    color: var(--dark-color);
    text-align: left;
    padding: 8rem 0 2rem;
    border-bottom: var(--section-border);
}

.module-header h1 {
    color: var(--dark-color);
    font-weight: 900;
}

.content-section {
    padding-top: 0;
}

.module-content {
    background-color: var(--light-color);
    padding: 2rem 0;
    position: relative;
}

.module-section {
    margin-bottom: 3rem;
    border-bottom: var(--section-border);
    padding-bottom: 2rem;
}

.module-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.module-section h2 {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.module-section h3 {
    color: var(--dark-color);
    margin-top: 2rem;
    font-weight: 700;
}

.module-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--section-border);
}

/* Related Articles Section (Bloomberg-style) */
.related-content {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.related-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-content ul {
    border-top: 1px solid var(--border-color);
}

.related-content li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-content a {
    font-weight: 600;
}

/* Journey Map Page */
.journey-map-container {
    background-color: var(--light-color);
    padding: 2rem 0;
}

.journey-map-visual {
    margin: 3rem 0;
    text-align: center;
}

.journey-map-visual img {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.pathway-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pathway-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.pathway-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.assessment-section {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

/* Diagrams Page */
.diagrams-container {
    background-color: var(--light-color);
    padding: 2rem 0;
}

.diagram-full {
    margin: 3rem 0;
    text-align: center;
}

.diagram-full img {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.diagram-description {
    max-width: 800px;
    margin: 2rem auto;
}

/* Reading List Page */
.reading-list-container {
    background-color: var(--light-color);
    padding: 2rem 0;
}

.reading-category {
    margin-bottom: 3rem;
    border-bottom: var(--section-border);
    padding-bottom: 2rem;
}

.reading-category:last-child {
    border-bottom: none;
}

.reading-category h2 {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.book-item {
    margin-bottom: 2rem;
}

.book-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.book-item p {
    margin-bottom: 0.5rem;
}

/* Worksheets Page */
.worksheets-container {
    background-color: var(--light-color);
    padding: 2rem 0;
}

.worksheet-module {
    margin-bottom: 3rem;
    border-bottom: var(--section-border);
    padding-bottom: 2rem;
}

.worksheet-module:last-child {
    border-bottom: none;
}

.worksheet-module h2 {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.worksheet-exercise {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.worksheet-exercise h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* Bloomberg-style Components */
.subscriber-box {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.subscriber-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.subscriber-only {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--light-text);
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .journey-map-preview .container {
        grid-template-columns: 1fr;
    }
    
    .journey-content {
        order: 2;
    }
    
    .journey-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    #menu-toggle {
        display: block;
    }
    
    #main-nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    #main-nav.active ul {
        left: 0;
    }
    
    #main-nav li {
        margin: 0;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 7rem 0 2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .module-header {
        padding: 6rem 0 1.5rem;
    }
}
