/* ===== ROOT VARIABLES ===== */
:root {
    --university-red: #8B0000;
    --university-red-light: #C41E24;
    --university-red-dark: #5C0000;
    --university-blue: #00B9F1;
    --dark-gray: #333333;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --gold: #FFC107;
    --success: #28A745;
    --shadow: rgba(0,0,0,.12);
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    overflow-x: hidden;
    background-color: var(--white);
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; }
.section-padding { padding: 80px 0; }
.section-tag {
    display: inline-block;
    background: var(--university-red);
    color: var(--white);
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--university-red-dark);
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.bg-light { background-color: var(--light-gray) !important; }
.btn-primary {
    background-color: var(--university-red);
    border-color: var(--university-red);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 28px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--university-red-dark);
    border-color: var(--university-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,0,0,0.3);
}
.btn-outline-primary {
    color: var(--university-red);
    border-color: var(--university-red);
    font-family: var(--font-heading);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--university-red);
    border-color: var(--university-red);
    color: #fff;
}

/* Top Header */
.top-header {
    background: var(--university-red-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-header a { color: #fff; text-decoration: none; transition: var(--transition); }
.top-header a:hover { color: var(--gold); }
.top-header .separator { margin: 0 12px; opacity: 0.4; }
.top-header-right { text-align: right; }
.top-header-right .quick-link { margin-right: 18px; }
.top-header-right .social-icon {
    margin-left: 10px;
    font-size: 0.9rem;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.top-header-right .social-icon:hover { background: var(--university-blue); color: #fff; }

/* Navigation */
.navbar {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    padding: 10px 0;
}
.navbar.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-university { font-weight: 700; font-size: 1.1rem; color: var(--university-red); font-family: var(--font-heading); }
.brand-faculty { font-size: 0.8rem; color: var(--dark-gray); font-weight: 500; }
.navbar .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 8px 16px;
    transition: var(--transition);
    font-size: 0.95rem;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--university-red); }

/* Hero */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-slider { position: absolute; top:0; left:0; width:100%; height:100%;}
.hero-slider .swiper-slide { background-size: cover; background-position: center; height:100%; display:flex; align-items:center; }
.hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: #ffffff;
    background: #ffffff;
}
.hero-content { position: relative; z-index:2; width:100%; padding: 80px 0; }
.hero-copy {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 30px;
    padding: 40px 35px;
    opacity:0.9
    backdrop-filter: blur(12px);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: var(--university-red-dark);
    padding: 6px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
    color: #ffffff;
    box-shadow: #000;
}
.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.85;
    margin-bottom: 28px;
    max-width: 760px;
    color: #ffffff;
    
    
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}
.hero-buttons .btn {
    min-width: 170px;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
}
.hero-buttons .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.9);
    background: transparent;
}
.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
}
.hero-note {
    margin-top: 24px;
    font-size: 1.2rem;
    color: #00B9F1;
    max-width: 540px;
    background: #ffffff;
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.28);
    width: 48px; height: 48px;
    border-radius: 50%;
    transition: var(--transition);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(139,0,0,0.85); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.1rem; }
