/* ================================================================
# DACOG Search Engine – System Architecture
# File: schools-page.css
# Path: /static/css/schools-page.css
# Version: 3.0.0
# Description: Mathematical-Unit Institutional Profile (Light/Hero Theme)
# ================================================================*/

/* 1. Base Container & Theme Aware Header */
.school-profile-wrapper {
    padding-bottom: 3.125rem; /* 50px */
}

.school-header {
    background-color: var(--dacog-bg-nav);
    padding: 3.75rem 1.25rem; /* 60px 20px */
    border-bottom: 0.0625rem solid var(--dacog-border-color);
}

.hero-image-container img {
    width: 7.5rem; /* 120px */
    height: 7.5rem; /* 120px */
    object-fit: contain;
    background: var(--dacog-bg-nav);
    padding: 0.625rem;
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 0.75rem;
    -moz-border-radius: 0.75rem;
    border-radius: 0.75rem;
}

/* 2. Theme-Aware Data Cards */
.inst-card {
    background-color: var(--dacog-bg-nav);
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    -webkit-box-shadow: var(--dacog-shadow-sm);
    -moz-box-shadow: var(--dacog-shadow-sm);
    box-shadow: var(--dacog-shadow-sm);
}

.inst-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dacog-text-main);
    border-bottom: 0.125rem solid var(--dacog-accent-danger);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.3125rem;
}

/* 3. Administration (Dark Hero Card) */
.admin-card-dark {
    background: linear-gradient(135deg, var(--dacog-bg-topbar), #000000);
    color: #ffffff;
    border: none;
}

.admin-card-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.admin-card-dark .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 4. Badges & Tags */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--dacog-accent-primary) !important;
}

.tag-cloud .badge {
    background-color: var(--dacog-bg-base) !important;
    color: var(--dacog-text-main) !important;
    border-color: var(--dacog-border-color) !important;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

/* Faculty/Department Pills */
.faculty-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem; /* 10px */
}

.faculty-pill {
    background-color: rgba(13, 110, 253, 0.08); /* Soft DACOG blue */
    color: var(--dacog-accent-primary);
    padding: 0.375rem 0.9375rem; /* 6px 15px */
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 0.0625rem solid rgba(13, 110, 253, 0.15);
}

.theme-hero .faculty-pill {
    background-color: rgba(138, 180, 248, 0.1); /* Lighter blue for dark mode */
}

/* 5. Lists */
.inst-list-group .list-group-item {
    background-color: transparent;
    color: var(--dacog-text-main);
    border-color: var(--dacog-border-color);
}

/* 6. Tiered Access & Security Blur */
.content-locked-blur {
    -webkit-filter: blur(0.3125rem); /* 5px */
    filter: blur(0.3125rem);
    opacity: 0.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* ==========================================================================
   7. MEDIA QUERIES (AFRICAN TARGET OPTIMIZATION)
   ========================================================================== */

/* Mobile Portrait (Max 480px / 30em) */
@media screen and (max-width: 30em) {
    .school-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-image-container {
        margin-left: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .header-text {
        margin-left: 0 !important;
    }
    
    .header-text h1.display-5 {
        font-size: 2rem;
    }
    
    .inst-card {
        padding: 0 !important; /* Let inner elements control padding on mobile */
    }
    
    .faculty-pill-container {
        justify-content: center;
    }
}

/* Mobile Landscape */
@media screen and (max-height: 30em) and (orientation: landscape) {
    .school-header {
        padding: 1.5rem;
    }
}