/* =========================================================
   Smart responsive navigation
   Inspired by modern Tamil news-site navigation patterns.
   ========================================================= */
.smart-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    border-bottom: 1px solid #dfe5ea;
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
    font-family: 'Hind Madurai', 'Noto Sans Tamil', sans-serif;
}

.smart-topbar {
    background: #fff;
    border-bottom: 1px solid #e8edf1;
}

.smart-top-inner {
    min-height: 72px;
    max-width: 1530px;
    margin: 0 auto;
    padding: 7px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.smart-top-left,
.smart-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-top-right {
    justify-content: flex-end;
}

.smart-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 4px;
    background: #d40000;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.smart-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.smart-social a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #1265a8;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.smart-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
}

.smart-logo img {
    display: block;
    width: auto;
    max-width: 250px;
    height: 58px;
    object-fit: contain;
}

.smart-top-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #09afd0;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.smart-top-right .smart-signin {
    margin-left: 10px;
    padding: 7px 15px;
    border-radius: 10px;
    background: #174f62;
}

.smart-navrow {
    background: #063e6d;
}

.smart-nav-inner {
    max-width: 1530px;
    min-height: 45px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-menu-btn,
.smart-user-btn,
.smart-search button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.smart-menu-btn {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

.smart-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.smart-category-scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.smart-category-scroll::-webkit-scrollbar {
    display: none;
}

.smart-nav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 45px;
    padding: 0 13px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.smart-nav-link:hover,
.smart-nav-link.is-active {
    color: #063e6d !important;
    background: #c8ebfa;
    border-radius: 7px;
    margin: 5px 0;
    min-height: 35px;
}

.smart-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.smart-search input {
    width: 0;
    opacity: 0;
    border: 0;
    padding: 0;
    transition: width .2s ease, opacity .2s ease;
}

.smart-search:focus-within input {
    width: 170px;
    opacity: 1;
    padding: 5px 8px;
    border-radius: 4px;
}

.smart-search button,
.smart-user-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smart-search svg,
.smart-user-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smart-user-btn {
    display: none;
}

.smart-menu-panel {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 15px rgba(0,0,0,.12);
}

.smart-menu-panel-inner {
    max-width: 1530px;
    margin: 0 auto;
    padding: 12px 24px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-menu-panel-inner a {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f1f5f8;
    color: #063e6d !important;
    font-weight: 600;
    text-decoration: none;
}

.smart-menu-panel-inner a:hover {
    background: #c8ebfa;
}

/* Tablet */
@media (max-width: 991.98px) {
    .smart-top-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .smart-top-left .smart-social,
    .smart-top-right a:not(.smart-signin) {
        display: none;
    }

    .smart-top-right {
        justify-content: flex-end;
    }

    .smart-top-right .smart-signin {
        margin-left: 0;
    }

    .smart-nav-inner {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile: compact header similar to the supplied reference */
@media (max-width: 767.98px) {
    .smart-topbar {
        display: none;
    }

    .smart-navrow {
        background: #fff;
        border-bottom: 1px solid #e4e9ed;
    }

    .smart-nav-inner {
        height: 52px;
        min-height: 52px;
        padding: 0 13px;
        gap: 5px;
        position: relative;
    }

    .smart-menu-btn {
        width: 34px;
        height: 34px;
        color: #063e6d;
        order: 1;
    }

    .smart-menu-btn span {
        background: #063e6d;
    }

    .smart-category-scroll {
        position: absolute;
        left: 0;
        right: 0;
        top: 52px;
        height: 42px;
        min-height: 42px;
        padding: 0 10px;
        background: #063e6d;
        z-index: 2;
        gap: 0;
    }

    .smart-nav-link {
        min-height: 42px;
        height: 42px;
        padding: 0 13px;
        font-size: 14px;
    }

    .smart-nav-link:hover,
    .smart-nav-link.is-active {
        min-height: 32px;
        height: 32px;
        margin: 5px 0;
        border-radius: 7px;
    }

    .smart-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 50px;
        width: 190px;
        order: 2;
    }

    .smart-logo img {
        max-width: 180px;
        height: 43px;
    }

    .smart-search {
        margin-left: auto;
        order: 3;
    }

    .smart-search input {
        display: none;
    }

    .smart-search button,
    .smart-user-btn {
        color: #063e6d;
        width: 34px;
        height: 34px;
    }

    .smart-user-btn {
        display: inline-flex;
        order: 4;
    }

    .smart-menu-panel {
        margin-top: 42px;
    }

    .smart-menu-panel-inner {
        padding: 10px 13px 15px;
    }
}
