:root {
    --primary: #014BA0;
    --primary-dark: #01397b;
    --accent: #d90429;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f5f7fb;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: min(100% - 24px, var(--container));
    margin-inline: auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
}

.topbar-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.site-branding img {
    max-height: 70px;
    width: auto;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.site-tagline {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.ad-box {
    min-width: 280px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--muted);
    background: #fafafa;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: none;
    background: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 10px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 10px;
}

.main-navigation {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 600;
}

.primary-menu li a:hover,
.primary-menu .current-menu-item > a {
    color: var(--primary);
}

.site-main {
    padding: 24px 0 40px;
}

.hero-card {
    padding: 36px;
    margin-bottom: 24px;
}

.hero-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    color: var(--primary);
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.content-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.section-title {
    font-size: 26px;
    margin: 0 0 20px;
    color: var(--text);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.news-card,
.post-card {
    height: 100%;
}

.news-thumb img,
.post-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-content,
.post-content {
    padding: 18px;
}

.news-title,
.post-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.4;
}

.news-title a,
.post-title a {
    color: var(--text);
}

.news-title a:hover,
.post-title a:hover {
    color: var(--primary);
}

.news-meta,
.post-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.widget {
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.no-posts {
    padding: 24px;
}

.pagination-wrap {
    margin-top: 24px;
}

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.footer-col h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 20px;
}

.footer-col p,
.footer-col a {
    color: #cbd5e1;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
}

/* Tablet */
@media (max-width: 991px) {
    .brand-row {
        grid-template-columns: 1fr auto;
    }

    .header-ad {
        display: none;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .topbar-wrap {
        justify-content: center;
        text-align: center;
    }

    .brand-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }

    .primary-menu li a {
        padding: 12px 16px;
        border-top: 1px solid var(--border);
    }

    .hero-card {
        padding: 24px 18px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .news-title,
    .post-title {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Breaking Ticker ========== */
.breaking-ticker-section {
    margin-bottom: 24px;
}

.breaking-ticker {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    overflow: hidden;
    border-radius: 14px;
}

.breaking-label {
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    text-align: center;
    padding: 16px 12px;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.breaking-items {
    overflow: hidden;
    position: relative;
    background: var(--white);
    min-height: 56px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    padding-left: 24px;
    animation: tickerMove 28s linear infinite;
}

.ticker-item {
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ticker-item::before {
    content: "●";
    color: var(--accent);
    font-size: 10px;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-40%);
    }
}

/* ========== Hero News ========== */
.hero-news-section {
    margin-bottom: 28px;
}

.hero-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main {
    height: 100%;
}

.hero-main-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-main-content {
    padding: 22px;
}

.post-category {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.post-category a {
    color: var(--accent);
}

.hero-main-title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
}

.hero-main-title a {
    color: var(--text);
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hero-small-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-small-content {
    padding: 16px;
}

.small-cat {
    font-size: 13px;
    margin-bottom: 8px;
}

.hero-small-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.hero-small-title a {
    color: var(--text);
}

/* ========== Homepage Blocks ========== */
.homepage-block {
    margin-bottom: 32px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-more {
    margin-left: auto;
}

.section-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: calc(100% - 12px);
    border-radius: 30px;
    background: var(--primary);
}

.section-more {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.latest-grid .news-title {
    font-size: 20px;
}

/* ========== Category Block ========== */
.category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
    align-items: start;
}

.category-featured-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-featured-content {
    padding: 18px;
}

.category-featured-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.4;
}

.category-featured-title a {
    color: var(--text);
}

.category-list {
    display: grid;
    gap: 16px;
}

.category-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.category-list-thumb img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
}

.category-list-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.45;
}

.category-list-title a {
    color: var(--text);
}

/* ========== Sidebar ========== */
.sidebar-widget {
    padding: 20px;
}

.trending-list {
    display: grid;
    gap: 16px;
}

.trending-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
}

.trending-title {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.45;
}

.trending-title a {
    color: var(--text);
}

.sidebar-ad-box {
    min-height: 250px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 700;
    color: var(--muted);
    background: #fafafa;
    padding: 20px;
}

.social-follow-list {
    display: grid;
    gap: 12px;
}

.social-follow-item {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--light);
    color: var(--text);
    font-weight: 700;
    border: 1px solid var(--border);
}

