/* 
  Design System for Orata Library
*/

/* Local Google Font "Outfit" Variable Font declarations */
/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('assets/webfonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('assets/webfonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #059669;
    /* Rich academic emerald green */
    --primary-light: #10b981;
    /* Accent emerald */
    --primary-dark: #047857;
    /* Deeper emerald */
    --accent: #059669;
    /* Accent Green */
    --accent-gradient: linear-gradient(135deg, #059669, #047857);
    --accent-gradient-hover: linear-gradient(135deg, #10b981, #059669);
    --dark: #0f172a;
    /* Slate 900 */
    --dark-light: #1e293b;
    /* Slate 800 */
    --light: #f8fafc;
    /* Slate 50 */
    --light-gray: #f1f5f9;
    /* Slate 100 */
    --gray: #64748b;
    /* Slate 500 */
    --border-color: rgba(5, 150, 105, 0.05);
    /* Faint, almost invisible base border */
    --border-hover: rgba(5, 150, 105, 0.65);
    /* Elegant highlighted border on hover */
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.03);
    /* Feather-soft luxurious neutral shadow */
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.08);
    /* Sophisticated deep shadow on hover */
    --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.08);
}

/* Base resets & animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html,
body {
    overflow-x: hidden;
}

html.menu-open,
html.menu-open body {
    overflow: hidden !important;
    height: 100% !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    /* Premium muted slate-100 background */
    color: var(--dark-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body>footer {
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html.menu-open .site-content,
html.menu-open body>footer {
    filter: blur(6px);
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: rgba(5, 150, 105, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Glassmorphic Header */
body>header {
    background: rgba(255, 255, 255, 0.85);
    /* Frosty transparent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
    /* Soft neutral shadow */
    transition: var(--transition);
}

body>header:hover {
    background: #ffffff;
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000000;
    line-height: 1.2;
}

/* Navigation & Sub-navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav>ul>li,
nav .main-nav-scroll>ul>li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark-light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: var(--transition);
    display: block;
}

nav>ul>li>a,
nav .main-nav-scroll>ul>li>a {
    position: relative;
}

nav>ul>li>a::after,
nav .main-nav-scroll>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

nav>ul>li>a:hover,
nav .main-nav-scroll>ul>li>a:hover {
    color: var(--primary);
}

nav>ul>li>a:hover::after,
nav .main-nav-scroll>ul>li>a:hover::after {
    width: 100%;
}

/* Dropdowns slide-down animations */
nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 250px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

nav li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideDownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

nav ul ul li,
nav ul ul ul li {
    position: relative;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
}

nav ul ul a,
nav ul ul ul a {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    color: var(--gray) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

nav ul ul a i,
nav ul ul ul a i {
    font-size: 0.75em;
    opacity: 0.6;
    transition: var(--transition);
    margin-left: auto !important;
}

nav ul ul a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    padding-left: 28px;
}

nav ul ul a:hover i {
    transform: translateX(4px);
    opacity: 1;
    color: var(--primary);
}

nav ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 2px;
}

/* Layout Setup */
#content {
    padding: 50px 0 80px;
    flex: 1 0 auto;
}

.content-area {
    width: 100%;
}

/* Default Subpages: Centered, clean single-column readability layout */
.site-content .wrapper {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Homepage only: Two-column grid with sidebar */
.site-content .wrapper.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
}

/* Premium Containers & Cards */
.entry-container,
.widget,
.uculib-content {
    background: #fafbfc;
    /* Softer, low-glare off-white */
    border-radius: var(--radius-lg);
    padding: 38px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}

.entry-container:hover,
.widget:hover,
.uculib-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.entry-title,
.widget-title {
    font-size: 1.65rem;
    color: var(--dark);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.widget-title {
    font-size: 1.1rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark-light);
}

/* Section Header Decoration */
.section-header {
    margin: 0 0 35px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-left: 22px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent-gradient);
    border-radius: 4px;
}

/* Corporate Styling */
.uculib-content {
    background: #fafbfc;
    padding: 45px;
}

.uculib-text {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--dark-light);
    margin-bottom: 28px;
}

/* Ensure uniform styling even when nested inside cards */
.uculib-card .uculib-text {
    font-size: 1.02rem !important;
    line-height: 1.85 !important;
    color: var(--dark-light) !important;
    margin-bottom: 28px !important;
}

h3.uculib-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 35px 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Customized Premium Lists */
.uculib-list {
    list-style-type: none;
    margin-bottom: 28px;
}

.uculib-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: var(--dark-light);
    line-height: 1.7;
    font-weight: 500;
    transition: var(--transition);
}

.uculib-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.85rem;
    top: 0px;
    transition: var(--transition);
}

.uculib-list li:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.uculib-list li:hover::before {
    transform: rotate(90deg) scale(1.2);
    color: var(--accent);
}

/* Grid layout with Bexon-style hovers */
.uculib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.uculib-card {
    background: #fafbfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.uculib-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.uculib-card h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
    transition: var(--transition);
}

