/* ============================================================
   ST JOSEPH'S COLLEGE FOR WOMEN (AUTONOMOUS)
   Dark Pink & Purple Theme - Complete Stylesheet
   ============================================================ */

/* ===== Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5e1e8e;
    --secondary: #c2185b;
    --accent: #e91e63;
    --gradient: linear-gradient(135deg, #4a148c 0%, #880e4f 50%, #c2185b 100%);
    --gradient-soft: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    --gradient-dark: linear-gradient(135deg, #2d0a4e 0%, #4a148c 100%);
    --dark: #2d0a4e;
    --text: #3d2052;
    --light: #fff;
    --shadow: 0 4px 20px rgba(94, 30, 142, 0.2);
    --shadow-hover: 0 8px 30px rgba(194, 24, 91, 0.25);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #faf7fc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f3e5f5;
}
::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== Selection ===== */
::selection {
    background: var(--secondary);
    color: #fff;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar span {
    margin-right: 15px;
}

.top-bar i {
    margin-right: 5px;
    color: var(--accent);
}

.social-icons a {
    display: inline-block;
    margin-left: 10px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
    color: #fff;
}

.social-icons a:hover {
    background: var(--gradient);
    transform: translateY(-2px);
}

/* ============================================================
   NAVBAR - CENTERED LOGO & WORKING DROPDOWNS
   ============================================================ */
