/* Site header top — college branding bar */
#rs-header .rs-header-top.site-header-top,
.site-header-top {
    position: relative;
    padding: 12px 0 11px !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(249, 200, 51, 0.14) 0%, transparent 28%),
        radial-gradient(circle at 4% 82%, rgba(6, 26, 40, 0.05) 0%, transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 46%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(6, 26, 40, 0.08);
    overflow: hidden;
}

.site-header-top .site-header-top-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(249, 200, 51, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(6, 26, 40, 0.07) 0%, transparent 36%);
    pointer-events: none;
}

.site-header-top .site-header-top-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(6, 26, 40, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 26, 40, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    pointer-events: none;
}

.site-header-top-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(0.5px);
}

.site-header-top-orb--left {
    top: -42px;
    left: -28px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(249, 200, 51, 0.18) 0%, transparent 68%);
}

.site-header-top-orb--right {
    right: 8%;
    bottom: -36px;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(6, 26, 40, 0.08) 0%, transparent 70%);
}

.site-header-top .container {
    position: relative;
    z-index: 1;
}

.site-header-top-row {
    min-height: 0;
}

/* Brand block */
#rs-header .site-header-brand.logo-area,
.site-header-brand {
    padding-top: 0 !important;
    float: none !important;
}

.site-header-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    transition: transform 0.28s ease;
}

.site-header-brand-link:hover {
    transform: translateY(-2px);
}

.site-header-logo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(155deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
    border: 1px solid rgba(6, 26, 40, 0.1);
    border-radius: 16px;
    box-shadow:
        0 12px 32px rgba(6, 26, 40, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-header-brand-link:hover .site-header-logo-wrap {
    border-color: rgba(249, 200, 51, 0.5);
    box-shadow:
        0 16px 36px rgba(6, 26, 40, 0.12),
        0 0 0 4px rgba(249, 200, 51, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-header-logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    border: 2px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(249, 200, 51, 0.7), rgba(6, 26, 40, 0.15)) border-box;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.site-header-brand-link:hover .site-header-logo-ring {
    opacity: 1;
}

.site-header-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
}

.site-header-brand-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-bottom: 2px;
}

.site-header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.12;
    color: #061a28 !important;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #04121c 0%, #061a28 72%, #0f2d42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header-tagline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    max-width: 100%;
    padding: 3px 10px 3px 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(249, 200, 51, 0.12);
    border: 1px solid rgba(249, 200, 51, 0.28);
    border-radius: 999px;
}

.site-header-tagline i {
    font-size: 0.82rem;
    color: #b8860b;
}

.site-header-tagline span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-title-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9c833 0%, #f0b429 55%, rgba(249, 200, 51, 0.2) 100%);
}

/* Contact strip */
#rs-header .site-header-contacts.header-contact,
.site-header-contacts {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    float: none !important;
}

.site-header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    padding: 8px 12px !important;
    padding-left: 12px !important;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(6, 26, 40, 0.06);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header-contact-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: rgba(249, 200, 51, 0.45);
    box-shadow: 0 14px 30px rgba(6, 26, 40, 0.11);
}

.site-header-contact-item i {
    position: static !important;
    width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #061a28 !important;
    background: linear-gradient(135deg, rgba(249, 200, 51, 0.28) 0%, rgba(249, 200, 51, 0.1) 100%);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-header-contact-item .info-text {
    min-width: 0;
}

.site-header-contact-item .info-text span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    margin-bottom: 3px;
}

.site-header-contact-item .info-text a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.site-header-contact-item .info-text a:hover {
    color: #b8860b !important;
}

.site-header-top-accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #061a28 0%, #0a2438 18%, #f9c833 48%, #f0b429 52%, #061a28 100%);
    opacity: 0.9;
}

/* Override legacy theme rules */
.home1 .rs-header .rs-header-top .col-md-4:first-child .header-contact,
.home1 .logo-area {
    padding-top: 0 !important;
}

#rs-header .rs-header-top .header-contact .widget-text {
    padding-left: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .site-header-top {
        padding: 10px 0 9px !important;
    }

    .site-header-top-row {
        min-height: 0;
        gap: 12px;
    }

    .site-header-brand-link {
        justify-content: center;
        text-align: center;
    }

    .site-header-brand-text {
        align-items: center;
    }

    .site-header-tagline {
        align-self: center;
    }

    .site-header-title-accent {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header-contacts {
        justify-content: center;
    }

    .site-header-contact-item {
        flex: 1 1 220px;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .site-header-logo-wrap {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .site-header-brand-link {
        gap: 14px;
    }

    .site-header-contacts {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header-contact-item {
        flex: 1 1 auto;
    }

    .site-header-tagline span {
        white-space: normal;
    }
}
