/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


ul {
    list-style-type: none;
    padding: 5px;
    margin-left: 20px;
}
li {
    padding: 5px;
}
a {
    margin-right: 10px;
}
p {
    margin: 8px 0;
    line-height: 1.5;
}
.header-wrapper {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: flex-start; /* Align to the left */
    background-color: #ffffff;
    padding: 15px;
    border-bottom: 1px solid #b9b9b9;
    width: 100%;
    height: 80px; /* Ensure consistent height */
    box-sizing: border-box;
}

/* Square Image on the Left */
.header-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 60px; /* Space between image and links */
    border-radius: 4px; /* Optional: Rounded corners */
}

/* Navigation Links Next to the Image */
.headerlink_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

.headerlink {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 35px;
}

/* Header Link Styles */
.headerlink a {
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    padding-bottom: 2px; /* Space for the underline */
    transition: color 0.3s, border-bottom 0.3s; /* Transition for color and underline */
}

/* Hover Effect for Header Links */
.headerlink a:hover {
    color: #0056b3; /* Change color on hover */
    font-weight: bold;
    border-bottom: 3px solid #0056b3;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Layout Container */
.layout-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
}
/* Sidebar Toggle Section (Below Header) */
.sidebar-toggle-container {
    width: 100%;
    height: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 25px ;
    background-color: #f8f9fa;
}

/* Hide default checkbox */
.sidebar-checkbox {
    display: none;
}

/* Toggle switch styling */
.sidebar-toggle {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #007BFF;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3px;
}

/* Circular slider inside the switch */
.sidebar-toggle .toggle-slider {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0);
}

/* Checked state (Move slider right, change color) */
#sidebar-toggle:checked + .sidebar-toggle {
    background-color: #ccc;
    justify-content: flex-start;
}

#sidebar-toggle:checked + .sidebar-toggle .toggle-slider {
    transform: translateX(0);
}

/* Hide sidebar when checked */
#sidebar-toggle:checked ~ .layout-container .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    position: absolute;
}

/* Expand content when sidebar is hidden */
#sidebar-toggle:checked ~ .layout-container .main_container {
    width: 100%;
    padding: 30px;
}

.sidebar-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between toggle and text */
    justify-content: flex-start;
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #b9b9b9;
}

.sidebar-toggle-label {
    font-size: 16px;
    font-weight: bold;
    color: #b9b9b9;
    cursor: default;
    margin-left: 50px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #ffffff;
    transition: transform 0.3s ease-in-out;
    padding: 15px;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #b9b9b9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Hide sidebar when checkbox is checked */
.sidebar-checkbox:checked ~ .layout-container .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
}

/* Expand content when sidebar is hidden */
.sidebar-checkbox:checked ~ .layout-container .main_container {
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
}

/* Sidebar Title */
.sidebar h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    cursor: default;
}

/* Sidebar Links */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 10px;
    border-radius: 5px;
    transition: color 0.3s;
    color: #007bff; /* Blue text */
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
}

.sidebar ul li a {
    color: inherit;
    text-decoration: none;
}

.sidebar ul li:hover a {
    color: #0056b3;
}

.sidebar ul li.active {
    font-weight: bold;
    border-left: 4px solid #007bff;
}

/* Sidebar Icons */
.sidebar-icon {
    font-size: 18px;
}

/* Sidebar Icons image*/
.sidebar-icon img {
    width: 25px;
    height: 25px;
}

/* Sublevel Styles */
.sidebar ul li.sublevel {
    padding-left: 30px;
    font-size: 0.9em;
    color: #555;
}

.sidebar ul li.sublevel a {
    color: #555;
}

.sidebar ul li.sublevel:hover a {
    color: #333;
}

.sidebar ul li.sublevel.hidden {
    display: none;
}

.sidebar-line {
    border-bottom: 1px solid #b9b9b9;
    margin: 15px 0;
}

/* Layout Container */
.layout-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
}

/* Hide sidebar when checked */
.hidden-sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    position: absolute;
}

/* Expand content when sidebar is hidden */
.expanded-content {
    width: 100%;
}

/* Main Content */
.main_container {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    max-width: 1000px;
    flex-direction: column;
    align-items: flex-start;
    overflow-x: auto;
    transition: width 0.5s ease-in-out;
}


.nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px auto;    /* Center container */
    max-width: 400px;     /* Optional: Limit max width for better centering */
    text-align: center;
}
.nav-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 20px;
    color: white;
    background-color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100px;
    overflow: hidden;
}

.nav-button:hover {
    background-color: #0056b3;
}

.nav-button.previous {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.nav-button.next {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Triangles using pseudo-elements */
.nav-button.previous::before,
.nav-button.next::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
}

.nav-button.previous::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent white transparent transparent;
    left: 15px;
}

.nav-button.next::after {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent white;
    right: 15px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.image-card {
    position: relative;
    max-width: 100%;
    margin: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.image-card-header {
    background-color: #e0e0e0;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.image-card-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    cursor: pointer;
    display: block;
}

.image-card-footer {
    background-color: #f1f1f1;
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
}

.image-card-footer a {
    color: #007bff;
    text-decoration: none;
}

.image-card-footer a:hover {
    text-decoration: underline;
}

/* Modal Styling */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255, 0.95); /* Semi-transparent background */
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.image-modal-caption {
    text-align: center;
    color: #f1f1f1;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #0017c1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
