*{
    box-sizing: border-box;
}
body {
    background-color: #0172BE;
}
.navbar {
    background-color: #0d6efd;
}
.navbar-brand {
    font-weight: bold;
    color: white !important;
}
.carousel-item img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}
.notice-board, .student-portal {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.notice-board h5, .student-portal h5 {
    color: #0d6efd;
}
        /* Custom Styles for Navbar */
        .navbar {
    background-color: #1b3f64; /* Dark blue color */
}

.navbar-nav .nav-link {
    color: white;
    padding: 15px 20px;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: #f0a22e; /* Orange background on hover */
    color: white;
}

.dropdown-menu {
    background-color: #1b3f64;
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: #f0a22e;
    color: white;
}
  /* Container for the scrolling ticker */
  .news-ticker {
    display: flex;
    align-items: center;
    background-color: #faf6f6; /* Red background for Latest News label */
    overflow: hidden;
    height: 50px;
    font-weight: bold;
}

.news-ticker .label {
    color: white;
    background-color: #b71c1c;
    padding: 10px 20px;
    white-space: nowrap;
    z-index: 99999999;
}

/* Scrolling text container */
.news-ticker .news-content {
    white-space: nowrap;
    padding-left: 20px;
    animation: scroll-text 15s linear infinite; /* Scroll animation */
}


/* Keyframes for smooth scrolling animation */
@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


    /* Styling for the gallery layout */
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        margin: 20px 0;
    }

    .gallery img {
        width: 100%;                /* Responsive */
        height: 200px;               /* Fixed height */
        object-fit: cover;           /* Crop to fit */
        cursor: pointer;
        border-radius: 8px;          /* Optional rounded corners */
        transition: transform 0.3s;  /* Smooth zoom effect */
    }

    .gallery img:hover {
        transform: scale(1.05);      /* Zoom effect on hover */
    }

    /* Fullscreen Modal Styles */
    .modal {
        display: none;               /* Hidden by default */
        position: fixed;
        z-index: 1050;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        max-width: 90%;              /* Fit the screen */
        max-height: 90%;
        border-radius: 10px;
    }

    .close {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }