/* Header CSS for IIMU */
/* Colors for IIMU - Green and Yellow Theme */
:root {
    /* Primary Colors - Green & Yellow */
    --iimu-primary-green: #487235;
    --iimu-primary-yellow: #feec43;
    --iimu-dark-green: #212934;
    --iimu-light-green: #487235;
    --iimu-light-yellow: #feec43;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #020202;
    --text-dark: #212934;
    --text-gray: #4d4d4d;
    --text-light-gray: #cbcbcb;
    --border-light: #f2f2f2;

    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.6);

    /* Font Sizes */
    --font-small: 0.8rem;
    --font-regular: 0.9rem;
    --font-medium: 1rem;
    --font-large: 1.5rem;

    /* Header Heights */
    --language-bar-height: 55px;
    --navbar-height: 90px;
    --notification-height: 0px;
    --ticker-height: 63px;
    --header-total-height: calc(var(--language-bar-height) + var(--navbar-height) + var(--ticker-height));
}

/* Ticker Styles */
.ticker-wrap {
    width: 100%;
    height: var(--ticker-height);
    background-color: var(--iimu-primary-green);
    position: relative;
    z-index: 999;
    /* Above language bar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.ticker-container {
    max-width: 1130px;
    margin: 0 auto;
    overflow: hidden;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    line-height: var(--ticker-height);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 24px;
    padding-left: 100%;
    animation: ticker-scroll 25s linear infinite;
}

/* .ticker-content:hover {
    animation-play-state: paused;
} */

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Language Bar */

.inner {
    background-color: var(--iimu-primary-green);
    padding: 2px 0;
    border-bottom: 1px solid var(--border-light);
}

.language-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

.name-tag {
    text-align: left;
    font-weight: 300;
    color: var(--white);
    font-size: var(--font-large);
    flex: 1;
    min-width: 0;
}

.name-tag a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.language-options {
    text-align: right;
    font-size: 11px;
    color: var(--white);
    width: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.language-options a {
    text-decoration: none;
    color: var(--white);
    /* margin: 0 10px; */
    transition: color 0.2s ease;
}

.language-options span {
    margin: 0 2%;
}

.language-options a:hover {
    color: var(--iimu-primary-yellow);
}

/* Navigation Bar */
.navbar {
    background-color: var(--border-light);
    padding: 1% 0;
    border-bottom: 1px solid var(--text-light-gray);
    width: 100%;
    font-family: 'Roboto', sans-serif;
    /* height: var(--navbar-height); */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.logo {
    flex-shrink: 0;
    margin-right: 50px;
    z-index: 1;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Navigation Links */
.nav-links {
    margin-left: auto;
    font-size: regular;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 5%;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: var(--font-regular);
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--iimu-primary-green);
}

.nav-links a.active span {
    color: var(--iimu-primary-green);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.nav-links a.active span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--iimu-primary-green);
}

/* Dropdown styles removed: navigation simplified to single-level links */

/* Sign In Button */
.sign-in-btn {
    background-color: transparent;
    color: var(--text-dark) !important;
    padding: 8px 20px;
    border: 2px solid var(--iimu-primary-green);
    transition: all 0.3s ease;
}

.sign-in-btn:hover {
    background-color: var(--iimu-primary-green);
    color: var(--white) !important;
}

/* Notification Banner */
.notification-banner {
    background: var(--iimu-primary-green);
    color: var(--white);
    padding: 12px 0;
}

.notification-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    gap: 15px;
}

.notify-btn {
    background-color: var(--iimu-primary-yellow);
    color: var(--iimu-primary-green);
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 12px;
    text-decoration: none;
}

.notify-btn:hover {
    background-color: var(--iimu-light-yellow);
}

/* Container Utility */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.top-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: white;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: var(--iimu-primary-green);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -7px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --language-bar-height: 55px;
        --navbar-height: 70px;
        --notification-height: 0px;
        --header-total-height: calc(var(--language-bar-height) + var(--navbar-height) + var(--ticker-height));
    }

    .ticker-container {
        /* max-width: 1130px;
        margin: 0 auto; */
        width: auto;
        margin: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
        gap: 15px;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding-top: 70px;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        z-index: 1000;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 14px;
        width: 100%;
    }

    .sign-in-btn {
        margin: 10px 20px;
        text-align: center;
        border: 2px solid var(--iimu-primary-green);
        max-width: calc(100% - 40px);
        width: auto;
        box-sizing: border-box;
        display: block;
    }

    .logo {
        margin-right: 10px;
    }

    .logo img {
        height: 45px;
        max-width: 100%;
    }

    .notification-content {
        flex-direction: column;
        gap: 10px;
    }

    .breadcrumb {
        margin-top: var(--header-total-height);
    }
}

