@media screen and (orientation: landscape) {
    .carousel img {
        height: 100vh;
    }
}

/* Base styles */
section.gradient-bg {
    min-height: 100vh;
    background: linear-gradient(to bottom, #d3d3d3 0%, #ffccd5 100%);
    padding: 40px 0;
    color: #333;
}

.card-title {
    font-weight: bold;
    color: #333;
}

.notification-box {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    height: 85%;
    color: #222;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    perspective: 1000px;
    background: transparent !important;
    min-height: 450px;
    margin-top: 48px;
}

.notification-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 5px;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
    filter: brightness(0.6) saturate(1.2);
}

.notification-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    border-radius: 5px;
    pointer-events: none;
}

.notification-box > *:not(.notification-bg-img) {
    position: relative;
    z-index: 2;
}

.notifications {
    background-color: rgb(65 62 62 / 32%);
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.scrolling-content {
    display: inline-block;
    animation: scroll-up 20s linear infinite;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-50%);
    }
}

.read-more-btn {
    background-color: #ff4b5c;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

    .read-more-btn:hover {
        background-color: #c0392b;
    }

.card-section-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    cursor: pointer;
    margin-top: 50px;
}

.card .col-md-4 {
    perspective: 1000px;
    cursor: pointer;
}

.card {
    background-color: transparent !important;
    box-shadow: none;
    color: #333;
    border: none;
}

.card-body p,
.card-body h5 {
    color: #333;
}

.card-text {
    font-size: 15px;
    text-align: justify;
}

hr.text-light {
    height: 2px;
    border-width: 0;
    color: #ffffff;
    background-color: #ffffff
}

/* Media Queries for Responsive Design */

/* For Desktop (screen width above 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .notification-box {
        height: 650px; /* Ensure good height for desktop */
    }

    .notifications {
        height: 500px; /* Ensure proper scroll area */
    }

    .card-section-img {
        height: 287px;
    }
}

/* For Tablet (screen width between 768px and 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .notification-box {
        height: 450px; /* Reduced height for tablet */
    }

    .notifications {
        height: 450px;
    }

    .card-section-img {
        height: 300px;
    }
}

/* For Mobile (screen width below 768px) */
@media (max-width: 767px) {
    section.gradient-bg {
        padding: 3px 20px; /* Added more padding for mobile */
    }

    .notification-box {
        height: auto; /* Auto height for mobile */
        margin-top: 20px;
    }

    .notifications {
        height: auto; /* Auto height to fit content */
    }

    .card-section-img {
        height: 250px; /* Smaller height for mobile */
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 14px;
    }

    .read-more-btn {
        display: inline-block;
        padding: 12px 28px;
        background: linear-gradient(to bottom, #f85032, #e73827); /* Red gradient */
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        transition: 0.3s ease;
    }

        .read-more-btn:hover {
            background: linear-gradient(to bottom, #ff5c4d, #d7261d); /* Hover effect */
        }
}


/* Unique Prefix for Container */
.explore-stream-container {
    height: auto; /* Allow the container to grow based on content */
    margin-top: 2px;
    padding: 10px;
    background: linear-gradient(to right, rgb(255, 255, 255), #ffffff, #ffffff); /* Gradient background */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Soft shadow around the container */
    overflow-x: hidden; /* Prevent horizontal overflow within the container */
    overflow-y: auto; /* Keep vertical scroll if necessary */
    width: 100%; /* Ensure it doesn’t exceed the viewport width */
    box-sizing: border-box; /* Prevent padding from affecting the width */
}

/* Unique Prefix for Stream Cards */
.explore-stream-card {
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 10px;
    overflow: hidden;
    border: none;
    width: 100%; /* Ensures the card does not overflow */
}

/* Flexbox for Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Add negative margin to counteract the column padding */
}

.col-md-3 {
    flex: 1 1 23%; /* Flexbox ensures that columns are responsive */
    max-width: 23%; /* Set max width to prevent overflow */
    margin-right: 15px; /* Space between columns */
    margin-bottom: 20px;
    box-sizing: border-box; /* Prevents padding from pushing content outside */
}

/* Specific Styling for Card Body */
.explore-card-body {
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: left;
    position: relative;
}

.explore-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.explore-stream-icon {
    font-size: 50px;
    margin-right: 20px;
    transition: color 0.3s ease;
}

/* Footer Line Animation */
.explore-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: red;
    transition: width 0.3s ease;
}

.explore-stream-card:hover .explore-card-footer {
    width: 100%;
}

.explore-stream-card:hover .explore-stream-icon {
    color: red;
}

.explore-stream-card:hover .explore-card-title {
    color: #e63946; /* Soft red color */
}

/* Specific Colors for Different Cards */
.arts-card:hover .explore-stream-icon {
    color: #f1c40f;
}

.science-card:hover .explore-stream-icon {
    color: #2ecc71;
}

.commerce-card:hover .explore-stream-icon {
    color: #3498db;
}

.computer-science-card:hover .explore-stream-icon {
    color: #9b59b6;
}

.explore-card-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Media Query for Large Screens */
@media (min-width: 1200px) {
    .explore-stream-container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1352px;
    }

    .col-md-3 {
        flex: 1 1 23%; /* Flex columns for large screen */
        max-width: 23%;
    }
}

