:root {
    --yellow: #f7eb3c;
    --yellow2: #fff458;
    --green: #1c8502;
    --green2: rgb(50, 180, 17);
    /* CSS HEX */
    --cool-gray: #909CBAff;
    --jonquil: #FECC05ff;
    --dartmouth-green: #056835ff;
    --black: #000000ff;
    --licorice: #201A16ff;
}

.carousel-item {
    height: 90vh;
    min-height: 300px;
}

.carousel-caption {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%);
    z-index: 2;
    width: 80%;
}

.carousel-caption h5 {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--jonquil);
    font-weight: bold;
    /* margin-top: 25px; */
}

.carousel-caption p {
    width: 60%;
    margin: auto;
    font-size: 22px;
    line-height: 1.9;
    font-weight: bold;
}

.carousel-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.carousel-item img {
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

.navbar-nav a {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.navbar-light .navbar-brand {
    color: #000;
    font-size: 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

a img {
    height: 50px;
}

.bg-yellow ,.btn-yellow {
    background: var(--jonquil);
    color: white;
}

.bg-green, .btn-green {
    background-color: var(--dartmouth-green);
    color: white;
}



.btn-yellow:hover {
    background: var(--jonquil2);
    color: white;
}

.btn-green:hover {
    background-color: var(--dartmouth-green2);
    color: white;
}

.scrollspy-example
 {
    height: 450px;
    overflow:scroll;
    color:rgb(0, 0, 0);

 }
 .scrollspy-example .container-fluid {
    border-bottom: 1px solid var(--cool-gray);
    padding: 30px;
 }

 .login-form {
    max-width: 750px;
 }
 .navbar .mobile-nav {
    padding: 0 50px;
}

.dpa-text-h3 {
    color: black;
    font-weight: bold;
}
.data-policy-box {
    color: black;
    margin-top: 80px;
}
.container-dpa {
    /* border: 1px solid var(--cool-gray); */
    height: 50vh;
    overflow-y: scroll;
}

.text-bold {
    font-weight: bold;
}

.login-page {
    height: 90vh;
    /* border-top:10px solid black;
    border-bottom:10px solid black; */

}
.border-nav{
    border-bottom: 10px solid black;
}


.card img {
    height: 400px;
}

.news-image {
    height: 150px;
    width:150px;
}

.img-preview {
    height: 300px;
    width:100%;
}

.navbar {
    z-index: 1050; /* Higher than Bootstrap modals */
    position: relative; /* Ensure z-index is respected */
}

@media (max-width: 768px) {

    .navbar {
        width: 100%;
    }
    .navbar-collapse {
        width: 100%;
        background: white; /* Ensure visibility */
        padding: 10px;
    }
    .navbar-toggler {
        border: none;
    }
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
    .logo-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Make sure buttons appear below text */
   .mobile-buttons {
        display: flex;
        flex-direction: row; /* Puts buttons side by side */
        justify-content: center; /* Centers them */
        align-items: center;
        gap: 10px; /* Adds space between buttons */
        width: 100%;
        flex-wrap: wrap; /* Ensures responsiveness */
    }

    .mobile-buttons a {
        max-width: 140px; /* Adjust width */
        padding: 6px 12px;
        margin-bottom: 10px;
        font-size: 14px;
        text-align: center;
    }

    /* Center the logos */
    .logo-container {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center;
        gap: 0px; /* Add space between logos */
    }

   .navbar .mobile-nav {
       padding: 0;
       align-items: start;
   }
   .navbar .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden;
    padding-left: 5px !important;
    padding-right: 10px !important;
}

body {
    overflow-x: hidden; /* Ensures no horizontal scrollbars */
}



   .login-page {
       height: 100%;
   }
   .login-page .bg-yellow {
    padding: 20px;
   }
   logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures logos stay inside */
    text-align: center;
    width: 100%;
}

.text-container {
    text-align: center;
    display: block;
    width: 100%;
}

.logo-text {
    display: block; /* Ensures it goes below the logo */
    font-size: .8rem !important; /* Reduce font size */
    font-weight: bold;
    margin-top: 5px;
}

.subtitle {
    font-size: 0.8rem; /* Adjust subtitle size */
}


/* Sidebar Styling */
/* Hide sidebar by default */
.sidebar {
    position: fixed;
    top: auto;
    left: -250px; /* Start hidden */
    width: 200px;
    height: 70%;
    background: #333;
    color: white;
    transition: 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 1000;
    display: none; /* Hide on larger screens */
}

/* Show sidebar when toggled */
.sidebar.show {
    left: 0;
}

/* Sidebar menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    padding: 15px;
    text-align: center;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar-menu li a:hover {
    background: #575757;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .sidebar {
        display: block; /* Show sidebar in mobile */
    }
}

@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 20px; /* Smaller heading */
        font-weight: bold;
    }

    .carousel-caption p {
        font-size: 14px; /* Smaller paragraph */
        line-height: 1.4; /* Improve spacing */
        padding: 5px;
    }

    .carousel-caption {
        bottom: 15px; /* Moves text higher */
        width: 90%; /* Reduce width so it doesn't overflow */
        background: rgba(0, 0, 0, 0.6); /* Add dark background for readability */
        padding: 8px;
        border-radius: 5px;
    }
}
@media (max-width: 768px) {
    .carousel-caption {
        position: absolute;
        bottom: 10px; /* Moves text lower */
        left: 50%;
        transform: translateX(-50%);
        max-width: 80%; /* Prevents overflow */
        text-align: center;
        padding: 10px;
    }
}
.carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 20px;
    bottom: 5%;
}

/* Fix SPUPAA container */
.spupaa-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack elements properly */
    text-align: center;
    gap: 10px; /* Space between elements */
    max-width: 90%; /* Prevents overflow */
    margin: auto;
}

/* Fix SPUPAA logo scaling */
.spupaa-logo {
    width: 120px; /* Default size */
    height: auto; /* Maintain aspect ratio */
    max-height: 120px;
    object-fit: contain;
}

/* Fix text size */
.spupaa-container h5 {
    font-size: 30px;
    font-weight: bold;
    color: #FFD700; /* Gold color */
}

/* Desktop - Adjust to be proportional */
@media (min-width: 1024px) {
    .spupaa-logo {
        width: 200px;
        max-height: 200px;
    }
}

/* Tablet - Reduce size slightly */
@media (max-width: 992px) {
    .spupaa-logo {
        width: 150px;
        max-height: 150px;
    }
}

/* Mobile - Reduce and stack elements */
@media (max-width: 768px) {
    .spupaa-container {
        flex-direction: column;
    }

    .spupaa-logo {
        width: 120px;
        max-height: 120px;
        margin-bottom: 10px;
    }

    .carousel-caption h5 {
        font-size: 18px;
    }
}



/* Ensures the logo does NOT zoom in */


/* Fixes issues on larger screens */
@media (min-width: 1024px) {
    .spupaa-logo {
        width: 180px;
        max-height: 180px;
    }
}

/* Tablet View */
@media (max-width: 992px) {
    .spupaa-logo {
        width: 140px;
        max-height: 140px;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .spupaa-container {
        flex-direction: column;
    }

    .spupaa-logo {
        width: 120px;
        max-height: 120px;
        margin-bottom: 10px;
    }

    .carousel-caption h5 {
        font-size: 18px;
    }
}


}
/* Container to prevent overflow and keep content aligned */
.spupaa-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px; /* Space between logo and text */
    max-width: 80%; /* Prevents overflow */
    margin: auto;
    flex-wrap: wrap; /* Allows wrapping on small screens */
}
.spupaa-logo {
    max-width: 200px;  /* Set fixed width */
    max-height: 200px; /* Set fixed height */
    width: auto;
    height: auto;
    object-fit: contain; /* Prevents cropping */
    display: block; /* Prevents extra spacing */
}
/* Add degree css */
.degree-form-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.degree-form-container .form-group {
    margin-bottom: 20px;
}

.degree-form-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.degree-form-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.degree-form-container .btn-success {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.degree-form-container .btn-success:hover {
    background-color: #218838;
}

.offcanvas {
    background-color: #f7eb3c !important; /* Your yellow */
}
.offcanvas .offcanvas-title {
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;
}
.offcanvas .nav-link {
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.75rem 0;
}
.offcanvas .nav-link:hover {
    color: #fff;
    background: #1c8502;
    border-radius: 0.5rem;
}
.btn-close {
    filter: invert(1);
}
.logo-header, .text-container {
    width: 100%;
}
.logo-text {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    word-break: break-word;
    white-space: normal;
    line-height: 1.1;
    padding: 0.2rem 0.5rem;
}
@media (max-width: 767.98px) {
    .logo-text {
        font-size: 1.1rem;
        padding: 0.2rem 0.2rem;
    }
    .logo-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo-container img {
        height: 36px;
        width: auto;
    }
}
