:root {
    --color1: #5E97C5;      /* Primary blue */
    --color2: #aecbe2;      /* Secondary light blue */
    --color1_25: #d7e5f1;   /* Lighter shade for hover/active */
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    hyphens: auto;
}

/* Sidebar Menu for large screens */
#sidebarMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 225px;
    height: 100vh;
    background: var(--color1) url('rolotek01.png') repeat; /* Tiled background */
    padding: 20px;
    color: white;
}

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

.decorative-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.menu a {
    color: black;
    text-shadow: 
        -1px -1px 0 white,  
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
    text-decoration: none;
    display: block;
    padding: 5px 0 5px 10px;
    font-size: 14px;
    font-weight: bold; /* Make menu text bold */
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.menu a:hover {
    background-color: var(--color2);
}

.menu a.active {
    background-color: transparent;
    color: black;
    font-weight: bold;
}

.menu a.active:hover {
    background-color: transparent;
}

/* Main content */
#mainContent {
    margin-left: 225px;
    padding: 20px;
    flex: 1;
    background: white;
}

#mainContent p {
    max-width: 60rem;
    overflow-wrap: anywhere;
}

/* Common heading styles */
.page-heading, .welcome-heading {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Main image in main content */
.main-image {
    width: 75%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
}

/* Team photos (om-oss.html) */
.team-photo {
    width: 150px;
    height: auto;
    margin-right: 20px; /* Space between image and text */
    border-radius: 5px;
}

/* Team member styling */
.team-member {
    margin-bottom: 30px; /* Spacing between team members */
    max-width: 60rem;
}

/* Flex container for image and bio */
.team-content {
    display: flex;
    align-items: flex-start; /* Align items at the top */
}

/* Text container for name and bio */
.team-text {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column; /* Stack name and bio vertically */
    max-width: 60rem; /* Limit text width for readability on large screens */
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Course schedule (utbildning-ritteknik.html) */
.course-schedule {
    background: linear-gradient(to bottom, var(--color1_25), var(--color2));
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 60rem;
}

.course-schedule h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.course-schedule .course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.course-schedule .course-item:last-child {
    border-bottom: none;
}

.course-schedule .course-date {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 150px;
}

.course-schedule .course-details {
    flex: 1;
    font-size: 1rem;
    overflow-wrap: break-word;
}

/* Footer */
footer {
    background-color: var(--color2);
    color: black;
    padding: 15px 0;
    width: 100%;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    color: #333;
}

/* Header for small screens */
header {
    background-color: var(--color1);
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #sidebarMenu {
        display: none;
    }
    #mainContent {
        margin-left: 0;
    }
    header {
        display: flex;
    }
}

@media (min-width: 992px) {
    header {
        display: none;
    }
}

@media (max-width: 768px) {
    .course-schedule .course-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .course-schedule .course-date {
        margin-bottom: 10px;
    }
    /* Stack image and text vertically on small screens */
    .team-content {
        flex-direction: column;
    }
    .team-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Ensure hamburger icon visibility with higher specificity */
header .navbar-toggler {
    border: none;
    padding: 5px;
}

header .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgb(255,255,255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 2rem;
    height: 2rem;
    display: block;
    background-color: transparent;
}

header .navbar-toggler .navbar-toggler-icon::before {
    content: "☰";
    color: white;
    font-size: 1.5rem;
    display: block;
    line-height: 2rem;
    text-align: center;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    header .navbar-toggler .navbar-toggler-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    header .navbar-toggler .navbar-toggler-icon::before {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
}

/* Social icon styling for footer */
footer .social-icon {
    color: #0A66C2; /* LinkedIn blue */
    font-size: 2rem;
    margin-right: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-icon:hover {
    color: #0A77D5; /* Slightly lighter LinkedIn blue on hover */
}

/* Specific styling for Unicode LinkedIn icon (if not using Font Awesome) */
footer .linkedin-icon {
    font-family: Arial, sans-serif;
    font-weight: bold;
}