/* ==========================================================================
   SOCIOEDUCATIONS - PREMIUM WEBSITE HEADER
   Font: Anek Gujarati
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@300;400;500;600;700;800&display=swap');

:root {
    --se-header-orange: #f47b20;
    --se-header-orange-dark: #e06810;
    --se-header-navy: #10264b;
    --se-header-text: #172033;
    --se-header-muted: #64748b;
    --se-header-border: #e6eaf1;
    --se-header-bg: #ffffff;
    --se-header-soft: #f5f7fb;
    --se-header-container: 1240px;
}

/* Base */
body.socioedu-site {
    font-family: 'Anek Gujarati', sans-serif;
}

.se-container {
    width: 100%;
    max-width: var(--se-header-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Skip link */
.se-skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 99999;
    padding: 10px 16px;
    background: var(--se-header-navy);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.se-skip-link:focus {
    top: 10px;
    color: #fff;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.se-topbar {
    width: 100%;
    min-height: 36px;
    background: var(--se-header-navy);
    color: #fff;
    font-family: 'Anek Gujarati', sans-serif;
    font-size: 13px;
}

.se-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 20px;
}

.se-topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.se-topbar-label {
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    letter-spacing: .1px;
}

.se-topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.se-topbar-right a {
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 500;
    transition: color .2s ease;
}

.se-topbar-right a:hover {
    color: #ffb36e;
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */

.se-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--se-header-bg);
    border-bottom: 1px solid var(--se-header-border);
}

.se-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 94px;
}

/* Logo */
.se-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 180px;
}

.se-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.se-logo img.custom-logo {
    display: block;
    width: auto;
    max-width: 280px;
    max-height: 68px;
    object-fit: contain;
}

.se-site-title {
    color: var(--se-header-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.se-site-title:hover {
    color: var(--se-header-orange);
}

/* Search */
.se-header-search {
    width: 100%;
    max-width: 540px;
    margin-left: auto;
}

.se-header-search form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 5px 0 16px;
    background: var(--se-header-soft);
    border: 1px solid var(--se-header-border);
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.se-header-search form:focus-within {
    border-color: var(--se-header-orange);
    box-shadow: 0 0 0 3px rgba(244, 123, 32, .1);
}

.se-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--se-header-text);
    font-family: 'Anek Gujarati', sans-serif;
    font-size: 15px;
}

.se-header-search input[type="search"]::placeholder {
    color: #8993a4;
    opacity: 1;
}

.se-header-search input[type="search"]:focus {
    outline: none;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.se-header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: var(--se-header-orange);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.se-header-search button:hover {
    background: var(--se-header-orange-dark);
}

.se-header-search button svg {
    display: block;
}

/* ==========================================================================
   MOBILE MENU TOGGLE
   ========================================================================== */

.se-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--se-header-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.se-mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--se-header-navy);
    transition: transform .2s ease, opacity .2s ease;
}

.se-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.se-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.se-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE HEADER
   ========================================================================== */

@media (max-width: 767px) {

    .se-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .se-topbar {
        min-height: 32px;
    }

    .se-topbar-inner {
        min-height: 32px;
        gap: 8px;
    }

    .se-topbar-label {
        font-size: 11px;
    }

    .se-topbar-right {
        gap: 12px;
    }

    .se-topbar-right a {
        font-size: 11px;
    }

    .se-header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .se-logo {
        min-width: 0;
        max-width: calc(100% - 54px);
    }

    .se-logo img.custom-logo {
        max-width: 190px;
        max-height: 48px;
    }

    .se-site-title {
        font-size: 21px;
    }

    .se-header-search {
        display: none;
    }

    .se-mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 380px) {

    .se-topbar-right {
        gap: 8px;
    }

    .se-topbar-label {
        font-size: 10px;
    }

    .se-logo img.custom-logo {
        max-width: 165px;
    }

    .se-site-title {
        font-size: 19px;
    }
}