/* General Reusable Classes */
.logo-img {
    max-height: 100px;
}
.naac-logo-img {
    max-height: 80px;
}
.header-title {
    font-size: 1.7rem;
}
.principal-photo {
    width: 150px; height: 150px; object-fit: cover;
}


/* style.css */
:root {
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --secondary-color: #6c757d;
    --accent-color: #ffc107; /* Warning Yellow */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff; /* Brighter color for active/hover states */
}

.dropdown-menu {
    border-top: 3px solid var(--accent-color);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

/* Cards */
.card {
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-bottom: none;
}

/* Footer Links */
.hover-link {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.hover-link:hover {
    opacity: 1;
    text-decoration: underline !important;
}

/* Footer Styling */
footer {
    font-size: 0.9rem;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
footer .list-unstyled a:hover {
    color: white;
}

/* Custom Scrollbar for Notice Board */
.notice-board-box::-webkit-scrollbar {
    width: 8px;
}

.notice-board-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notice-board-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.notice-board-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Standard Page Header */
.page-header {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.8)), url('https://via.placeholder.com/1920x400?text=College+Header+Bg'); /* Consider using var(--primary-color) with opacity */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2.5rem;
}
.breadcrumb-item {
    font-size: 0.9rem;
}

/* Gallery Styling */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    aspect-ratio: 4 / 3; /* Standardize aspect ratio */
    object-fit: cover;   /* Ensure image covers the area */
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }

/* 404 Page Styling */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Student Achievement Card */
.achievement-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.achievement-card .achievement-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
}
.achievement-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Enforces a square shape */
    object-fit: cover;   /* Ensures the image covers the area without distortion */
    background-color: #f8f9fa; /* Light background for images that don't fully load */
}

/* Modal Image Standardization */
#modalStudentPhoto {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

#modalGalleryPhotos img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Enforces a 4:3 landscape ratio */
    object-fit: cover;
    background-color: #f8f9fa;
}
.achievement-caption h5 {
    font-size: 1.1rem;
}

/* Carousel Image Standardization */
.carousel-item img {
    max-height: 600px;
    object-fit: cover;
}
.notice-board-box {
    height: 300px; overflow-y: scroll;
}

/* --- Responsive Adjustments --- */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.4rem; /* Reduce header title font size */
    }
    .logo-img {
        max-height: 80px; /* Adjust logo size */
    }
    .naac-logo-img {
        max-height: 70px; /* Adjust NAAC logo size */
    }
    .page-header {
        padding: 40px 0; /* Reduce padding on page headers */
        margin-bottom: 20px;
    }
    .page-header h1 {
        font-size: 2rem; /* Reduce heading size in page headers */
    }
}

/* Modern Marquee Replacement */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}
.marquee-content a {
    text-decoration: none;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
