/* ============================================ */
/* MAIN STYLESHEET - University of Rwanda Library */
/* Enhanced Version with Better UI/UX */
/* ============================================ */

/* CSS Variables - Expanded */
:root {
    --ur-blue: #00628b;
    --ur-blue-light: #2a7aa0;
    --ur-blue-dark: #004c6e;
    --ur-gold: #cfa767;
    --ur-gold-light: #dbb885;
    --ur-gold-dark: #b88d4a;
    --ur-dark: #1a2b3c;
    --ur-dark-light: #2c3e50;
    --ur-light: #f8f9fa;
    --ur-gray: #6c757d;
    --ur-gray-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-gold: 0 10px 30px rgba(207,167,103,0.2);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================ */
/* GLOBAL IMPROVEMENTS */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ur-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Improved focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--ur-gold);
    outline-offset: 2px;
}

/* Better typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--ur-blue);
    line-height: 1.3;
}

/* ============================================ */
/* ENHANCED HEADER & TOP BAR */
/* ============================================ */

.top-bar {
    background:#00628b;
    color: white;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid var(--ur-gold);
    position: relative;
    z-index: 1030;
}

.top-bar .utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.top-bar .utility-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    position: relative;
    font-weight: 500;
}

.top-bar .utility-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ur-gold);
    transition: width var(--transition-normal);
}

.top-bar .utility-links a:hover {
    color: var(--ur-gold);
    transform: translateY(-1px);
}

.top-bar .utility-links a:hover::after {
    width: 100%;
}

.top-bar .utility-links a i {
    color: var(--ur-gold);
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* Enhanced Main Navigation */
.main-nav {
    background: white;
    box-shadow: var(--shadow-md);
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition-normal);
}

.main-nav.navbar-scrolled {
    padding: 0.1rem 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
}

.navbar-brand {
    transition: transform var(--transition-normal);
    padding: 0.25rem 0;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 55px;
    width: auto;
    transition: var(--transition-normal);
}

/* Enhanced Navigation Links */
.navbar-nav .nav-link {
    color: var(--ur-dark);
    font-weight: 600;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-normal);
    position: relative;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    margin: 0 0.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--ur-blue);
    background: rgba(0,98,139,0.05);
}

.navbar-nav .nav-link.active {
    color: var(--ur-blue);
    background: rgba(207,167,103,0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: linear-gradient(90deg, var(--ur-gold), var(--ur-gold-light));
    border-radius: 3px 3px 0 0;
}

/* Enhanced Mega Menu */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 2rem 0;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 3px solid var(--ur-gold);
    box-shadow: var(--shadow-xl);
    margin-top: 0.5rem;
    background: white;
    display: none;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1200px) {
    .mega-dropdown:hover .mega-menu {
        display: block;
    }
}

.mega-menu-section {
    margin-bottom: 1.5rem;
}

.mega-menu-title {
    font-size: 1rem;
    color: var(--ur-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ur-gold);
    font-family: 'Zurich Bold', sans-serif;
    display: flex;
    align-items: center;
}

.mega-menu-title i {
    color: var(--ur-gold);
    margin-right: 0.5rem;
    width: 20px;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links li {
    margin-bottom: 0.5rem;
}

.mega-menu-links a {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.mega-menu-links a:hover {
    color: var(--ur-blue);
    background: rgba(207,167,103,0.08);
    transform: translateX(5px);
}

.mega-menu-links a i {
    color: var(--ur-gold);
    width: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Enhanced Campus Cards in Mega Menu */
.mega-campus-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--ur-gray-light);
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.mega-campus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ur-gold);
}

.mega-campus-icon {
    margin-bottom: 1rem;
}

.mega-campus-icon i {
    font-size: 1.8rem;
    color: var(--ur-gold);
}

