/* Base styles */
body {
    background-color: #212e73;
    overflow-x: hidden;
    font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

p {
    line-height: 1.5;
    font-size: 0.98em;
}

a {
    color: #445587;
}

a:hover {
    color: #2e4485;
    font-weight: bold;
}

.bg-white {
    background-color: white;
    min-height: calc(100vh - 150px);
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding: 0;
    height: 100%;
}

.row {
    margin: 0;
    height: 100%;
}

/* Navigation */
#mainNav {
    background-color: #212e73 !important;
}

#mainNav .navbar-toggler {
    font-size: 12px;
    right: 0;
    padding: 10px;
    text-transform: uppercase;
    color: white;
    border: 0;
    background-color: #3f4e9b;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

#mainNav .navbar-brand {
    color: white;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

#mainNav .navbar-brand.active,
#mainNav .navbar-brand:active,
#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
    color: #D3AC2B;
}

#mainNav .navbar-nav .nav-item .nav-link {
    font-size: 90%;
    font-weight: 700;
    padding: 0.5em 0.8em;
    letter-spacing: 1px;
    color: white;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
    color: #D3AC2B;
}

@media (min-width: 992px) {
    #mainNav {
        padding-top: 25px;
        padding-bottom: 25px;
        -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
        transition: padding-top 0.3s, padding-bottom 0.3s;
        border: none;
        background-color: transparent;
    }

    #mainNav .navbar-brand {
        font-size: 1.75em;
        -webkit-transition: all 0.3s;
        transition: all 0.3s;
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        padding: 1em 1em !important;
    }

    #mainNav.navbar-shrink {
        padding-top: 5px;
        padding-bottom: 5px;
        background-color: #212e73 !important;
    }

    #mainNav.navbar-shrink .navbar-brand {
        font-size: 1.25em;
        padding: 10px 0;
    }
}

/* Footer */
footer {
    padding: 25px 0;
    text-align: center;
    background-color: #212e73;
}

footer span.copyright {
    font-size: 90%;
    line-height: 40px;
}

/* Main layout */
.bg-white {
    background-color: white;
    min-height: calc(100vh - 150px);
    margin: 0;
    padding: 0;
}

.blog-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Sidebar - 25% width */
.sidebar {
    flex: 0 0 25%;
    background-color: white;
    padding: 20px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    border-right: 0.3px solid #35385a;
}

/* Spacer - 8% width */
.spacer {
    flex: 0 0 0%;
}

/* Content - 67% width */
.content {
    flex: 0 0 67%;
    padding: 40px;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

/* Menu section styles */
.menu-section {
    margin-bottom: 70px;
    padding-top: 30px;
    padding-left: 15px;
}

.menu-section h3 {
    color: #1e1f2b;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

.menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-section ul li {
    margin: 0 0 8px 0;
}

.menu-section ul li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #1e1f2b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.1em;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
    font-weight: 500;
}

.menu-section ul li a span {
    margin-left: 12px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.menu-section ul li a:hover span {
    color: #ffffff;
}

.menu-section ul li a:hover {
    background-color: #39408f;
    color: #ffffff;
}

.menu-section ul li a:hover i {
    color: #ffffff;
}

.menu-section ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #1e1f2b;
    font-size: 1.1em;
}

.menu-icon {
    width: 25px;  /* Adjust size as needed */
    height: 25px;  /* Adjust size as needed */
    margin-right: 5px;  /* Same as the original icon spacing */
    vertical-align: middle;  /* Aligns icon with text */
}

/* Content styles */
.content h1 {
    color: #1e1f2b;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 768px) {
    .col-md-3, .col-md-1, .col-md-8 {
        padding: 0;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .content {
        padding: 20px;
    }
}

/* Scrollbar customization */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1e1f2b;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #2d2e3d;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #373849;
}

/* Content Styles */
.content-section {
    position: relative;
    width: 100%;
    height: 100%;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.blog-post {
    margin-bottom: 40px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.blog-post h2 {
    color: #1e1f2b;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
    font-weight: 500px;
}

.blog-post .date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.blog-image {
    width: 60%;
    height: 350px;
    object-fit: cover;
    border-radius: 6px;
    margin: 15px auto;
    display: block;
}

.read-more {
    display: inline-block;
    color: #39408f;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
}

.read-more:hover {
    color: #1e1f2b;
}

/* Intro content styles */
#blogIntro {
    padding: 0;
    max-width: 1200px;
    margin: 0;
}

#blogIntro h1 {
    color: #1e1f2b;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
    font-weight: 700;
}

.intro-date {
    color: #666;
    font-size: 1.1em;
    margin: 30px 0;
    font-family: 'Roboto Slab', serif;
}

.intro-image {
    width: 45%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block; 
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #1e1f2b;
    margin: 20px auto;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

/* Course intro styling */
.course-intro {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 30px 0;
    color: #1e1f2b;
}

/* Collapsible sections styling */
.section-container {
    margin: 20px 0;
}

.collapsible {
    background-color: transparent;
    color: #1e1f2b;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.collapsible:hover {
    background-color: #f0f0f0;
}

.triangle {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.collapsible.active .triangle {
    transform: rotate(90deg);
}

.collapsible.nested {
    background-color: #f8f9fa;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.content-collapse {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #ffffff;
    opacity: 0;
}

.content-collapse.active {
    max-height: 2000px;
    opacity: 1;
    padding: 15px 25px;
}

/* Section specific styling */
.section-image {
    width: 80%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    margin: 20px 0;
}

.discussion-posts {
    margin: 20px 0;
}

.post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post h3 {
    color: #1e1f2b;
    margin-bottom: 10px;
}

/* Discussion section styles */
.discussion-intro {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 20px 0;
    color: #1e1f2b;
}

.nested-section {
    margin: 10px 0;
}

/* Nested collapsible styles */
.collapsible.nested:hover {
    background-color: #e9ecef;
}

/* Remove this if it exists */
.nested-section .content-collapse:not(.active) {
    display: none;
}

/* Style for when content is expanded */
.nested-section .collapsible.active + .content-collapse {
    padding: 15px 25px;
    max-height: fit-content;
}

/* Adjust spacing for nested content */
.discussion-posts {
    margin: 20px 0;
}

.discussion-posts .nested-section:not(:last-child) {
    margin-bottom: 15px;
}

/* Update nested collapsible styles */
.nested-section .content-collapse {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.nested-section .content-collapse.active {
    max-height: 2000px;
    opacity: 1;
    padding: 15px 25px;
}

.section-video {
    width: 60%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
} 