/* Raleway Font */
@font-face {
    font-family: 'Raleway';
    src: url('../Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../Raleway/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

a {
    text-decoration: underline;
    background-color: transparent;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #f8f9fa;
    color: #282828;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
}

.bg1 {
    background-image: url("../images/header_background.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.font-weight-800 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
}

.font-weight-200 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #25B3F5;
}

.nav-link.active {
    color: #25B3F5;
    font-weight: 700;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-left: -0.5rem;
}

.sidebar-nav .nav-link {
    border-radius: 0.25rem;
    color: #495057;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(37, 179, 245, 0.1);
    color: #25B3F5;
    padding-left: 0.5rem !important;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(37, 179, 245, 0.15);
    color: #25B3F5;
    padding-left: 0.5rem !important;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 179, 245, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: #f8f9fa;
        border-radius: 0.5rem;
        padding: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
    }
    
    .nav-link:hover {
        background-color: rgba(37, 179, 245, 0.1);
    }
}

.content-block {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.content-block:hover {
    background-color: rgba(37, 179, 245, 0.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-block p:last-child {
    margin-bottom: 0 !important;
}

.content-link {
    display: block;
    cursor: pointer;
}

.content-link:hover {
    text-decoration: none;
    color: inherit;
}

.d-flex {
    display: flex !important;
}

#page-content-wrapper {
    min-width: 100vw;
}

#sidebar-wrapper {
    background: #f8f9fa;
    border-right: 1px solid rgba(0,0,0,.125);
    position: relative;
    margin-left: -15rem;
    transition: margin .25s ease-out;
    z-index: 1;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
}

#wrapper {
    overflow-x: hidden;
}

h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    font-weight: 800;
}

h2, h3, h4, h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-left: 30px; /* Space for the symbol */
}

h2:before, h3:before, h4:before, h5:before {
    content: "▣"; /* Square with inner square symbol */
    position: absolute;
    left: 0;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* Class to hide the symbol and remove padding */
.no-symbol {
    padding-left: 0 !important;
}

.no-symbol:before {
    content: none !important;
    display: none !important;
}

h4 {
    font-size: 24px;
}

/* Mobile view - 80% size */
@media (max-width: 767px) {
    h1 {
        font-size: 25.6px; /* 80% of 32px */
    }

    h2, h3, h5 {
        font-size: 22.4px; /* 80% of 28px */
    }

    h4 {
        font-size: 19.2px; /* 80% of 24px */
    }

    h2:before, h3:before, h4:before, h5:before {
        font-size: 19.2px; /* 80% of 24px */
    }
    
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

li {
    margin-bottom: 15px;
}

.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #f8f9fa;
    z-index: 9999;
}

/* Progress Bar Color */
.reading-progress-bar {
    height: 100%;
    background: #25B3F5;
    width: 0%;
    transition: width 0.1s ease;
}
strong {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
}

ul {
    line-height: 1.5;
}

/* Topic dots journey styling */
.journey-container {
    position: relative;
}

/* Position the dot column */
.journey-container .col-auto {
    position: relative;
}

/* The timeline section between dots */
.timeline-line {
    position: absolute;
    width: 2px;
    background-color: #12002d;
    top: -15px;
    bottom: -15px;
    left: 45px;
    z-index: 1;
}

/* Special case for first and last items to limit line length */
.journey-container .row:first-child .timeline-line {
    top: 50%;
}

/* Fade out effect for the last timeline segment */
.journey-container .row:last-child .timeline-line {
    bottom: 20px;
    background: linear-gradient(to bottom, #12002d, transparent);
}

/* The dot that sits on the timeline */
.topic-dot {
    width: 20px;
    height: 20px;
    background-color: #12002d;
    border: 3px solid #12002d;
    border-radius: 50%;
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translate(-50%, -50%); /* Center the dot exactly */
    z-index: 2;
}

/* Hide the timeline and dots on mobile */
@media (max-width: 767.98px) {
    .timeline-line, .topic-dot {
        display: none !important;
    }
}