/* University Header Styles */

.university-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 1rem;
    position: relative;
    min-height: 80px;
}

/* Center wrapper: Logo + Text + Government Logos - all centered together */
.header-center-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

/* Center: University Name */
.header-title {
    text-align: center;
}

.norsu-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.norsu-logo:hover {
    transform: scale(1.05);
}

.alumni-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.alumni-logo:hover {
    transform: scale(1.05);
}

.alumni-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.alumni-logo:hover {
    transform: scale(1.05);
}

.university-name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.university-name span {
    display: inline-block;
    margin: 0 0.25rem;
}

.text-red {
    color: #dc3545;
}

.text-blue {
    color: #0d6efd;
}

.office-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0.25rem 0 0.25rem 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Right: Government Logos - inside the wrapper with same gap */
.header-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-logos a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logos a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.gov-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Tablet Responsive (768px - 1199px) */
@media (max-width: 1199px) {
    .header-content {
        padding: 0 0.75rem;
        min-height: 70px;
    }

    .norsu-logo {
        width: 50px;
        height: 50px;
    }
    
    .alumni-logo {
        width: 50px;
        height: 50px;
    }
    
    .alumni-logo {
        width: 50px;
        height: 50px;
    }

    .university-name {
        font-size: 1.25rem;
    }

    .office-subtitle {
        font-size: 0.8rem;
    }

    .gov-logo {
        width: 45px;
        height: 45px;
    }

    .header-logos {
        gap: 0.6rem;
    }
}

/* Mobile Responsive (375px - 767px) */
@media (max-width: 767px) {
    .university-header {
        display: none;
    }
}

/* Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    .university-header {
        display: none;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: more) {
    .university-header {
        border-bottom-width: 3px;
    }

    .text-red {
        color: #b02a37;
    }

    .text-blue {
        color: #0a58ca;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .norsu-logo,
    .alumni-logo,
    .header-logos a {
        transition: none;
    }

    .norsu-logo:hover,
    .alumni-logo:hover,
    .header-logos a:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .university-header {
        border-bottom: 2px solid #000;
        box-shadow: none;
    }

    .header-logos a {
        page-break-inside: avoid;
    }
}