.uculib-card:hover h4 {
    color: var(--primary);
}

.uculib-card p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Elegant Tables */
.uculib-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0 35px 0;
    font-size: 0.95rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.uculib-table th {
    background-color: var(--light-gray);
    color: var(--dark);
    font-weight: 700;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 2px solid var(--primary-light);
}

.uculib-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-light);
    background: white;
    transition: var(--transition);
}

.uculib-table tbody tr:last-child td {
    border-bottom: none;
}

.uculib-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.02);
    color: var(--primary-dark);
}

/* Post Grids with image placeholders and card structures */
.wp-block-latest-posts__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    list-style: none;
}

.wp-block-latest-posts__list li {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.wp-block-latest-posts__list li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.wp-block-latest-posts__list li a {
    display: block;
    padding: 20px 24px 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    line-height: 1.4;
}

.wp-block-latest-posts__list li:hover a {
    color: var(--primary);
}

.wp-block-latest-posts__post-date {
    display: block;
    padding: 0 24px 20px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Bexon-style image zoom */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 18px;
    transition: var(--transition);
    position: relative;
}

.img-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: var(--transition);
}

.uculib-card:hover .img-placeholder img,
.wp-block-latest-posts__list li:hover .img-placeholder img {
    transform: scale(1.08);
}

/* Cover Photos with Parallax/Zoom visual style */
.uculib-cover-container {
    width: 100%;
    height: 320px;
    background-color: var(--light-gray);
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.uculib-cover-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: var(--transition);
}

.uculib-cover-container:hover img {
    transform: scale(1.03);
}

/* Bexon Premium Search Form */
.search-form {
    display: flex;
    gap: 8px;
    background: var(--light-gray);
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    outline: none;
}

.search-submit {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

/* Premium Multi-Column Footer */
.site-footer {
    background: #080c14;
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.08);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 350px;
    height: 350px;
    background: rgba(139, 92, 246, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul a:hover {
    color: white;
    transform: translateX(6px);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-4px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* Mobile Menu Toggle & Navigation Drawer */
.mobile-menu-toggle,
.mobile-menu-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (min-width: 993px) and (max-width: 1250px) {
    nav ul {
        gap: 16px;
    }
    nav a {
        font-size: 0.88rem;
    }
}

@media (min-width: 993px) and (max-width: 1120px) {
    nav ul {
        gap: 10px;
    }
    nav a {
        font-size: 0.82rem;
    }
}

@media (max-width: 992px) {
    .site-content .wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wrapper {
        padding: 0 24px;
    }

    .header-main {
        padding-top: 10px !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
        background: transparent;
        border: none;
        font-size: 1.6rem;
        color: var(--primary);
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-menu-close:hover {
        color: var(--accent);
        transform: scale(1.1) rotate(90deg);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        z-index: 2000;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        overflow: hidden;
        border-left: 1px solid var(--border-color);
        visibility: hidden;
        display: flex;
        flex-direction: column;
    }

    .main-nav-scroll {
        flex-grow: 1;
        overflow-y: auto;
        padding: 90px 30px 40px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        right: 0;
        visibility: visible;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    nav ul ul {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: block;
        border: none;
        padding-left: 20px;
        transform: none;
        margin-top: 8px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wrapper {
        padding: 0 20px;
    }

    .site-title {
        font-size: 1.15rem !important;
    }

    .branding a img {
        height: 42px !important;
    }

    .mobile-menu-toggle {
        font-size: 1.4rem !important;
    }
}

/* Org Chart specific styles */
.chart-container {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.image-placeholder-org {
    width: 100px;
    height: 120px;
    background-color: #f1f5f9;
    border: 2px solid var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    overflow: hidden;
    border-radius: 6px;
    transition: var(--transition);
}

.card:hover .image-placeholder-org {
    border-color: var(--accent);
}

.card .name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-bottom: 6px;
    text-transform: uppercase;
    text-align: center;
}

.card .title {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.3;
    text-align: center;
    font-weight: 500;
}

.section-tag {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    margin-bottom: 35px;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.connector {
    width: 2px;
    height: 25px;
    background-color: var(--border-color);
    margin: -20px auto 20px;
}

/* Reusable Section Librarian Profiles */
.uculib-heads-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.uculib-heads-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.uculib-heads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .uculib-heads-grid {
        grid-template-columns: 1fr;
    }
}

.uculib-profile {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fafbfc;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.uculib-profile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.uculib-profile img {
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

.uculib-profile:hover img {
    transform: scale(1.04);
}

.uculib-profile h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 700;
    text-align: center;
}

.uculib-profile p {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--gray);
    text-align: center;
}

.uculib-profile .position {
    font-weight: 600;
    color: var(--dark);
}

.uculib-profile .email {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Premium Building Cards & Sub-Card Hover Micro-interactions */
.uculib-building-card:hover .uculib-cover-container img {
    transform: scale(1.03);
}

.uculib-card:hover h4 {
    color: var(--primary) !important;
}

.uculib-card:hover img {
    transform: scale(1.05);
}