.mega-campus-title {
    font-family: 'Zurich Bold', sans-serif;
    color: var(--ur-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mega-campus-desc {
    font-size: 0.85rem;
    color: var(--ur-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.btn-sm-link {
    font-size: 0.85rem;
    color: var(--ur-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-normal);
}

.btn-sm-link:hover {
    color: var(--ur-gold);
    gap: 0.5rem;
}

.mega-menu-footer {
    border-top: 1px solid var(--ur-gray-light);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.mega-menu-footer .btn {
    background: linear-gradient(135deg, var(--ur-blue), var(--ur-blue-dark));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.mega-menu-footer .btn:hover {
    background: transparent;
    color: var(--ur-blue);
    border-color: var(--ur-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Enhanced Search Bar */
.search-wrapper {
    min-width: 280px;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--ur-blue);
    transition: var(--transition-normal);
    background: white;
}

.search-form .input-group:focus-within {
    border-color: var(--ur-gold);
    box-shadow: 0 0 0 4px rgba(207,167,103,0.25);
}

.search-form .form-control {
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    background: var(--ur-light);
}

.search-form .form-control:focus {
    box-shadow: none;
    background: white;
}

.search-form .btn {
    border: none;
    padding: 0.7rem 1.2rem;
    background: var(--ur-blue);
    color: white;
    transition: var(--transition-normal);
}

.search-form .btn:hover {
    background: var(--ur-gold);
    color: var(--ur-blue);
}

/* ============================================ */
/* ENHANCED HERO SECTION - INCREASED OPACITY */
/* ============================================ */

/* ============================================ */
/* ENHANCED HERO SECTION - BALANCED OPACITY */
/* ============================================ */

.hero-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slide {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
}

/* Balanced opacity - 70% overlay so background image is visible */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   background: linear-gradient(135deg, rgba(0,98,139,0.6) 0%, rgba(0,98,139,0.5) 100%);
    z-index: 1;
}

/* Add a subtle dark overlay for better text contrast */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.hero-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: white;
    font-weight: 600;
    display: inline-block;
    animation: fadeInUp 1s ease-out;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-slide h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-slide .lead {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Stronger text shadow for better readability */
.hero-slide h1 strong,
.hero-slide .lead strong {
    color: var(--ur-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Enhanced Search in Hero */
.hero-search-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-search-container {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--ur-gold);
    border-radius: 60px;
    padding: 0.3rem;
    box-shadow: 0 30px 50px rgba(0,0,0,0.4);
    transition: var(--transition-normal);
}

.hero-search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 60px rgba(0,0,0,0.5);
}

.hero-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--ur-blue);
    font-size: 1.2rem;
    z-index: 10;
}

.hero-search-input {
    border: none;
    background: transparent;
    height: 65px;
    font-size: 1.1rem;
    color: var(--ur-dark);
    font-weight: 500;
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 5rem;
}

.hero-search-input:focus {
    outline: none;
}

.hero-search-input::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 1rem;
}

.hero-search-submit-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ur-gold);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--ur-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(207,167,103,0.4);
}

.hero-search-submit-btn:hover {
    background: var(--ur-blue);
    color: var(--ur-gold);
    transform: translateY(-50%) rotate(90deg);
    box-shadow: 0 6px 18px rgba(0,98,139,0.5);
}

.hero-search-options {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(207,167,103,0.3);
}

.search-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: center;
}

.search-filter-label {
    color: var(--ur-blue) !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.search-filter-label:hover {
    color: var(--ur-gold) !important;
    transform: translateY(-2px);
}

.search-filter-label input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--ur-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================ */
/* ENHANCED QUICK ACTION CARDS */
/* ============================================ */

.quick-actions {
    margin-top: -3rem;
    position: relative;
    z-index: 20;
}

.quick-action-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ur-dark);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ur-gold), var(--ur-blue));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ur-gold);
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.icon-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--ur-blue), var(--ur-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ur-gold);
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.quick-action-card:hover .icon-circle {
    transform: scale(1.1) rotate(360deg);
    background: var(--ur-gold);
    color: var(--ur-blue);
}

