/* ==========================================================
   SCIA HEADER VERSION 2
   File: themes/giant/andro_files/css/scia2.css
========================================================== */

.scia2-header,
.scia2-header * {
    box-sizing: border-box;
}

.scia2-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(35, 16, 68, 0.06);
}

.scia2-header-container {
    width: 100%;
    max-width: 1680px;
    height: 80px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo */
.scia2-logo {
    flex: 0 0 auto;
}

.scia2-logo a,
.scia2-mobile-logo {
    display: block;
    text-decoration: none;
}

.scia2-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
}

/* Desktop navigation */
.scia2-desktop-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.scia2-main-menu,
.scia2-main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scia2-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
}

.scia2-main-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.scia2-main-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 90px;
    padding: 0 12px;
    color: #27113f;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.scia2-main-menu > li > a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 16px;
    left: 12px;
    height: 2px;
    background: #512185;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.scia2-main-menu > li:hover > a,
.scia2-main-menu > li > a:hover,
.scia2-main-menu > li > a:focus {
    color: #512185;
    text-decoration: none;
}

.scia2-main-menu > li:hover > a::after,
.scia2-main-menu > li:focus-within > a::after {
    transform: scaleX(1);
}

.scia2-main-menu > li > a i {
    font-size: 12px;
}

/* Dropdown menus */
.scia2-dropdown-menu,
.scia2-sub-dropdown-menu {
    position: absolute;
    z-index: 10000;
    visibility: hidden;
    min-width: 245px;
    margin: 0;
    padding: 10px 0;
    background: #ffffff;
    border: 0;
    box-shadow: 0 14px 36px rgba(35, 16, 68, 0.16);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scia2-dropdown-menu {
    top: calc(100% - 1px);
    left: 0;
    border-radius: 0 0 6px 6px;
    transform: translateY(12px);
}

.scia2-main-menu > li:hover > .scia2-dropdown-menu,
.scia2-main-menu > li:focus-within > .scia2-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.scia2-dropdown-menu > li {
    position: relative;
}

.scia2-dropdown-menu a,
.scia2-sub-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 20px;
    color: #27113f;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.scia2-dropdown-menu a:hover,
.scia2-dropdown-menu a:focus,
.scia2-sub-dropdown-menu a:hover,
.scia2-sub-dropdown-menu a:focus {
    color: #512185;
    background: #f6f2fa;
    text-decoration: none;
}

.scia2-sub-dropdown-menu {
    top: -10px;
    left: 100%;
    transform: translateX(10px);
}

.scia2-dropdown-menu > li:hover > .scia2-sub-dropdown-menu,
.scia2-dropdown-menu > li:focus-within > .scia2-sub-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* Campus-tour button */
.scia2-header-action {
    flex: 0 0 auto;
}

.scia2-tour-button {
    display: inline-flex;
    height: 42px;
    min-height: 42px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #4c177e;
    border: 2px solid #4c177e;
    border-radius: 13px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scia2-tour-button:hover,
.scia2-tour-button:focus {
    color: #ffffff !important;
    background: #311052;
    border-color: #311052;
    transform: translateY(-2px);
}

/* Mobile toggle */
.scia2-mobile-toggle {
    display: none;
}

/* Mobile navigation */
.scia2-mobile-navigation,
.scia2-mobile-navigation * {
    box-sizing: border-box;
}

.scia2-mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10002;
    width: min(430px, 90%);
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(35, 16, 68, 0.2);
    transform: translateX(105%);
    transition: transform 0.3s ease;
}

.scia2-mobile-navigation.is-open {
    transform: translateX(0);
}

.scia2-mobile-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    min-height: 85px;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.scia2-mobile-logo img {
    display: block;
    width: 230px;
    max-width: 80%;
    height: auto;
}

.scia2-mobile-close {
    width: 42px;
    height: 42px;
    padding: 0;
    color: #30104f;
    background: transparent;
    border: 0;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 42px;
    cursor: pointer;
}

.scia2-mobile-content {
    padding: 15px 22px 35px;
}

.scia2-mobile-menu,
.scia2-mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scia2-mobile-menu > li {
    border-bottom: 1px solid #eeeeee;
}

.scia2-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scia2-mobile-row > a {
    flex: 1;
    display: block;
    padding: 15px 0;
    color: #27113f;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.scia2-mobile-submenu-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #4c177e;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.scia2-mobile-submenu {
    display: none;
    padding: 0 0 10px 16px !important;
}

.scia2-mobile-submenu.is-open {
    display: block;
}

.scia2-mobile-submenu li {
    border-top: 1px solid #f0f0f0;
}

.scia2-mobile-submenu a {
    display: block;
    padding: 12px 0;
    color: #483557;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.scia2-mobile-third-level {
    padding-left: 16px !important;
}

.scia2-mobile-tour-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #4c177e;
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.scia2-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    visibility: hidden;
    background: rgba(20, 7, 35, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scia2-mobile-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

body.scia2-menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1350px) {
    .scia2-header-container {
        padding-right: 24px;
        padding-left: 24px;
        gap: 18px;
    }

    .scia2-logo img {
        width: 250px;
    }

    .scia2-main-menu > li > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }

    .scia2-tour-button {
        padding-right: 19px;
        padding-left: 19px;
        font-size: 13px;
    }
}

@media (max-width: 1100px) {
    .scia2-desktop-nav,
    .scia2-header-action {
        display: none;
    }

    .scia2-header-container {
        height: 85px;
        padding: 8px 20px;
        justify-content: space-between;
    }

    .scia2-logo img {
        width: 255px;
    }

    .scia2-mobile-toggle {
        display: flex;
        flex-direction: column;
        width: 46px;
        height: 46px;
        padding: 10px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: #4c177e;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .scia2-mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }
}

@media (max-width: 575px) {
    .scia2-header-container {
        height: 74px;
        padding: 6px 15px;
    }

    .scia2-logo {
        max-width: calc(100% - 60px);
    }

    .scia2-logo img {
        width: 215px;
    }

    .scia2-mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .scia2-mobile-navigation {
        width: 94%;
    }

    .scia2-mobile-logo img {
        width: 205px;
    }
}
