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

/* Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    scroll-behavior: smooth;
    color: #000000;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    background-size: 600% 600%;
    text-decoration-color: azure;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #4eb5f1, #259EE4);
    color: #f1f1f1;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000; /* Ensure the header stays above all other content */
    top: 0;
    left: 0;
    height: 120px;
}

.header-image img {
    position: absolute;
    height: 120px;
    right: 0;
    width: 150px;
    top: 0;
}
.back-image img {
    position: absolute;
    height: 50px;
    left: 0;
    width: 120px;
    margin-top: 0;
    margin-left: 0;
    top: 25px;
}
.back-image img:hover, .header-image img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.header-image img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

header h1 {
    font-family: 'RockFont', Arial, sans-serif;
    font-size: 48px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    padding-top: 10px;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #f1f1f1;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff9900;
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.6);
}

/* Container for Sidebar and Content */
.container {
    display: flex;
    flex-grow: 1;
    position: relative;
    min-height: calc(100vh - 90px); /* Adjust for header */
    padding-top: 80px; /* Space for the fixed header */
    padding-bottom: 50px; /* Space for the footer */
    z-index: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    color: #ecf0f1;
    height: calc(100vh - 205px); /* Adjust for header */
    position: absolute; /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    padding: 20px;
    box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 0; /* Lower than header */
    flex-shrink: 0;
    top: 115px;
    z-index: 10;
}

.sidebar h2 {
    color: #259EE4;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 6px solid #0e4a6d;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #259EE4;
    text-decoration: none;
    font-size: 25px;
    padding: 10px 15px;
    display: block;
    border-radius: 6%;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 4px solid #259EE4;
}

.sidebar ul li a:hover {
    background-color: #1b4961;
    color: #ffffff;
}

/* Collapse Button */
.collapse-btn {
    background-color: #fefffe;
    color: white;
    border: none;
    cursor: pointer;
    width: 120%;
    padding: 5px;
    text-align: left;
    margin-bottom: 15px;
    height: 55px;
}

.collapsed {
    width: 100px;
}
.sidebar.collapsed nav ul {
    display: none;
}

.collapsed + .content {
    margin-left: 60px;
}

/* Content Styles */
.content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    flex-grow: 1; /* Allow content to grow and fill remaining space */
    width: calc(100% - 250px);
    min-height: calc(100vh - 170px); /* Adjust for header */
    overflow-y: auto;
}

/* Center Section for Heading */
.center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 80px;
}

.center h1 {
    color: rgb(0, 0, 0);
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Centered Content */
.centered-content {
    display: inline;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 500px;
}

.centered-content h2 {
    font-size: 46px;
    margin-bottom: 20px;
}

.centered-content p {
    font-size: 28px;
    margin-top: 0; /* Remove the gap between paragraph and heading */
}

/* Footer Styles */
footer {
    background-color: #259EE4;
    color: #fff;
    padding: 10px 0;
    width: 100%; /* Ensure footer spans full width */
    position: relative;
    bottom: -50;
    clear: both;
    margin-top: auto;
    z-index: 100;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-container div {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Divider styling */
.footer-container div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0px;
    height: 60px;
    background-color: #fff;
    opacity: 1;
}

.quick-links ul {
    list-style: none;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: #fff;
    text-decoration: none;
}

.quick-links ul li a:hover {
    text-decoration: underline;
}

.contact-details p {
    margin: 5px 0;
}

.qr-code img {
    width: 150px;
    height: 150px;
}

/* Responsive Sidebar and Footer on Small Screens */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-container div {
        margin-bottom: 20px;
    }

    .footer-container div:not(:last-child)::after {
        display: none;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
    }
}
