/* Custom CSS for ACS College, Hupari */

/* Mobile-First Adjustments */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero Slider Adjustments - Premium Look */
.carousel-item {
    position: relative;
    background-color: #000; /* Fallback dark background */
}

/* FIX: Added .hero-slider-img class for dynamic admin images */
.carousel-item img, .hero-slider-img {
    height: 75vh !important; /* Cinematic height */
    width: 100% !important;
    object-fit: cover !important; /* Forces image to cover entire width without stretching */
    object-position: center; /* Keeps image centered */
    display: block;
}

/* Gradient overlay for better text visibility */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-caption {
    z-index: 2;
    bottom: 20%; 
}

.carousel-caption h3 {
    font-size: 3.5rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Mobile specific tweaks for slider */
@media (max-width: 768px) {
    .carousel-item img, .hero-slider-img {
        height: 50vh !important; /* Smaller height for mobile */
    }
    
    .carousel-caption h3 {
        font-size: 1.8rem;
    }
}

/* Gradient overlay for better text visibility */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 25%; /* Pushed slightly up for better centering */
}

.carousel-caption h3 {
    font-size: 3.5rem; /* Larger font for college name */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Floating/Scrolling Notices */
.notice-box {
    background: #fff;
    border-radius: 10px; /* Thode smooth corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 350px;
    position: relative;
    width: 100%; /* <-- HE ADD KARA: Ya mule box purna wide hoil */
    display: block;
}

.notice-box-header {
    background-color: #0d6efd;
    color: white;
    padding: 15px;
    font-weight: bold;
    z-index: 10;
    position: relative;
}

.notice-scroller {
    height: calc(100% - 54px); /* Remaining height */
    overflow: hidden;
    position: relative;
}

.notice-content {
    position: absolute;
    width: 100%;
    animation: scrollUp 15s linear infinite;
}

/* Pause scroll on hover or touch */
.notice-scroller:hover .notice-content,
.notice-scroller:active .notice-content {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.notice-item {
    padding: 12px 15px;
    border-bottom: 1px dashed #dee2e6;
    display: block;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.notice-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Committee Images */
  /* Slider Container */
    .committee-slider {
        padding: 60px 0; 
        overflow: hidden;
    }

    /* Base Slide Style (Side che cards) */
    .committeeSwiper .swiper-slide {
        transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        opacity: 0.35; /* Side che cards thode dark */
        transform: scale(0.85); /* Fakt 15% chote */
        filter: blur(3px); 
        display: flex;
        justify-content: center; /* Card la slide chya center la thevnyasathi */
    }

    /* Active Slide Style (Madhla card) */
    .committeeSwiper .swiper-slide-active {
        opacity: 1;
        transform: scale(1.05); /* Pop effect ekdam subtle (fakt 5% motha) */
        filter: blur(0px);
        z-index: 10;
    }

    /* Elegant Card Styling */
    .committee-card {
        border-radius: 20px;
        overflow: hidden;
        max-width: 300px; /* <--- HI MAHATVACHI LINE (Card stretch honar nahi) */
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.03) !important;
    }

    /* Image Dimensions Fixed for Portrait */
    .committee-img {
        height: 320px; /* Ubha photo dakhvnyasathi height vadhvli */
        width: 100%;
        object-fit: cover;
        object-position: center top; /* Chehra barobar disnyasathi */
    }
    
/* Academics & Faculty Floating Cards */
.faculty-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
    border-top: 4px solid #0d6efd;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
}

.faculty-img-wrapper {
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-img {
    transform: scale(1.05);
}

.course-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #0d6efd;
}

/* Premium Page Header Banner */
.premium-page-header {
    background: linear-gradient(135deg, #0b1f41 0%, #1c52a0 100%); /* Matches your dark blue navbar */
    color: #ffffff;
    padding: 2rem 0; /* Slimmer padding (smaller than Bootstrap's py-5) */
    margin-bottom: 3rem;
    border-bottom: 4px solid #ffc107; /* Gold accent to match your Admission button */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.premium-page-header h1 {
    font-size: 2.2rem; /* Slightly smaller and more elegant */
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.premium-page-header p {
    font-size: 1rem;
    opacity: 0.85; /* Slightly faded text for a modern look */
    margin-bottom: 0;
}

/* Optional: Make the icon gold */
.premium-page-header .header-icon {
    color: #ffc107; 
}


/* --- NEW SCROLLBAR FIX FOR ADMIN SIDEBAR --- */
/* Replace '.main-sidebar' if your admin header uses a different class name */
.main-sidebar, .sidebar { 
    height: 100vh;      /* Sidebar purn screen chi height gheil */
    overflow-y: auto;   /* He line scrollbar add karel */
    position: fixed;    /* Sidebar eka jagevar fix rahil */
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;      /* Ensure it stays above other content */
}

/* Scrollbar thoda changla disnyasathi (Customized to match dark theme) */
.main-sidebar::-webkit-scrollbar, .sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track {
    background: #1e2225; /* Match sidebar background slightly darker */
}

.main-sidebar::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb {
    background: #495057; /* Grey scrollbar thumb */
    border-radius: 10px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover {
    background: #0d6efd; /* Turns blue on hover to match active link */
}


/* Mobile specific tweaks */
@media (max-width: 768px) {
    .carousel-item img {
        height: 50vh; /* Smaller height for mobile so it fits nicely */
    }
    
    .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .quick-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 buttons per row on mobile */
        gap: 10px;
    }
    
    .quick-links-grid .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px;
    }
}
/* --- Admin Table Faculty Image Fix --- */
.faculty-thumb {
    width: 60px;          /* Photo chi width */
    height: 60px;         /* Photo chi height */
    object-fit: cover;    /* Photo stretch honar nahi, properly crop hoil */
    border-radius: 8px;   /* Corners thode round disnyasathi */
    border: 1px solid #ddd;
    display: block;       /* Important to constrain the image */
}

/* ==============================================================
   CAMPUS GALLERY STYLES (Albums, Grid & Lightbox)
============================================================== */

.cursor-pointer { 
    cursor: pointer; 
}

/* Album Card Hover Effect */
.album-card { 
    transition: all 0.3s ease; 
}
.album-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important; 
}

/* Grid Photo Hover Zoom */
.photo-thumbnail { 
    height: 200px; 
    width: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
    border-radius: 8px; 
}
.photo-thumbnail:hover { 
    transform: scale(1.03); 
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
    z-index: 2; 
    position: relative; 
}

/* Fullscreen Lightbox Styles */
.lightbox-bg { 
    background-color: rgba(0, 0, 0, 0.95); 
}
.lightbox-close { 
    position: absolute; 
    top: 15px; 
    right: 25px; 
    z-index: 1060; 
    background: none; 
    border: none; 
    color: white; 
    font-size: 2.5rem; 
    text-shadow: 0 0 10px rgba(0,0,0,0.5); 
}
.lightbox-close:hover { 
    color: #ffc107; 
}
.carousel-item img { 
    max-height: 90vh; 
    width: auto; 
    max-width: 100%; 
    object-fit: contain; 
    margin: auto; 
    border-radius: 5px; 
}

/* Next/Prev Buttons for Lightbox */
.carousel-control-prev-icon, 
.carousel-control-next-icon { 
    width: 3.5rem; 
    height: 3.5rem; 
    background-color: rgba(0,0,0,0.6); 
    border-radius: 50%; 
    background-size: 40%; 
    border: 2px solid rgba(255,255,255,0.2);
}
.carousel-control-prev:hover .carousel-control-prev-icon, 
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #ffc107; 
    border-color: #ffc107;
}

/* Floating Year Scrubber (Bottom Bar) */
.year-scrubber-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    gap: 10px;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.08);
    max-width: 90vw;
    overflow-x: auto; /* Scrollable on small screens */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hide scrollbar for clean look in scrubber */
.year-scrubber-container::-webkit-scrollbar { 
    display: none; 
}

.year-pill {
    color: #555;
    font-weight: 700;
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.year-pill:hover { 
    background: rgba(255, 193, 7, 0.2); 
    color: #000; 
}
.year-pill.active { 
    background: #ffc107; 
    color: #000; 
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4); 
}

/* Hide scrubber when viewing photos inside grid */
.hide-scrubber { 
    opacity: 0; 
    pointer-events: none; 
    transform: translate(-50%, 20px); 
}


/* ==============================================================
   DEPARTMENT & COURSE CARDS (Student / Public Side)
============================================================== */
.course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    border-color: rgba(13, 110, 253, 0.3) !important;
}

.course-link { 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column;
    height: 100%; 
}

.icon-box {
    transition: all 0.3s ease;
}

.course-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}