html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

footer {
    flex-shrink: 0;
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

/* Styles for Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: #080000;
    padding: 5px;
    position: relative; /* Add position relative */
    box-shadow: 0 4px 8px 0 #FF7C19; /*, 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
}

.logo {
    position: relative; /* Add position relative to the logo container */
    display: flex; /* Display logo and college name horizontally */
    align-items: center;
}

.logo img {
    width: 80px;
    height: 85px;
    margin-right: 10px;
}

.logo h1 {
    margin-top: 5px; /* Add spacing between logo and college name */
    font-family: Buffalo;
    font-size: 25px;
}

.settings {
    display: none; /* Hide settings by default */
}

.menu-toggle {
    display: none; /* Hide menu toggle by default */
    flex-direction: column;
    cursor: pointer;
    position: absolute; /* Position menu toggle absolutely */
    top: 20px; /* Adjust top position */
    right: 20px; /* Adjust right position */
}

.line {
    width: 25px;
    height: 3px;
    background-color: #ab0606e8;
    margin: 3px 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-right: 20px;
    position: relative; /* Add position relative */
}

/* Styles for Navigation Bar */
.nav-links li ul {
    display: none; /* Hide dropdown by default */
    position: absolute; /* Position dropdown absolutely */
    top: 100%; /* Align dropdown below parent */
    left: 0;
    background-color: rgba(255, 255, 255, 0.657); /* Transparent background */
    padding: 20px;
    width: 150px;
}

/* For desktop view */
@media screen and (min-width: 769px) {
    .nav-links li ul {
        display: none; /* Hide dropdown by default in desktop view */
        z-index: 1; /* Set z-index for desktop view */
    }

    .nav-links li:hover ul {
        display: block; /* Display dropdown on hover */
    }
}

.nav-links li:hover ul {
    display: block; /* Display dropdown on hover */
}

.nav-links li ul li {
    margin: 5px 0;
    z-index: 1;
}

.nav-links li a {
    color: #070000;
    text-decoration: none;
    z-index: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: left;
        background-color: rgba(255, 255, 255, 0.5); /* White with 50% transparency */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        z-index: 1; /* Ensure dropdown is above content */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Show menu toggle for mobile view */
        cursor: pointer;
        margin-top: 10px;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .settings {
        display: flex; /* Show settings icon for mobile view */
    }

    .logo {
        flex-direction: column; /* Display logo and college name vertically */
        align-items: center;
    }

    .logo h1 {
        margin-top: 5px; /* Add spacing between logo and college name */
        text-align: center;
        font-family: Buffalo;
        font-size: 25px;
    }

    .programs .sub-menu {
        display: none; /* Hide submenu by default */
        position: static; /* Change position to static for mobile view */
       /* background-color: #ffffffa8;  Change background color for better visibility */
        background-color: rgba(255, 255, 255, 0.5);
        padding-left: 40px;
        width: 100%; /* Full width */
        align-items: right;
    }

    .programs.active .sub-menu {
        display: block; /* Display submenu when "Programs" is clicked */
    }

    .programs.active > a {
        color: #070000; /* Change color of "Programs" link when submenu is active */
    }

    .programs.active:hover > a {
        color: #150101; /* Retain color of "Programs" link when hovered */
    }

    .programs.active .sub-menu li {
        padding: 10px 20px; /* Add padding for better spacing */
        border-bottom: 1px solid #fff; /* Add border between list items */
    }

    .programs.active .sub-menu li:last-child {
        border-bottom: none; /* Remove border from last list item */
    }

    .programs.active .sub-menu li a {
        color: #000000; /* Change text color */
        text-decoration: none; /* Remove underline */
    }

    .programs.active .sub-menu li a:hover {
        background-color: rgba(161, 159, 159, 0.657); /* Change background color on hover */
    }

    .nav-links li ul {
        position: static; /* Change position to static for mobile view */
        display: block; /* Display dropdown list for mobile view */
        background-color: rgba(255, 255, 255, 0.5); /* White with 50% transparency */
        padding: 0; /* Reset padding */
        width: 100%; /* Full width */
    }

    .nav-links li ul li {
        padding: 10px 10px; /* Add padding for better spacing */
        margin-right: 20px;
    }

    .nav-links li ul li:last-child {
        border-bottom: none; /* Remove border from last list item */
    }

    .nav-links li ul li a {
        color: #060000; /* Change text color */
        text-decoration: none; /* Remove underline */
    }

    .nav-links li ul li a:hover {
        background-color: rgba(111, 108, 108, 0.1); /* Change background color on hover */
    }
}

/* Slideshow Styles */

/* Styles for Notification Panel */
.notification-panel {
   /* background-color: #f44336;*/
   background-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 5px;
    text-align: center;
}

/* Styles for About Us Panel */
.about-us {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack sections vertically on mobile */
    padding: 10px 20px; /* Adjust padding as needed */
    box-sizing: border-box; /* Include padding in width calculation */
}

.about-content,
.principal-info {
    width: 100%; /* Full width initially on mobile */
    text-align: center; /* Align content to center */
}

.about-content h2 {
    margin-bottom: 10px;
}

.about-content p,
.principal-info p {
    font-size: 16px; /* Reduce font size for better readability on mobile */
    line-height: 1.5;
}

.about-content .btn {
    margin-top: 10px; /* Add some space above the button */
}

.principal-info img {
    max-width: 100%; /* Ensure the image doesn't exceed its container */
    margin: 0 auto; /* Center align the image */
}

/* Media Query for larger screens */
@media only screen and (min-width: 600px) {
    .about-us {
        flex-direction: row; /* Switch to horizontal layout on larger screens */
        align-items: flex-start; /* Align items to the top */
    }
    
    .about-content {
        width: 70%; /* Set width for the first section */
        margin-right: 20px; /* Add some space between sections */
        text-align: justify; /* Justify text on larger screens */
    }
    
    .principal-info {
        width: 30%; /* Set width for the second section */
        text-align: center; /* Align content to center */
        display: flex; /* Use flexbox for content alignment */
        flex-direction: column; /* Stack content vertically within the section */
        justify-content: flex-start; /* Align content to the top */
        padding-left: 20px; /* Add padding to the left within the section */
    }
}

/* Styles for Notifications Panel */
.containers {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.notifications-containers {
    display: flex;
    justify-content: space-between;
    max-width: 100%; /* adjust max-width as needed */
}

.notificationss, .news-eventss {
    width: 700px; /* adjust width as needed */
}

.notificationss {
    padding-right: 30px;
}

.notificationss .btn,
.news-eventss .btn {
    background-color: #ffffff;
    text-align: right; /* Align button text to the right */
    display: block; /* Change display to inline-block */
    color: #0a0101;
}

.notificationss .btn:hover,
.news-eventss .btn:hover {
    background-color: #b7b8b2;
}

@media (max-width: 767px) {
    .notifications-containers {
        flex-direction: column;
        align-items: center;
    }

    .notificationss, .news-eventss {
        width: 100%;
    }
}

/* Styles for missionVision-container Panel */
.missionVision-container {
    display: flex;
    flex-direction: column;
}

.mission,
.news-events {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.mission h2,
.vision h2,
.mission p,
.vision p,
.mission .btn,
.vision .btn {
    margin-bottom: 10px;
}

/* For larger screens */
@media screen and (min-width: 768px) {
    .missionVision-container {
        flex-direction: row; /* Display sections side by side */
    }

    .mission,
    .vision {
        width: 40%; /* Each section takes 40% of the container width */
    }

    .mission {
        margin-right: 20px; /* Add some space between the sections */
    }
}

/* Styles for Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
