/* ==========================================================================
   Header & Core Navigation Styles
   ========================================================================== */

*,
*:before,
*:after {
    box-sizing: border-box;
}

@import url('toast.css');

body.no-scroll {
    overflow: hidden !important;
}

.secIn {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--contentW);
}

.secInOut {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--contentW);
}

.contentIn {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--contentM);
}

.contentInOut {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--contentM);
}

.mainIn {
    margin-top: 30px;
    margin-bottom: 30px;
}

.lightIn {
    margin-top: 30px;
    margin-bottom: 30px;
}





.secIn850 {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 850px;
}


.contentBody {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 0;
    /* Important for flex children container nested content */
}

.secIn.full-width {
    max-width: 100%;
    width: 100%;
    border-left: none;
    border-right: none;
}

.main-header {
    width: 100%;
    z-index: 105;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-bottom 0.3s ease;
    scrollbar-width: none;
}

body.has-trust-banner .main-header:not(.scrolled) {
    border-bottom-color: transparent;
}

body.has-trust-banner .main-header.scrolled {
    border-bottom-color: var(--border-color);
}

.headCn {
    width: 100%;
    height: 60px;
    position: relative;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.headIn {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.headIn .headMenuLink:hover,
.headIn .headMenuLink.active {
    color: var(--primary-color);
}

.headL {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.headC {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.headMenu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.headMenuLink {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.headMenuLink:hover,
.headMenuLink.active {
    color: var(--primary-color);
    background-color: transparent;
}

.headMenuMore {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.headMenuMore .headMoreBtn svg {
    transition: transform 0.2s ease;
}

.headMenuMore.show .headMoreBtn svg {
    transform: rotate(180deg);
}

.headMenuMore .item-dropdown-menu {
    min-width: 180px;
}

.headR {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 4px;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.profile-section {
    margin-left: 6px;
}

.header-container-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* Mobile-only utility (hidden by default on desktop) */
.mobile-only {
    display: none !important;
}

/* Hide second header on mobile when there's a search query */

/* New header structure */
.header-left,
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
}

.header-left {
    flex: 0 0 auto;
    margin-right: 20px;
}

.header-right {
    flex: 0 0 auto;
    margin-left: 20px;
}

/* Site Brand Title */
.headBr {
    display: flex;
    align-items: center;
    user-select: none;
}

.sitTtl {
    font-family: var(--fontO);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    margin: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Profile image styles */
.profile-image-container {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding: 2px;
}

.profile-image-container.active {
    border-color: var(--text-primary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
}

/* Small profile image styles for settings header */
.profile-image-container-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding: 2px;
}

.profile-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Ticket button container */
.ticket-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Header Icon Buttons (Theme, Search, etc.)
   ============================================ */

.header-icon-btn {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: var(--bg-primary);
    border: 0;
}

.header-icon-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-icons {
    position: relative;
    width: 22px;
    height: 22px;
}

.light-theme-icon,
.dark-theme-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    display: none;
}

.light-theme-icon svg,
.dark-theme-icon svg {
    width: 22px;
    height: 22px;
}

.theme-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-normal);
    display: none;
    line-height: 1.3125;
}

.theme-option-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-option {
    position: relative;
}

.main-header::-webkit-scrollbar {
    display: none;
}


/* tab header */
.tab-header {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    height: 60px;
}

.tab-header::-webkit-scrollbar {
    display: none;
}

.tab-header .nav-tabs {
    border-bottom: none;
    overflow-x: visible;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.bookmarks-tab-header .nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-item {
    background: transparent;
}

.tab-header .nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    line-height: 1.3125;
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.tab-header .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.tab-header .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.header-page-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.back-page-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--text-primary);
}

.back-page-button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.back-page-button svg {
    width: 20px;
    height: 20px;
}

.header-page-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.icon-button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.tab-header-second {
    top: 0;
}



/* News Portal Elements */

.search-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background-color: var(--error-color);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg-hover);
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(255, 75, 75, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
    }
}



/* Fallback utilities if not present */
.btn-text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
}

.menu-item {
    cursor: pointer;
}

/* Seamless Ticker Styles */
.ticker-container {
    overflow: hidden;
    display: flex;
    width: 100%;
}

.ticker-mover {
    display: flex;
    white-space: nowrap;
    animation: seamless-ticker 40s linear infinite;
    /* width is automatically determined by content */
}

