/* 
 * UCHS Main Stylesheet 
 * Note: Scavenged and reconstructed from historical brain artifacts.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #D4AF37;
    /* Gold */
    --accent-color: #00509E;
    /* Lighter Blue for hover */
    --bg-light: #F4F7F6;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #F0F4F8;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}


/* Section Common */
.section-padding {
    padding: 30px 0;
}

.section-title {
    margin-bottom: 20px;
    text-align: center;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left h2::after {
    left: 0;
    transform: none;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-label {
    font-weight: 700;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
}

.top-bar-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.top-bar-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Header & Navbar */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: auto;
    min-height: 45px;
    padding: 5px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    /* Protect logo from shrinking */
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    /* Allowed wrapping to fit screen */
    justify-content: center;
}

.nav-item {
    position: relative;
    padding: 0 3px;
    /* Reduced from 5px */
}

.nav-link {
    font-weight: 600;
    text-transform: none;
    font-size: 0.9rem;
    /* Reduced from 0.95rem */
    color: var(--primary-color);
    padding: 8px 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    /* Prevent line breaks in links */
    text-decoration: none !important;
    /* Explicitly remove underlines */
    border-bottom: none !important;
}

.nav-link:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.nav-link i {
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.nav-item:hover>.nav-link i {
    transform: rotate(180deg);
}

/* Removed underlines as requested */

/* Top Menu Card */
.top-menu-card-desktop {
    margin-left: auto;
    flex-shrink: 0;
    display: block;
}

.menu-card-carousel {
    position: relative;
    min-width: 100px;
    height: 35px;
}

.menu-card-item {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.menu-card-item.active {
    opacity: 1;
    visibility: visible;
}

.menu-card-item img {
    height: 35px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.menu-card-item img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Removed media query that hid top-menu-card-desktop on mobile */

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.college-link:hover .college-name {
    color: var(--secondary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-category {
    padding: 8px 25px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    background-color: #fcfcfc;
    white-space: nowrap;
}

.dropdown-item a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 8px 25px;
    text-transform: none;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8faff;
}

/* 3rd Level Nested Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-menu-nested {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(10px);
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 8px 0;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.dropdown-submenu:hover .dropdown-menu-nested {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu-nested li a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 10px 25px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.dropdown-menu-nested li:hover {
    background-color: #f8faff;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle i {
    font-size: 0.7rem;
    color: #ccc;
    margin-left: 10px;
}

.dropdown-item:hover a {
    color: var(--primary-color);
    padding-left: 30px;
    background-color: transparent;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Layout Wrapper */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 400px;
    /* Increased from 350px */
    flex-shrink: 0;
}

/* Hero Slider */
.hero-slider {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: relative;
    z-index: 20;
    color: var(--white);
    max-width: 800px;
    padding: 0 50px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--white);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 10px;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #bfa030;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* News Ticker Bar (Horizontal) */
.news-ticker-bar {
    background: #f8faff;
    padding: 2px 0;
    border-bottom: 2px solid var(--primary-color);
    overflow: hidden;
}

.ticker-logo {
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
    z-index: 2;
}

.ticker-logo:hover {
    transform: scale(1.05);
}

.ticker-logo img {
    height: 55px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .ticker-logo img {
        height: 40px;
    }
}


.ticker-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ticker-label {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 2px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 15px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.ticker-content-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
}

.ticker-content.animate-ticker-h {
    animation: ticker-move 40s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    color: var(--text-dark);
}

.ticker-item a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.ticker-item-near a {
    color: #006400 !important;
    /* Dark Green */
    font-weight: 700 !important;
}

.ticker-item-upcoming a {
    color: #0000FF !important;
    /* Blue */
}

@keyframes ticker-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-ticker-container {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 10px;
}

.news-ticker-container .news-ticker {
    display: flex;
    flex-direction: column;
}

.news-ticker-container .news-ticker.animate-ticker-v {
    animation: scroll-vertical 25s linear infinite;
}

.news-ticker-container:hover .news-ticker {
    animation-play-state: paused;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.news-title {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.news-title:hover {
    color: var(--secondary-color);
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Page Headers */
.page-header h1 {
    color: #ffffff !important;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-link {
    margin-top: auto;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0 10px;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* News Modal */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.news-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.news-modal-overlay.active .news-modal-content {
    transform: translateY(0);
}

.news-modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-news-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.news-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.modal-news-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.modal-news-title {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.news-modal-footer {
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
        /* Standard size for mobile */
    }

    .nav-menu {
        display: none;
        margin-left: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.lightbox-caption h3 {
    margin: 0;
    font-size: 1.25rem;
}

.lightbox-caption p {
    margin: 5px 0 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 3010;
}

.lightbox-nav:hover {
    background: var(--secondary-color);
}

.lightbox-nav.prev {
    left: -80px;
}

.lightbox-nav.next {
    right: -80px;
}

@media (max-width: 1200px) {
    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-nav {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Library Page Styles */
.library-search-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.library-search-form {
    display: flex;
    gap: 10px;
}

.library-search-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.library-search-form button {
    padding: 0 30px;
    border-radius: 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.library-search-form button:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 100;
    margin-bottom: 40px;
}

.quick-link-item {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-bottom: 4px solid transparent;
}

.quick-link-item i {
    font-size: 2.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.quick-link-item h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
}

.quick-link-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 4px solid var(--accent-color);
}

.quick-link-item:hover i {
    transform: scale(1.1);
}

/* ORIC Page Styles */
.oric-container {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.oric-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-menu-item {
    border-bottom: 1px solid #eee;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-link {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 30px;
}

.oric-main-content {
    flex: 1;
}

.oric-section {
    margin-bottom: 25px;
    scroll-margin-top: 130px;
}

.oric-section h2 {
    color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.team-card {
    background: #f8f9fa;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    border-color: #eee;
}

.team-img {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.team-name {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Downloads Section */
.download-section {
    margin-bottom: 25px;
}

.download-section h2 {
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

/* ORIC & QEC Mobile Responsiveness */
@media (max-width: 992px) {
    .oric-container {
        flex-direction: column !important;
        padding-top: 20px !important;
    }

    .oric-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
    }
}

/* Lightbox Thumbnails */
.lightbox-image {
    width: 90vw !important;
    height: 65vh !important;
    max-width: 90vw !important;
    max-height: 65vh !important;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 5px;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumbnail.active,
.lightbox-thumbnail:hover {
    opacity: 1;
    border-color: var(--secondary-color);
}

/* Research Content Formatting */
.oric-section ul,
.biostats-content ul,
.oric-main-content ul,
.rich-text-content ul {
    list-style-type: disc !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
}

.oric-section ol,
.biostats-content ol,
.oric-main-content ol,
.rich-text-content ol {
    list-style-type: decimal !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
}

.oric-section li,
.biostats-content li,
.oric-main-content li,
.rich-text-content li {
    margin-bottom: 8px;
    display: list-item !important;
}

/* Alignment and Margin Support */
.biostats-content p,
.oric-section p,
.rich-text-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Ensure inline styles for alignment/indent work */
.biostats-content [style*="text-align: justify"],
.oric-section [style*="text-align: justify"],
.rich-text-content [style*="text-align: justify"] {
    text-align: justify !important;
}

.biostats-content [style*="margin-left"],
.oric-section [style*="margin-left"],
.rich-text-content [style*="margin-left"] {
    margin-left: inherit !important;
    /* Allow inline style override */
}