/* ============================================================
   SAKSHAM Header CSS — v1.1
   Classes used by: 002-sk-header.php
   ============================================================ */

/* ── Brand Row ───────────────────────────────────────────────────── */
#sk-hdr {
    font-family: Arial, sans-serif;
}

#sk-brand {
    background: #ffffff;
    border-bottom: 1px solid #d0e4d8;
    padding: 12px 0;
}

#sk-brand .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 20px;
}

/* ── Logo Card ───────────────────────────────────────────────────── */
.sk-logo-card a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid #fab317;
    box-shadow: 0 4px 18px rgba(15,61,46,0.14), 0 1px 4px rgba(0,0,0,0.08);
    padding: 14px 22px;
}

.sk-logo-card a:hover {
    box-shadow: 0 6px 22px rgba(15,61,46,0.20), 0 2px 6px rgba(0,0,0,0.10);
}

.sk-logo-card a:focus {
    outline: 3px solid #fab317;
    outline-offset: 2px;
}

.sk-logo-img {
    height: 88px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.sk-logo-txt {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sk-name {
    font-size: 26px;
    font-weight: 900;
    color: #0F3D2E;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sk-sub {
    font-size: 11px;
    color: #2A6E5A;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e0ece6;
}

/* ── Centre Tagline ──────────────────────────────────────────────── */
.sk-tagline {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sk-tag-en {
    font-size: 16px;
    font-weight: 700;
    color: #0F3D2E;
    line-height: 1.3;
}

.sk-tag-ta {
    font-size: 15px;
    color: #2A6E5A;
    font-family: 'Latha', 'Nirmala UI', Arial, sans-serif;
    line-height: 1.5;
}

/* ── Right Controls ──────────────────────────────────────────────── */
.sk-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.sk-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Buttons */
.sk-lang {
    display: flex;
    gap: 4px;
}

.sk-lbtn {
    background: none;
    border: 1px solid #0F3D2E;
    color: #0F3D2E;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sk-lbtn:hover {
    background: #fab317;
    color: #0F3D2E;
    border-color: #fab317;
}

.sk-lbtn.active {
    background: #fab317;
    color: #0F3D2E;
    border-color: #fab317;
}

.sk-lbtn:focus {
    outline: 3px solid #fab317;
    outline-offset: 2px;
}

/* Accessibility Buttons */
.sk-a11y {
    display: flex;
    gap: 4px;
}

.sk-abtn {
    background: none;
    border: 1px solid #aaaaaa;
    color: #333333;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, sans-serif;
    transition: border-color 0.15s, color 0.15s;
    min-width: 32px;
    min-height: 32px;
}

.sk-abtn:hover {
    background: #0F3D2E;
    border-color: #0F3D2E;
    color: #ffffff;
}

.sk-abtn:focus {
    outline: 3px solid #fab317;
    outline-offset: 2px;
}

/* Skip link */
.sk-skip {
    display: inline-flex;
    align-items: center;
    color: #333333;
    font-size: 13px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    white-space: nowrap;
    min-height: 32px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sk-skip:hover {
    background: #0F3D2E;
    border-color: #0F3D2E;
    color: #ffffff;
    text-decoration: none;
}

/* Staff Login Button */
.sk-login-btn {
    display: inline-block;
    background: #fab317;
    color: #0F3D2E;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.sk-login-btn:hover {
    background: #a87a2e;
    color: #ffffff;
}

.sk-login-btn:focus {
    outline: 3px solid #fab317;
    outline-offset: 3px;
}

/* ── Nav Row ─────────────────────────────────────────────────────── */
#sk-nav {
    background: #f0f8f4;
    border-bottom: 2px solid #2A6E5A;
}

#sk-nav .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

#sk-mnav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

#sk-mnav > li > a {
    display: block;
    color: #0F3D2E;
    text-decoration: none;
    padding: 14px 14px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

#sk-mnav > li > a:hover,
#sk-mnav > li:focus-within > a {
    background: #fab317;
    color: #0F3D2E;
    border-radius: 20px;
    border-bottom: 3px solid transparent;
    padding: 8px 16px;
    margin: 6px 4px;
}

#sk-mnav > li.current-menu-item > a {
    background: #fab317;
    color: #0F3D2E;
    border-radius: 20px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    padding: 8px 16px;
    margin: 6px 4px;
}

#sk-mnav > li.current-menu-item > a::after {
    content: ' \203A';
}