.quick-action-card .content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--ur-blue);
    transition: var(--transition-normal);
}

.quick-action-card:hover .content h4 {
    color: var(--ur-gold-dark);
}

.quick-action-card .content span {
    font-size: 0.9rem;
    color: var(--ur-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================ */
/* ENHANCED STATISTICS SECTION */
/* ============================================ */

.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
}

.stat-item-enhanced {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--ur-gray-light);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-item-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ur-gold), var(--ur-blue));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-item-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ur-gold);
}

.stat-item-enhanced:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--ur-blue), var(--ur-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.stat-item-enhanced:hover .stat-icon {
    transform: scale(1.1) rotate(360deg);
    background: var(--ur-gold);
}

.stat-icon i {
    font-size: 2.8rem;
    color: var(--ur-gold);
    transition: var(--transition-normal);
}

.stat-item-enhanced:hover .stat-icon i {
    color: var(--ur-blue);
}

.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--ur-blue);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--ur-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ============================================ */
/* ENHANCED SECTION HEADERS */
/* ============================================ */

.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--ur-gold);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding: 0.3rem 1.5rem;
    background: rgba(207,167,103,0.1);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ur-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--ur-gold), var(--ur-blue));
    border-radius: 3px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--ur-gray);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* ============================================ */
/* PAGE HEADERS - WHITE TITLES FOR ALL PAGES */
/* ============================================ */

/* Page Header - For all interior pages */
.page-header {
    background: linear-gradient(135deg, var(--ur-blue) 0%, var(--ur-blue-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Make all headings white in page headers */
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header .display-1,
.page-header .display-2,
.page-header .display-3,
.page-header .display-4,
.page-header .display-5,
.page-header .display-6 {
    color: white !important;
}

/* Page header lead text */
.page-header .lead {
    color: rgba(255,255,255,0.95) !important;
}

/* Badge in page header */
.page-header .badge-gold,
.page-header .section-subtitle {
    color: var(--ur-blue) !important;
    background: var(--ur-gold);
}

/* Breadcrumbs in page header */
.page-header .breadcrumb {
    background: transparent;
}

.page-header .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.page-header .breadcrumb-item a:hover {
    color: var(--ur-gold);
}

.page-header .breadcrumb-item.active {
    color: var(--ur-gold);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ============================================ */
/* INTERIOR PAGE TITLES - WHITE */
/* ============================================ */

/* About page */
.about-header h1,
.about-header h2,
.mission-header h1,
.mission-header h2 {
    color: white !important;
}

/* Contact page */
.contact-header h1,
.contact-header h2 {
    color: white !important;
}

/* Services page */
.services-header h1,
.services-header h2 {
    color: white !important;
}

/* Resources page */
.resources-header h1,
.resources-header h2 {
    color: white !important;
}

/* Policy pages */
.policy-header h1,
.policy-header h2 {
    color: white !important;
}

/* Research support pages */
.research-header h1,
.research-header h2 {
    color: white !important;
}

/* Campus pages */
.campus-header h1,
.campus-header h2 {
    color: white !important;
}

/* News pages */
.news-header h1,
.news-header h2 {
    color: white !important;
}

/* Events pages */
.events-header h1,
.events-header h2 {
    color: white !important;
}

/* FAQ pages */
.faq-header h1,
.faq-header h2 {
    color: white !important;
}

/* Help pages */
.help-header h1,
.help-header h2 {
    color: white !important;
}

/* Search results page */
.search-header h1,
.search-header h2 {
    color: white !important;
}

/* 404 page */
.error-header h1,
.error-header h2 {
    color: white !important;
}

/* ============================================ */
/* SPECIFIC PAGE HEADER CLASSES */
/* ============================================ */

/* Generic page header class that can be applied to any page */
.page-title {
    color: white !important;
}

.page-title-wrapper {
    background: linear-gradient(135deg, var(--ur-blue) 0%, var(--ur-blue-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.page-title-wrapper .container {
    position: relative;
    z-index: 2;
}

.page-title-wrapper h1 {
    color: white !important;
    font-family: 'Zurich Bold', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-title-wrapper .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* ============================================ */
/* ENHANCED REPOSITORY CARDS */
/* ============================================ */

.repository-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--ur-gray-light);
}

.repository-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ur-gold);
}

.repository-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.repository-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    transition: var(--transition-normal);
}

.repository-card:hover .repository-image::before {
    background: linear-gradient(180deg, rgba(0,98,139,0.3) 0%, rgba(0,98,139,0.9) 100%);
}

.repository-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,98,139,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.repository-card:hover .repository-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--ur-gold);
    color: var(--ur-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--shadow-gold);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.repository-card:hover .btn-view {
    transform: translateY(0);
    opacity: 1;
}

.btn-view:hover {
    background: white;
    color: var(--ur-blue);
    border-color: var(--ur-gold);
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg);
}

.repository-info {
    padding: 2rem 1.5rem;
    background: white;
    position: relative;
}

.repository-info h4 {
    font-size: 1.4rem;
    color: var(--ur-blue);
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.repository-card:hover .repository-info h4 {
    color: var(--ur-gold-dark);
}

.repository-location,
.repository-college {
    font-size: 0.95rem;
    color: var(--ur-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.repository-location i,
.repository-college i {
    color: var(--ur-gold);
    width: 24px;
    font-size: 1rem;
}

.repository-hours {
    font-size: 0.9rem;
    color: var(--ur-blue);
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--ur-gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repository-hours i {
    color: var(--ur-gold);
    font-size: 1rem;
}

/* ============================================ */
/* ENHANCED CAMPUS CARDS */
/* ============================================ */

.campus-preview-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.campus-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--ur-gray-light);
}

.campus-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ur-gold);
}

.campus-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.campus-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    transition: var(--transition-normal);
}

