/* ==========================================================================
   News Blogs - Internationalization (i18n) & Language Switcher Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@300;400;500;600;700&display=swap');

/* Language Switcher Pill in Header Top Links */
.lang-switcher-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2px 5px;
    margin-left: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.dark-theme .lang-switcher-wrap,
body.dark-theme .lang-switcher-wrap,
.th-header.dark-theme .lang-switcher-wrap {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
    line-height: 1.4;
    font-family: inherit;
    display: inline-block;
}

.lang-btn.active {
    background-color: var(--theme-color, #FF1D50);
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(255, 29, 80, 0.35);
}

.lang-btn:hover:not(.active) {
    color: var(--theme-color, #FF1D50);
}

.lang-sep {
    font-size: 11px;
    opacity: 0.4;
    margin: 0 1px;
    user-select: none;
}

/* Mobile Language Switcher inside Drawer */
.mobile-lang-box {
    margin: 15px 25px 20px 25px;
    padding: 12px 15px;
    background: var(--smoke-color2, #EFF3FA);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-lang-box .lang-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--title-color, #080809);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-lang-box .lang-switcher-wrap {
    background: #ffffff;
    margin-left: 0;
}

/* Unified Typography & Font Consistency */
body,
html,
html[lang="ta"],
html[lang="en"] {
    font-family: 'Poppins', 'Noto Sans Tamil', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sec-title,
.box-title,
.box-title-50,
.box-title-40,
.box-title-30,
.box-title-24,
.box-title-22,
.box-title-20,
.box-title-18,
.widget_title {
    font-family: 'Poppins', 'Noto Sans Tamil', sans-serif !important;
    letter-spacing: normal !important;
}

.main-menu>ul>li>a,
.main-menu ul.sub-menu li a,
.th-mobile-menu ul li>a,
.th-btn {
    font-family: 'Poppins', 'Noto Sans Tamil', sans-serif !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   Comprehensive Device Breakpoint Media Queries
   Covering: iPhone SE (375px), iPhone 16/16 Pro Max (393px-440px),
   Pixel 9/10 / Galaxy A55 (412px), Foldables (375px-424px folded / 892px-968px),
   Tablets (iPad Mini 768px, Surface Pro 912px, iPad Pro 1024px),
   and Smart Displays / Desktops (Nest Hub Max 1280px+).
   ========================================================================== */

/* 1. Global Box Sizing & Overflow Protection */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* 2. Extra Small Mobile Devices (iPhone SE 375px, Galaxy Z Fold 375px & below) */
@media (max-width: 375px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .header-top {
        padding: 4px 0 !important;
    }

    .header-links ul li {
        font-size: 11px !important;
        margin-right: 6px !important;
    }

    .news-area .title {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }

    .cat-banner-title {
        font-size: 20px !important;
    }

    .cat-card-img-wrap {
        height: 180px !important;
    }

    .news-detail-title {
        font-size: 19px !important;
        line-height: 1.35 !important;
    }

    .sub-card-price {
        font-size: 28px !important;
    }

    .sub-card-box {
        padding: 20px 14px !important;
    }

    .th-menu-area {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 20px 14px !important;
    }
}

/* 3. Mobile Devices (376px to 575px - iPhone 16, iPhone 16 Pro Max, Pixel 9/10, Samsung Galaxy A55) */
@media (min-width: 376px) and (max-width: 575px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cat-card-img-wrap {
        height: 200px !important;
    }

    .news-detail-title {
        font-size: 22px !important;
    }

    .th-menu-area {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 24px 18px !important;
    }
}

/* 4. Small Mobile Shared Overrides (< 576px) */
@media (max-width: 575px) {
    .space-top {
        padding-top: 25px !important;
    }

    .space-bottom {
        padding-bottom: 25px !important;
    }

    .hero-card-left {
        height: 200px !important;
    }

    .hero-card-main {
        height: 300px !important;
    }

    .hero-tab-container-wrap {
        height: 340px !important;
    }

    .video-main-box {
        height: 220px !important;
    }

    .box-title-30 {
        font-size: 17px !important;
    }

    .box-title-22 {
        font-size: 14px !important;
    }

    .sub-pills-wrap {
        gap: 6px !important;
        padding-bottom: 8px !important;
    }

    .sub-pill-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
}

/* 5. Foldables & Medium Mobile (576px to 767px - Pixel 9 Pro Fold / Galaxy Z Fold folded/unfolded transition) */
@media (min-width: 576px) and (max-width: 767px) {
    .cat-card-img-wrap {
        height: 220px !important;
    }

    .hero-card-main {
        height: 360px !important;
    }

    .video-main-box {
        height: 280px !important;
    }
}

/* 6. Tablets & Foldables (768px to 991px - iPad Mini 768px, Surface Pro 912px, Pixel 9 Pro Fold unfolded 892px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-card-main {
        height: 400px !important;
    }

    .hero-tab-container-wrap {
        height: 380px !important;
    }

    .video-main-box {
        height: 320px !important;
    }

    .cat-card-img-wrap {
        height: 210px !important;
    }

    .sidebar-area {
        margin-top: 35px !important;
    }
}

/* 7. Laptops & Small Desktops (992px to 1199px - iPad Pro 13 1024px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .custom-main-menu ul li a {
        padding: 12px 7px !important;
        font-size: 13px !important;
    }

    .hero-card-main {
        height: 440px !important;
    }

    .hero-tab-container-wrap {
        height: 440px !important;
    }

    .video-main-box {
        height: 360px !important;
    }
}

/* 8. Large Desktops & Smart Displays (1200px - 1280px+ - Nest Hub Max 1280px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1240px !important;
    }
}

/* ==========================================================================
   Hide All Google Translate Injected Floating Badges, Spinners & Toolbars
   ========================================================================== */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-spinner,
.goog-te-spinner-animation,
.VIpgJd-yDtffd-Lg4tic,
.VIpgJd-yDtffd-aT5dTe,
.VIpgJd-yDtffd-Lg4tic-clbr,
[class*="VIpgJd-ZVi9od"],
[class*="VIpgJd-yDtffd"],
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-ZVi9od-aZ2wEe,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
iframe.skiptranslate,
body>.skiptranslate,
body>div.skiptranslate,
div.skiptranslate:not(.lang-switcher-wrap),
.skiptranslate:not(.lang-switcher-wrap):not(.lang-btn):not(span):not(button):not(li):not(div.mobile-lang-box) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

body {
    top: 0px !important;
    position: static !important;
}