/* ================================================================
   AYUSH PHARMACY INSTITUTE — PROFESSIONAL HEADER
   Theme:  Deep Teal & Amber
   Palette:  Teal #0B5D51 | Dark Teal #06302B | Panel #084A40
             Amber #F59E0B | Light text #D7E9E5
================================================================ */

/* --- Reset helpers --- */
.ac-header *, .ac-header *::before, .ac-header *::after { box-sizing: border-box; }
.ac-header ul { list-style: none; margin: 0; padding: 0; }
.ac-header a { text-decoration: none; }

/* ================================================================
   1. TOPBAR  (thin info strip)
================================================================ */
.ac-topbar {
    background: #06302B;
    padding: 6px 0;
    font-size: 12.5px;
    color: #a8c8c2;
    font-family: 'Roboto', sans-serif;
}
.ac-topbar .ac-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
/* left info list */
.ac-topbar .tb-info {
    display: flex;
    align-items: center;
    gap: 22px;
}
.ac-topbar .tb-info li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a8c8c2;
}
.ac-topbar .tb-info li i { color: #F59E0B; font-size: 12px; }
.ac-topbar .tb-info li a { color: #a8c8c2; }
.ac-topbar .tb-info li a:hover { color: #F59E0B; }
/* right: social */
.ac-topbar .tb-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ac-topbar .tb-social {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ac-topbar .tb-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    color: #a8c8c2;
    font-size: 12px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ac-topbar .tb-social li a:hover {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #06302B;
}

/* ================================================================
   2. HEADER MIDDLE  (logo + contact widgets + apply CTA)
================================================================ */
.ac-header-mid {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 3px solid #0B5D51;
}
.ac-header-mid .ac-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
/* Logo */
.ac-logo { flex-shrink: 0; }
.ac-logo a { display: block; }
.ac-logo img {
    max-height: 82px;
    width: auto;
    display: block;
}
/* Contact widgets row (centered between logo and CTA) */
.ac-widgets {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    justify-content: center;
}
.ac-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 26px;
    border-left: 1px solid #e2efec;
}
.ac-widget:first-child { border-left: none; }
.ac-widget .wicon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0B5D51;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ac-widget:hover .wicon { background: #F59E0B; }
.ac-widget .wicon i { color: #fff; font-size: 17px; }
.ac-widget .wtext { line-height: 1.35; }
.ac-widget .wtext .wlabel {
    display: block;
    font-size: 10.5px;
    color: #98a5a2;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}
.ac-widget .wtext .wval {
    display: block;
    font-size: 13.5px;
    color: #0B5D51;
    font-weight: 700;
}
.ac-widget .wtext a { color: inherit; }
.ac-widget .wtext a:hover { color: #F59E0B; }
/* Apply CTA (right side of logo bar) */
.ac-cta { flex-shrink: 0; }
.ac-cta .ac-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #F59E0B;
    color: #3a2503;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.35);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.ac-cta .ac-apply:hover {
    background: #0B5D51;
    color: #fff;
    box-shadow: 0 4px 12px rgba(11,93,81,0.3);
}
/* Mobile menu placeholder */
.ac-header .mobile-menu { display: none; }

/* ================================================================
   3. MAIN NAVIGATION  (centered links)
================================================================ */
.ac-navbar {
    background: #0B5D51;
    position: relative;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}
.ac-navbar .ac-inner { padding: 0; }

/* Nav list (desktop) */
.ac-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Top-level items */
.ac-nav > li { position: relative; }
.ac-nav > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 17px 15px;
    color: #d7e9e5 !important;
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ac-nav > li > a i.fa-angle-down { font-size: 11px; opacity: 0.75; }
.ac-nav > li > a i.fa-home { font-size: 14px; }
.ac-nav > li:hover > a,
.ac-nav > li.active > a {
    background: rgba(255,255,255,0.09);
    color: #ffffff !important;
    border-bottom-color: #F59E0B;
}

/* Dropdown panel */
.ac-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #084A40;
    padding: 6px 0;
    margin: 0;
    z-index: 1000;
    border-top: 3px solid #F59E0B;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.ac-nav > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.ac-nav .dropdown > li { position: relative; }
.ac-nav .dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px 9px 16px;
    color: #b9d8d2 !important;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ac-nav .dropdown > li > a i.fa-angle-right { font-size: 11px; opacity: 0.6; }
.ac-nav .dropdown > li:hover > a {
    background: rgba(245,158,11,0.12);
    color: #F59E0B !important;
    border-left-color: #F59E0B;
}

/* Sub-menu (level 2) */
.ac-nav .dropdown .submenu {
    position: absolute;
    top: -3px;
    left: 100%;
    min-width: 240px;
    background: #084A40;
    padding: 6px 0;
    margin: 0;
    z-index: 1100;
    border-top: 3px solid #F59E0B;
    border-radius: 0 4px 4px 4px;
    box-shadow: 6px 10px 28px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.ac-nav .dropdown > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.ac-nav .submenu > li { position: relative; }
.ac-nav .submenu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px 9px 16px;
    color: #b9d8d2 !important;
    font-size: 13px;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ac-nav .submenu > li:hover > a {
    background: rgba(245,158,11,0.12);
    color: #F59E0B !important;
    border-left-color: #F59E0B;
}
.ac-nav .submenu .submenu {
    left: 100%;
    top: -3px;
}

/* ================================================================
   4. QUICK LINKS TICKER  (below the menu)
================================================================ */
.ac-ticker {
    display: flex;
    align-items: stretch;
    height: 38px;
    background: #f4faf8;
    border-bottom: 1px solid #dcebe7;
    overflow: hidden;
}
/* Left badge */
.ac-ticker .ticker-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    background: #F59E0B;
    color: #3a2503;
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}
/* angled right edge */
.ac-ticker .ticker-badge::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 38px solid #F59E0B;
    border-right: 14px solid transparent;
    z-index: 2;
}
.ac-ticker .ticker-badge i { font-size: 13px; }
/* Scrolling track */
.ac-ticker .ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 20px;
    cursor: default;
}
.ac-ticker .ticker-reel {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ac-scroll 40s linear infinite;
    will-change: transform;
}
.ac-ticker .ticker-reel:hover,
.ac-ticker .ticker-track:hover .ticker-reel { animation-play-state: paused; }
@keyframes ac-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ac-ticker .ticker-reel a {
    color: #0B5D51;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    padding: 0 4px;
    transition: color 0.18s;
}
.ac-ticker .ticker-reel a:hover { color: #F59E0B; text-decoration: underline; }
.ac-ticker .ticker-reel .tdot {
    color: #F59E0B;
    font-size: 10px;
    padding: 0 10px;
    user-select: none;
    line-height: 1;
}
@media (max-width: 768px) {
    .ac-ticker .ticker-badge { padding: 0 14px; font-size: 10px; letter-spacing: 0.8px; }
    .ac-ticker .ticker-badge::after { right: -10px; border-right-width: 10px; }
    .ac-ticker .ticker-reel { animation-duration: 30s; }
    .ac-ticker .ticker-reel a { font-size: 12px; }
}

/* ================================================================
   5. MOBILE NAV (≤991px)
================================================================ */
.ac-mobile-bar {
    display: none;
    background: #ffffff;
    border-bottom: 3px solid #0B5D51;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.ac-mobile-bar .mob-logo img {
    max-height: 60px;
    width: auto;
}
.ac-mobile-bar .mob-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-mobile-bar .mob-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F59E0B;
    color: #3a2503;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
}
.ac-mobile-bar .mob-apply:hover { background: #0B5D51; color: #fff; }
.ac-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0B5D51;
    border: none;
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.ac-mobile-toggle:hover { background: #06302B; }

@media (max-width: 991px) {
    .ac-topbar .tb-info { display: none; }
    .ac-header-mid { display: none; }
    .ac-mobile-bar { display: flex; }
    .ac-navbar .ac-inner { padding: 0; }
    .ac-nav {
        flex-direction: column;
        display: none;
        background: #0B5D51;
    }
    .ac-nav.mob-open { display: flex; }
    .ac-nav > li > a {
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-left: none;
    }
    .ac-nav > li:hover > a { border-bottom-color: rgba(255,255,255,0.08); }
    .ac-nav .dropdown,
    .ac-nav .dropdown .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        background: rgba(0,0,0,0.18);
        padding: 0;
        display: none;
    }
    .ac-nav > li.mob-open > .dropdown,
    .ac-nav .dropdown > li.mob-open > .submenu { display: block; }
    .ac-nav .dropdown > li > a,
    .ac-nav .submenu > li > a { padding-left: 30px; }
    .ac-nav .submenu .submenu > li > a { padding-left: 44px; }
}
@media (max-width: 576px) {
    .ac-topbar { display: none; }
}