#sk-mnav > li > a:focus {
    outline: 3px solid #fab317;
    outline-offset: -3px;
}

/* Dropdown Menus */
#sk-mnav li {
    position: relative;
}

#sk-mnav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    min-width: 210px;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
    border-top: 3px solid #fab317;
    border-radius: 0 0 6px 6px;
}

#sk-mnav li:hover > .sub-menu,
#sk-mnav li:focus-within > .sub-menu {
    display: block;
}

#sk-mnav .sub-menu li a {
    display: block;
    color: #0F3D2E;
    text-decoration: none;
    padding: 11px 18px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    border-left: 4px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

#sk-mnav .sub-menu li a:hover {
    background: #f4faf7;
    color: #0F3D2E;
    border-left-color: #fab317;
}

/* Mobile Hamburger Button */
#sk-tog {
    display: none;
    background: none;
    border: 1px solid #0F3D2E;
    color: #0F3D2E;
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 8px 0;
}

#sk-tog:focus {
    outline: 3px solid #fab317;
    outline-offset: 2px;
}

/* ── Announcements Ticker ────────────────────────────────────────── */
#sk-ticker {
    background: #FFF6DD;
    border-bottom: 2px solid #fab317;
    overflow: hidden;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
}

.sk-tk-label {
    flex-shrink: 0;
    background: #fab317;
    color: #0F3D2E;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    z-index: 2;
}

.sk-tk-label > span { font-size: 15px; }

.sk-tk-label-en {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.sk-tk-label-ta {
    font-size: 9.5px;
    font-family: 'Latha', 'Nirmala UI', Arial, sans-serif;
    opacity: 0.85;
    line-height: 1;
    margin-top: 2px;
}

.sk-tk-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
}

.sk-tk-items {
    display: inline-flex;
    align-items: center;
    animation: sk-ticker-scroll 40s linear infinite;
    will-change: transform;
}

.sk-tk-items:hover { animation-play-state: paused; }