.campus-card:hover .campus-image::before {
    background: linear-gradient(180deg, rgba(0,98,139,0.3) 0%, rgba(0,98,139,0.9) 100%);
}

.campus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,98,139,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.campus-card:hover .campus-overlay {
    opacity: 1;
}

.campus-info {
    padding: 1.5rem;
    background: white;
}

.campus-info h4 {
    font-size: 1.2rem;
    color: var(--ur-blue);
    margin-bottom: 0.8rem;
    transition: var(--transition-normal);
}

.campus-card:hover .campus-info h4 {
    color: var(--ur-gold-dark);
}

.campus-location,
.campus-college {
    font-size: 0.9rem;
    color: var(--ur-gray);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campus-location i,
.campus-college i {
    color: var(--ur-gold);
    width: 18px;
}

.campus-hours {
    font-size: 0.85rem;
    color: var(--ur-blue);
    font-weight: 600;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--ur-gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campus-hours i {
    color: var(--ur-gold);
}

/* Enhanced View All Button */
.view-all-btn {
    background: linear-gradient(135deg, var(--ur-blue), var(--ur-blue-dark));
    color: white;
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    text-decoration: none;
    width: 100%;
}

.view-all-btn:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: white;
    color: var(--ur-blue);
    border-color: var(--ur-gold);
}

.view-all-btn i {
    font-size: 4rem;
    color: var(--ur-gold);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.view-all-btn:hover i {
    transform: scale(1.1) rotate(360deg);
    color: var(--ur-gold);
}

.view-all-btn span {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.view-all-btn small {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.view-all-btn:hover small {
    color: var(--ur-gray);
}

/* ============================================ */
/* ENHANCED NEWS CARDS */
/* ============================================ */

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
    border: 1px solid var(--ur-gray-light);
}

.news-card.featured {
    border: 3px solid var(--ur-gold);
    box-shadow: var(--shadow-gold);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.featured-news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--ur-gold);
    color: var(--ur-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(207,167,103,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(207,167,103,0); }
    100% { box-shadow: 0 0 0 0 rgba(207,167,103,0); }
}

.news-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    transition: var(--transition-normal);
}

.news-card:hover .news-image::before {
    background: linear-gradient(180deg, rgba(0,98,139,0.3) 0%, rgba(0,98,139,0.9) 100%);
}

.news-date {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--ur-gold);
    color: var(--ur-blue);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 75px;
    z-index: 3;
    box-shadow: var(--shadow-lg);
    font-weight: bold;
    transition: var(--transition-normal);
}

.news-card:hover .news-date {
    transform: scale(1.05);
    background: var(--ur-blue);
    color: var(--ur-gold);
}

.news-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.news-content {
    padding: 2rem 1.5rem;
    background: white;
}

.news-category {
    background: var(--ur-blue);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: var(--ur-blue);
    line-height: 1.4;
    transition: var(--transition-normal);
}

.news-card:hover .news-content h3 {
    color: var(--ur-gold-dark);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--ur-gray);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.news-meta i {
    color: var(--ur-gold);
    margin-right: 0.3rem;
}

.btn-link {
    color: var(--ur-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: var(--ur-gold);
    gap: 1rem;
}

/* ============================================ */
/* ENHANCED BUTTON STYLES */
/* ============================================ */

.btn-outline-primary {
    border: 2px solid var(--ur-blue);
    color: var(--ur-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition-normal);
    font-size: 0.95rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ur-blue);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--ur-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ur-blue), var(--ur-blue-dark));
    border: none;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ur-gold), var(--ur-gold-dark));
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--ur-blue);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-gold {
    background: linear-gradient(135deg, var(--ur-gold), var(--ur-gold-dark));
    color: var(--ur-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-gold:hover {
    color: var(--ur-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-gold:hover::before {
    left: 0;
}

/* ============================================ */
/* ENHANCED NEWSLETTER SECTION */
/* ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--ur-blue) 0%, var(--ur-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(207,167,103,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-wrapper {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(207,167,103,0.3);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.newsletter-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.newsletter-wrapper p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--ur-gold);
    box-shadow: 0 0 0 4px rgba(207,167,103,0.3);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: white;
    height: auto;
}

.newsletter-form .btn-gold {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 0 50px 50px 0;
}

/* ============================================ */
/* ENHANCED FOOTER */
/* ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--ur-dark) 0%, #0f1a24 100%);
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ur-gold), var(--ur-blue));
}

.footer-main {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.footer-about p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-about strong {
    color: var(--ur-gold);
    font-weight: 700;
}

/* Contact Info */
.footer-about .d-flex {
    transition: var(--transition-normal);
    padding: 0.25rem 0;
}

.footer-about .d-flex:hover {
    transform: translateX(5px);
}

.footer-about .d-flex i {
    color: var(--ur-gold);
    font-size: 1rem;
}

.footer-about .d-flex span {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Social Media Links */
.footer-about .mt-4 a {
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.footer-about .mt-4 a:hover {
    background: var(--ur-gold) !important;
    color: var(--ur-blue) !important;
    transform: translateY(-5px) scale(1.1);
    border-color: var(--ur-gold);
}

/* Footer Headings */
.footer-links h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-family: 'Zurich Bold', sans-serif;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ur-gold);
    border-radius: 3px;
}

/* Footer Links */
.footer-links ul li {
    margin-bottom: 0.75rem;
    transition: var(--transition-normal);
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a {
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: var(--ur-gold);
}

.footer-links ul li a i {
    color: var(--ur-gold);
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: var(--transition-normal);
}

.footer-links ul li:hover a i {
    transform: translateX(3px);
}

/* Campus Stats Badge */
.footer-links .p-3 {
    background: rgba(207,167,103,0.1) !important;
    border: 1px solid rgba(207,167,103,0.3);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.footer-links .p-3:hover {
    background: rgba(207,167,103,0.15) !important;
    transform: translateY(-2px);
}

.footer-links .p-3 i {
    color: var(--ur-gold);
}

.footer-links .p-3 span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #999;
    margin: 0;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    padding: 0.25rem 0;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ur-gold);
    transition: width var(--transition-normal);
}

.footer-bottom a:hover {
    color: var(--ur-gold);
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* ============================================ */
/* ENHANCED BACK TO TOP BUTTON */
/* ============================================ */

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ur-gold);
    color: var(--ur-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
    opacity: 0;
    transform: scale(0.8);
}

#backToTop.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

#backToTop:hover {
    background: var(--ur-blue);
    color: var(--ur-gold);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to elements */
[data-aos="fade-up"] {
    animation: fadeInUp 1s ease-out;
}

[data-aos="fade-in"] {
    animation: fadeIn 1s ease-out;
}

[data-aos="slide-left"] {
    animation: slideInLeft 1s ease-out;
}

[data-aos="slide-right"] {
    animation: slideInRight 1s ease-out;
}

[data-aos="zoom-in"] {
    animation: zoomIn 0.8s ease-out;
}

/* ============================================ */
/* LOADING STATES */
/* ============================================ */

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(207,167,103,0.3);
    border-radius: 50%;
    border-top-color: var(--ur-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading effect */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================ */
/* ACCESSIBILITY IMPROVEMENTS */
/* ============================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --ur-blue: #004080;
        --ur-gold: #b8860b;
    }
    
    .btn,
    .nav-link,
    .quick-action-card,
    .campus-card,
    .news-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================ */
/* RESPONSIVE IMPROVEMENTS */
/* ============================================ */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .footer-main {
        padding: 3rem 0;
    }
    
    .newsletter-wrapper {
        padding: 2.5rem;
    }
    
    .newsletter-wrapper h3 {
        font-size: 1.8rem;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .hero-search-container {
        border-radius: 40px;
    }
    
    .hero-search-input {
        height: 55px;
        font-size: 1rem;
        padding-left: 3rem;
        padding-right: 4rem;
    }
    
    .hero-search-icon {
        left: 1rem;
        font-size: 1rem;
    }
    
    .hero-search-submit-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .hero-search-options {
        padding: 0.8rem 1rem;
    }
    
    .search-filter-group {
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .search-filter-label {
        font-size: 0.85rem;
    }
    
    .quick-actions {
        margin-top: -2rem;
    }
    
    .quick-action-card {
        padding: 1.2rem;
    }
    
    .icon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .quick-action-card .content h4 {
        font-size: 1rem;
    }
    
    .stat-item-enhanced {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
    }
    
    .stat-icon i {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .repository-info h4 {
        font-size: 1.2rem;
    }
    
    .campus-info h4 {
        font-size: 1.1rem;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .newsletter-wrapper {
        padding: 2rem;
    }
    
    .newsletter-wrapper h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-wrapper p {
        font-size: 1rem;
    }
    
    .footer-main {
        padding: 2.5rem 0;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    #backToTop {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
    
    .hero-search-wrapper {
        padding: 0 0.5rem;
    }
    
    .hero-search-input {
        height: 50px;
        font-size: 0.9rem;
        padding-left: 2.5rem;
        padding-right: 3.5rem;
    }
    
    .hero-search-submit-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .hero-search-options {
        padding: 0.5rem;
    }
    
    .search-filter-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .quick-action-card {
        padding: 1rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .quick-action-card .content h4 {
        font-size: 0.95rem;
    }
    
    .quick-action-card .content span {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .btn-primary,
    .btn-gold,
    .btn-outline-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }
    
    .newsletter-form .form-control {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .newsletter-form .btn-gold {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        width: 100%;
    }
    
    .footer-bottom a {
        display: inline-block;
        margin: 0.25rem 0.5rem;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
        padding: 4rem 0;
    }
    
    .hero-slide {
        min-height: 120vh;
    }
    
    .hero-search-wrapper {
        margin: 1rem auto;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .main-nav,
    .quick-actions,
    .newsletter-section,
    .site-footer,
    #backToTop {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}