.ticker-container:hover .ticker-mover {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

@keyframes seamless-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hdr-main {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.hdr-container {
    max-width: var(--contentW);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hdr-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.hdr-col {
    display: flex;
    align-items: center;
}

.hdr-title-text {
    font-size: 20px;
    font-weight: 600;
}

.icon-line {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hidden {
    display: none;
}


.spIn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.spInBgIcon,
.archiveHeaderCardBgIcon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 180px;
    height: 180px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    color: var(--text-primary);
}

.spIn>*:not(.spInBgIcon):not(.archiveHeaderCardBgIcon) {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Mobile Navigation Bar
   ========================================================================== */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0 4px;
    background-color: var(--bg-secondary);
    display: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 101;
    box-shadow: 0 -10px 25px -5px rgb(0 0 0 / 10%);
    box-sizing: border-box;
}

.mobile-nav-bar .nav-item {
    display: flex;
    min-width: 0;
    max-width: none;
    padding: 3px 2px;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 9px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-bar .nav-item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-bottom: 2px;
    fill: currentColor;
}

.mobile-nav-bar .nav-item span {
    display: block;
    font-size: 9px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-nav-bar .profile-nav-item {
    position: relative;
}

.mobile-profile-image-container {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 2px;
}

.mobile-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-nav-bar .profile-nav-item .mobile-profile-image-container {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-bottom: 2px;
    padding: 0;
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Landscape / Small Laptop */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .secCn {
        padding-left: 0;
        padding-right: 0;
    }

    .secIn850 {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Tablet navigation collapse */
    .headC {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .headCn {
        height: 60px;
    }

    .main-content {
        border-left: none;
        max-width: 100%;
        margin: 0 auto;
    }

    .secIn {
        border-right: none;
        border-left: none;
        max-width: 100%;
        width: 100%;
    }

    .main-header {
        position: relative;
        top: auto;
        z-index: 105;
        padding-top: 0;
    }

    .no-border {
        border: none !important;
    }

    .tab-header {
        height: 50px;
        top: 50px;
        padding: 0;
    }

    .tab-header .nav-link {
        padding: 13px 0;
        font-size: 14px;
    }

    .back-page-button {
        margin-right: 12px;
    }

    .header-left,
    .header-right {
        height: 100%;
    }

    .headM,
    .headS {
        display: none;
    }

    .headSInp {
        width: 150px;
        font-size: 12px;
    }

    .ptBnrIn,
    .headIn {
        border-radius: 0 !important;
    }
}

/* 3. Tablet */
@media (max-width: 768px) {
    .headIn .header-login-btn {
        display: none !important;
    }

    .secIn,
    .contentIn {
        padding-left: 15px;
        padding-right: 15px;
    }

    .spIn {
        padding: 18px;
        margin-bottom: 16px;
    }

    .spInBgIcon,
    .archiveHeaderCardBgIcon {
        width: 140px;
        height: 140px;
        right: -15px;
        bottom: -15px;
        opacity: 0.04;
    }
}

/* 4. Mobile */
@media (max-width: 480px) {
    .headCn {
        height: 54px;
    }

    .sitTtl {
        font-size: 21px;
    }


    .spIn {
        background-color: var(--bg-second);
        padding: 15px;
        margin-top: 0;
        margin-bottom: 14px;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .spInBgIcon,
    .archiveHeaderCardBgIcon {
        display: block;
        width: 120px;
        height: 120px;
        right: -10px;
        bottom: -10px;
        opacity: 0.05;
    }

    .tab-header {
        height: 44px;
    }

    .tab-header .nav-link {
        font-size: 13px;
    }

    .secInOut,
    .contentInOut {
        padding-left: 0;
        padding-right: 0;
    }

    .lightIn {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .conTnt .specMn,
    .conTnt .faq {
        border: none !important;
        border-radius: 0 !important;
    }

    .conTnt .specMn h1,
    .conTnt .specMn h2,
    .conTnt .specMn h3,
    .conTnt .specMn h4,
    .conTnt .specMn h5,
    .conTnt .specMn h6,
    .conTnt .faq h2,
    .conTnt .subHead {
        text-align: left !important;
    }

    .mobile-nav-bar {
        display: flex;
    }
}

/* 5. Very Small Mobile */
@media (max-width: 360px) {

    .header-left,
    .header-right {
        gap: 4px;
    }

    .spIn {
        padding: 12px;
    }
}