body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}
.up-head{
    background-color: rgb(1, 63, 249);
    width: 100%;
    height: 40px;
}
.header {
    display: flex;
    justify-content: space-between; /* Space between left and right sections */
    align-items: center; /* Vertically align items */
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 10px 20px; /* Add padding for spacing */
}

.left-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Adds space between logo and text */
    margin: 0 10px;
}

.left-section img {
    width: 80px; /* Responsive width */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain;
    border-radius: 100%;
}

.left-section div {
    display: flex;
    flex-direction: column;
}

.left-section h1 {
    font-size: 1.9rem;
    margin: 0;
    color: #1747f4;
}
.left-section p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #16479b;
}

/* Right Section */
.right-section {
    display: flex;
    gap: 20px; /* Adds spacing between logo containers */
    align-items: center;
    margin: 0 30px;
}

.logo-container {
    display: flex;
    flex-direction: column; /* Stack logo and text vertically */
    align-items: center; /* Center align items */
    text-align: center;
    max-width: 150px; /* Optional: Constrain width for logos and text */
}

.logo-container img, .left-section img {
    width: 70px; /* Adjust logo size */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.logo-container img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}
.left-section img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}
.logo-container p {
    margin-top: 5px; /* Space between logo and text */
    font-size: 0.6rem;
    color: #003a9d; /* Text color */
}

/* Hide short text by default */
.short-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Stack sections vertically */
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .left-section img {
        width: 50px;
        height: auto; /* Adjust logo size for smaller screens */
    }

    .left-section h1 {
        font-size: 1.20rem;
    }

    .left-section p {
        font-size: 0.8rem;
    }

    .right-section {
        flex-wrap: wrap; /* Allows logos to wrap to a new line */
        justify-content: center;
        gap: 10px;
    }

    .logo-container {
        max-width: 80px; /* Shrink the logo container width */
    }

    .logo-container img {
        width: 40px;
        flex-direction: row; /* Reduce logo size for smaller devices */
    }

    .logo-container p {
        font-size: 0.60rem; /* Slightly smaller text */
    }

    .full-text {
        display: none; /* Hide the full text */
    }

    .short-text {
        display: block; /* Show the short text */
        font-size: 0.85rem; /* Slightly smaller font for short text */
    }
}

/* styles for .clg-navbar */ 
.clg-navbar {
    display: flex;
    justify-content: center; /* Center content */
    align-items: center;
    gap: 20px; /* Ensure even spacing between all buttons */
    padding: 10px 0;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    background-color: rgb(1, 63, 249);
    transition: all 0.3s ease-in-out; /* Smooth transition */    
}
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    background-color: rgb(1, 63, 249); /* Adjust if needed */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0; /* Ensure padding remains same */
}

.fixed-nav-padding {
    padding-top: 60px; /* Adjust based on navbar height */
}
/* Fix Content Shift */
body.fixed-nav-padding {
    padding-top: 60px; /* Prevents content jumping */
}

.clg-navbar a{
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: rgb(1, 63, 249);
    font-size: 1rem;
    transition: 0.3s ease;
    color: rgb(255, 255, 255);
}

.clg-navbar a:hover {
   background-color: rgb(169, 209, 244);
   color: rgb(27, 25, 25);
}

.dropdown{
    position: relative;
    display: inline-block;
}
.dropdown-btn{
    cursor: pointer;
    background-color: aliceblue;
    padding: 10px 15px;
    border-radius: 8px;
    display: block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex-direction: column;
    left: 0;
    z-index: 200;
}
.dropdown-content a {
    padding: 10px;
    display: block;
    color: black;
    text-decoration: none;
    background-color: aliceblue;
}
.dropdown-content a:hover {
    background-color: #2151ff;
    color: rgb(229, 226, 226);
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Wrap both "Home" and other buttons in a flex container */
.clg-navbar > * {
    display: flex;
    align-items: center;
    gap: 20px; /* Ensures equal spacing between all elements */
}

.a-btn{
    background-color: #011961 !important;
    color: rgb(255, 255, 255) !important;
    border-radius: 12px !important; 
}
.a-btn:hover{
    background-color: #052480 !important;
    border: 2px solid rgb(173, 208, 236); 
}
  

/* Menu Icon (Hidden on Large Screens) */
.menu-icon {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Hidden on large screens */
    position: absolute;
    right: 20px;
    color: whitesmoke;
}
/* Sidebar (Initially Hidden for Small Screens) */
.sidebar {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgb(255, 255, 255);
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    transition: right 0.65s ease-in-out; /* Smooth slide-in effect */

}
.sidebar.show {
    right: 0; /* When toggled, slide in */
}
/* Sidebar Buttons */
.sidebar a {
    text-decoration: none;
    display: block;
    color: black;
    padding: 12px;
    font-size: 1rem;
    background-color: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #012dcb;
    color: white;
}

.sidebar-dropdown-content{
    display: none;
    padding-left: 20px;
}
.sidebar-dropdown-btn{
    cursor: pointer;
    display: block;
    padding: 12px;
}
.sidebar-dropdown-content a{
    display: block;
    padding: 8px;
}
/* Close Icon */
.close-icon {
    font-size: 1.8rem;
    background: none;
    border: none;
    align-self: flex-end;
    cursor: pointer;
    color: rgb(12, 10, 10);
}


/* Responsive Styles */
@media (max-width: 768px) {
    .clg-navbar {
        justify-content: space-between; /* Move home button to left */
    }

    .nav-buttons {
        display: none; /* Hide normal buttons on small screens */
    }

    .menu-icon {
        display: block; /* Show menu icon on small screens */
    }
}

/* Marquee Wrapper */
.marquee-wrapper {
    width: 100%;
    background: rgb(1, 63, 249); /* Deep Blue */
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 50px; /* Space between marquees */
    cursor: default;
}

/* Marquee Content */
.marquee-content {
    display: flex;
    gap: 100px; /* Space between messages */
    animation: marquee 60s linear infinite; /* Adjust speed */
}

/* Pause animation on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Marquee span styling - ONLY for marquee */
.marquee-content span{
    font-size: 13px;
    color: white;
    font-weight: bold;
}

/* Marquee Animation */
@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}