.social-follow-item:hover {
    color: var(--primary);
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .hero-news-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .breaking-ticker {
        grid-template-columns: 1fr;
    }

    .breaking-label {
        padding: 12px;
        font-size: 15px;
    }

    .breaking-items {
        min-height: 52px;
    }

    .ticker-track {
        gap: 24px;
        padding-left: 16px;
    }

    .hero-side-grid {
        grid-template-columns: 1fr;
    }

    .hero-main-content,
    .hero-small-content,
    .category-featured-content {
        padding: 16px;
    }

    .hero-main-title {
        font-size: 24px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title {
        font-size: 24px;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

    .category-list-item {
        grid-template-columns: 100px 1fr;
    }

    .category-list-thumb img {
        height: 76px;
    }

    .category-featured-title {
        font-size: 21px;
    }

    .trending-title {
        font-size: 16px;
    }
}

/* ========== Single Post Page ========== */
.single-layout {
    align-items: start;
}

.single-post-article {
    padding: 0;
    overflow: hidden;
}

.single-post-header {
    padding: 28px 28px 18px;
}

.single-post-category {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.single-post-category a {
    color: var(--accent);
}

.single-post-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.3;
    color: var(--text);
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.meta-divider {
    color: #9ca3af;
}

.single-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.single-post-content {
    padding: 28px;
    font-size: 18px;
    line-height: 1.95;
    color: var(--text);
}

.single-post-content p {
    margin: 0 0 22px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 14px;
    line-height: 1.4;
    color: var(--text);
}

.single-post-content h2 {
    font-size: 30px;
}

.single-post-content h3 {
    font-size: 24px;
}

.single-post-content h4 {
    font-size: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    border-radius: 12px;
    font-size: 18px;
    color: #334155;
}

.single-post-content img {
    margin: 22px auto;
    border-radius: 14px;
}

.single-post-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post-footer {
    padding: 0 28px 28px;
}

.single-post-tags {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.single-post-tags a {
    display: inline-block;
    margin: 6px 8px 0 0;
    padding: 6px 10px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
}

.tag-label {
    font-weight: 700;
    color: var(--text);
}

.related-posts-section {
    margin-top: 30px;
}

.related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-content {
        font-size: 17px;
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .single-post-header {
        padding: 20px 18px 14px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .single-post-content {
        padding: 20px 18px;
        font-size: 16px;
        line-height: 1.9;
    }

    .single-post-content h2 {
        font-size: 24px;
    }

    .single-post-content h3 {
        font-size: 21px;
    }

    .single-post-content h4 {
        font-size: 18px;
    }

    .single-post-footer {
        padding: 0 18px 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Archive / Category Page ========== */
.archive-hero-section {
    margin-bottom: 24px;
}

.archive-hero {
    padding: 28px;
}

.archive-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

.archive-breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.archive-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
    color: var(--text);
}

.archive-description {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.archive-layout {
    align-items: start;
}

.archive-posts-grid {
    display: grid;
    gap: 22px;
}

.archive-post-card {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.archive-post-thumb img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.archive-post-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-post-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.35;
}

.archive-post-title a {
    color: var(--text);
}

.archive-post-title a:hover {
    color: var(--primary);
}

.archive-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.archive-post-excerpt {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    transition: 0.2s ease;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.archive-empty {
    padding: 28px;
}

.archive-empty h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .archive-post-card {
        grid-template-columns: 1fr;
    }

    .archive-post-thumb img {
        min-height: 260px;
    }

    .archive-post-title {
        font-size: 24px;
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .archive-hero {
        padding: 20px 18px;
    }

    .archive-title {
        font-size: 28px;
    }

    .archive-description {
        font-size: 15px;
    }

    .archive-post-thumb img {
        min-height: 220px;
    }

    .archive-post-content {
        padding: 18px;
    }

    .archive-post-title {
        font-size: 21px;
    }

    .archive-post-excerpt {
        font-size: 15px;
    }

    .archive-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* ========== Normal Page Design ========== */
.page-hero-section {
    margin-bottom: 24px;
}

.page-hero {
    padding: 28px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

.page-breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.page-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
    color: var(--text);
}

.page-layout {
    align-items: start;
}

.page-article {
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.page-content-body {
    padding: 28px;
    font-size: 18px;
    line-height: 1.95;
    color: var(--text);
}

.page-content-body p {
    margin: 0 0 22px;
}

.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
    margin: 30px 0 14px;
    line-height: 1.4;
    color: var(--text);
}

.page-content-body h2 {
    font-size: 30px;
}

.page-content-body h3 {
    font-size: 24px;
}

.page-content-body h4 {
    font-size: 20px;
}

.page-content-body ul,
.page-content-body ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.page-content-body li {
    margin-bottom: 8px;
}

.page-content-body blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    border-radius: 12px;
    font-size: 18px;
    color: #334155;
}

.page-content-body img {
    margin: 22px auto;
    border-radius: 14px;
}

.page-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 16px;
}

.page-content-body table th,
.page-content-body table td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
}

.page-content-body table th {
    background: #f8fafc;
}

.page-content-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========== Contact Form Friendly ========== */
.page-content-body input[type="text"],
.page-content-body input[type="email"],
.page-content-body input[type="url"],
.page-content-body input[type="tel"],
.page-content-body input[type="number"],
.page-content-body input[type="search"],
.page-content-body input[type="date"],
.page-content-body textarea,
.page-content-body select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    font: inherit;
    color: var(--text);
    margin-top: 6px;
    margin-bottom: 16px;
}

.page-content-body textarea {
    min-height: 140px;
    resize: vertical;
}

.page-content-body input[type="submit"],
.page-content-body button,
.page-content-body .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.page-content-body input[type="submit"]:hover,
.page-content-body button:hover,
.page-content-body .wp-block-button__link:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ========== Team Table Friendly ========== */
.page-content-body .team-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
}

.page-content-body .team-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.page-content-body .team-table th,
.page-content-body .team-table td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.page-content-body .team-table th {
    background: #f8fafc;
    font-weight: 700;
}

.page-content-body .team-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content-body .team-name-cell img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .page-content-body {
        font-size: 17px;
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .page-hero {
        padding: 20px 18px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-content-body {
        padding: 20px 18px;
        font-size: 16px;
        line-height: 1.9;
    }

    .page-content-body h2 {
        font-size: 24px;
    }

    .page-content-body h3 {
        font-size: 21px;
    }

    .page-content-body h4 {
        font-size: 18px;
    }

    .page-content-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========== Search Form Global ========== */
.site-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.search-field {
    flex: 1 1 260px;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    font: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
}

.search-field:focus {
    border-color: var(--primary);
}

.search-submit {
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ========== Search Page ========== */
.search-hero-form {
    max-width: 720px;
}

.search-empty-state {
    padding: 28px;
}

.search-empty-state h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.empty-search-form {
    max-width: 620px;
}

/* ========== 404 Page ========== */
.error-404-section {
    padding: 10px 0 34px;
}

.error-404-box {
    padding: 44px 28px;
    text-align: center;
}

.error-code {
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 12px;
}

.error-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    color: var(--text);
}

.error-text {
    max-width: 720px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.error-search-form {
    max-width: 720px;
    justify-content: center;
    margin-inline: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.secondary-btn {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.error-latest-section {
    padding-bottom: 10px;
}

/* ========== Sidebar Polish ========== */
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar .widget ul li a {
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
}

.sidebar .widget ul li a:hover {
    color: var(--primary);
}

.sidebar .widget select,
.sidebar .widget input[type="search"],
.sidebar .widget input[type="text"],
.sidebar .widget input[type="email"] {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
}

.sidebar .widget .search-form,
.sidebar .widget form {
    display: grid;
    gap: 12px;
}

.sidebar .widget .search-submit,
.sidebar .widget button,
.sidebar .widget input[type="submit"] {
    min-height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sidebar .widget .search-submit:hover,
.sidebar .widget button:hover,
.sidebar .widget input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .error-404-box {
        padding: 36px 24px;
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .site-search-form {
        flex-direction: column;
    }

    .search-field,
    .search-submit {
        width: 100%;
    }

    .error-404-box {
        padding: 30px 18px;
    }

    .error-text {
        font-size: 15px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
    }
}

/* ========== Header Upgrade ========== */
.upgraded-brand-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.topbar-center {
    text-align: center;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-socials a {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.top-socials a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-toggle {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--border);
}

.search-toggle:hover {
    background: #e9eef8;
}

.header-search-bar {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 14px 0;
}

.header-search-bar.active {
    display: block;
}

.header-search-form {
    margin-top: 0;
}

.nav-wrap {
    position: relative;
}

.primary-menu > li > a {
    position: relative;
}

.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 8px;
    width: calc(100% - 32px);
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current_page_item > a::after {
    transform: scaleX(1);
}

/* ========== Mobile Menu Upgrade ========== */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .main-navigation {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        z-index: 998;
    }

    .main-navigation.active {
        display: block;
    }

    .primary-menu {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }

    .primary-menu li a {
        padding: 14px 18px;
    }

    .primary-menu > li > a::after {
        display: none;
    }
}

/* ========== Footer Upgrade ========== */
.upgraded-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
}

.footer-about p,
.footer-contact p {
    margin: 0 0 12px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    font-weight: 600;
}

.footer-socials a:hover {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
}

.footer-bottom-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom-wrap p {
    margin: 0;
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
    .topbar-wrap {
        grid-template-columns: 1fr;
    }

    .upgraded-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-socials {
        justify-content: center;
    }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
    .topbar-wrap {
        display: grid;
        gap: 8px;
    }

    .topbar-center,
    .topbar-left,
    .topbar-right {
        text-align: center;
        justify-content: center;
    }

    .upgraded-brand-row {
        grid-template-columns: 1fr auto;
    }

    .header-actions {
        gap: 8px;
    }

    .search-toggle,
    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .header-ad {
        display: none;
    }

    .upgraded-footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-wrap {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials a {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Team Page ========== */
.team-page {
    padding: 24px;
}

.team-page-title {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.3;
    color: var(--primary);
}

.team-table-wrap {
    overflow-x: auto;
    display: block;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    background: var(--white);
    border: 1px solid var(--border);
}

.team-table thead th {
    background: var(--primary);
    color: var(--white);
    text-align: left;
    padding: 16px 14px;
    font-size: 18px;
    font-weight: 700;
}

.team-table tbody td {
    padding: 16px 14px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
    background: #f8fbff;
}

.team-table tbody tr:nth-child(even) td {
    background: #eef5ff;
}

.team-name-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}

.team-name-cell img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #d7e7ff;
    margin: 0;
}

.team-name-cell strong {
    font-size: 20px;
    color: var(--text);
}

.team-table td a {
    color: var(--primary);
    word-break: break-word;
}

.team-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.team-socials a:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.team-mobile-list {
    display: none;
    gap: 16px;
    margin-top: 10px;
}

.team-mobile-card {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.team-mobile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.team-mobile-top img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #d7e7ff;
    margin: 0;
}

.team-mobile-top h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--text);
}

.team-mobile-top p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.team-mobile-meta p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 991px) {
    .team-page {
        padding: 20px;
    }

    .team-page-title {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .team-page {
        padding: 18px;
    }

    .team-page-title {
        font-size: 24px;
    }

    .team-table-wrap {
        display: none;
    }

    .team-mobile-list {
        display: grid;
    }
}

/* ========== New Footer Design ========== */
.footer-style-two {
    margin-top: 40px;
    background: #0b4ea2;
    color: #ffffff;
    border-top: 4px solid #083b7a;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 20px;
}

.footer-heading {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.3;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    width: 56px;
    height: 3px;
    border-radius: 20px;
    background: #ffd54a;
    position: absolute;
    left: 0;
    bottom: 0;
}

.footer-brand-name {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-brand-desc {
    margin: 0 0 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 16px;
}

.footer-contact-list p,
.footer-ad-contact p {
    margin: 0 0 10px;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    font-size: 16px;
}

.footer-ad-contact {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.16);
}

.footer-ad-contact h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #ffffff;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a,
.footer-contact-list a,
.footer-ad-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.6;
    transition: 0.2s ease;
}

.footer-link-list a:hover,
.footer-contact-list a:hover,
.footer-ad-contact a:hover {
    color: #ffd54a;
    padding-left: 4px;
}

.footer-bottom-bar {
    background: #083b7a;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-inner p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
}

/* Tablet */
@media (max-width: 991px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-name {
        font-size: 34px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    .footer-box {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .footer-heading {
        font-size: 24px;
    }

    .footer-brand-name {
        font-size: 30px;
    }

    .footer-link-list a,
    .footer-contact-list p,
    .footer-ad-contact p,
    .footer-brand-desc {
        font-size: 15px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 14px 0;
    }
}

/* ========== Typography Fix ========== */
body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1f2937;
}

.post-title,
.entry-title {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.main-menu a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.breaking-news {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .post-title,
    .entry-title {
        font-size: 22px;
    }
}

/* ========== Mobile Width Fix ========== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .content-area,
    .hero-news-grid,
    .hero-side-grid,
    .posts-grid,
    .latest-grid,
    .category-grid,
    .footer-top-grid,
    .footer-grid,
    .upgraded-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .site-main,
    .homepage-block,
    .hero-news-section,
    .breaking-ticker-section,
    .card,
    .news-card,
    .post-card {
        width: 100%;
        max-width: 100%;
    }

    .sidebar {
        display: none !important;
    }

    .ad-box,
    .header-ad {
        display: none !important;
    }

    .site-branding img {
        max-width: 220px;
        height: auto;
    }
}

.single-post-author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Author Photo */

.single-post-author-box{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.author-avatar img{
    width:100%;
    height:100%;
    border-radius:50% !important;
    object-fit:cover;
    display:block;
}

/* Author Info */

.author-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.author-date {
    font-size: 13px;
    color: #6b7280;
}

/* dot */

.author-date::before {
    content: "•";
    margin-right: 6px;
}

/* mobile */

@media (max-width: 768px) {

    .author-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-date {
        font-size: 12px;
    }

}