.navbar {
    background: var(--gradient);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar > .container {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* ===== TOP ROW: CENTERED LOGO ===== */
.navbar-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.navbar-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-icon i {
    font-size: 32px;
    color: #fce4ec;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    font-size: 13px;
    margin: 3px 0 0;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===== BOTTOM ROW: NAVIGATION MENU ===== */
.navbar-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu > ul {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Top-level nav items */
.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Dropdown Arrow */
.nav-menu > ul > li.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 4px;
    font-size: 11px;
    transition: transform 0.3s;
}

.nav-menu > ul > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* ===== CRITICAL FIX: HIDE DROPDOWNS COMPLETELY ===== */
.nav-menu > ul > li > ul.dropdown {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 240px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(45, 10, 78, 0.2) !important;
    padding: 10px 0 !important;
    z-index: 1000 !important;
    border-top: 3px solid var(--secondary) !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Show dropdown on hover */
.nav-menu > ul > li:hover > ul.dropdown {
    display: block !important;
}

/* Dropdown items */
.nav-menu > ul > li > ul.dropdown > li {
    display: block !important;
    width: 100% !important;
}

.nav-menu > ul > li > ul.dropdown > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    color: var(--dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: 0.3s !important;
    border-left: 3px solid transparent !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-menu > ul > li > ul.dropdown > li > a i {
    color: var(--secondary) !important;
    width: 18px !important;
    text-align: center !important;
    font-size: 14px !important;
}

.nav-menu > ul > li > ul.dropdown > li > a:hover {
    background: var(--gradient-soft) !important;
    color: var(--primary) !important;
    border-left-color: var(--secondary) !important;
    padding-left: 22px !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   SLIDER - NO COLORED MASK
   ============================================================ */
.slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    background: var(--dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Animations */
.slide.animation-fade img { animation: fadeIn 1.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide.animation-zoom img { animation: zoomIn 1.5s ease-out; }
@keyframes zoomIn { from { transform: scale(1.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.slide.animation-kenburns img { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.15) translate(-2%, -2%); } }

.slide.animation-slide img { animation: slideIn 1s ease-out; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.slide.animation-flip { animation: flipIn 1.2s ease-out; transform-origin: center; }
@keyframes flipIn { from { transform: perspective(1200px) rotateY(90deg); opacity: 0; } to { transform: perspective(1200px) rotateY(0); opacity: 1; } }

/* ===== SLIDE CONTENT - NO OVERLAY ===== */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    /* NO BACKGROUND COLOR/MASK HERE */
    z-index: 3;
}

.slide-content-inner {
    max-width: 800px;
    color: #fff;
    animation: contentFadeUp 1s ease-out 0.3s both;
    /* Strong text shadow for readability without overlay */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@keyframes contentFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.slide-content .slide-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.slide-content .slide-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Slider Navigation */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 25px; }
.next { right: 25px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: #fff;
    width: 40px;
    border-radius: 10px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slider Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gradient);
    z-index: 10;
    width: 0;
    animation: progressFill 6s linear infinite;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section { padding: 60px 0; }

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 12px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.card i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

/* ============================================================
   UPDATES
   ============================================================ */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: 0.3s;
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.update-item.important {
    border-left-color: var(--secondary);
    background: var(--gradient-soft);
}

.update-item .badge {
    background: var(--gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.update-item h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.update-item .date {
    font-size: 13px;
    color: #888;
}

.update-item .download {
    background: var(--gradient);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.update-item .download:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================================
   BUTTONS & FORMS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(194, 24, 91, 0.3);
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e1bee7;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.3s;
    background: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
}

textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: auto; }

/* ============================================================
   ADMIN PANEL LAYOUT & SIDEBAR
   ============================================================ */
.admin-page {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    padding: 30px;
    background: #faf7fc;
    min-height: 100vh;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-content {
    padding: 30px;
    background: #faf7fc;
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1bee7;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--dark);
}

/* Admin Mobile Header */
.admin-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    background: var(--gradient);
    color: #fff;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: var(--shadow);
}

.sidebar-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.3); }

.admin-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}

.admin-mobile-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active { display: block; }

/* Sidebar */
.sidebar {
    background: var(--gradient-dark);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 1000;
    min-width: 280px;
    max-width: 280px;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.sidebar-profile {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.15);
}

.profile-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.profile-info h4 { font-size: 15px; margin-bottom: 2px; color: #fff; }
.profile-info p { font-size: 12px; color: #e1bee7; margin: 0; }

.sidebar-nav { flex: 1; padding: 15px 0; }
.nav-section { margin-bottom: 10px; }

.nav-section-title {
    padding: 10px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b39ddb;
    font-weight: 700;
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #e1bee7;
    transition: 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

.sidebar-nav ul li a i { width: 20px; text-align: center; font-size: 14px; }

.sidebar-nav ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--accent);
    padding-left: 24px;
}

.sidebar-nav ul li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-nav ul li a.active::before {
    content: '';
    position: absolute;
    right: 15px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.sidebar-nav ul li a.logout-link { color: #ffcdd2; }

.sidebar-nav ul li a.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #fff;
    border-left-color: #dc3545;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    background: rgba(0,0,0,0.15);
}

.sidebar-footer p { font-size: 13px; margin: 0 0 3px; color: #fff; font-weight: 600; }
.sidebar-footer small { font-size: 11px; color: #b39ddb; }

/* ============================================================
   LOGIN & FOOTER
   ============================================================ */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    border-top: 5px solid var(--secondary);
}

.login-box h2 { text-align: center; color: var(--dark); margin-bottom: 25px; }

.footer {
    background: var(--dark);
    color: #e1bee7;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--gradient);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a { transition: 0.3s; color: #e1bee7; }

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-col p { margin-bottom: 8px; font-size: 14px; }
.footer-col p i { color: var(--accent); margin-right: 8px; }

.footer-bottom {
    text-align: center;
    padding: 18px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   RESPONSIVE - TABLET & MOBILE
   ============================================================ */
@media (max-width: 900px) {
    /* Navbar Mobile */
    .menu-toggle { display: flex; }
    
    .navbar-bottom { justify-content: flex-end; padding: 8px 15px; }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gradient);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        justify-content: flex-start;
        z-index: 999;
    }
    
    .nav-menu.open { max-height: 800px; overflow-y: auto; }
    
    .nav-menu > ul {
        flex-direction: column;
        padding: 15px;
        gap: 2px;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-menu > ul > li { width: 100%; }
    .nav-menu > ul > li > a { width: 100%; padding: 12px 16px; }
    
    /* Mobile dropdown */
    .nav-menu > ul > li > ul.dropdown {
        display: none !important;
        position: static !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        margin: 5px 0 5px 15px !important;
        padding: 5px 0 !important;
        border-top: none !important;
        min-width: auto !important;
        box-shadow: none !important;
    }
    
    .nav-menu > ul > li > ul.dropdown.mobile-open { display: block !important; }
    
    .nav-menu > ul > li > ul.dropdown > li > a {
        color: #fff !important;
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    .nav-menu > ul > li > ul.dropdown > li > a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        border-left-color: #fff !important;
    }
    
    .nav-menu > ul > li > ul.dropdown > li > a i { color: #fce4ec !important; }
    .nav-menu > ul > li.has-dropdown > a::after { margin-left: auto; }
    .nav-menu > ul > li.has-dropdown.dropdown-open > a::after { transform: rotate(180deg); }

    /* Admin Sidebar Mobile */
    .admin-mobile-header { display: flex; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
    }
    
    .sidebar.open { left: 0; }
    .admin-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .slider { height: 450px; }
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .slider-btn { width: 45px; height: 45px; font-size: 16px; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .admin-content, .admin-main { padding: 20px 15px; }
}

@media (max-width: 480px) {
    .top-bar-inner { justify-content: center; text-align: center; }
    
    .logo-icon { width: 42px; height: 42px; }
    .logo-icon i { font-size: 20px; }
    .logo-text h1 { font-size: 15px; }
    .logo-text p { font-size: 10px; }
    .navbar-logo { gap: 10px; }
    
    .slider { height: 380px; }
    .slide-content h1 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; margin-bottom: 20px; }
    .slide-content .slide-btn { padding: 10px 25px; font-size: 13px; }
    
    .admin-mobile-logo span, .admin-mobile-user span { display: none; }
    .sidebar { width: 260px; min-width: 260px; left: -260px; }
}


/* ============================================================
   GUARANTEED FIXES - PASTE AT THE VERY BOTTOM OF style.css
   ============================================================ */

/* FIX 1: FORCE CENTER LOGO & COLLEGE NAME */
.navbar > .container {
    display: block !important; /* Resets any flex conflicts */
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.navbar-top {
    display: flex !important;
    justify-content: center !important; /* Centers the logo horizontally */
    align-items: center !important;
    width: 100% !important;
    padding: 20px 0 !important;
}

.navbar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

.logo-text {
    text-align: center !important; /* Centers the text lines */
}

.logo-text h1, .logo-text p {
    text-align: center !important;
    margin: 0 !important;
}

/* FIX 2: FORCE REMOVE SLIDER MASK/OVERLAY */
.slide-content {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Kill any pseudo-elements that might be creating a hidden mask */
.slide-content::before, 
.slide-content::after,
.slide::before, 
.slide::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Ensure text is still readable without the mask */
.slide-content-inner {
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.slide-content h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9) !important;
}
/* ============================================================
   DYNAMIC GALLERY SCROLL SECTION
   ============================================================ */
.gallery-scroll-section {
    padding: 60px 0;
    background: var(--gradient-soft);
    overflow: hidden;
}

.text-center { text-align: center; }

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Fade edges for smooth look */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scrollGallery 40s linear infinite;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half because content is duplicated */
}

.gallery-card {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 10, 78, 0.95));
    color: #fff;
    padding: 20px 15px 15px;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.gallery-overlay span {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-card { width: 260px; height: 180px; }
    .marquee-content { gap: 15px; }
    .gallery-overlay h4 { font-size: 14px; }
}

@media (max-width: 480px) {
    .gallery-card { width: 220px; height: 150px; }
}

/* ============================================================
   ADMIN SIDEBAR NAVIGATION
   ============================================================ */

/* Mobile Header (shown only on mobile) */
.admin-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #4a148c 0%, #880e4f 50%, #c2185b 100%);
    color: #fff;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(94, 30, 142, 0.2);
}

.sidebar-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.3); }

.admin-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}

.admin-mobile-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active { display: block; }

/* Sidebar Container */
.sidebar {
    background: linear-gradient(135deg, #2d0a4e 0%, #4a148c 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 1000;
    min-width: 280px;
    max-width: 280px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Profile Section */
.sidebar-profile {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.15);
}

.profile-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a148c 0%, #880e4f 50%, #c2185b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.profile-info h4 { font-size: 15px; margin-bottom: 2px; color: #fff; }
.profile-info p { font-size: 12px; color: #e1bee7; margin: 0; }

/* Sidebar Navigation */
.sidebar-nav { flex: 1; padding: 15px 0; }
.nav-section { margin-bottom: 10px; }

.nav-section-title {
    padding: 10px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b39ddb;
    font-weight: 700;
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #e1bee7;
    transition: 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

.sidebar-nav ul li a i { width: 20px; text-align: center; font-size: 14px; }

.sidebar-nav ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: #e91e63;
    padding-left: 24px;
}

.sidebar-nav ul li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: #e91e63;
    font-weight: 600;
}

.sidebar-nav ul li a.active::before {
    content: '';
    position: absolute;
    right: 15px;
    width: 6px; height: 6px;
    background: #e91e63;
    border-radius: 50%;
}

.sidebar-nav ul li a.logout-link { color: #ffcdd2; }

.sidebar-nav ul li a.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #fff;
    border-left-color: #dc3545;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    background: rgba(0,0,0,0.15);
}

.sidebar-footer p { font-size: 13px; margin: 0 0 3px; color: #fff; font-weight: 600; }
.sidebar-footer small { font-size: 11px; color: #b39ddb; }

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 900px) {
    .admin-mobile-header { display: flex; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
    }
    
    .sidebar.open { left: 0; }
}

@media (max-width: 480px) {
    .admin-mobile-logo span, .admin-mobile-user span { display: none; }
    .sidebar { width: 260px; min-width: 260px; left: -260px; }
}
/* ============================================================
   DYNAMIC GALLERY SIDE SCROLLER (MARQUEE)
   ============================================================ */
.gallery-scroll-section {
    padding: 60px 0;
    background: var(--gradient-soft);
    overflow: hidden;
    position: relative;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Creates a smooth fade effect on the left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scrollGallery 35s linear infinite;
}

/* Pause animation on hover so users can read the titles */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half because content is duplicated */
}

.gallery-card {
    flex-shrink: 0;
    width: 320px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(94, 30, 142, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: #fff;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(194, 24, 91, 0.25);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 10, 78, 0.95) 0%, rgba(45, 10, 78, 0.7) 60%, transparent 100%);
    color: #fff;
    padding: 25px 20px 20px;
    transform: translateY(15px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gallery-overlay span {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .gallery-card {
        width: 280px;
        height: 200px;
    }
    .marquee-content {
        gap: 15px;
        animation-duration: 25s; /* Slightly faster on mobile */
    }
    .gallery-overlay h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-card {
        width: 240px;
        height: 170px;
    }
}