.swiper-pagination-bullet { background: #fff; opacity: 0.45; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; }

/* Statistics */
.statistics-bar {
    z-index: 3;
    margin-top: -50px;
    margin-bottom: 0;
}
.statistics-bar .container {
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    padding: 24px 20px;
}
.stat-item { text-align: center; padding: 15px 0; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--university-red);
    font-family: var(--font-heading);
}
.stat-suffix { font-size: 1.8rem; font-weight: 700; color: var(--university-red); margin-left: 4px; }
.stat-label { 
    display: block; 
    font-size: 1rem; 
    font-weight: 700; 
    margin-top: 6px; 
    color: #4a4a4a;
}
@media (max-width: 991px) {
    .hero-content { padding: 60px 0; }
    .hero-copy { padding: 30px 24px; }
    .hero-title { font-size: 2.6rem; }
    .statistics-bar { margin-top: -40px; }
}
@media (max-width: 575px) {
    .hero-section { min-height: 75vh; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* Welcome */
.welcome-section { padding-top: 100px; }
.welcome-image { position: relative; }
.welcome-image img { border-radius: 20px; width: 100%; }
.welcome-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 70px; height: 70px;
    background: var(--university-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(139,0,0,0.3);
}
.welcome-text p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.dean-signature { margin-top:20px; padding-top:20px; border-top:2px solid var(--light-gray); }
.dean-signature h5 { font-weight:700; color:var(--university-red); margin-bottom:0; }
.dean-signature span { color:#666; font-size:0.95rem; }

/* About */
.about-content h3 { font-weight:700; color:var(--university-red-dark); margin-bottom:20px; }
.about-content p { line-height:1.8; margin-bottom:15px; }
.about-card {
    background:#fff;
    padding:20px;
    border-radius:16px;
    box-shadow:0 4px 20px var(--shadow);
    transition:var(--transition);
    height:100%;
    border-left:4px solid var(--university-red);
}
.about-card:hover { transform:translateY(-5px); box-shadow:0 8px 30px rgba(0,0,0,0.15); }
.about-card i { font-size:1.8rem; color:var(--university-red); margin-bottom:12px; }
.about-card h5 { font-weight:600; margin-bottom:8px; }
.about-card p { font-size:0.95rem; margin-bottom:0; color:#555; }
.about-image-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.about-grid-item img { border-radius:16px; width:100%; height:200px; object-fit:cover; transition:var(--transition); }
.about-grid-item img:hover { transform:scale(1.02); }

/* Timeline */
.history-section { background: var(--light-gray); }
.timeline { position:relative; padding:20px 0; }
.timeline::before {
    content:'';
    position:absolute;
    left:50%;
    top:0; bottom:0;
    width:3px;
    background:var(--university-red);
    transform:translateX(-50%);
}
.timeline-item {
    position:relative;
    margin-bottom:40px;
    display:flex;
    justify-content:flex-end;
    padding-right:50%;
}
.timeline-item:nth-child(even) { justify-content:flex-start; padding-right:0; padding-left:50%; }
.timeline-dot {
    position:absolute;
    left:50%;
    top:5px;
    width:20px; height:20px;
    background:var(--university-red);
    border-radius:50%;
    transform:translateX(-50%);
    border:4px solid #fff;
    box-shadow:0 0 0 4px var(--university-red);
    z-index:2;
}
.timeline-content {
    background:#fff;
    padding:25px 30px;
    border-radius:16px;
    box-shadow:0 4px 25px var(--shadow);
    width:90%;
    transition:var(--transition);
}
.timeline-content:hover { transform:translateY(-5px); box-shadow:0 8px 40px rgba(0,0,0,0.12); }
.timeline-year {
    display:inline-block;
    background:var(--university-red);
    color:#fff;
    padding:2px 16px;
    border-radius:30px;
    font-weight:600;
    font-size:0.85rem;
    margin-bottom:10px;
}
.timeline-content h4 { font-weight:600; margin-bottom:8px; }
.timeline-content p { margin-bottom:0; color:#555; }

/* Programmes */
.programs-section .nav-pills .nav-link {
    border-radius:30px;
    padding:8px 24px;
    font-weight:500;
    color:var(--dark-gray);
    background:transparent;
    transition:var(--transition);
    font-family:var(--font-heading);
}
.programs-section .nav-pills .nav-link.active { background:var(--university-red); color:#fff; }
.programs-section .nav-pills .nav-link:hover:not(.active) { background:rgba(139,0,0,0.08); }
.program-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
}
.program-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.15); }
.program-image { position:relative; height:200px; overflow:hidden; }
.program-image img { width:100%; height:100%; object-fit:cover; transition:var(--transition); }
.program-card:hover .program-image img { transform:scale(1.05); }
.program-badge {
    position:absolute;
    top:15px; left:15px;
    background:var(--university-red);
    color:#fff;
    padding:4px 16px;
    border-radius:30px;
    font-size:0.75rem;
    font-weight:600;
    text-transform:uppercase;
}
.program-body { padding:20px; }
.program-body h4 { font-weight:700; font-size:1.2rem; margin-bottom:8px; }
.program-body p { font-size:0.95rem; color:#555; }
.program-meta { display:flex; gap:20px; margin:12px 0; font-size:0.9rem; color:#666; }
.program-meta i { margin-right:6px; color:var(--university-red); }
.program-details {
    background:var(--light-gray);
    padding:12px 16px;
    border-radius:12px;
    margin:12px 0;
    font-size:0.9rem;
}
.program-details p { margin-bottom:4px; }
.program-actions { display:flex; gap:10px; margin-top:15px; }
.program-actions .btn { border-radius:30px; padding:6px 20px; font-size:0.85rem; }

/* Departments */
.department-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
    border:1px solid rgba(0,0,0,0.04);
}
.department-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.department-image { position:relative; height:200px; overflow:hidden; }
.department-image img { width:100%; height:100%; object-fit:cover; }
.department-overlay {
    position:absolute;
    bottom:0; left:0; right:0;
    padding:15px;
    background:linear-gradient(transparent, rgba(0,0,0,0.6));
}
.department-badge { color:#fff; font-weight:600; font-size:0.8rem; background:var(--university-red); padding:3px 14px; border-radius:30px; }
.department-body { padding:20px; }
.department-body h4 { font-weight:700; margin-bottom:6px; }
.dept-head { font-size:0.9rem; color:var(--university-red); font-weight:500; margin-bottom:10px; }
.dept-head i { margin-right:6px; }
.department-body p { font-size:0.95rem; color:#555; }

/* Staff */
.staff-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
    text-align:center;
}
.staff-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.staff-image { position:relative; padding-top:20px; }
.staff-image img { width:130px; height:130px; border-radius:50%; object-fit:cover; border:4px solid var(--light-gray); transition:var(--transition); }
.staff-card:hover .staff-image img { border-color:var(--university-red); }
.staff-social {
    position:absolute;
    bottom:0; left:50%;
    transform:translateX(-50%);
    display:flex; gap:8px;
    background:#fff;
    padding:6px 14px;
    border-radius:30px;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    opacity:0;
    transition:var(--transition);
}
.staff-card:hover .staff-social { opacity:1; bottom:-10px; }
.staff-social a { color:var(--dark-gray); transition:var(--transition); }
.staff-social a:hover { color:var(--university-red); }
.staff-body { padding:20px 16px 16px; }
.staff-body h5 { font-weight:700; margin-bottom:0; }
.staff-position { display:block; font-size:0.85rem; color:var(--university-red); font-weight:500; margin-bottom:4px; }
.staff-qualification { font-size:0.85rem; color:#666; margin-bottom:6px; }
.staff-research { font-size:0.85rem; color:#555; margin-bottom:12px; }
.staff-research i { color:var(--university-red); margin-right:4px; }

/* Coordinators */
.coordinator-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
    text-align:center;
    padding:20px;
}
.coordinator-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.coordinator-image img { width:120px; height:120px; border-radius:50%; object-fit:cover; border:4px solid var(--light-gray); margin-bottom:15px; }
.coordinator-body h5 { font-weight:700; margin-bottom:0; }
.coord-role { display:block; font-size:0.85rem; color:var(--university-red); font-weight:500; margin-bottom:4px; }
.coord-qualification { font-size:0.85rem; color:#666; margin-bottom:12px; }
.coord-contact { text-align:left; font-size:0.9rem; margin:12px 0; }
.coord-contact p { margin-bottom:4px; }
.coord-contact i { width:20px; color:var(--university-red); }

/* Course Table */
.course-toolbar { margin-bottom:25px; }
.search-box { position:relative; }
.search-box i { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:#999; }
.search-box .form-control { padding-left:40px; border-radius:30px; }
.course-table { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 4px 25px var(--shadow); }
.course-table thead { background:var(--university-red); color:#fff; }
.course-table th { font-weight:600; font-family:var(--font-heading); padding:12px 15px; }
.course-table td { padding:12px 15px; vertical-align:middle; }
.course-table tbody tr:hover { background:rgba(139,0,0,0.04); }
.course-pagination .page-item.active .page-link { background:var(--university-red); border-color:var(--university-red); }

/* Why Choose */
.why-card {
    background:#fff;
    padding:30px 20px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
}
.why-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.why-icon {
    width:70px; height:70px;
    background:rgba(139,0,0,0.08);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;
    font-size:2rem;
    color:var(--university-red);
    transition:var(--transition);
}
.why-card:hover .why-icon { background:var(--university-red); color:#fff; }
.why-card h5 { font-weight:600; margin-bottom:8px; }
.why-card p { font-size:0.95rem; color:#555; margin-bottom:0; }

/* Gallery */
.gallery-item { position:relative; overflow:hidden; border-radius:16px; cursor:pointer; }
.gallery-item img { width:100%; height:220px; object-fit:cover; transition:var(--transition); }
.gallery-item:hover img { transform:scale(1.08); }
.gallery-overlay {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background:rgba(139,0,0,0.6);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#fff;
    opacity:0;
    transition:var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-overlay i { font-size:2rem; margin-bottom:6px; }
.gallery-overlay span { font-weight:500; }

/* Testimonials */
.testimonial-card {
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 4px 25px var(--shadow);
    text-align:center;
    margin:10px;
}
.testimonial-rating { color:var(--gold); margin-bottom:12px; }
.testimonial-text { font-size:1.05rem; line-height:1.7; color:#444; font-style:italic; margin-bottom:18px; }
.testimonial-author { display:flex; align-items:center; justify-content:center; gap:15px; }
.testimonial-author img { width:60px; height:60px; border-radius:50%; object-fit:cover; }
.testimonial-author h6 { font-weight:600; margin-bottom:0; }
.testimonial-author span { font-size:0.85rem; color:#666; }

/* News */
.news-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
}
.news-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.news-image { position:relative; height:200px; }
.news-image img { width:100%; height:100%; object-fit:cover; }
.news-date {
    position:absolute;
    bottom:12px; right:12px;
    background:var(--university-red);
    color:#fff;
    padding:4px 14px;
    border-radius:30px;
    font-size:0.8rem;
    font-weight:600;
}
.news-body { padding:20px; }
.news-category {
    display:inline-block;
    background:rgba(139,0,0,0.08);
    color:var(--university-red);
    padding:2px 14px;
    border-radius:30px;
    font-size:0.75rem;
    font-weight:600;
    text-transform:uppercase;
    margin-bottom:8px;
}
.news-body h5 { font-weight:600; margin-bottom:10px; }
.news-body p { font-size:0.95rem; color:#555; }

/* Downloads */
.download-card {
    background:#fff;
    padding:30px 20px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 4px 25px var(--shadow);
    transition:var(--transition);
    height:100%;
}
.download-card:hover { transform:translateY(-8px); box-shadow:0 15px 50px rgba(0,0,0,0.12); }
.download-icon { font-size:3rem; color:var(--university-red); margin-bottom:15px; }
.download-card h5 { font-weight:600; }
.download-card p { font-size:0.95rem; color:#555; margin-bottom:15px; }

/* FAQ */
.accordion-item { border:none; margin-bottom:12px; border-radius:12px !important; overflow:hidden; box-shadow:0 4px 15px var(--shadow); }
.accordion-button { font-weight:600; font-family:var(--font-heading); background:#fff; padding:16px 20px; box-shadow:none !important; }
.accordion-button:not(.collapsed) { background:var(--university-red); color:#fff; }
.accordion-button:not(.collapsed)::after { filter:brightness(10); }
.accordion-body { padding:20px; background:#fafafa; }

/* Contact */
.contact-info { background:#fff; padding:30px; border-radius:20px; box-shadow:0 4px 25px var(--shadow); }
.contact-info-item { display:flex; gap:18px; margin-bottom:25px; }
.contact-info-item:last-child { margin-bottom:0; }
.contact-icon {
    width:50px; height:50px;
    background:rgba(139,0,0,0.08);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
    color:var(--university-red);
    flex-shrink:0;
}
.contact-info-item h6 { font-weight:600; margin-bottom:2px; }
.contact-info-item p { margin-bottom:0; color:#555; }
.contact-form-wrapper { background:#fff; padding:30px; border-radius:20px; box-shadow:0 4px 25px var(--shadow); }
.contact-form .form-control { border-radius:12px; padding:12px 16px; border:1px solid #e0e0e0; transition:var(--transition); }
.contact-form .form-control:focus { border-color:var(--university-red); box-shadow:0 0 0 4px rgba(139,0,0,0.1); }
.map-container { border-radius:20px; overflow:hidden; box-shadow:0 4px 25px var(--shadow); }

/* Footer */
.footer-section { background:var(--university-red-dark); color:#fff; }
.footer-main { padding:60px 0 40px; }
.footer-brand h5 { font-weight:700; margin-top:12px; }
.footer-brand p { opacity:0.8; font-size:0.95rem; }
.footer-social { display:flex; gap:12px; margin-top:18px; }
.footer-social a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px; height:40px;
    background:rgba(255,255,255,0.1);
    border-radius:50%;
    color:#fff;
    transition:var(--transition);
}
.footer-social a:hover { background:var(--university-blue); transform:translateY(-3px); }
.footer-main h6 { font-weight:600; margin-bottom:18px; font-size:1.1rem; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:10px; }
.footer-links a { color:rgba(255,255,255,0.8); text-decoration:none; transition:var(--transition); }
.footer-links a:hover { color:#fff; padding-left:5px; }
.footer-newsletter { display:flex; gap:10px; margin-top:12px; }
.footer-newsletter .form-control { border-radius:30px; border:none; padding:10px 18px; flex:1; }
.footer-newsletter .btn { border-radius:30px; padding:10px 20px; background:var(--university-red-light); border:none; }
.footer-newsletter .btn:hover { background:var(--gold); color:var(--dark-gray); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding:18px 0; font-size:0.9rem; }
.footer-bottom a { color:rgba(255,255,255,0.8); text-decoration:none; }
.footer-bottom a:hover { color:#fff; }
.footer-bottom .separator { margin:0 12px; opacity:0.3; }
.developer-credit { opacity:0.7; font-size:0.85rem; }

/* Scroll to Top */
.scroll-top-btn {
    position:fixed;
    bottom:30px; right:30px;
    width:50px; height:50px;
    border-radius:50%;
    background:var(--university-red);
    color:#fff;
    border:none;
    font-size:1.2rem;
    cursor:pointer;
    box-shadow:0 4px 20px rgba(139,0,0,0.4);
    transition:var(--transition);
    z-index:999;
    opacity:0;
    visibility:hidden;
}
.scroll-top-btn.show { opacity:1; visibility:visible; }
.scroll-top-btn:hover { background:var(--university-red-dark); transform:translateY(-4px); }

/* Dark Mode Toggle */
.dark-mode-toggle {
    position:fixed;
    bottom:30px; left:30px;
    width:50px; height:50px;
    border-radius:50%;
    background:var(--dark-gray);
    color:#fff;
    border:none;
    font-size:1.2rem;
    cursor:pointer;
    box-shadow:0 4px 20px rgba(0,0,0,0.2);
    transition:var(--transition);
    z-index:999;
}
.dark-mode-toggle:hover { transform:scale(1.05); }

/* Responsive */
@media (max-width:991px) {
    .hero-title { font-size:2.8rem; }
    .timeline::before { left:20px; }
    .timeline-item { padding-right:0 !important; padding-left:50px !important; justify-content:flex-start !important; }
    .timeline-dot { left:20px !important; }
    .statistics-bar { margin-top:-30px; }
    .stat-number { font-size:1.8rem; }
}
@media (max-width:767px) {
    .section-title { font-size:2rem; }
    .hero-title { font-size:2.2rem; }
    .hero-subtitle { font-size:1rem; }
    .top-header-right { text-align:center; margin-top:4px; }
    .top-header-left { text-align:center; }
    .about-image-grid { grid-template-columns:1fr 1fr; }
    .about-grid-item img { height:140px; }
}
@media (max-width:575px) {
    .section-padding { padding:50px 0; }
    .hero-title { font-size:1.8rem; }
    .stat-number { font-size:1.5rem; }
    .statistics-bar .container { padding:20px 10px; }
    .stat-item { padding:5px 0; }
}

/* ===== UNIFIED CARD STYLES (inspired by Why Choose) ===== */
.program-card, .department-card, .staff-card, .coordinator-card, 
.gallery-card, .news-card, .download-card {
    background: #fff;
    padding: 30px 20px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 25px var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}
.program-card:hover, .department-card:hover, .staff-card:hover,
.coordinator-card:hover, .gallery-card:hover, .news-card:hover,
.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

/* Icons inside cards */
.program-icon, .department-icon, .download-icon {
    font-size: 2.8rem;
    color: var(--university-red);
    margin-bottom: 15px;
}
.program-card h4, .department-card h4, .staff-card h5,
.coordinator-card h5, .download-card h5 {
    font-weight: 600;
    margin-bottom: 6px;
}
.program-card p, .department-card p, .staff-card p,
.coordinator-card p, .download-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

/* Program meta & details */
.program-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    margin: 8px 0;
}
.program-meta i { margin-right: 4px; color: var(--university-red); }
.program-details {
    background: var(--light-gray);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: left;
    margin: 10px 0;
}
.program-actions { display: flex; justify-content: center; gap: 10px; }
.program-actions .btn { border-radius: 30px; padding: 6px 20px; }

/* Staff card specifics */
.staff-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--light-gray);
}
.staff-image img { width: 100%; height: 100%; object-fit: cover; }
.staff-position { display: block; font-size: 0.85rem; color: var(--university-red); font-weight: 500; }
.staff-qualification { font-size: 0.85rem; color: #666; }
.staff-research { font-size: 0.85rem; color: #555; margin: 6px 0; }

/* Coordinator specifics */
.coordinator-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 4px solid var(--light-gray);
}
.coordinator-image img { width: 100%; height: 100%; object-fit: cover; }
.coord-role { display: block; font-size: 0.85rem; color: var(--university-red); font-weight: 500; }
.coord-qualification { font-size: 0.85rem; color: #666; }
.coord-contact { text-align: left; font-size: 0.9rem; margin: 10px 0; }
.coord-contact p { margin-bottom: 4px; }
.coord-contact i { width: 20px; color: var(--university-red); }

/* Gallery card */
.gallery-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    background: transparent;
}
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(139,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; margin-bottom: 6px; }
.gallery-overlay span { font-weight: 500; }

/* News card */
.news-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}
.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-date {
    position: absolute;
    bottom: 12px; right: 12px;
    background: var(--university-red);
    color: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}
.news-body { padding: 20px; text-align: left; }
.news-category {
    display: inline-block;
    background: rgba(139,0,0,0.08);
    color: var(--university-red);
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.news-body h5 { font-weight: 600; margin-bottom: 10px; }
.news-body p { font-size: 0.95rem; color: #555; }

/* Download card */
.download-icon { font-size: 3rem; color: var(--university-red); margin-bottom: 12px; }

/* ===== FACTS SECTION (replacing hero stats) ===== */
.facts-section { padding: 60px 0; }
.fact-item {
    text-align: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}
.fact-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.fact-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--university-red);
    font-family: var(--font-heading);
}
.fact-suffix { font-size: 2.4rem; font-weight: 700; color: var(--university-red); margin-left: 2px; }
.fact-label { display: block; font-size: 1rem; font-weight: 500; color: #555; margin-top: 4px; }
