/* ==== RESET & VARIABLES ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
:root {
    --primary: #5c291e;   
    --secondary: #b04b34; 
    --accent: #7a3425;    
    --dark: #23130e;      
    --darker-brown: #3e1e16; 
    --black: #000000;
    --light: #f9f7f5;     
    --text: #23130e;      
    --bg: #ffffff;
    
    /* Professional Theme Colors */
    --navy-dark: #0d1420;
    --navy-light: #1c2331;
    --text-muted: #cbd5e1;

    --radius: 6px; 
    --shadow: 0 4px 15px rgba(35, 19, 14, 0.15); 
    --section-pad: 3rem; 
    --compact-pad: 2rem;
    --theme-gradient: linear-gradient(140deg, #3b1a14 0%, #b04b34 100%); 
    --theme-texture: linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.03) 75%, transparent 75%, transparent);
    --texture-size: 4px 4px;
    
    --footer-bg: #0d1420;
    --footer-text: #cbd5e1;
    --footer-accent: #b04b34; 
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: .5rem;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 94%; max-width: 1200px; margin: auto; padding: 0 10px; }
ul { list-style: none !important; }

/* ==== STRICT LINK OVERRIDES ==== */
.top-bar a, .top-bar-links a { color: #e0e0e0 !important; text-decoration: none !important; }
.top-bar a:hover, .top-bar-links a:hover { color: #ffffff !important; text-decoration: none !important; }
.nav-menu a, footer a { text-decoration: none !important; }
.nav-menu > li > a { color: var(--text) !important; }
.nav-menu > li > a:hover { color: var(--secondary) !important; }
footer a { color: var(--footer-text) !important; }
footer a:hover { color: var(--footer-accent) !important; }

/* ==== NOTIFICATION BADGE (For Top Bar) ==== */
.notification-badge-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.notification-badge-link:hover {
    color: #ffffff !important;
}
.notification-badge-link i {
    font-size: 1.4rem; 
}
.badge-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #ffc107; 
    color: #000000 !important; 
    border-radius: 4px; 
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    border: 1px solid #000;
    z-index: 10; 
}

/* ==== UTILITIES ==== */
.btn-primary { 
    background: var(--secondary); color: #fff; padding: 10px 24px; 
    border-radius: 50px; font-weight: 600; display: inline-block; 
    font-size: 0.9rem; box-shadow: 0 4px 6px rgba(176, 75, 52, 0.3);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.badge-new {
    background-color: #ff0055;
    color: white; font-size: 0.65rem; padding: 2px 5px;
    border-radius: 3px; margin-left: 5px; font-weight: 700;
    text-transform: uppercase; vertical-align: middle;
}

/* ==== TOP BAR ==== */
.top-bar { 
    background-color: var(--navy-dark) !important;
    padding: 6px 0; 
    font-size: 0.8rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; 
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.contact-info i { color: var(--secondary); margin-right: 5px; }
.contact-info span { margin-right: 15px; color: #e0e0e0; }
.top-bar-links { display: flex; gap: 10px; align-items: center; }
.top-bar-links .divider { opacity: 0.5; margin: 0 2px; color: #fff; }

.library-status-wrapper { display: inline-flex; align-items: center; margin-left: 0; margin-right: 15px; }
.status-label { margin-right: 8px; font-weight: 600; color: #eee; font-size: 0.85rem; }
.status-indicator {
    display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.75rem;
    font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.3);
}
.status-indicator.open { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.status-indicator.closed { background: linear-gradient(135deg, #c0392b, #e74c3c); }

/* ==== HEADER & NAV ==== */
.main-header { 
    background: #fff; padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,.05); 
    position: sticky; top: 0; z-index: 1000; border-bottom: none;
}
.header-content { display: flex; justify-content: space-between; align-items: center; min-height: 100px !important; padding: 10px 0;}
.logo-img { height: 90px !important; width: auto; max-height: none !important; }

.nav-menu { display: flex; align-items: center; gap: 1rem; height: 100%; margin-bottom: 0; }
.nav-menu > li { height: 100%; display: flex; align-items: center; position: relative; }
.nav-menu > li > a { 
    font-weight: 700; font-size: 0.9rem; padding: 5px 0; position: relative; 
    text-transform: none; letter-spacing: normal; color: var(--text) !important;
}
.nav-menu > li > a i.fa-angle-down { margin-left: 4px; font-size: 0.7em; opacity: 1; }

.submenu, .nested-submenu, .mega-nested-menu {
    display: none; position: absolute; 
    background-color: var(--secondary);
    background-image: var(--theme-texture), var(--theme-gradient);
    background-size: var(--texture-size), cover;
    box-shadow: var(--shadow); 
    border-radius: 0 0 4px 4px; padding: 0; z-index: 1001;
    border-top: 3px solid #fff;
}
.submenu { top: 100%; left: 0; min-width: 240px; }
.nested-submenu { top: 0; left: 100%; min-width: 220px; border-radius: 4px; margin-left: -2px; border-top: none; }

@media (min-width: 993px) {
    .nav-menu li:hover > .submenu { display: block; animation: slideUpCenter 0.2s ease; }
    .submenu li { position: relative; }
    .submenu li:hover > .nested-submenu { display: block; }
    .has-nested-mega:hover > .mega-nested-menu { display: block; }
    .nav-menu li.has-mega-menu:hover .mega-menu-container { display: block; animation: slideUpCenter 0.2s ease; }
}

.submenu a { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; font-size: 0.85rem; color: #ffffff !important; 
    font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s; text-transform: none;
}
.submenu a:last-child { border-bottom: none; }
.submenu a:hover { background: rgba(0,0,0,0.1); color: #fff !important; padding-left: 20px; }

/* Mega Menu */
.mega-menu-container {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); 
    width: 90vw; max-width: 1200px; background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-top: 4px solid var(--secondary); 
    display: none; padding: 1.5rem; z-index: 999; border-radius: 0 0 8px 8px;
}
.mega-menu-content-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mega-menu-col h3 { 
    font-size: 0.9rem; text-transform: uppercase; color: var(--primary); 
    margin-bottom: 0.8rem; border-bottom: 1px solid #eee; padding-bottom: 5px; 
}
.mega-menu-col ul li { margin-bottom: 5px; border-bottom: 1px dashed #eee; padding-bottom: 4px; position: relative; }
.mega-menu-col ul li:last-child { border-bottom: none; }
.mega-menu-col ul li a { 
    font-size: 0.85rem; color: #555 !important; display: flex; align-items: center; gap: 8px; font-weight: 600; 
    transition: all 0.2s; width: 100%;
}
.mega-menu-col ul li a:hover { color: var(--secondary) !important; transform: translateX(3px); }
.mega-menu-col ul li a i { width: 16px; text-align: center; color: var(--secondary); }

/* Nested Mega Menu */
.mega-nested-menu {
    left: 100%; top: -5px; min-width: 200px;
    background: var(--secondary); border-radius: 4px;
    background-image: var(--theme-texture), var(--theme-gradient);
}
.mega-nested-menu.open-left { left: auto; right: 100%; margin-left: 0; margin-right: -2px; }
.mega-nested-menu li a { color: #fff !important; padding: 8px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mega-nested-menu li a:hover { background: rgba(0,0,0,0.2); color: #fff !important; transform: none !important; padding-left: 15px; }

.hamburger { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; padding: 10px; }

/* ==== HERO & SLIDER ==== */
.hero { 
    position: relative; 
    /* Increased height for a wider view, prevents excessive cropping */
    height: 65vh; 
    min-height: 550px; 
    max-height: 800px;
    overflow: hidden; 
}
.swiper { width: 100%; height: 100%; }
.slide { 
    background-size: cover; 
    background-position: center top; /* Keeps focus on the building top */
    background-repeat: no-repeat;
    position: relative; 
}
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.11); }
/* .slide::before { display: none; } */
 /* Removed dark overlay to show original images clearly */
.slide-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; color: #fff; padding: 0 20px;
}
.slide-title { font-size: 1.8rem; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }
.slide-text { font-size: 1.1rem; margin-bottom: 2rem; max-width: 700px; text-shadow: 1px 1px 5px rgba(0,0,0,0.9); font-weight: 600; }

/* ==== SEARCH TABS (COMPACT TAB LOOK) ==== */
.search-over-slider {
    position: absolute; 
    bottom: 25px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 90%; 
    max-width: 800px; /* Compact width */
    z-index: 10; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
}
.search-tabs { 
    display: flex; 
    background: var(--navy-light); /* Professional Navy Blue */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.tab-btn {
    flex: 1;
    background: var(--navy-light); 
    border: none;
    color: rgba(255, 255, 255, 0.7); 
    padding: 12px 15px;
    cursor: pointer; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    text-shadow: none;
}
.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.tab-btn.active { 
    background: var(--secondary); /* Theme Rust Color */
    color: #fff; 
}
.search-content-wrapper {
    background: #ffffff; 
    padding: 15px 25px 20px 25px; /* Compact padding */
    border-radius: 0 0 8px 8px; 
}
.catalog-search-layout { display: flex; flex-direction: column; width: 100%; gap: 12px; }

/* Trending Keywords */
.trending-keywords {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.85rem; color: #222; font-weight: 600; margin-bottom: 2px;
}
.trending-keywords span:first-child { font-weight: 700; color: var(--dark); margin-right: 5px; }
.trending-tag { 
    display: inline-block; background: #fdf2ef; border: 1px solid #f9e5df;
    color: var(--secondary); padding: 3px 12px; border-radius: 20px; 
    cursor: pointer; transition: 0.2s; font-size: 0.8rem;
}
.trending-tag:hover { background: var(--secondary); color: #fff; }

/* Search Input Box */
.search-row-top { display: flex; width: 100%; }
.search-input-wrapper { flex: 1; position: relative; display: flex; align-items: center; }
.search-input-wrapper input {
    width: 100%; background: #fff; border: 1px solid #ccc; border-right: none;
    padding: 10px 40px 10px 15px; font-size: 0.95rem; outline: none; color: #333; 
    border-radius: 4px 0 0 4px; transition: border-color 0.3s;
}
.search-input-wrapper input:focus { border-color: var(--secondary); }
.search-input-wrapper input::placeholder { color: #aaa; }

.clear-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #999; font-size: 1.2rem; display: none; z-index: 5;
}
.clear-btn:hover { color: var(--secondary); }

/* Search Submit Button */
.search-row-top button {
    background: var(--secondary); color: #fff; border: none; width: 55px; 
    cursor: pointer; transition: 0.3s; font-size: 1.1rem; border-radius: 0 4px 4px 0;
    display: flex; align-items: center; justify-content: center;
}
.search-row-top button:hover { background: var(--primary); }

/* Radio Buttons */
.search-options-row {
    display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: 0.85rem; 
    color: #555; font-weight: 600; padding-top: 4px;
}
.radio-option { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.radio-option input[type="radio"] { accent-color: var(--secondary); cursor: pointer; width: 14px; height: 14px; margin: 0; }

/* ==== NEWS TICKER (Professional Dark Navy Theme) ==== */
.news-ticker { 
    background-color: var(--navy-dark); /* Matches Top Bar & Footer Navy Blue */
    background-image: none;
    color: var(--text-muted); 
    height: 45px; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    font-size: 0.95rem; 
    border-bottom: 3px solid var(--secondary); 
}
.ticker-label { 
    background: var(--secondary); 
    color: #fff;
    height: 100%; 
    padding: 0 20px; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    z-index: 2; 
    font-size: 0.85rem; 
 
    letter-spacing: 1px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5); /* 3D Depth effect */
}
.ticker-wrapper { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-content { display: inline-block; padding-left: 100%; animation: ticker 35s linear infinite; }
.ticker-wrapper:hover .ticker-content { animation-play-state: paused; cursor: pointer; }
.ticker-item { display: inline-block; margin-right: 40px; }
.ticker-item a { 
    color: var(--text-muted) !important; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    font-weight: 600; 
    letter-spacing: 0.3px; 
    transition: color 0.3s ease;
}
.ticker-item i { color: var(--secondary); margin-right: 8px; font-size: 1.1rem; filter: none; }
.ticker-item:hover a { color: #fff !important; text-decoration: underline !important; } 
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ==== SECTIONS ==== */
.section-title { text-align: center; margin-bottom: 1.5rem; position: relative; }
.section-title h2 { 
    font-size: 2rem; color: var(--primary); display: inline-block; position: relative;
    padding-bottom: 8px; margin-bottom: 8px;
}
.section-title h2::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--secondary); border-radius: 2px;
    transition: width 0.3s ease;
}
.section-title:hover h2::after { width: 140px; }
.section-title p { color: #666; font-size: 0.95rem; max-width: 700px; margin: 0 auto; }
.section-padding { padding: var(--section-pad) 0; }
.compact-padding { padding: var(--compact-pad) 0; }
.bg-light { background: var(--light); }

/* ==== BREADCRUMBS ==== */
.breadcrumbs-section {
    background-size: cover; background-position: center;
    position: relative; padding: 80px 0;
    color: #fff; text-align: center;
    background-color: var(--dark); 
}
.breadcrumbs-section::before {
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(135deg, rgba(35, 19, 14, 0.9), rgba(92, 41, 30, 0.8)); 
}
.breadcrumb-content { position: relative; z-index: 2; }
.breadcrumb-content h1 { font-size: 2.5rem; margin-bottom: 10px; }
.breadcrumb-nav { font-size: 0.9rem; }
.breadcrumb-nav a { color: #fff; font-weight: 600; opacity: 0.9; text-decoration: none !important; }
.breadcrumb-nav a:hover { color: var(--secondary); opacity: 1; }
.breadcrumb-nav span { margin: 0 5px; color: var(--secondary); }

/* ==== PARTNERS ==== */
.partners-section { padding: 1.5rem 0; background: #fff; border-bottom: 1px solid #eee; }
.partners-slider { position: relative; padding: 0 30px; }
.partner-slide { display: flex; align-items: center; justify-content: center; height: 70px; }
.partner-slide img { max-height: 55px; max-width: 100%; width: auto; filter: none; opacity: 1; transition: all 0.3s ease; }
.partner-slide:hover img { transform: scale(1.08); }
.swiper-button-next, .swiper-button-prev { color: var(--secondary); width: 20px; height: 20px; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1rem; font-weight: bold; }

/* ==== QUICK LINKS ==== */
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ql-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #eee; }
.ql-header { 
    background-image: var(--theme-gradient); 
    padding: 8px 15px; display: flex; align-items: center; gap: 10px; color: #fff; 
}
.ql-header i { background: rgba(255,255,255,0.2); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 0.85rem; }
.ql-header h3 { font-family: 'Open Sans', sans-serif; font-size: 0.95rem; font-weight: 600; margin: 0; }
.ql-body { padding: 8px 10px; }
.ql-body li { margin-bottom: 3px; border-bottom: 1px dashed #eee; padding-bottom: 3px; }
.ql-body li:last-child { border: none; margin: 0; padding: 0; }
.ql-body a { 
    font-size: 0.85rem; display: flex; align-items: center; gap: 8px; 
    color: var(--primary) !important; font-weight: 700; position: relative; 
    padding: 5px 8px; border-radius: 4px; overflow: hidden; transition: color 0.3s ease; z-index: 1;
}
.ql-body a i { color: var(--secondary); font-size: 0.8rem; width: 16px; text-align: center; z-index: 2; }
.ql-body a::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; 
    background: #fceae6; z-index: -1; transition: width 0.3s ease-in-out; 
}
.ql-body a:hover::before { width: 100%; }
.ql-body a:hover { color: var(--primary) !important; padding-left: 15px; } 
.ql-body a:hover i { color: var(--secondary); }

/* ==== LIBRARY RESOURCES ==== */
.resources-section { padding: 2rem 0; background: #fdfaf8; }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.resource-box {
    display: flex; box-shadow: 0 2px 8px rgba(92, 41, 30, 0.1);
    background: #fff; border: 1px solid #ede0dd; transition: transform 0.3s;
    border-radius: 4px; overflow: hidden;
}
.resource-box:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(176, 75, 52, 0.2); }
.resource-icon {
    width: 60px; background: var(--secondary); display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; color: #fff; transition: background 0.3s;
}
.resource-box:hover .resource-icon { background: var(--accent); }
.resource-content {
    flex: 1; padding: 10px 15px; background: #fff; 
    display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #f0f0f0;
}
.resource-number { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.resource-label { font-size: 0.8rem; color: var(--primary); margin-top: 2px; font-weight: 600; }

/* ==== FACILITIES ==== */
.facilities-full-width { 
    background-image: var(--theme-gradient); 
    padding: 0; color: #fff; margin-top: 2rem; 
}
.facilities-inner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.fac-card { background: #fff; border-radius: 0 !important; overflow: hidden; display: flex; box-shadow: none; height: 100%; min-height: 250px; }
.fac-img { width: 45%; object-fit: cover; height: 100%; min-height: 100%; }
.fac-content { padding: 2rem; width: 55%; color: var(--text); display: flex; flex-direction: column; justify-content: center; }
.fac-content h3 { color: var(--secondary); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.fac-content p { font-size: 0.9rem; color: #555; margin-bottom: 1rem; line-height: 1.5; }
.btn-fac { background: var(--dark); color: #fff !important; padding: 6px 16px; border-radius: 0 !important; font-size: 0.8rem; font-weight: 700; align-self: flex-start; text-transform: uppercase; transition: 0.3s; }
.btn-fac:hover { background: var(--secondary); color: #fff !important; }

/* ==== ABOUT OVERLAP ==== */
.about-overlap-section { padding: 4rem 0; background: #fff; position: relative; overflow: hidden; }
.about-container { position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.about-image { width: 50%; position: relative; z-index: 1; }
.about-image img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 0 !important; box-shadow: var(--shadow); }
.about-content-box { 
    width: 45%; background: var(--dark); color: #fff; padding: 2.5rem; 
    border-radius: 0 !important; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    margin-left: -5%; z-index: 2; 
}
.about-content-box h3 { font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.about-content-box h4 { color: var(--secondary); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.about-content-box p { font-size: 0.95rem; line-height: 1.6; color: #ccc; margin-bottom: 1.5rem; }
.btn-about { background: var(--secondary); color: #fff !important; padding: 10px 25px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; border-radius: 0 !important; }
.btn-about:hover { background: #fff; color: var(--secondary) !important; }

/* ==== FOOTER (Dark Navy Theme) ==== */
footer { 
    background-color: var(--navy-dark) !important; 
    background-image: none !important;
    color: var(--text-muted) !important; 
    padding: 4rem 0 0 !important; 
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem; 
    margin-top: 0;
    border-top: none !important;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-col h3 { 
    color: #ffffff !important; 
    font-size: 1.1rem !important; 
    font-weight: 700 !important; 
    margin-bottom: 1.2rem !important; 
    padding-bottom: 6px !important; 
    border-bottom: 2px solid var(--secondary) !important; 
    display: inline-block; 
}
.footer-col h3::after { display: none !important; }
.footer-col p { color: var(--text-muted) !important; font-size: 0.9rem; line-height: 1.8; margin-bottom: 8px; }
.contact-text-p { margin-bottom: 4px !important; line-height: 1.4 !important; }
.footer-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-col ul li { margin-bottom: 12px !important; border: none; padding: 0; }
.footer-col ul li a { color: #94a3b8 !important; transition: color 0.3s, transform 0.3s; font-size: 0.9rem; display: inline-block; padding: 0; text-decoration: none !important; }
.footer-col ul li a::before { content: '' !important; margin: 0 !important; }
.footer-col ul li a:hover { color: var(--secondary) !important; transform: translateX(3px); background: transparent; padding-left: 0; }
.footer-logo { width: 280px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.hours-item { display: flex; gap: 12px; margin-bottom: 15px !important; align-items: flex-start; padding: 0 !important; border-radius: 0; transition: none; background: transparent !important; }
.hours-item:hover { background: transparent !important; }
.hours-icon { background: transparent !important; border: none !important; width: auto !important; height: auto !important; color: var(--secondary) !important; font-size: 1.1rem; margin-top: 2px; box-shadow: none !important; transition: none; }
.hours-item:hover .hours-icon { transform: none !important; box-shadow: none !important; background: transparent !important; color: var(--secondary) !important; }
.hours-text { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; }
.hours-text strong { color: #ffffff; display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1) !important; padding: 20px 0 !important; margin-top: 3rem !important; background-color: transparent !important; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; color: #94a3b8; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted) !important; margin: 0 10px; text-decoration: none !important; transition: color 0.3s; }
.footer-links a:hover { color: var(--secondary) !important; text-decoration: underline !important; }

/* ==== SEARCH MODAL ==== */
.search-modal {
    position: fixed !important; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(35, 19, 14, 0.9); z-index: 10000; display: none; align-items: center; justify-content: center;
}
.search-modal.active { display: flex; animation: fadeIn 0.2s; }
.modal-content {
    background: #fff; width: 90%; max-width: 600px; padding: 2rem;
    border-radius: 8px; position: relative; border-top: 5px solid var(--secondary);
}
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #999; }
.modal-input-group { display: flex; gap: 0; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.modal-input-group input { flex: 1; padding: 15px; border: none; outline: none; font-size: 1rem; }
.modal-input-group button { background: var(--secondary); color: #fff; border: none; padding: 0 25px; cursor: pointer; }

@keyframes slideUpCenter { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==== MOBILE RESPONSIVENESS ==== */
@media (max-width: 992px) {
    .container { width: 96%; }
    .nav-menu { gap: 0.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .facilities-inner-grid { grid-template-columns: 1fr; }
    .about-image { width: 100%; height: auto; }
    .about-content-box { position: relative; width: 100%; right: auto; margin-top: -30px; margin-left: 10px; width: calc(100% - 20px); }
    .about-container { display: block; }
    .quick-links-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
    .hamburger { display: block; color: var(--primary); }
    .nav-menu { 
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; 
        background: #fff; flex-direction: column; align-items: flex-start; 
        padding: 45px 0 10px 0; box-shadow: -5px 0 20px rgba(0,0,0,0.2); 
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; z-index: 1002;
    }
    .nav-menu.active { right: 0; }
    .nav-menu > li { width: 100%; display: block; border-bottom: 1px solid #eee; }
    .nav-menu > li > a { padding: 8px 15px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--dark) !important; }
    .mobile-close-btn {
        display: flex; position: absolute; top: 8px; right: 10px; font-size: 1.4rem; color: var(--dark); cursor: pointer;
        width: 30px; height: 30px; align-items: center; justify-content: center; background: #f0f0f0; border-radius: 50%;
    }
    body.menu-open .hamburger { opacity: 0; pointer-events: none; }
    .submenu, .mega-menu-container, .nested-submenu, .mega-nested-menu { 
        position: static; display: none; width: 100%; box-shadow: none; 
        border: none; background: #f9f9f9; padding: 0; transform: none; max-width: 100%; opacity: 1; animation: none; 
    }
    .nav-menu li.mobile-open > .submenu, .nav-menu li.mobile-open > .mega-menu-container { display: block; }
    .nav-menu li.mobile-open > .nested-submenu { display: block; }
    .has-nested-mega.mobile-open > .mega-nested-menu { display: block; } 
    .nav-menu li.has-nested-submenu.mobile-open > .nested-submenu { display: block; }
    .submenu { background: #f5f5f5; } 
    .submenu a { color: #333 !important; padding: 6px 25px; border-bottom: 1px solid #e0e0e0; font-size: 0.8rem; }
    .submenu a:hover { background: #e0e0e0; color: var(--secondary) !important; padding-left: 25px; }
    .nav-menu .nested-submenu a, .nav-menu .mega-nested-menu a, .nav-menu .mega-nested-menu li a, .nav-menu .mega-menu-col ul li a, .nav-menu .mega-menu-col a {
        color: #333 !important; padding: 6px 25px; display: block;
    }
    .nav-menu .mega-nested-menu li a { padding-left: 35px; background: #eee; }
    .nested-submenu, .mega-nested-menu { background: #eee; padding-left: 0; }
    .mega-menu-content-wrapper { grid-template-columns: 1fr; gap: 0; }
    .mega-menu-col { padding: 2px 20px; }
    .mega-menu-col h3 { margin-top: 5px; color: var(--secondary); font-size: 0.8rem; }
    .nav-menu .nested-submenu a:hover, .nav-menu .mega-nested-menu a:hover, .nav-menu .mega-nested-menu li a:hover, .nav-menu .mega-menu-col ul li a:hover {
        color: var(--secondary) !important; background: #e0e0e0;
    }
    .mobile-catalog-btn {
        display: block; width: calc(100% - 30px); margin: 15px auto; 
        text-align: center; background: var(--secondary); color: #fff !important; 
        padding: 8px; border-radius: 4px; font-weight: 700; font-size: 0.8rem;
    }
    .search-over-slider { bottom: 20px; width: 94%; }
    .quick-links-grid, .resources-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col h3 { margin: 0 auto 1.2rem auto; }
    .hours-item { justify-content: center; text-align: left; }
    .footer-bottom-content { flex-direction: column; text-align: center; gap: 15px; }
    .footer-links { justify-content: center; margin-bottom: 10px; }
    .fac-card { flex-direction: column; height: auto; } 
    .fac-img { width: 100%; height: 180px; } .fac-content { width: 100%; padding: 1.2rem; }
    .mobile-catalog-btn { display: block; }
}
@media (min-width: 769px) {
    .mobile-close-btn, .mobile-catalog-btn { display: none; }
}