/* Custom Media Query for Tablets (Portrait/Small Landscape) */
@media (max-width: 991px) {
    .col-md-3 {
        flex: 1 1 48%; /* Adjust columns for smaller screens */
        max-width: 48%;
        margin-right: 10px; /* Reduce the margin between columns */
    }

    .explore-stream-icon {
        font-size: 40px; /* Resize icons for smaller screens */
    }

    .explore-card-title {
        font-size: 18px; /* Adjust title font size for smaller screens */
    }
}

/* Custom Media Query for Mobile Devices (Portrait) */
@media (max-width: 767px) {
    .col-md-3 {
        flex: 1 1 100%; /* Stack the columns on smaller screens */
        max-width: 100%;
        margin-right: 0; /* Remove right margin */
    }

    .explore-stream-icon {
        font-size: 30px; /* Resize icons for mobile */
    }

    .explore-card-title {
        font-size: 16px; /* Adjust title font size for mobile */
    }
}

/* Custom Media Query for Extra Small Mobile Devices */
@media (max-width: 576px) {
    .explore-stream-container {
        padding: 15px;
    }

    .explore-stream-icon {
        font-size: 28px; /* Further reduce icon size on extra small screens */
    }

    .explore-card-body {
        padding: 15px;
    }
}




.faculty-card {
    text-align: center;
    margin: 20px;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 250px; /* Increase width */
    height: 350px; /* Increase height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing between image and text */
    align-items: center;
}

    .faculty-card img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform 0.3s ease-in-out;
    }

.faculty-name {
    font-size: 18px;
    font-weight: bold;
    color: #2f3e46;
    margin-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.faculty-position {
    font-size: 14px;
    color: #6c757d;
    transition: color 0.3s ease-in-out;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

    .faculty-card:hover img {
        transform: scale(1.1);
    }

    .faculty-card:hover .faculty-name {
        color: #007bff;
    }

    .faculty-card:hover .faculty-position {
        color: #495057;
    }

/* Wrapper around the faculty row to ensure the loop looks continuous */
.faculty-container {
    width: 100%; /* Full width of the screen */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Animation to move the images from right to left */
.faculty-row {
    display: flex;
    animation: slide-right-to-left 15s linear infinite;
}

@keyframes slide-right-to-left {
    0% {
        transform: translateX(100%); /* Start from right */
    }

    100% {
        transform: translateX(-100%); /* End on left */
    }
}

h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Ensure container spans full width */
.container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}


.photo-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.notice-title {
    text-align: Left;
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: solid;
}

.photo-title span {
    color: #d63384; /* magenta for "Photo" */
}

    .photo-title span:last-child {
        color: #6610f2; /* purple for "Gallery" */
    }

.notice-title span {
    color: #d63384; /* magenta for "Photo" */
}

    .notice-title span:last-child {
        color: #6610f2; /* purple for "Gallery" */
    }

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.btn-readmore {
    background-color: #dc3545;
    color: white;
    border: none;
}

    .btn-readmore:hover {
        background-color: #c82333;
    }



/* Form Styles */
.form-box {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.captcha {
    font-size: 24px;
    font-weight: bold;
    color: green;
    background: #e0f0e0;
    padding: 5px 10px;
    display: inline-block;
    letter-spacing: 5px;
}

.title-highlight {
    color: red;
}

/* External Links Section */
.external-links h2 {
    font-weight: bold;
}

.external-links span {
    color: #e60023;
    background: -webkit-linear-gradient(45deg, red, purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* External Logo Images */
.external-logo {
    height: 150px;
    width: 150px;
    margin: 15px;
    border-radius: 12px;
    background-color: white;
    padding: 8px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .external-logo:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

@media (max-width: 576px) {
    .external-logo {
        height: 80px;
        width: 80px;
        margin: 10px;
    }
}



.faculty-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.faculty-row {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.faculty-card {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 10px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .faculty-card img {
        width: 210px;
        height: 210px;
        border-radius: 0; /* Square image */
        transition: transform 0.3s ease;
        object-fit: fill; /* Crop/fill image to square neatly */
    }

    .faculty-card:hover img {
        transform: scale(1.1); /* Zoom on hover */
    }

.faculty-row:hover {
    animation-play-state: paused;
}

.faculty-name {
    font-weight: bold;
}

.faculty-position {
    color: #666;
    font-size: 0.9em;
}

.section-title {
    text-align: center;
    margin-top: 40px;
    font-size: 36px;
}

    .section-title span {
        font-weight: bold;
    }

.black {
    color: #333;
}

.red {
    color: #e50000;
}

.purple {
    color: #800080;
}

hr {
    width: 50px;
    border: 2px solid black;
    margin: 0 auto 20px;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff0f5;
    padding: 20px 0;
}

.marquee-logos {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee-container:hover .marquee-logos {
    animation-play-state: paused;
}

.marquee-logos a {
    display: inline-block;
    margin: 0 30px;
}

.marquee-logos img {
    width: 100px;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

    .marquee-logos img:hover {
        transform: scale(1.1);
    }

footer {
    background-color: #fef1f5;
    padding: 30px 20px 10px 20px;
    border-top: 1px solid #ddd;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.footer-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-icon {
    width: 60px;
    height: 60px;
    background-color: #e6273e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.footer-content p {
    font-size: 14px;
    color: #333;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.powered-by {
    float: right;
    font-weight: normal;
}

    .powered-by b {
        font-weight: bold;
    }

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .powered-by {
        float: none;
        display: block;
        margin-top: 10px;
        text-align: center;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}
