/* ==========================================
   OPAC HOME PAGE STYLES
   Specific styles for the main landing page
   ========================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 1.25rem;
}

.opac-hero {
    /* bg-library.jpg as background */
    background: url('../../images/bg-library-1.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    color: white;
}

/* Overlay for text readability */
.opac-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.opac-hero .container {
    position: relative;
    z-index: 1;
}

/* Pattern removed or made more subtle if needed, but overlay covers it mostly */
/* .opac-hero::after removed to avoid conflict with image */

.stat-box {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 110px;
    margin: 0.4rem;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.search-container {
    margin-top: -45px;
    position: relative;
    z-index: 100;
}

/* Slider Overrides/Customizations */
.slider-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.slider-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 480px;
    /* Increased from base */
}

.slider-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.slider-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 4rem;
}

/* Stats specific colors */
.stat-box[style*="#3b82f6"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.stat-box[style*="#10b981"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.stat-box[style*="#f59e0b"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.stat-box[style*="#8b5cf6"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.stat-box[style*="#ec4899"] {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
}

.stat-box[style*="#ef4444"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.stat-box[style*="#6366f1"] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
}

/* Statistics Section Background */
.stats-section {
    /* bg-library2.jpg as background */
    background: url('../../images/bg-library2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Overlay for stats readability */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly darker overlay */
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}