@media (max-width: 768px) {
    :root {
        --language-bar-height: 55px;
        --navbar-height: 60px;
        --notification-height: 0px;
        --header-total-height: calc(var(--language-bar-height) + var(--navbar-height) + var(--ticker-height));
    }
}

@media (max-width: 550px) {
    :root {
        --language-bar-height: 50px;
        --navbar-height: 60px;
        --notification-height: 0px;
        --header-total-height: calc(var(--language-bar-height) + var(--navbar-height) + var(--ticker-height));
    }

    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-links {
        width: 85%;
        max-width: 280px;
    }

    .language-bar {
        padding: 5px 10px;
        height: auto;
        min-height: 45px;
        flex-wrap: nowrap;
    }

    .name-tag {
        font-size: 1rem;
        padding-left: 5px;
    }

    .language-options {
        flex-shrink: 0;
    }

    .language-options a {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    :root {
        --language-bar-height: 55px;
        --navbar-height: 50px;
        --notification-height: 0px;
        --header-total-height: calc(var(--language-bar-height) + var(--navbar-height) + var(--ticker-height));
    }

    .language-bar {
        padding: 8px 10px;
        height: auto;
        min-height: 50px;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .name-tag {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 5px 0;
    }

    .logo {
        margin-right: 5px;
    }

    .logo img {
        height: 40px;
        max-width: 100%;
    }

    .nav-links {
        width: 90%;
    }

    .nav-links a {
        font-size: 13px;
        padding: 12px 15px;
    }

    /* removed dropdown mobile tweaks */

    .notification-banner {
        padding: 8px 10px;
    }

    .notification-content {
        font-size: 0.75rem;
    }

    .notify-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ========== Google Translate Styling ========== */
/* Google Translate widget styling */
.google-translator {
    height: 30px;
}

/* Hide the default Google Translate popup */
.skiptranslate {
    visibility: hidden !important;
}

/* Language link styling */
.translation-lang {
    font: normal normal normal 14px/16px 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0px;
    color: var(--white);
    overflow: auto;
    cursor: pointer;
    text-decoration: none;
}

.translation-lang:hover {
    color: var(--iimu-primary-yellow);
}

/* Active language underline */
/* .active-lang {
    text-decoration: underline !important;
} */

/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Completely hide all Google Translate elements */
.goog-te-banner-frame,
.skiptranslate,
.goog-te-gadget,
.goog-te-combo,
.goog-logo-link,
.goog-te-ftab-link {
    display: none !important;
}

/* Prevent body from being pushed down by Google Translate */
body {
    top: 0 !important;
}

.hidden {
    display: none !important;
}

/* Language options wrapper */
.language-options-wrapper {
    background-color: transparent;
    overflow-x: auto;
    width: auto;
    flex-shrink: 0;
}

.language-options-container {
    min-width: max-content;
}

.language-options-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    font-size: 14px;
    white-space: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.language-options-list li {
    margin-right: 0.25rem;
}

.language-options-list a {
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.language-options-list a:hover {
    color: var(--iimu-primary-yellow);
}

@media (min-width: 768px) {
    .language-options-wrapper {
        overflow-x: visible;
    }

    .language-options-list {
        flex-wrap: wrap;
    }
}