.sk-tk-item {
    color: #0F3D2E;
    font-size: 13px;
    padding: 0 40px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sk-tk-item::before {
    content: '◆';
    color: #e09f0a;
    font-size: 9px;
    flex-shrink: 0;
}

.sk-tk-item a {
    color: #0F3D2E;
    text-decoration: none;
    font-weight: bold;
}

.sk-tk-item a:hover {
    color: #2A6E5A;
    text-decoration: underline;
}

.sk-tk-div {
    color: #e09f0a;
    font-size: 9px;
    padding-right: 40px;
    opacity: 0.45;
}

/* Language toggle — ticker label */
.sk-tk-label-ta { display: none; }
body.lang-ta .sk-tk-label-ta { display: block; }
body.lang-ta .sk-tk-label-en { display: none; }

/* Language toggle — ticker items (high specificity to beat theme CSS) */
#sk-ticker .sk-tk-ta { display: none !important; }
body.lang-ta #sk-ticker .sk-tk-ta { display: inline !important; }
body.lang-ta #sk-ticker .sk-tk-en { display: none !important; }

@keyframes sk-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ticker pause button + reduced motion */
.sk-tk-pause {
    flex-shrink: 0;
    width: 44px;
    height: 100%;
    background: #FFF6DD;
    color: #0F3D2E;
    border: 0;
    border-left: 1px solid rgba(15, 61, 46, 0.25);
    font-size: 12px;
    cursor: pointer;
    z-index: 2;
}
.sk-tk-pause:hover { background: #fab317; }
.sk-tk-pause:focus { outline: 3px solid #fab317; outline-offset: -3px; }
#sk-ticker.sk-paused .sk-tk-items { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .sk-tk-items { animation: none; }
    .sk-tk-wrap { overflow-x: auto; }
}

/* ── High Contrast Mode ──────────────────────────────────────────── */
body.sk-high-contrast {
    filter: invert(1) hue-rotate(180deg);
}

body.sk-high-contrast img,
body.sk-high-contrast video,
body.sk-high-contrast .sk-logo-img {
    filter: invert(1) hue-rotate(180deg);
}

/* ── Desktop: mobile-only pieces stay hidden ─────────────────────── */
.sk-mob-login { display: none; }
.sk-subtog { display: none; }

/* ── Mobile (max 768px) — compact header ─────────────────────────────
   Goal: header + ticker under ~15% of the first phone screen so the hero
   headline and "Get Help Now" show without scrolling.
   Row 1: language + A+ A- contrast  |  Row 2: small logo + menu button.
   Staff Login moves inside the opened menu. Desktop is unchanged.      */
@media (max-width: 768px) {

    #sk-brand { padding: 0; }

    #sk-brand .wrap {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "bar bar"
            "logo tog";
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
        padding: 0 12px;
    }

    .sk-tagline { display: none; }

    /* Row 1 — slim controls bar */
    .sk-right {
        grid-area: bar;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 0;
        padding: 4px 0;
        border-bottom: 1px solid #e0ece6;
    }
    .sk-right .sk-login-btn { display: none; }
    .sk-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .sk-lbtn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }
    .sk-a11y { gap: 6px; }
    .sk-abtn {
        min-width: 40px;
        min-height: 40px;
        font-size: 15px;
    }
    /* Skip link stays available to keyboard / screen-reader users, visible on focus */
    .sk-skip {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        padding: 0;
        border: 0;
        min-height: 0;
    }
    .sk-skip:focus {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        padding: 0 12px;
        border: 1px solid #aaaaaa;
        min-height: 40px;
        background: #ffffff;
    }

    /* Row 2 — small logo card + menu button */
    .sk-logo-card { grid-area: logo; padding: 6px 0; min-width: 0; }
    .sk-logo-card a {
        gap: 10px;
        padding: 6px 12px;
        border-radius: 8px;
        border-top-width: 3px;
        box-shadow: 0 2px 8px rgba(15, 61, 46, 0.12);
    }
    .sk-logo-img { height: 48px; }
    .sk-name { font-size: 18px; letter-spacing: 2px; }
    .sk-sub { font-size: 9px; letter-spacing: 1.5px; margin-top: 4px; padding-top: 4px; }

    #sk-tog {
        grid-area: tog;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        font-size: 24px;
        line-height: 1;
        border-radius: 8px;
        background: #ffffff;
    }
    #sk-tog[aria-expanded="true"] { background: #0F3D2E; color: #ffffff; }

    /* Opened menu */
    #sk-nav { border-bottom: 0; }
    #sk-nav .wrap { padding: 0; display: block; }
    #sk-mnav {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }
    #sk-mnav.open {
        display: flex;
        border-bottom: 2px solid #2A6E5A;
    }
    #sk-mnav > li > a,
    #sk-mnav > li > a:hover,
    #sk-mnav > li:focus-within > a,
    #sk-mnav > li.current-menu-item > a {
        margin: 0;
        padding: 14px 16px;
        border-radius: 0;
        font-size: 16px;
        white-space: normal;
        border-bottom: 1px solid #d0e4d8;
    }
    #sk-mnav > li.current-menu-item > a::after { content: none; }

    /* Parent items with a submenu: link + ▾ button on one row, submenu collapsed */
    #sk-mnav li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    #sk-mnav li.menu-item-has-children > a { flex: 1 1 0; min-width: 0; }
    .sk-subtog {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 56px;
        background: none;
        border: 0;
        border-left: 1px solid #d0e4d8;
        border-bottom: 1px solid #d0e4d8;
        color: #0F3D2E;
        font-size: 18px;
        cursor: pointer;
    }
    .sk-subtog:focus { outline: 3px solid #fab317; outline-offset: -3px; }
    #sk-mnav li.sk-sub-open > .sk-subtog { background: #0F3D2E; color: #ffffff; }

    #sk-mnav .sub-menu,
    #sk-mnav li:hover > .sub-menu,
    #sk-mnav li:focus-within > .sub-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0 0 0 12px;
        min-width: 0;
        background: #e8f2ec;
    }
    #sk-mnav li.sk-sub-open > .sub-menu { display: block; }
    #sk-mnav .sub-menu li a {
        padding: 13px 16px;
        font-size: 15px;
        border-bottom: 1px solid #d0e4d8;
    }

    /* Staff Login inside the opened menu */
    #sk-mnav.open + .sk-mob-login {
        display: block;
        padding: 12px 16px;
        background: #f0f8f4;
        border-bottom: 2px solid #2A6E5A;
    }
    .sk-mob-login .sk-login-btn {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
    }

    /* Ticker */
    #sk-ticker { height: 34px; }
    .sk-tk-label { padding: 0 10px; gap: 6px; }
    .sk-tk-label-en { font-size: 9px; letter-spacing: 1px; }
    .sk-tk-item { font-size: 12px; padding-right: 28px; }
}
