/* ==========================
   Global Layout & Defaults
   ========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --gridnews-primary: #45278e;
    --gridnews-primary-dark: #35206e;
    --gridnews-accent: #e53515;
    --gridnews-bg: #ffffff;
    --gridnews-bg-alt: #f0f0f0;
    --gridnews-bg-card: #ffffff;
    --gridnews-text-main: #2c2f34;
    --gridnews-text-dark: #181818;
    --gridnews-text-muted: #717171;
    --gridnews-border-light: 1px solid rgba(240, 240, 240, 1);
    --gridnews-card-shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.08);
    --gridnews-card-shadow-strong: 0 12px 40px rgba(15, 23, 42, 0.14);
    --gridnews-radius-lg: 16px;
    --gridnews-radius-md: 12px;
}

body {
    color: var(--gridnews-text-main);
}

/* ==========================
   Common Utilities & Components
   ========================== */
.gn-card,
.trending-block-featured,
.league-block,
.single-news-article,
.single-video-article,
.search-result-item.gridnews-archive-card,
.archive-post-card,
.gridnews-tabbed-news-main,
.gn-author-box,
.gn-comment {
    background: var(--gridnews-bg-card);
    border-radius: var(--gridnews-radius-lg);
    border: var(--gridnews-border-light);
    box-shadow: var(--gridnews-card-shadow-soft);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================
   Back to Top
   ========================== */
.gn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--gridnews-primary);
    color: #fff!important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gn-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gn-back-to-top:hover {
    background-color: var(--gridnews-primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

:dir(rtl) .gn-back-to-top {
    right: auto;
    left: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gridnews-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--gridnews-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(69, 39, 142, 0.2);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #8b8b8b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #636363;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

a:not(:hover) {
    color: #000;
}

.site-content {
    flex-grow: 1;
}

/* Unified container */
.container {
    margin-inline: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 768px) {
    .container {
        width: 100%;
    }
}

.entry-content,
.home-blocks,
.content-area,
.page-main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.entry-content {
    margin: 20px 0 0;
}

.site-footer {
    margin-top: 30px;
}

.site-container {
    margin-top: 20px;
}

/* ==========================
   Trending Block
 ========================== */
.trending-block-featured {
    border-radius: 16px;
}

.trending-block-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

@media (min-width: 769px) {
    .trending-block-inner {
        padding: 24px;
    }
}

@media (min-width: 992px) {
    .trending-block-inner {
        flex-direction: row;
    }
}

.featured-story-link,
.main-story-link {
    display: grid;
    grid-template-rows: 240px auto;
}

@media (min-width: 769px) {

    .featured-story-link,
    .main-story-link {
        grid-template-rows: 312px auto;
    }
}

@media (min-width: 992px) {

    .featured-story-link,
    .main-story-link {
        height: 100%;
    }

    .trending-featured {
        width: 50%;
    }
}

.trending-featured {
    background: var(--gridnews-bg-alt);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.trending-featured-img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
}

@media (min-width: 769px) {
    .trending-featured-img {
        max-height: 312px;
    }
}

.trending-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    gap: 16px;
    border-radius: 0 0 8px 8px;
    background-color: var(--gridnews-bg-alt);
}

@media (min-width: 992px) {
    .trending-featured-info {
        padding: 24px;
    }
}

.featured-story-title {
    display: flex;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    color: #000;
}

@media (min-width: 922px) {
    .featured-story-title {
        font-size: 28px;
        line-height: 32px;
    }
}

.featured-story-link:hover .featured-story-title {
    text-decoration: underline;
}

.featured-story-meta {
    display: flex;
    align-items: center;
    height: 24px;
    gap: 5px;
    color: #000;
    font-size: .85rem;
}

.featured-story-source,
.featured-story-time {
    font-size: 12px;
    line-height: normal;
}

@media (min-width: 922px) {

    .featured-story-source,
    .featured-story-time {
        font-size: 14px;
        line-height: 18px;
    }
}

.trending-list {
    display: flex;
    flex-direction: column;
    background: transparent;
}

@media (min-width: 992px) {
    .trending-list {
        width: 50%;
        padding-inline-start: 32px;
    }
}

.trending-block-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
}

@media (min-width: 600px) and (max-width: 991px) {
    .trending-item-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trending-item:not(:last-child) {
        border-bottom: none;
    }
}

.trending-item:not(:last-child),
.league-small-story:not(:last-child),
.league-news-row:not(:last-child) {
    border-bottom: 1px solid rgba(245, 245, 245, 1);
}

@media (min-width: 600px) and (max-width: 991px) {
    .trending-item:not(:last-child) {
        border-bottom: none;
    }
}

.trending-rank {
    width: 32px;
    height: 32px;
    background: var(--gridnews-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trending-link {
    display: flex;
    gap: 16px;
    flex-direction: row;
    color: inherit;
    width: 100%;
    padding-bottom: 16px;
}

.trending-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.trending-details h3,
.small-story-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 19px;
}

.trending-link:hover .trending-details h3 {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .trending-details h3,
    .small-story-title {
        font-weight: 400;
    }
}

.trending-headline {
    font-size: 15px;
    font-weight: 600;
    line-height: 19px;
    color: var(--gridnews-text-dark);
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-meta,
.small-story-meta,
.main-story-meta,
.archive-post-meta-top {
    display: flex;
    font-size: 0.85rem;
    color: var(--gridnews-text-muted);
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .trending-thumb {
        min-width: 80px;
        width: 80px;
        height: 64px;
    }

    .trending-rank {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        font-size: 11px;
    }

    .trending-link {
        gap: 10px;
    }

    .trending-meta .post-author {
        display: none;
    }

    .trending-details h3,
    .small-story-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .trending-meta {
        font-size: 0.8rem;
        gap: 6px;
    }
}

.trending-source {
    font-weight: 600;
    color: var(--gridnews-accent);
}

.trending-time {
    color: var(--gridnews-text-muted);
}

.trending-thumb,
.small-story-thumb {
    min-width: 112px;
    width: 130px;
    height: 95px;
    flex-shrink: 0;
}

.trending-thumb img,
.small-story-thumb img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ==========================
   Section Blocks
   ========================== */
.league-block {
    border-radius: 16px;
}

.league-block-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    width: 100%;
}

@media (min-width: 769px) {
    .league-block-inner {
        padding: 24px;
    }
}

@media (min-width: 992px) {
    .league-block-inner {
        flex-direction: row;
    }

    .league-featured {
        width: 50%;
    }
}

.padding-top-resp {
    padding-top: 16px;
}


.league-featured {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 312px;
    display: flex;
    flex-direction: column;
}


.league-badge {
    position: absolute;
    top: 20px;
    inset-inline-end: 40px;
    padding: 6px 14px;
    background: var(--gridnews-primary, #45278e);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(11, 27, 45, 0.3);
}

.league-badge-title {
    position: absolute;
    top: 22px;
    inset-inline-start: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 18px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(11, 27, 45, 0.04);
}

.league-title,
.main-story-link {
    color: inherit;
    text-decoration: none;
}

.main-story-link {
    flex-direction: column;
}

.main-story-link:hover .main-story-title {
    text-decoration: underline;
}

.main-story-img,
.main-story-img img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
}

.main-story-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    gap: 16px;
    border-radius: 0 0 14px 14px;
    color: #fff;
}

.main-story-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.main-story-meta {
    font-size: 12px;
    line-height: normal;
    color: #fff;
}

@media (min-width: 922px) {
    .padding-top-resp {
        padding-top: 32px;
    }

    .main-story-meta {
        font-size: 14px;
        line-height: 18px;
    }
}

.main-story-source {
    font-weight: 600;
    color: var(--gridnews-accent);
}

.main-story-time {
    color: rgba(255, 255, 255, 0.8);
}

.main-story-meta span {
    color: rgba(255, 255, 255, 0.8);
}

.league-small-list,
.league-small-list-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

@media (min-width: 992px) {
    .league-small-list {
        width: 50%;
        padding-inline-start: 32px;
        padding-top: 0;
    }
}

.league-small-list .see-more-link,
.trending-list .see-more-link {
    margin-top: auto;
}

.see-more-link a {
    color: var(--gridnews-primary);
    font-weight: 600;
    font-size: 0.98rem;
}

.see-more-link a::after,
.gridnews-read-more::after,
.archive-read-more::after {
    content: '→';
    margin-inline-start: 0.25em;
}

:dir(rtl) .see-more-link a::after,
:dir(rtl) .gridnews-read-more::after,
:dir(rtl) .archive-read-more::after {
    content: '←';
    margin-inline-end: 0.25em;
}

.see-more-link a:hover {
    text-decoration: underline;
}

.league-small-story {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: 0.2s;
    min-height: 58px;
}

.small-story-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    padding-bottom: 16px;
}

.small-story-link:hover .small-story-title {
    text-decoration: underline;
}

.small-story-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 19px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small-story-source {
    color: var(--gridnews-accent);
    font-weight: 600;
}

.small-story-img img {
    width: 130px;
    height: 95px;
    object-fit: cover;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e6e6eb;
}

.league-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .league-news-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 24px;
    }
}

.league-news-row {
    background: #fff;
    display: flex;
    align-items: center;
    transition: 0.16s;
}

@media (min-width: 992px) {
    .league-news-row:nth-child(even) {
        margin-inline-start: 32px;
    }
}

.league-news-row-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.small-story-link:hover .league-news-row-title {
    text-decoration: underline;
}

.league-news-row-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 19px;
    text-overflow: ellipsis;
}

.league-news-row-meta {
    font-size: 0.92rem;
    display: flex;
    color: #888;
    gap: 5px;
}

.league-news-row-source {
    color: var(--gridnews-accent);
    font-weight: 600;
}

.league-news-row-thumb img {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid #e1e1e8;
}

.league-news-row-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: var(--gridnews-text-muted);
    margin-top: 2px;
    display: -webkit-box;
    /*-webkit-line-clamp: 2;*/
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================
   Single News Layout
 ========================== */
.single-news-content-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.single-news-article,
.single-video-article {
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.05);
}

.single-news-featured-image {
    position: relative;
    overflow: hidden;
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    border-radius: 8px;
}

.single-news-featured-caption {
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    color: #fff;
    position: absolute;
    bottom: 20px;
    inset-inline-start: 10px;
    z-index: 1000;
    padding: 5px 10px;
}

.single-news-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, #fff);
}

.single-news-header {
    margin: 10px 0 20px;
}

@media (min-width: 1080px) {
    .single-news-header {
        margin-top: 15px;
    }
}

.single-news-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    line-height: 24px;
    color: #333;
}

@media (max-width: 768px) {
    .single-news-meta {
        font-size: .9rem;
    }
}

.single-news-meta .post-author {
    font-weight: 600;
    color: var(--gridnews-accent);
}

.single-news-content {
    padding: 10px;
    line-height: 1.7;
    font-size: .975rem;
}

@media (max-width: 768px) {
    .single-news-content {
        padding: 0;
    }
}

/* Dropcap */
.single-news-content.has-dropcap>p:first-of-type::first-letter {
    float: inline-start;
    font-size: 540%;
    line-height: 85%;
    font-weight: 700;
    margin-inline-end: 12px;
    margin-top: 3px;
    color: var(--gridnews-primary);
    text-transform: uppercase;
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content img {
    border-radius: 16px;
    margin: 30px 0;
    max-width: 100%;
    height: auto;
}

.entry ol,
.entry ul {
    padding-inline: 15px 0;
    margin-inline: 15px 0;
    margin-bottom: 20px;
}

figcaption.wp-element-caption {
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    margin-block: 0 20px;
    opacity: .85;
}

.single-news-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0 28px 20px;
    font-size: 1rem;
}

.single-news-navigation .nav-previous a,
.single-news-navigation .nav-next a {
    color: var(--gridnews-primary, #45278e);
    font-weight: 600;
}

.single-news-navigation .nav-previous a:hover,
.single-news-navigation .nav-next a:hover {
    text-decoration: underline;
}

.single-news-related {
    padding: 0 28px 28px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.single-news-related h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.single-news-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-news-related ul li {
    margin-bottom: 12px;
}

.single-news-related ul li a {
    font-weight: 600;
    color: var(--gridnews-primary, #45278e);
}

.single-news-related ul li a:hover {
    text-decoration: underline;
}

.single-news-comments {
    padding: 0 28px 40px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.breadcrumbs,
.gridnews-breadcrumbs {
    font-size: 0.85rem;
    line-height: 20px;
    color: #666;
    margin-bottom: 15px;
}

.devider,
.separator {
    margin: 0 3px;
}

@media (max-width: 767px) {

    .breadcrumbs .current,
    .breadcrumbs .devider:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .single-news-content-wrapper {
        margin: 20px auto;
        padding: 0;
    }

    .single-news-header {
        padding: 12px 0 0;
        margin: 10px 0 0;
    }

    .single-news-title {
        font-size: 1.8rem;
    }

    .single-news-featured-image img {
        height: 350px;
    }

    .single-news-navigation {
        flex-direction: column;
        gap: 12px;
    }
}

/* Modern navigation & share */
.single-news-share {
    padding: 0 28px 28px;
}

.single-news-share-modern {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.share-label {
    margin-inline-end: auto;
    padding-inline-start: 10px;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    margin-inline-end: auto;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-buttons.issticky {
    top: 300px;
    inset-inline-start: 10px;
    position: fixed;
    width: 40px;
    z-index: 1000;
    text-align: center;
}

@media (max-width: 1320px) {
    .share-buttons.issticky {
        position: fixed;
        inset-inline-start: 0;
        top: auto;
        bottom: 20px;
        z-index: 1000;
        width: 100%;
        background: transparent;
        border: 0 none;
        padding: 0;
        gap: 3px;
    }
}

.share-btn {
    position: relative;
}

.share-buttons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gridnews-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: 0.3s;
    padding: 8px;
}

.share-buttons a:hover {
    transform: scale(1.15);
    background: #222;
}

/* Navigation modern */
.single-news-navigation-modern {
    display: flex;
    justify-content: space-between;
    padding: 40px 8px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
}

.single-news-navigation-modern a {
    color: var(--gridnews-primary);
}

@media (max-width: 768px) {
    .single-news-navigation-modern {
        flex-direction: column;
        gap: 15px;
    }

    .single-news-navigation-modern a {
        text-align: center;
    }
}

/* ==========================
   Comments
 ========================== */
.single-news-comments-modern {
    padding: 32px 0;
    border-radius: 16px;
}

.comments-list {
    margin-top: 30px;
}

.gn-comment {
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.gn-comment:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gn-comment-avatar img {
    border-radius: 50%;
    border: 3px solid var(--gridnews-primary);
}

.gn-comment-body {
    flex: 1;
}

.main-comment {
    display: flex;
    gap: 16px;
}

.gn-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gn-comment-author {
    color: var(--gridnews-primary);
    font-weight: 700;
}

.gn-comment-date {
    font-size: 13px;
    color: #888;
}

.gn-comment-content {
    line-height: 1.7;
    margin-bottom: 12px;
}

.gn-comment-actions {
    margin-top: 12px;
}

.gn-comment-actions a {
    color: var(--section-color, #45278e);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.gn-comment-actions a:hover {
    text-decoration: underline;
}

.children {
    margin-right: 60px;
    margin-top: 16px;
}

.comment-reply {
    background: var(--gridnews-bg-alt) !important;
}

@media (max-width: 768px) {
    .comment-reply {
        margin-right: 30px;
        border-right-width: 3px;
    }
}

@media (max-width: 480px) {
    .comment-reply {
        margin-right: 20px;
    }

    .gridnews-comment-avatar img {
        width: 48px;
        height: 48px;
    }

    .gridnews-comment {
        padding: 16px;
    }
}

#commentform textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border 0.3s;
}

#commentform textarea:focus {
    border-color: var(--gridnews-primary);
    outline: none;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
    margin-bottom: 24px;
    position: relative;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

#author,
#email,
#comment,
#url {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#author:focus,
#email:focus,
#comment:focus,
#url:focus {
    outline: none;
    border-color: var(--gridnews-primary);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(69, 39, 142, 0.1);
    transform: translateY(-2px);
}

.comment-form-cookies-consent {
    margin: 20px auto;
}

.submit-btn {
    background: var(--gridnews-primary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.no-comments {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 24px;
    color: #888;
    font-size: 1.4rem;
    margin: 40px 0;
}

#reply-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cancel-reply {
    margin-right: 10px;
    color: #e30613;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

/* Toast notifications */
#gridnews-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gridnews-toast {
    background: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gridnews-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.gridnews-toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.gridnews-toast-success {
    background: #28a745;
}

.gridnews-toast-error {
    background: #dc3545;
}

.gridnews-toast-message {
    font-weight: 600;
    font-size: 15px;
}

.gridnews-toast-close {
    margin-inline-start: 20px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
}

.gridnews-toast-close:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================
   Header & Navigation
 ========================== */
.topbar-breaking {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 100%;
    overflow: hidden;
}

.breaking-news-ticker {
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
    font-size: 14px;
    font-weight: 500;
}

.breaking-news-ticker .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.breaking-news-content {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.breaking-text {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 24px;
    color: #fff !important;
}

@keyframes typewriter {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: currentColor;
    }
}

@media (max-width: 768px) {
    .breaking-text {
        font-size: 12px;
    }

    .breaking-news-content {
        max-width: calc(100vw - 120px);
    }
}

.breaking-item {
    display: inline-block;
    padding: 0 40px;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.breaking-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breaking-item a:hover {
    opacity: 0.8;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.site-topbar {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

@media (min-width: 1250px) {
    .topbar-left {
        margin-left: -15px;
    }

    .topbar-right {
        margin-right: -15px;
    }
}

.topbar-date,
.topbar-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-date i {
    opacity: 0.8;
}

.topbar-social {
    display: flex;
    gap: 10px;
}

.topbar-social a {
    color: inherit;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.topbar-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.topbar-language select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.site-header.header-shadow {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.header-border {
    border-bottom: 1px solid #eaeaea;
}

.site-header.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    backdrop-filter: blur(10px);
}

.site-header.header-transparent .main-menu>li>a {
    color: #ffffff;
}

.site-header-placeholder {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.site-header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: gnSlideDown 0.3s ease forwards;
}

@keyframes gnSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.site-header.header-style-2.header-fixed .header-top {
    display: none;
}

.site-header.header-style-2.header-fixed .header-bottom {
    width: 100%;
}

.site-header.header-fixed.scroll-down {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.site-header.header-fixed.scroll-up {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== HEADER LAYOUTS ===== */
.header-style-1 .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 30px;
}

.header-style-1 .main-navigation {
    margin-inline: auto;
}

@media (max-width: 991px) {
    .header-style-1 .header-main {
        display: flex;
        justify-content: space-between;
        padding-inline: 20px;
    }

    .header-style-1 .main-navigation {
        display: none;
    }
}

.header-style-2 .header-top {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
}

.header-style-2 .header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #1d1d1d;
}

.header-style-2 .main-menu>li>a {
    display: flex;
    align-items: center;
    height: 60px;
    line-height: 1;
    padding: 2px 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.header-style-2 .main-menu>li:first-child>a {
    color: #fff;
    margin-inline-start: -20px;
    padding: 0 20px;
}

.header-style-2 .main-navigation.centered {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-style-3 .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 30px;
    position: relative;
}

.header-style-3 .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    position: static;
}

.header-style-1 .header-main,
.header-style-default .header-main {
    position: relative;
}

@media (max-width: 1024px) {
    .header-style-1 .header-main {
        grid-template-columns: auto auto !important;
        padding-block: 8px;
    }
}

/* ===== LOGO ===== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #222;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
    color: #666;
}

/* ===== HEADER ACTIONS (Search, Dark Mode) ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a,
.header-actions button {
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--gridnews-header-text-color, #333);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.header-actions a:hover,
.header-actions button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--gridnews-primary, #45278e);
}

.header-style-2 .header-actions a,
.header-style-2 .header-actions button {
    color: #ffffff;
}

.header-style-2 .header-actions a:hover,
.header-style-2 .header-actions button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ===== MAIN MENU ===== */
.main-navigation {
    display: flex;
}

.main-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu>li {
    position: relative;
}

.main-menu>li>a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--gridnews-header-text-color, #333);
    text-decoration: none;
    transition: color 0.2s ease,
        background-color 0.2s ease;
    font-size: 15px;
    border-radius: 4px;
}

.main-menu>li:hover>a,
.main-menu>li.current-menu-item>a,
.main-menu>li.current-menu-ancestor>a {
    color: var(--gridnews-primary, #45278e);
    background-color: rgba(0, 0, 0, 0.03);
}

.header-style-2 .main-menu>li>a {
    color: #ffffff;
    padding: 2px 15px 0;
    border-radius: 0;
}

.header-style-2 .main-menu>li:hover>a,
.header-style-2 .main-menu>li.current-menu-item>a,
.header-style-2 .main-menu>li.current-menu-ancestor>a {
    color: #ffffff;
    background-color: var(--gridnews-primary, #45278e);
}

.menu-style-underline .main-menu>li>a {
    position: relative;
}

.menu-style-underline .main-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.menu-style-underline .main-menu>li:hover>a::after,
.menu-style-underline .main-menu>li.current-menu-item>a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-style-2 .menu-style-underline .main-menu>li>a::after {
    bottom: 15px;
    background-color: #fff;
}

.menu-style-default .main-menu>li>a::after {
    display: none;
}

/* ===== Header Style 2 Mobile Optimization ===== */
@media (max-width: 991px) {
    .header-style-2 {
        position: relative;
    }

    .header-style-2 .header-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px 0 10px;
        border: none;
        position: static;
    }

    .header-style-2 .header-top-left {
        flex: 0 0 auto;
        width: auto;
        margin-right: auto;
        position: relative;
        z-index: 20;
    }

    .header-style-2 .site-branding {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .header-style-2 .site-branding img {
        margin: 0;
    }

    .header-style-2 .header-top-right.header-inline-ad {
        flex: 0 0 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }

    .header-style-2>.container,
    .header-style-2 .header-bottom {
        position: static !important;
    }

    .header-style-2 .header-bottom {
        display: block;
        padding: 0;
        background: transparent;
        border: none;
    }

    .header-style-2 .main-navigation {
        display: none;
    }

    .header-style-2 .header-bottom .header-actions {
        position: absolute;
        top: 22px;
        inset-inline-end: 10px;
        z-index: 50;
        background: transparent;
        display: flex;
        gap: 10px;
        width: auto;
        height: auto;
    }

    .header-style-2 .header-actions a,
    .header-style-2 .header-actions button {
        color: #222 !important;
        background: transparent;
        border: none;
        font-size: 18px;
    }
}

/* Submenu panel */
.main-menu li ul.sub-menu {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 2px);
    min-width: 230px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 10px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(148, 163, 184, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.16s ease-out,
        transform 0.16s ease-out,
        visibility 0.16s ease-out;
    z-index: 40;
}

.main-menu li:hover>ul.sub-menu,
.main-menu li:focus-within>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .mobile-menu .sub-menu {
        display: none;
    }
}

.main-menu li ul.sub-menu>li {
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.main-menu li ul.sub-menu>li:last-child {
    border-bottom: none;
}

.main-menu li ul.sub-menu>li>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    transition:
        background-color 0.16s ease-out,
        color 0.16s ease-out,
        padding-inline 0.16s ease-out;
}

.main-menu li ul.sub-menu>li>a:hover,
.main-menu li ul.sub-menu>li>a:focus-visible {
    background: linear-gradient(90deg,
            rgba(69, 39, 142, 0.08),
            rgba(69, 39, 142, 0.02));
    color: var(--gridnews-primary, #45278e);
    padding-inline: 20px 12px;
}

.main-menu li ul.sub-menu>li>a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
    flex-shrink: 0;
    transition: background-color 0.16s ease-out, transform 0.16s ease-out;
}

.main-menu li ul.sub-menu>li>a:hover::before,
.main-menu li ul.sub-menu>li>a:focus-visible::before {
    background: var(--gridnews-primary, #45278e);
    transform: scale(1.1);
}

.main-menu li.menu-item-has-children>a::after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 15px;
    margin-inline-start: 6px;
    transform: translateY(1px);
}

.main-menu ul.sub-menu ul.sub-menu {
    top: -6px;
    inset-inline-start: 100%;
    margin-inline-start: 4px;
}

html[dir="rtl"] .main-menu ul.sub-menu ul.sub-menu {
    inset-inline-start: auto;
    inset-inline-end: 100%;
    margin-inline-start: 0;
    margin-inline-end: 4px;
}

.main-menu ul.sub-menu li.menu-item-has-children>a::after {
    content: "›";
}

.main-menu ul.sub-menu ul.sub-menu {
    position: absolute;
    top: -6px;
    inset-inline-start: 100%;
    margin-inline-start: 4px;
}

.menu-style-underline .main-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu-style-underline .main-menu>li>a:hover::after,
.menu-style-underline .main-menu>li.current-menu-item>a::after {
    width: 80%;
}

.menu-style-border .main-menu>li>a {
    border: 2px solid transparent;
}

.menu-style-border .main-menu>li>a:hover,
.menu-style-border .main-menu>li.current-menu-item>a {
    border-color: currentColor;
}

.menu-style-button .main-menu>li>a {
    background: rgba(0, 0, 0, 0.05);
}

.menu-style-button .main-menu>li>a:hover,
.menu-style-button .main-menu>li.current-menu-item>a {
    background: var(--gridnews-primary, #45278e);
    color: #ffffff;
}

/* Menu Badge */
.menu-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e20613;
    color: #ffffff;
    border-radius: 3px;
    line-height: 1;
    margin-right: 4px;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
}

.header-actions>.user-menu>button,
.search-toggle,
.gn-header-cart {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
}

.header-actions>button:hover,
.header-actions>.user-menu>button:hover,
.search-toggle:hover,
.gn-header-cart:hover,
html.dark-mode .header-actions>button:hover,
html.dark-mode .gn-header-cart:hover {
    transform: translateY(-2px);
}

.search-toggle,
.gn-header-cart {
    background: none;
    font-size: 20px;
    color: #ddd;
    padding: 5px 8px;
}

/* Notification Badge */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e20613;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* User Avatar */
.user-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    font-size: 18px;
}

.dark-mode-icon::before {
    content: '☀️';
}

html.dark-mode .dark-mode-icon::before {
    content: '🌙';
}

/* Header Social */
.header-social {
    display: flex;
    gap: 8px;
}

.header-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    transition: all 0.3s ease;
    font-size: 18px;
}

.header-social a:hover {
    background: var(--gridnews-primary, #45278e);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

/* Overlay behind menu */
.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Panel */
.mobile-menu-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 92%;
    background: var(--mobile-menu-bg, #ffffff);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base (LTR default: right side, slide in) */
.mobile-menu-wrapper .mobile-menu-container {
    inset-inline-end: 0;
    transform: translateX(100%);
}

/* When wrapper is set to open */
.mobile-menu-wrapper.is-open .mobile-menu-container {
    transform: translateX(0);
}

/* RTL: flip the transform */
:dir(rtl) .mobile-menu-wrapper .mobile-menu-container {
    /* Still anchored to inline-end (becomes left in RTL) */
    transform: translateX(-100%);
}

:dir(rtl) .mobile-menu-wrapper.is-open .mobile-menu-container {
    transform: translateX(0);
}

/* Full-screen */
.mobile-menu-wrapper.mobile-pos-full .mobile-menu-container {
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    max-width: none;
    box-shadow: none;
    transform: translateX(100%);
}

/* When open */
.mobile-menu-wrapper.is-open {
    pointer-events: auto;
}

.mobile-menu-wrapper.is-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-wrapper.is-open.mobile-style-slide .mobile-menu-container,
.mobile-menu-wrapper.is-open.mobile-style-overlay .mobile-menu-container {
    transform: translateX(0);
}

body.mobile-menu-pushed {
    transform: translateX(-260px);
    /* adjust for RTL if needed */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] body.mobile-menu-pushed {
    transform: translateX(260px);
}

.mobile-menu-wrapper.mobile-style-push .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eeeeee;
}

/* Mobile Search */
.mobile-menu-search {
    padding: 18px 20px;
    border-bottom: 1px solid #eeeeee;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 50px 0 20px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #333 !important;
}

.mobile-search-input:focus {
    border-color: var(--gridnews-primary, #45278e) !important;
    outline: none !important;
}

.mobile-search-submit {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--gridnews-primary, #45278e);
    color: #ffffff !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-submit:hover {
    background: var(--gridnews-primary-dark, #35206e);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: #e20613;
    color: #ffffff;
}

/* Navigation list */
.mobile-navigation {
    flex: 1;
    padding: 16px 0 20px;
}

.mobile-branding img {
    width: 170px;
    height: 50px;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 10px 26px;
    text-decoration: none;
    color: #111827;
    transition: all 0.25s ease;
}

.mobile-menu a:hover,
.mobile-menu li.current-menu-item>a {
    background: rgba(69, 39, 142, 0.05);
    color: var(--gridnews-primary, #45278e);
    padding-inline-start: 26px;
}

.mobile-menu ul.sub-menu {
    padding-inline-start: 14px;
    border-left: 2px solid rgba(148, 163, 184, 0.7);
    list-style: none;
}

/* Footer social */
.mobile-menu-footer {
    padding: 18px 20px 20px;
    border-top: 1px solid #eeeeee;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mobile-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    transition: all 0.25s ease;
}

.mobile-social a:hover {
    background: var(--gridnews-primary, #45278e);
    color: #ffffff;
    transform: scale(1.08);
}

/* Dark mode adjustments for Mobile Menu */
html.dark-mode .mobile-menu-container {
    background: #111111;
}

html.dark-mode .mobile-menu-header,
html.dark-mode .mobile-menu-footer,
html.dark-mode .mobile-menu-search {
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .mobile-menu-search {
    background: rgba(255, 255, 255, 0.02);
}

html.dark-mode .mobile-search-input {
    background: #1d1d1d !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

html.dark-mode .mobile-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .mobile-menu a {
    color: #ffffff;
}

html.dark-mode .mobile-social a {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html.dark-mode .mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Mobile-only helper */
@media (min-width: 993px) {
    .mobile-only {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 991px) {

    .main-navigation,
    .header-social,
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .breaking-news-ticker {
        font-size: 13px;
    }

    .topbar-left,
    .topbar-right {
        gap: 10px;
        font-size: 12px;
    }

    .topbar-text {
        display: none;
    }

    .site-branding img {
        max-height: 45px;
        max-width: 150px;
    }

    .header-actions>button,
    .search-toggle,
    .gn-header-cart {
        width: 32px;
        height: 32px;
    }

    .breaking-label-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .breaking-label {
        font-size: 11px;
        padding: 3px 8px;
    }

    .topbar-social {
        display: none;
    }

    .mobile-menu-wrapper {
        width: 100%;
    }
}

/* ==========================
   Search Modal & Search Page
   ========================== */

.gridnews-search-modal .search-form {
    padding: 30px 40px;
    background: #fff;
}

.gridnews-search-modal input[type="search"] {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 20px;
    border: 3px solid #eee;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.gridnews-search-modal input[type="search"]:focus {
    border-color: var(--gridnews-primary);
    box-shadow: 0 0 0 5px rgba(69, 39, 142, 0.15);
}

.gridnews-search-modal .search-submit {
    position: absolute;
    left: 48px;
    top: 70%;
    transform: translateY(-50%);
    background: var(--gridnews-primary);
    color: #fff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.gridnews-search-modal .search-submit:hover {
    background: var(--gridnews-primary, #45278e);
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
    .gridnews-search-container {
        width: 95%;
    }

    .gridnews-search-modal input[type="search"] {
        font-size: 18px;
        padding: 16px 60px 16px 20px;
    }

    .gridnews-search-header {
        padding: 16px 20px;
    }

    .gridnews-search-header h3 {
        font-size: 20px;
    }
}

/* Search results page */
/* ===========================
   Search Page – Base Layout
   =========================== */

.search-page-wrapper {
    margin-top: 24px;
    margin-bottom: 32px;
}

/* Header card */
.search-header-section {
    padding: 18px 20px;
    margin-bottom: 22px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.search-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.search-page-title .highlight {
    color: var(--gridnews-primary, #45278e);
}

.search-page-title small {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.6);
}

.search-again-form {
    max-width: 420px;
}

.search-again-form form {
    display: flex;
    gap: 8px;
}

.search-again-form input[type="search"],
.search-again-form input[type="text"] {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 8px 14px;
    font-size: 14px;
}

.search-again-form input[type="submit"],
.search-again-form button {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--gridnews-primary, #45278e);
    color: #fff;
    cursor: pointer;
}

/* ===========================
   Results Grid & Cards
   =========================== */

.search-results-grid.gridnews-archive-loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
}

@media (max-width: 1200px) {
    .search-results-grid.gridnews-archive-loop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .search-results-grid.gridnews-archive-loop {
        grid-template-columns: 1fr;
    }
}

/* Card shell */
/* .search-result-item.gridnews-archive-card grouped above */
.search-result-item.gridnews-archive-card {
    border-radius: 10px;
    /* Override */
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.search-result-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* Thumbnail */
.search-result-thumb.gridnews-card-thumb img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

@media (max-width: 700px) {
    .search-result-thumb.gridnews-card-thumb img {
        height: 180px;
    }
}

/* Content */
.search-result-content.gridnews-card-body {
    padding: 12px 14px 14px;
}

.search-result-title.gridnews-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}

/* Meta row */
.search-result-meta.gridnews-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 6px;
}

.search-result-meta .result-date i {
    margin-inline-end: 4px;
}

.search-result-excerpt {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.search-result-meta {
    line-height: 1.5;
}

.search-result-item.gridnews-archive-card:hover {
    border-color: rgba(69, 39, 142, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    transform: translateY(-3px);
}

.search-pagination {
    margin-top: 28px;
    text-align: center;
}


.no-results-section {
    margin-top: 24px;
}

.no-results-inner {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 22px 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.no-results-inner h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.no-results-inner p {
    margin: 0 0 14px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.7);
}

.suggested-leagues {
    margin: 10px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggested-league-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.back-home-btn {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gridnews-primary, #45278e);
    text-decoration: none;
}


/* ==========================
   GridNews Pro Footer
   ========================== */

.gridnews-modern-footer {
    padding: 60px 0 0;
    font-size: 15px;
    padding: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4.footer-title,
.footer-col h3.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4.footer-title::after,
.footer-col h3.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: var(--gridnews-primary);
}

.footer-links-list,
.footer-leagues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li,
.footer-leagues-list li {
    margin-bottom: 12px;
}

.footer-links-list a,
.footer-leagues-list a {
    color: #ccc;
    transition: 0.3s;
}

.footer-links-list a:hover,
.footer-leagues-list a:hover {
    color: var(--cat-color);
    padding-right: 8px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.footer-copyright-bar {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright-bar p {
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gridnews-modern-footer {
        padding-top: 40px;
    }
}

/* ==========================
   League Header
   ========================== */

.league-header {
    display: flex;
    gap: 16px;
}

.league-header-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 27, 45, 0.06);
    border: 1px solid rgba(240, 240, 240, 1);
    height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 30px;
}

@media (min-width: 320px) {
    .league-header-wrapper {
        padding: 16px;
    }
}

@media (min-width: 769px) {
    .league-header-wrapper {
        padding: 16px 24px 8px;
    }
}

@media (min-width: 992px) {
    .league-header-wrapper {
        height: 112px;
        padding: 16px 32px 8px;
    }
}

.league-logo {
    display: flex;
    align-items: flex-end;
}

.league-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.league-logo-wrapper img {
    width: 36px;
    height: 36px;
}

@media (min-width: 992px) {
    .league-logo-wrapper img {
        width: 42px;
        height: 42px;
    }
}

/* ==========================
   404 Page
 ========================== */
.gn-404-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.gn-404-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.gn-404-number {
    font-size: clamp(100px, 25vw, 180px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.85;
}

.gn-404-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin: 0 0 16px;
}

.gn-404-text {
    font-size: 18px;
    opacity: 0.75;
    margin: 0 0 40px;
    line-height: 1.6;
}

/* Search Form */
.gn-404-search {
    max-width: 480px;
    margin: 0 auto 40px;
}

.gn-404-search .search-form {
    display: flex;
    justify-content: center;
}

.gn-404-search input[type="search"] {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid var(--gridnews-primary);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    opacity: 0.8;
}

.gn-404-search input[type="search"]:focus {
    opacity: 0.9;
    outline: none;
}

.gn-404-search input[type="submit"],
.gn-404-search button[type="submit"] {
    padding: 16px 32px;
    border: 1px solid currentColor;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    color: #fff;
    background: var(--gridnews-primary);
}

.gn-404-search input[type="submit"]:hover,
.gn-404-search button[type="submit"]:hover {
    opacity: 1;
}

.gn-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.gn-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gn-404-btn-primary {
    opacity: 0.95;
}

.gn-404-btn-primary:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gn-404-btn-secondary {
    opacity: 0.7;
    border: 1px solid currentColor;
}

.gn-404-btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gn-404-links {
    color: var(--gridnews-primary);
    padding-top: 40px;
    border-top: 1px solid currentColor;
    opacity: 0.85;
}

.gn-404-links h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 24px;
    opacity: 4;
}

.gn-404-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.gn-404-links-grid a {
    padding: 12px 20px;
    border: 1px solid currentColor;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.gn-404-links-grid a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .gn-404-page {
        padding: 40px 20px;
    }

    .gn-404-actions {
        flex-direction: column;
    }

    .gn-404-btn {
        width: 100%;
        justify-content: center;
    }

    .gn-404-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* ==========================
   Related News (Trending style)
   ========================== */
.single-news-related-trending {
    margin: 30px 0 0;
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 70px;
    height: 4px;
    background: var(--gridnews-primary);
    border-radius: 2px;
}

.related-news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 12px;
}

.related-news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 49%;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
}

.related-news-item:hover {
    background: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gridnews-primary);
}

.related-content {
    flex: 1;
}

.related-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

@media (max-width: 640px) {
    .related-item-title {
        font-weight: 500;
    }
}

.related-item-time {
    font-size: 13px;
    font-weight: 600;
}

.related-thumb {
    min-width: 112px;
    width: 112px;
    height: 88px;
}

@media (max-width: 640px) {
    .related-thumb {
        min-width: 100px;
        width: 100px;
        height: 78px;
    }
}

.related-thumb img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .single-news-related-trending {
        padding: 15px;
    }

    .related-news-list {
        flex-direction: column;
        align-items: center;
    }

    .related-news-item {
        max-width: 100%;
    }
}

/* ==========================
Blog & Archive
========================== */
.archive-hero,
.page-hero {
    background: linear-gradient(135deg, var(--gridnews-primary), #333);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.archive-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.archive-hero h1,
.page-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.archive-hero .archive-description,
.archive-hero p,
.page-hero .page-description,
.page-hero p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-top: 15px;
}

.page-breadcrumbs-wrapper {
    padding-block: 30px 0;
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.archive-post-card {
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(11, 27, 45, 0.06);
    border: 1px solid rgba(240, 240, 240, 1);
    background-color: #fff;
    overflow: hidden;
    display: flex;
    gap: 0;
}

.archive-post-thumb {
    width: 270px;
    max-width: 40%;
    overflow: hidden;
}

.archive-post-thumb img {
    width: 100%;
    min-height: 230px;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.archive-post-content {
    padding: 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.archive-post-meta-top {
    margin-bottom: 6px;
    gap: 10px;
}

.archive-post-meta-top a {
    color: inherit;
    text-decoration: none;
}

.archive-post-meta-top a:hover {
    color: var(--gridnews-primary);
}

.archive-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.5;
}

.archive-post-title a {
    color: #111;
    text-decoration: none;
}

.archive-post-title a:hover {
    color: var(--gridnews-primary);
}

.archive-post-meta-bottom {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.archive-post-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.archive-no-posts {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 1.1rem;
}

/* ============================
   Global Pagination Styles
 ============================ */
.pagination,
.nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: inherit;
}

.archive-pagination .pagination,
.archive-pagination .nav-links,
.gridnews-pagination .nav-links,
.search-pagination .nav-links {
    display: inline-flex;
}

.pagination .page-numbers,
.nav-links .page-numbers,
.search-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover,
.search-pagination .page-numbers:hover {
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--gridnews-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current,
.search-pagination .page-numbers.current {
    background: var(--gridnews-primary);
    border-color: var(--gridnews-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(69, 39, 142, 0.35);
}

.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    min-width: auto;
    padding: 0 4px;
}

.pagination .prev,
.pagination .next,
.nav-links .prev,
.nav-links .next {
    padding: 0 14px;
    font-weight: 600;
}

.archive-pagination {
    margin-top: 30px;
    text-align: center;
}

@media (max-width: 480px) {

    .pagination .page-numbers,
    .nav-links .page-numbers {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
        padding: 0 8px;
    }
}

.pagination .page-numbers i,
.nav-links .page-numbers i {
    margin-inline-start: 6px;
    margin-inline-end: 6px;
}

/* ================================
   Grid Layout
   ================================ */
.archive-posts-grid.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.archive-posts-grid.grid-layout.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-post-card.grid-card {
    flex-direction: column;
    border-radius: 8px;
    position: relative;
}

.archive-post-card.grid-card .archive-post-thumb {
    width: 100%;
    max-width: 100%;
    height: 200px;
}

.archive-post-card.grid-card .archive-post-content {
    padding: 14px 16px 16px;
}

@media (max-width: 768px) {
    .archive-post-card.grid-card .archive-post-content {
        padding: 12px;
    }
}

@media (max-width: 1200px) {
    .archive-post-thumb {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .archive-post-card:not(.grid-card) {
        flex-direction: column;
    }

    .archive-post-thumb {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .archive-posts-grid.grid-layout,
    .archive-posts-grid.grid-layout.grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.archive-posts-wrapper {
    padding-block: 30px 0;
}

@media (max-width: 768px) {

    .archive-hero,
    .page-hero {
        padding: 30px 0 20px;
    }

    .archive-hero .archive-title,
    .archive-hero h1,
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .archive-hero .archive-description,
    .archive-hero p,
    .page-hero .page-description,
    .page-hero p {
        font-size: 1rem;
    }

    .archive-post-card {
        border-radius: 14px;
    }

    .archive-post-thumb {
        height: 200px;
    }

    .archive-posts-grid.grid-layout,
    .archive-posts-grid.grid-layout.grid-cols-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .archive-post-thumb {
        height: 180px;
    }

    .archive-post-content {
        padding: 14px 16px;
    }
}

/* =============================================================================
   Dark Mode
   ========================================================================== */

html.dark-mode {
    --gridnews-bg: #000000;
    --gridnews-bg-header: #111111;
    --gridnews-bg-card: #1d1d1d;
    --gridnews-bg-secondary: #0d0d0d;
    --gridnews-bg-alt: #262626;
    --gridnews-text: #e0e0e0;
    --gridnews-text-main: #e0e0e0;
    --gridnews-text-dark: #ffffff;
    --gridnews-text-muted: #aaaaaa;
    --gridnews-border: #2a2a2a;
    --gridnews-border-light: 1px solid #2a2a2a;
    --gridnews-primary: #45278e;
    --gridnews-primary-dark: #9a67ea;
    --gridnews-card-shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.6);
    --gridnews-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    --gridnews-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode body {
    background: var(--gridnews-bg);
    color: var(--gridnews-text);
}

html.dark-mode .site-header,
html.dark-mode .site-topbar {
    background: var(--gridnews-bg-card) !important;
    border-color: rgba(0, 0, 0, 1.0) !important;
}

html.dark-mode .site-topbar {
    background: #000000 !important;
}

html.dark-mode .news-card,
html.dark-mode .single-news-article,
html.dark-mode .single-video-article,
html.dark-mode .gridnews-comment,
html.dark-mode .trending-block-featured,
html.dark-mode .league-block,
html.dark-mode .all-news-hero,
html.dark-mode .section-hero,
html.dark-mode .gridnews-search-container,
html.dark-mode .comment-form-wrapper,
html.dark-mode .related-news-item,
html.dark-mode .widget,
html.dark-mode .gridnews-tabbed-news-main,
html.dark-mode .archive-post-card,
html.dark-mode .gridnews-featured-box,
html.dark-mode .search-header-section,
html.dark-mode .search-result-item.gridnews-archive-card,
html.dark-mode .gfg-slider,
html.dark-mode .gn-author-box,
html.dark-mode .single-news-navigation-modern,
html.dark-mode .gn-comment,
html.dark-mode .gn-checkalso-box,
html.dark-mode .block-container {
    background: var(--gridnews-bg-card);
    border-color: var(--gridnews-border);
    box-shadow: var(--gridnews-shadow);
    color: var(--gridnews-text-main);
}

html.dark-mode a,
html.dark-mode .news-title a,
html.dark-mode .related-item-title,
html.dark-mode .main-menu a,
html.dark-mode .widget-title,
html.dark-mode .gridnews-tab-btn,
html.dark-mode .gridnews-comment-author a {
    color: var(--gridnews-text);
}

html.dark-mode .news-meta,
html.dark-mode .gridnews-comment-date,
html.dark-mode .related-time,
html.dark-mode .single-news-meta,
html.dark-mode .topbar-text,
html.dark-mode .site-description,
html.dark-mode .widget-content span {
    color: var(--gridnews-text-muted) !important;
}

html.dark-mode .submit-comment-btn,
html.dark-mode .btn-primary,
html.dark-mode .dark-mode-toggle,
html.dark-mode .gridnews-search-close,
html.dark-mode .search-toggle,
html.dark-mode .gridnews-back-top {
    color: rgba(255, 255, 255, 0.9);
    border: none !important;
    transition: var(--gridnews-transition);
}

html.dark-mode .read-more {
    background: rgba(187, 134, 252, 0.15) !important;
}

html.dark-mode .read-more:hover,
html.dark-mode .submit-comment-btn:hover,
html.dark-mode .dark-mode-toggle:hover,
html.dark-mode .gridnews-back-top:hover {
    transform: translateY(-2px);
}

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode .ajax-search-input,
html.dark-mode select {
    background: var(--gridnews-bg-input, #2a2a2a) !important;
    border-color: var(--gridnews-border) !important;
    color: var(--fmgridnewstext) !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: var(--gridnews-text-muted) !important;
    opacity: 0.7;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode .ajax-search-input:focus {
    border-color: var(--gridnews-primary) !important;
    box-shadow: 0 0 0 5px rgba(187, 134, 252, 0.2) !important;
    background: #252525 !important;
}

html.dark-mode .gridnews-search-modal .gridnews-search-container {
    background: var(--gridnews-bg-card) !important;
}

html.dark-mode .gridnews-search-header {
    background: var(--gridnews-primary) !important;
}

html.dark-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html.dark-mode ::-webkit-scrollbar-track {
    background: var(--gridnews-bg-card);
}

html.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--gridnews-primary);
    border-radius: 4px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--gridnews-primary-dark);
}

html.dark-mode .site-footer,
html.dark-mode .footer-copyright-bar {
    border-color: var(--gridnews-border) !important;
}

html.dark-mode img {
    opacity: 1;
}

html.dark-mode .single-breadcrumbs,
html.dark-mode .news-meta .section-name {
    background: rgba(187, 134, 252, 0.15) !important;
    color: var(--gridnews-primary-dark) !important;
}

html.dark-mode .search-loading i,
html.dark-mode .fa-spinner {
    color: var(--gridnews-primary) !important;
}

.dark-mode-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease, transform 0.2s ease;
}

.dark-mode-toggle:focus-visible {
    outline: 2px solid var(--gridnews-primary);
    outline-offset: 2px;
}

.dark-mode-toggle:hover {
    transform: translateY(-1px) scale(1.03);
}

html.dark-mode .dark-mode-toggle {
    background: rgba(0, 0, 0, 0.35);
}

html.dark-mode .dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.55);
}


html.dark-mode .trending-featured-info {
    background-color: rgba(38, 38, 38, 1.0);
}

html.dark-mode .featured-story-title,
html.dark-mode .trending-details h3,
html.dark-mode .featured-story-meta {
    color: #fff;
}

html.dark-mode .trending-meta {
    color: rgba(159, 159, 159, 1.0);
}

html.dark-mode .trending-item:not(:last-child),
html.dark-mode .league-small-story:not(:last-child),
html.dark-mode .league-news-row:not(:last-child),
html.dark-mode .gridnews-news-item:not(:last-child),
html.dark-mode .gridnews-news-tabs,
html.dark-mode .gridnews-featured-list-item:not(:last-child),
html.dark-mode .gridnews-recent-news .grn-item:not(:last-child),
html.dark-mode .gn-block-style-legacy .gn-block-header,
html.dark-mode .gn-checkalso-header,
html.dark-mode .widget-title,
html.dark-mode .gridnews-featured-label,
html.dark-mode .header-style-2 .header-top-inline {
    border-bottom: 1px solid rgba(51, 51, 51, 1.0);
}

html.dark-mode .timeline-line {
    background: rgba(51, 51, 51, 1.0);
}

html.dark-mode .gn-loadmore-button {
    border: 1px solid rgba(51, 51, 51, 1.0);
}

html.dark-mode .jannah-featured-grid .container-wrapper {
    background-color: var(--gridnews-bg-card);
    border: solid 1px transparent;
}

html.dark-mode .see-more-link a {
    color: var(--gridnews-primary-dark);
}

html.dark-mode .league-header-wrapper,
html.dark-mode .league-news-row {
    background-color: var(--gridnews-bg-card);
    border: solid 1px transparent;
}

html.dark-mode .small-story-source {
    color: var(--gridnews-primary-dark);
}

html.dark-mode .single-news-featured-image::after {
    background: linear-gradient(transparent, #000);
}

html.dark-mode .single-news-share-modern {
    background: var(--gridnews-bg-header);
}

html.dark-mode .mobile-navigation {
    background-color: var(--gridnews-bg-header);
    border-color: var(--gridnews-border) !important;
}

html.dark-mode .entry blockquote {
    background: inherit;
    color: inherit;
    box-shadow: var(--gridnews-shadow);
}

html.dark-mode .gn-checkalso-close {
    color: var(--gridnews-header-bg);
}

html.dark-mode .gridnews-sidebar .widget-title::after,
html.dark-mode .gridnews-featured-label::after,
html.dark-mode .gn-checkalso-header::after {
    background: var(--gridnews-text);
}

@media (max-width: 992px) {
    html.dark-mode .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.06);
    }
}

html.dark-mode .mobile-menu-toggle span {
    background: #f9fafb;
}

html.dark-mode .mobile-navigation {
    background: #020617;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.6);
}

html.dark-mode .mobile-menu a {
    color: #e5e7eb;
}

html.dark-mode .mobile-navigation {
    background-color: var(--gridnews-bg-header);
}

.gridnews-layout {
    padding: 0 0 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

@media (min-width: 1250px) {

    .gridnews-layout,
    .site-main,
    .header-style-2 .nav-main {
        margin-inline: -15px;
    }

}

@media (max-width: 768px) {
    .gridnews-layout {
        padding: 0 0 40px;
    }
}

.gridnews-main-content {
    flex: 1 1 auto;
    min-width: 0;
}

.gridnews-sidebar {
    flex: 0 0 370px;
    max-width: 370px;
    min-width: 260px;
    box-sizing: border-box;
}

.gridnews-sidebar .widget {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 16px;
}

.gridnews-sidebar .widget+.widget {
    margin-top: 20px;
}

.gridnews-block-gallery .widget-title,
.gridnews-sidebar .widget-title,
.gridnews-featured-label,
.block-container .widget-title {
    position: relative;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.gridnews-block-gallery .widget-title::after,
.gridnews-sidebar .widget-title::after,
.gridnews-featured-label::after {
    content: '';

    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 70px;
    height: 2px;
    background: var(--gridnews-primary);
    border-radius: 2px;
}

.gridnews-featured-label::after {
    background: var(--section-color);
}

.gridnews-layout.sidebar-right .gridnews-main-content {
    order: 1;
}

.gridnews-layout.sidebar-right .gridnews-sidebar {
    order: 2;
}

.gridnews-layout.sidebar-left .gridnews-main-content {
    order: 2;
}

.gridnews-layout.sidebar-left .gridnews-sidebar {
    order: 1;
}

.gridnews-layout.no-sidebar .gridnews-sidebar {
    display: none;
}

@media (max-width: 1024px) {

    .gridnews-layout,
    .site-main {
        max-width: 100%;
        margin-inline: auto;
    }

    .gridnews-sidebar {
        flex: 0 0 280px;
        max-width: 280px;
        min-width: 0;
    }
}

@media (max-width: 992px) {
    .gridnews-layout {
        flex-direction: column;
        gap: 20px;
    }

    .gridnews-main-content,
    .gridnews-sidebar {
        order: 0;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .gridnews-sidebar {
        flex-basis: auto;
    }
}

@media (max-width: 400px) {
    .gridnews-layout {
        padding-inline: 0;
    }
}

@media (min-width: 1025px) {
    .gridnews-sidebar-sticky {
        position: sticky;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px);
        align-self: flex-start;
    }
}

.gridnews-recent-news {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gridnews-recent-news .grn-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gridnews-recent-news .grn-item:not(:last-child) {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gridnews-recent-news .grn-thumb {
    display: block;
    flex: 0 0 110px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.gridnews-recent-news .grn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* ========================================
 * Photo Gallery Widget & Block
 * ======================================== */
.gridnews-gallery-grid .gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    background-color: var(--gridnews-bg-alt);
}

.gridnews-gallery-grid .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gridnews-recent-news .grn-item:hover .grn-thumb img {
    transform: scale(1.04);
}

.gridnews-recent-news .grn-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.gridnews-recent-news .grn-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.gridnews-recent-news .grn-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px;
    font-weight: 500;
    color: #222;
}

.gridnews-recent-news .grn-title a {
    text-decoration: none;
}

.gridnews-recent-news .grn-title a:hover {
    color: var(--gridnews-text-muted);
}

.grn-date {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.grn-date i {
    font-size: 12px;
}

.gridnews-recent-news.grn-thumb-left .grn-thumb {
    order: 1;
}

.gridnews-recent-news.grn-thumb-left .grn-meta {
    order: 2;
}

.gridnews-recent-news.grn-thumb-right .grn-thumb {
    order: 2;
}

.gridnews-recent-news.grn-thumb-right .grn-meta {
    order: 1;
}

.entry h1,
.entry h2,
.entry h3,
.entry h4,
.entry h5,
.entry h6 {
    margin: 0 0 0.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
    font-weight: 600;
}

.post-section:before {
    content: "•";
    color: #ccc;
    margin: 0 3px 0 5px;
    display: inline-block;
}

.gn-meta-item:not(:first-child):before {
    content: "";
    color: #ccc;
    margin: 0 3px;
    display: inline-block;
}

.breadcrumbs a:not(:hover) {
    color: var(--gridnews-text-muted);
}

.gridnews-video-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    margin-bottom: 16px;
}

.gridnews-video-embed iframe,
.gridnews-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.trending-block-featured,
.league-block,
.single-news-article,
.archive-post,
.search-result-item {
    box-shadow: var(--gridnews-card-shadow-soft);
}

.news-card,
.error-404-inner {
    box-shadow: var(--gridnews-card-shadow-strong);
}

.single-news-article:not(:first-child) {
    margin-top: 20px;
}

/* ========================================
   Ajax Live Search
   ====================================== */
.gridnews-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gridnews-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.gridnews-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
}

.gridnews-search-container {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 92%;
    max-width: 850px;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: searchPop 0.4s ease;
}

:dir(rtl) .gridnews-search-container {
    transform: translate(50%, -50%) scale(0.85);
}

.gridnews-search-container {
    inset-inline-start: 50%;
    inset-inline-end: auto;
}

@keyframes searchSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes searchPop {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.gridnews-search-header {
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--gridnews-primary, #45278e), #1a1a2e);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gridnews-search-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gridnews-search-close {
    color: #fff;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.gridnews-search-close:hover {
    background: #000;
    color: #ffffff;
    transform: rotate(90deg);
}

.gridnews-search-inner {
    padding: 40px;
}

.ajax-search-wrapper {
    position: relative;
    transition: all 0.3s;
}

.ajax-search-input {
    width: 100%;
    padding: 22px 70px 22px;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    font-size: 1.35rem;
    font-weight: 500;
    background: #fff;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.ajax-search-input:focus {
    border-color: var(--gridnews-primary, #45278e);
}

.search-icon {
    position: absolute;
    inset-inline-start: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #999;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    inset-inline-end: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

#ajax-search-results {
    margin-top: 28px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
    padding: 12px 0;
    display: none !important;
}

#ajax-search-results:not(:empty) {
    display: block !important;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.ajax-search-item:hover {
    background: linear-gradient(90deg, rgba(69, 39, 142, 0.05), transparent);
    padding-right: 32px;
    transform: translateX(-8px);
}

.ajax-search-item:last-child {
    border-bottom: none;
}

.ajax-search-thumb img {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ajax-search-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ajax-search-content span {
    font-size: 0.95rem;
    color: #777;
}

.search-no-result,
.search-loading {
    padding: 60px 30px;
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    background: #fff;
}

.search-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--gridnews-primary, #45278e);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .gridnews-search-header {
        padding: 24px;
    }

    .gridnews-search-header h3 {
        font-size: 1.3rem;
    }

    .gridnews-search-inner {
        padding: 30px 20px;
    }

    .ajax-search-input {
        padding: 20px 55px 20px;
        font-size: 1.25rem;
    }

    .search-icon {
        right: 20px;
    }

    .ajax-search-item {
        padding: 16px 20px;
        gap: 16px;
    }

    .ajax-search-thumb img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .gridnews-search-container {
        width: 95%;
        border-radius: 24px;
    }

    .ajax-search-input {
        font-size: 1.1rem;
        padding: 18px 60px 18px;
    }

    .ajax-search-item h4 {
        font-size: 1rem;
    }
}

.menu-hover-none li a:hover {
    text-decoration: none;
}

.menu-hover-underline li a:hover {
    text-decoration: underline;
}

.menu-hover-overline li a:hover {
    text-decoration: overline;
}

.menu-hover-background li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.menu-hover-scale li a:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.gn-news-sections-widget .gn-news-sections-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-news-sections-widget .gn-news-section-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    text-decoration: none;
    color: inherit;
}

.gn-news-sections-widget .gn-news-section-item a:hover>.gn-section-name {
    text-decoration: underline;
}

.gn-news-sections-widget .gn-news-section-item a:hover>.gn-section-count {
    box-shadow: inset 0 0 0 11px rgba(0, 0, 0, 0.3);
}

.gn-section-count {
    min-width: 32px;
    text-align: center;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-left: 8px;
}

.gn-section-name {
    flex: 1;
    font-size: 14px;
}

.gn-section-arrow {
    color: #aaa;
    font-size: 12px;
    margin-inline-end: 10px;
}

.section-logo {
    vertical-align: middle;
    border-radius: 4px;
    background-color: #fff;
    padding: 3px;
    width: 26px;
    height: 26px;
}

/* =============================================
   Tabbed News Sections - Base Wrapper/Layout
   ============================================= */
.gridnews-tabbed-news-wrapper {
    width: 100%;
    max-width: 100%;
}

.gridnews-tabbed-news-wrapper .gridnews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 0;
}

.gridnews-tabbed-news-wrapper .gridnews-layout.has-sidebar {
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
}

.gridnews-tabbed-news-main {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 24px;
    min-width: 0;
    min-height: 0;
    height: auto;
}

/* =============================================
   Category Filter - Title & Tabs Inline
   ============================================= */
.gridnews-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
    flex-wrap: nowrap;
}

.gridnews-filter-head .widget-title {
    margin: 0;
    padding: 12px 0;
    border: none;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 600;
}

.gridnews-filter-head .widget-title::after {
    display: none;
}

.gridnews-filter-head .gridnews-news-tabs-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0;
}

.gridnews-filter-head .gridnews-news-tabs {
    margin-bottom: -1px;
}

@media (max-width: 991px) {
    .gridnews-filter-head {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gridnews-filter-head .widget-title {
        padding: 0;
    }

    .gridnews-filter-head .gridnews-news-tabs-wrapper {
        width: 100%;
        justify-content: flex-start;
    }

    .gridnews-filter-head .gridnews-news-tabs {
        width: 100%;
    }
}

/* =============================================
   Tabs Navigation
   ============================================= */
.gridnews-news-tabs {
    display: flex;
    gap: 20px;
    border-bottom: none;
    overflow-x: visible;
    overflow-y: visible;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gridnews-news-tabs::-webkit-scrollbar {
    display: none;
}

.gridnews-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gridnews-tab-btn:hover {
    color: var(--tab-color);
}

.gridnews-tab-btn.active {
    color: var(--tab-color);
    border-bottom-color: var(--tab-color);
}

.gn-tabs-more-dropdown {
    position: relative;
    display: none;
    margin-inline-start: auto;
}

.gn-tabs-more-dropdown.is-visible {
    display: block;
}

.gn-more-btn {
    font-size: 14px;
    padding: 12px 15px;
    height: 100%;
}

.gn-tabs-more-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: gnDropdownFade 0.25s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes gnDropdownFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:dir(rtl) .gn-tabs-more-list {
    right: auto;
    left: 0;
}

.gn-tabs-more-list {
    display: none;
}

.gn-tabs-more-list.is-open {
    display: flex;
}

.gn-tabs-more-list .gridnews-tab-btn {
    width: 100%;
    text-align: inherit;
    border: none;
    padding: 10px 20px;
    margin: 0;
    color: #555;
    font-weight: 500;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14.5px;
    border-bottom: none !important;
    background: transparent;
    transition: all 0.2s ease;
}

.gn-tabs-more-list .gridnews-tab-btn:hover {
    background: #f8f9fa;
    color: var(--gridnews-primary);
    padding-inline-start: 24px;
}

.gn-tabs-more-list .gridnews-tab-btn.active {
    background: rgba(var(--gridnews-primary-rgb, 69, 39, 142), 0.05);
    color: var(--tab-color, var(--gridnews-primary));
    font-weight: 700;
}

.gn-tabs-more-list .gridnews-tab-btn:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.gn-tabs-more-list .gridnews-tab-btn:hover {
    background: #f9f9f9;
    color: var(--gridnews-primary);
}

.gridnews-tab-btn {
    white-space: nowrap;
    outline: none;
}

/* =============================================
   Tab Content
   ============================================= */
.gridnews-tabs-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.gridnews-tab-pane {
    display: none;
    width: 100%;
}

.gridnews-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Shared News Item Styles
   ============================================= */
.gridnews-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gridnews-news-item {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.gridnews-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gridnews-news-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.gridnews-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gridnews-news-thumb:hover img {
    transform: scale(1.05);
}

.gridnews-news-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.gridnews-news-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 3px 0 0 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gridnews-news-title a {
    color: #333;
    text-decoration: none;
}

.gridnews-news-title a:hover {
    color: var(--section-color);
    text-decoration: underline;
}

.gridnews-news-meta {
    font-size: 13px;
    color: rgba(113, 113, 113, 1);
    margin-top: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gridnews-news-meta a {
    color: rgba(113, 113, 113, 1);
}

.gridnews-news-meta a:hover {
    color: var(--gridnews-primary);
}

.gridnews-news-meta i,
.small-story-meta i,
.trending-meta i,
.main-story-source i,
.small-story-source i,
.post-author i,
.gn-hero-meta i {
    margin-inline-end: 5px;
}

.gridnews-news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gridnews-read-more {
    font-size: 13px;
    color: var(--section-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.gridnews-read-more:hover {
    text-decoration: underline;
}

.gridnews-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.gridnews-filter-grid .gridnews-news-grid,
.gridnews-tabbed-news .gridnews-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--gn-cols, 3), minmax(0, 1fr));
    gap: 30px 20px;
    width: 100%;
    max-width: 100%;
}

.gridnews-news-grid .gridnews-news-item {
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
}

.gridnews-news-grid .gridnews-news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.gridnews-news-grid .gridnews-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gridnews-news-list .gridnews-news-item {
    flex-direction: row;
}

.gridnews-news-list .gridnews-news-thumb {
    width: 234px;
    height: 132px;
}

@media (min-width: 921px) and (max-width: 1199px) {
    .gridnews-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) and (min-width: 769px) {
    .gridnews-tabbed-news-wrapper .gridnews-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .gridnews-sidebar {
        order: 2;
    }

    .gridnews-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .gridnews-tabbed-news-wrapper {
        margin: 20px 0;
    }

    .gridnews-tabbed-news-wrapper .gridnews-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .gridnews-sidebar {
        order: 2;
    }

    .gridnews-tabbed-news-main {
        padding: 0;
        border-radius: 14px;
    }


    .gridnews-tab-btn {
        font-size: 14px;
        padding: 10px 0;
    }

    .gridnews-news-grid,
    .gridnews-news-list,
    .gridnews-filter-grid .gridnews-news-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gridnews-news-list .gridnews-news-item {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        max-width: 100%;
    }

    .gridnews-news-thumb {
        width: 100% !important;
        height: 180px !important;
        border-radius: 10px;
    }

    .gridnews-news-title {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .gridnews-news-meta {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .gridnews-news-excerpt {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .gridnews-read-more {
        font-size: 13px;
    }
}

@media (max-width: 540px) {
    .gridnews-tabbed-news-main {
        padding: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .gridnews-tabbed-news-main {
        padding: 14px;
    }

    .gridnews-news-excerpt {
        font-size: 13px;
        line-height: 1.55;
    }
}

/* =========================================
   Block Layout Area
   ========================================= */
.gn-block-layout-container {
    display: grid;
    gap: 30px;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 370px;
}

/* Hide empty paragraphs to prevent layout gaps */
.gn-block-layout-container p:empty,
.gn-block-layout-container p[data-empty="true"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.gn-block-layout-container.sidebar-left {
    grid-template-columns: 370px minmax(0, 1fr);
}

.gn-block-layout-container.sidebar-none,
.gn-block-layout-container.no-active-sidebar {
    grid-template-columns: 1fr !important;
}

.gn-block-sidebar {
    display: block !important;
    min-width: 0;
}

.gn-block-sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 16px;
    margin-bottom: 24px;
}

.gn-block-sidebar .widget-title {
    position: relative;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.gn-block-sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 70px;
    height: 2px;
    background: var(--gridnews-primary);
    border-radius: 2px;
}

.gn-block-main-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
}

.block-wrapper {
    grid-column: 1 / -1;
    min-width: 0;
}

.block-wrapper.is-half-width {
    grid-column: span 1;
}

.gn-block-layout-container.sidebar-left .gn-block-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.gn-block-layout-container.sidebar-left .gn-block-main-content {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 1024px) {
    .gn-block-layout-container:not(.sidebar-none):not(.no-active-sidebar) {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 20px;
    }

    .gn-block-layout-container.sidebar-left {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .gn-block-sidebar .widget {
        padding: 20px;
    }
}

@media (max-width: 991px) {

    .gn-block-layout-container,
    .gn-block-layout-container.sidebar-left {
        grid-template-columns: 1fr !important;
    }

    .gn-block-main-content {
        grid-template-columns: 1fr;
    }

    .gn-block-sidebar {
        width: 100%;
        margin-top: 30px;
    }

    .gn-block-layout-container.sidebar-left .gn-block-sidebar {
        order: 2;
        grid-column: auto;
        grid-row: auto;
    }

    .gn-block-layout-container.sidebar-left .gn-block-main-content {
        order: 1;
        grid-column: auto;
        grid-row: auto;
    }
}

.gn-block-main-content>* {
    grid-column: 1 / -1;
    align-self: start;
}

.gn-block-main-content>.is-half-width,
.gn-block-main-content>.half-width-block {
    grid-column: span 1;
}

.gridnews-fullwidth-main {
    min-width: 0;
}

.gridnews-fullwidth-main .widget.gridnews-full-main-widget {
    grid-column: 1 / -1;
}

.gridnews-fullwidth-layout .gridnews-fullwidth-main .widget.is-half-width {
    grid-column: auto;
}

.block-container,
.widget_gridnews_tabbed_news_widget,
.widget_gridnews_legacy_section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(240, 240, 240, 1);
    width: 100%;
    max-width: 100%;
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

@media (max-width: 768px) {

    .block-container,
    .widget_gridnews_tabbed_news_widget,
    .widget_gridnews_legacy_section {
        padding: 12px;
    }
}

.gridnews-fullwidth-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 24px;
}

@media (min-width: 992px) {
    .gridnews-fullwidth-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 20px;
    }
}

@media (max-width: 768px) {
    .gridnews-fullwidth-main {
        grid-template-columns: 1fr;
    }
}

.widget_grid_featured_section_widget {
    min-width: 0;
    grid-column: span 1;
}

.gridnews-fullwidth-main .gridnews-featured-box,
.gn-block-main-content .gridnews-featured-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    border: 1px solid #f0f0f0;
    padding: 20px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .gridnews-featured-box {
        padding: 16px;
    }
}

.gridnews-featured-main {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gridnews-fullwidth-main .gridnews-featured-title {
    font-size: 20px;
}

.gridnews-featured-title {
    font-size: 17px;
    font-weight: 600;
}

.gridnews-featured-thumb {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.gridnews-featured-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

a.gridnews-featured-list-item .thumb img,
a.gridnews-featured-thumb img,
a.gridnews-recent-news .grn-thumb img,
.timeline-image img,
.gridnews-news-thumb img,
.gn-bottom-item-thumb img,
.gn-block-top-image,
.trending-thumb img,
.small-story-thumb {
    opacity: 1;
    transition: all 0.2s;
    will-change: opacity;
}

a.gridnews-featured-list-item .thumb img:hover,
a.gridnews-featured-thumb img:hover,
a.gridnews-recent-news .grn-thumb img:hover,
.timeline-image img:hover,
.gridnews-news-thumb img:hover,
.gn-bottom-item-thumb img:hover,
.gn-block-top-image:hover,
.trending-thumb img:hover,
.small-story-thumb:hover {
    opacity: 0.85;
}

.gridnews-featured-list-item {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.gridnews-featured-list-item:not(:last-child) {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gridnews-featured-list-item .thumb img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.gn-align-end {
    margin-inline-start: auto;
}

.post-views,
.post-author {
    align-items: center;
}

.views-label {
    display: inline-block;
}

@media (max-width: 480px) {
    .views-label {
        display: none;
    }
}

.gridnews-ad-slot {
    display: block;
    margin: 20px auto;
    text-align: center;
    clear: both;
    overflow: hidden;
}

.gridnews-ad-slot .ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.gridnews-ad-slot .ad-content {
    display: inline-block;
    max-width: 100%;
}

.gridnews-ad-header {
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.gridnews-ad-in-content {
    margin: 30px 0;
    padding: 20px 0;
    background: #f9f9f9;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

@media (max-width: 768px) {

    .gridnews-ad-slot img,
    .gridnews-ad-slot iframe {
        max-width: 100%;
        height: auto;
    }
}

.entry-tags {
    display: flex;
    padding: 0 8px;
    gap: 8px;
    flex-flow: wrap;
}

.entry-tags a {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.league-news-list p {
    margin-bottom: 30px;
}

.gn-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.15s ease,
        transform 0.08s ease;
}

.gn-like-btn i {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.45);
    transition: color 0.15s ease, transform 0.08s ease;
}

.gn-like-btn .gn-like-count {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
}

.gn-like-btn .gn-like-label {
    display: none;
}

.gn-like-btn:hover,
.gn-like-btn:focus-visible {
    outline: none;
    color: var(--section-color, #45278e);
}

.gn-like-btn:hover i,
.gn-like-btn:focus-visible i {
    color: var(--section-color, #45278e);
    transform: translateY(-1px);
}

.gn-like-btn:active i {
    transform: translateY(0);
}

.gn-like-btn.is-liked i {
    color: var(--section-color, #45278e);
}

.gn-like-btn.is-liked .gn-like-count {
    color: var(--section-color, #45278e);
}

.gn-readmore-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 8px 24px;
    border-radius: 4px;
    background: var(--section-color, var(--gridnews-primary));
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.gn-readmore-button:hover,
.gn-readmore-button:focus-visible {
    background: color-mix(in srgb, var(--gridnews-primary) 80%, #000000 20%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    outline: none;
}


.gn-block-style-legacy .gn-block-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gn-block-style-legacy .gn-block-title {
    font-size: 18px;
    font-weight: 700;
}

.gn-block-style-legacy .gn-block-tag {
    font-size: 14px;
    color: var(--gridnews-primary);
    font-weight: 700;
}

/* big story */
.gn-block-style-legacy .gn-block-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.gn-block-top.no-thumb {
    grid-template-columns: 1fr;
}

.gn-block-top.no-thumb .gn-block-top-image {
    display: none;
}

.gn-block-style-legacy .gn-block-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

.gn-block-style-legacy .gn-block-top.gn-top-fullwidth {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
}

.gn-block-style-legacy .gn-block-top-image a,
.gn-block-style-legacy .gn-block-top-image img {
    display: block;
    width: 100%;
    max-height: 210px;
}

.gn-block-style-legacy .gn-block-top-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gn-block-style-legacy .gn-block-top-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gn-block-style-legacy .gn-top-meta {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 4px;
}

.gn-block-style-legacy .gn-top-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* 2-column default */
.gn-block-style-legacy .gn-block-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 26px;
}

/* 3-column full width */
.gn-block-style-legacy .gn-block-bottom.gn-bottom-fullwidth {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
}

.gn-block-bottom.gn-bottom-fullwidth .gn-bottom-item.no-thumb {
    grid-template-columns: 1fr;
}

.gn-block-style-legacy .gn-bottom-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.4fr);
    gap: 10px;
    align-items: flex-start;
}

@media (max-width: 540px) {
    .gn-block-style-legacy .gn-bottom-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 8px;
    }
}

.gn-block-style-legacy .gn-bottom-item.no-thumb {
    grid-template-columns: 1fr;
}

.gn-block-style-legacy .gn-bottom-item.no-thumb .gn-bottom-item-thumb {
    display: none;
}

.gn-block-style-legacy .gn-bottom-item-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
}

.gn-block-style-legacy .gn-bottom-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gn-block-style-legacy .gn-bottom-item-meta {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 3px;
}

.gn-block-style-legacy .gn-bottom-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .gn-block-style-legacy {
        padding: 16px 4px;
    }

    .gn-block-style-legacy .gn-block-top {
        grid-template-columns: 1fr !important;
    }

    .gn-block-style-legacy .gn-block-top-image img {
        height: auto;
    }

    .gn-block-style-legacy .gn-block-bottom {
        grid-template-columns: 1fr !important;
    }
}

.entry blockquote {
    position: relative;
    margin: 24px 0;
    padding: 18px 22px 18px 22px;
    border-inline-start: 4px solid var(--gridnews-primary);
    background: #f7f7fa;
    color: #222;
    font-size: 16px;
    line-height: 1.7;
}

.entry blockquote::before {
    content: "“";
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: -10px;
    font-size: 40px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.entry blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    opacity: 0.7;
}

/* --- Author Box --- */
.gn-author-box {
    margin: 20px 0;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.gn-author-avatar {
    flex-shrink: 0;
}

.gn-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.gn-author-content {
    flex-grow: 1;
}

.gn-author-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.gn-author-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gn-author-name a {
    color: var(--gridnews-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.gn-author-name a:hover {
    color: #333;
}

.gn-author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .gn-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* --- Single News Hero --- */
.single-news-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    margin-bottom: 50px;
}

.single-news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.single-news-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
}

.gn-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gridnews-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: transform 0.2s;
}

.gn-hero-badge:hover {
    color: #fff;
    transform: translateY(-2px);
}

.single-news-hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.single-news-meta.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.hero-meta .gn-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta .post-author img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .single-news-hero {
        height: auto;
        min-height: 400px;
        padding-bottom: 40px;
    }

    .single-news-hero-title {
        font-size: 2rem;
    }
}

.single-hero-overlay {
    position: relative;
    margin-block: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.single-hero-image {
    width: 100%;
    height: min(520px, 70vh);
    object-fit: cover;
    display: block;
}

.no-sidebar .single-hero-image {
    height: min(620px, 70vh);
}

@media (max-width: 992px) {
    .no-sidebar .single-hero-image {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .no-sidebar .single-hero-image {
        height: 360px;
    }
}

.single-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.75));
}

.single-hero-inner {
    position: absolute;
    inset-inline: 5px;
    bottom: 15px;
    color: #fff;
}

.single-hero-badges {
    margin-bottom: 16px;
}

.single-hero-inner .league-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.single-news-header--overlay .single-news-title {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.single-news-header--overlay .single-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.single-news-header--overlay .gn-meta-item i {
    color: rgba(255, 255, 255, 0.8);
    margin-inline-end: 5px;
}

@media (max-width: 992px) {
    .single-hero-image {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .single-hero-image {
        height: 360px;
    }

    .single-hero-inner {
        bottom: 20px;
    }
}

/* =========================================
   GridNews Social Profiles Widget
 ========================================= */
.gridnews-social-widget {
    margin: 0 0 6px;
}

.gn-social-align-left .gn-social-list {
    justify-content: flex-start;
    text-align: left;
}

.gn-social-align-center .gn-social-list {
    justify-content: center;
    text-align: center;
}

.gn-social-align-right .gn-social-list {
    justify-content: flex-end;
    text-align: right;
}

.gn-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gn-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gn-social-style-solid .gn-social-link {
    background-color: #ffffff;
    color: #6b7280;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.gn-social-style-solid .gn-social-facebook .gn-social-link,
.gn-social-style-simple .gn-social-facebook .gn-social-link {
    color: #1877f2;
}

.gn-social-style-solid .gn-social-facebook .gn-social-link:hover {
    background-color: #1877f2;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-twitter .gn-social-link,
.gn-social-style-simple .gn-social-twitter .gn-social-link {
    color: #111827;
}

.gn-social-style-solid .gn-social-twitter .gn-social-link:hover {
    background-color: #111827;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-instagram .gn-social-link,
.gn-social-style-simple .gn-social-instagram .gn-social-link {
    color: #d62976;
}

.gn-social-style-solid .gn-social-instagram .gn-social-link:hover {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #4f5bd5);
    color: #ffffff;
}

.gn-social-style-solid .gn-social-youtube .gn-social-link,
.gn-social-style-simple .gn-social-youtube .gn-social-link {
    color: #ff0000;
}

.gn-social-style-solid .gn-social-youtube .gn-social-link:hover {
    background-color: #ff0000;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-linkedin .gn-social-link,
.gn-social-style-simple .gn-social-linkedin .gn-social-link {
    color: #0a66c2;
}

.gn-social-style-solid .gn-social-linkedin .gn-social-link:hover {
    background-color: #0a66c2;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-whatsapp .gn-social-link,
.gn-social-style-simple .gn-social-whatsapp .gn-social-link {
    color: #25d366;
}

.gn-social-style-solid .gn-social-whatsapp .gn-social-link:hover {
    background-color: #25d366;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-telegram .gn-social-link,
.gn-social-style-simple .gn-social-telegram .gn-social-link {
    color: #229ed9;
}

.gn-social-style-solid .gn-social-telegram .gn-social-link:hover {
    background-color: #229ed9;
    color: #ffffff;
}

.gn-social-style-solid .gn-social-rss .gn-social-link,
.gn-social-style-simple .gn-social-rss .gn-social-link {
    color: #f97316;
}

.gn-social-style-solid .gn-social-rss .gn-social-link:hover {
    background-color: #f97316;
    color: #ffffff;
}

/* =========================================
   GridNews Author Box Widget
 ========================================= */
.gridnews-author-widget {
    padding: 18px 18px 16px;
    font-size: 14px;
}

.gridnews-author-widget .gn-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gn-author-layout-stacked .gn-author-header {
    flex-direction: column;
    align-items: flex-start;
}

.gridnews-author-widget .gn-author-avatar img {
    border-radius: 999px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.gridnews-author-widget .gn-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.gridnews-author-widget .gn-author-role {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.gridnews-author-widget .gn-author-bio {
    margin: 6px 0 10px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.gridnews-author-widget .gn-author-bio p {
    margin: 0 0 6px;
}

.gridnews-author-widget .gn-author-social {
    margin-top: 4px;
}

.gridnews-author-widget .gn-author-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gridnews-author-widget .gn-author-social-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #6b7280;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.gridnews-author-widget .gn-author-facebook a:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.gridnews-author-widget .gn-author-twitter a:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.gridnews-author-widget .gn-author-instagram a:hover {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #4f5bd5);
    color: #ffffff;
    border-color: transparent;
}

.gridnews-author-widget .gn-author-youtube a:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.gridnews-author-widget .gn-author-linkedin a:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

.gridnews-author-widget .gn-author-telegram a:hover {
    background: #229ed9;
    color: #ffffff;
    border-color: #229ed9;
}

.gridnews-author-widget .gn-author-whatsapp a:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.gridnews-author-widget .gn-author-website a:hover {
    background: var(--gridnews-primary, #45278e);
    color: #ffffff;
    border-color: var(--gridnews-primary, #45278e);
}

.gridnews-author-widget .gn-author-footer {
    margin-top: 10px;
}

.gridnews-author-widget .gn-author-posts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--gridnews-primary, #45278e);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(69, 39, 142, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.gridnews-author-widget .gn-author-posts-btn:hover {
    background-color: #35206e;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(69, 39, 142, 0.45);
}

.gn-author-layout-inline .gn-author-header {
    flex-direction: row;
}

.gn-author-layout-inline .gn-author-bio {
    margin-top: 4px;
}

/* =========================================
   GridNews Ad Box Widget
 ========================================= */
.gridnews-ad-widget {
    margin-bottom: 10px;
    font-size: 14px;
}

.gridnews-ad-widget .gn-ad-label {
    text-align: center;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.gridnews-ad-widget .gn-ad-inner {
    padding: 14px 14px 12px;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.gn-ad-align-left .gn-ad-inner,
.gn-ad-align-left .gn-ad-html,
.gn-ad-align-left .gn-ad-image {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.gn-ad-align-center .gn-ad-inner,
.gn-ad-align-center .gn-ad-html,
.gn-ad-align-center .gn-ad-image {
    margin-inline: auto;
    text-align: center;
}

.gn-ad-align-right .gn-ad-inner,
.gn-ad-align-right .gn-ad-html,
.gn-ad-align-right .gn-ad-image {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.gridnews-ad-widget .gn-ad-link,
.gridnews-ad-widget .gn-ad-image {
    display: block;
}

.gridnews-ad-widget .gn-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.gridnews-ad-widget .gn-ad-link:hover .gn-ad-image {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gridnews-ad-widget .gn-ad-html {
    line-height: 0;
}

.gridnews-ad-widget .gn-ad-html iframe,
.gridnews-ad-widget .gn-ad-html ins,
.gridnews-ad-widget .gn-ad-html img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .gridnews-ad-widget .gn-ad-inner {
        padding: 12px;
        border-radius: 12px;
    }
}

.header-style-2 .header-top-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.header-style-2 .header-top-left {
    flex: 0 0 auto;
}

.header-style-2 .header-top-right {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.header-style-2 .gridnews-ad-slot.gridnews-ad-header_inline {
    margin: 0;
}

.header-style-2 .gridnews-ad-header_inline .container {
    padding: 0;
}

.header-style-2 .gridnews-ad-header_inline .ad-content {
    line-height: 0;
}

.header-style-2 .gridnews-ad-header_inline img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .header-style-2 .header-top-inline {
        flex-direction: column;
        gap: 0;
    }

    .header-style-2 .header-top-right {
        justify-content: center;
    }
}

.single-term-chips {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    margin: 5px 0;
    font-weight: normal;
}

.single-term-chip {
    display: inline-block;
    background: var(--gn-term-color);
    color: #fff !important;
    padding: 0 11px;
    font-size: 13px;
    line-height: 2em;
    margin-right: 4px;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.single-term-chip:hover,
.single-term-chip:focus-visible {
    background: color-mix(in srgb, var(--gn-term-color) 80%, #000 20%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.entry hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 10px 0 10px;
}

.gn-checkalso-box {
    position: fixed;
    inset-inline-end: -380px;
    bottom: 24px;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99999;
}

@media (max-width: 991px) {
    .gn-checkalso-box {
        display: none;
    }
}

.gn-checkalso-box.is-sliding-in {
    inset-inline-end: 24px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.gn-checkalso-box.is-visible {
    inset-inline-end: 24px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.gn-checkalso-box.is-sliding-out {
    inset-inline-end: -380px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.gn-checkalso-box.is-hidden {
    inset-inline-end: -380px;
    opacity: 0;
    pointer-events: none;
}

.gn-checkalso-inner {
    padding: 16px;
}

.gn-checkalso-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.gn-checkalso-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 70px;
    height: 2px;
    background: var(--gridnews-primary);
    border-radius: 2px;
}

.gn-checkalso-title {
    font-weight: 600;
}

.gn-checkalso-close {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.gn-checkalso-thumb {
    position: relative;
    height: 100%;
    display: block;
    backface-visibility: hidden;
    transform: rotate(0);
    transition: opacity 0.2s;
}

.gn-checkalso-thumb:hover {
    opacity: 0.85 !important;
}

.gn-checkalso-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gn-checkalso-post-title {
    font-size: 15px;
    margin: 0 0 4px;
}

.gn-checkalso-meta .date {
    font-size: 12px;
    color: #777;
}

.gn-comment-toggle {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--gridnews-primary);
    color: #fff;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.gn-comment-toggle:focus {
    outline: 2px solid rgba(0, 0, 0, 0.4);
    outline-offset: 2px;
}

.gn-comment-form-wrap.is-collapsed {
    display: none;
}

.page-main-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.page-main-content>.block-container {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 12px;
}

.page-main-content>.gridnews-featured-box:not(.half-width-block) {
    flex: 0 0 100%;
    width: 100%;
}

.page-main-content>.gridnews-featured-box.half-width-block {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    border: 1px solid #f0f0f0;
    padding: 20px;
}

@media (max-width: 768px) {
    .page-main-content {
        gap: 16px;
    }

    .page-main-content>.gridnews-featured-box.half-width-block {
        flex: 0 0 100%;
        width: 100%;
    }
}

.gridnews-timeline-block .widget-title {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    position: relative;
}

.gridnews-timeline-block .widget-title span {
    border-bottom: 2px solid var(--gridnews-primary, #2962ff);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -2px;
    font-size: 18px;
    font-weight: 700;
}

.gridnews-timeline-wrapper {
    position: relative;
    padding-inline-start: 0;
}

.gridnews-timeline-wrapper .timeline-line {
    position: absolute;
    inset-inline-start: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-group-node {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    margin-left: -20px;
}

.timeline-group-node span {
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    padding: 15px 10px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
}

.timeline-item {
    --post-accent-color: var(--accent-color, #2962ff);
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
}

.timeline-marker {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-marker .marker-dot {
    position: absolute;
    inset-inline-start: 3px;
    top: 3px;
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: 3px solid #ffffff;
    z-index: 1;
}

.timeline-marker .marker-date {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.timeline-content-box {
    display: flex;
    gap: 20px;
}

.timeline-image {
    flex: 0 0 45%;
    max-width: 420px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 230px;
    max-height: 240px;
}

@media (max-width: 768px) {
    .timeline-image img {
        min-height: 200px;
    }
}

.timeline-image .format-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: var(--post-accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}


.timeline-image .cat-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 11px;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
}

.timeline-info {
    flex: 1;
}

.timeline-meta {
    font-size: 12px;
    opacity: .95;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.timeline-meta i {
    margin-right: 4px;
}

.timeline-meta .views {
    color: var(--gridnews-primary);
}

.timeline-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.timeline-title a {
    color: #333;
    text-decoration: none;
}

.timeline-title a:hover {
    color: var(--post-accent-color);
}

.timeline-excerpt {
    font-size: 14px;
    opacity: .95;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-readmore {
    display: inline-block;
    padding: 8px 20px;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.timeline-readmore:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .timeline-content-box {
        flex-direction: column;
    }

    .gridnews-timeline-wrapper .timeline-line {
        left: 19px;
    }

    .timeline-marker .marker-dot {
        left: 13px;
    }

    .timeline-group-node {
        margin-left: -10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-image {
        max-width: 100%;
    }
}

.loadmore-wrapper {
    text-align: center;
    margin-top: 30px;
}

.gn-loadmore-button {
    position: relative;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    height: 46px;
    padding: 0 24px;
    background: transparent;
    color: var(--gridnews-primary) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.gn-loadmore-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.gn-loadmore-button:disabled,
.gn-loadmore-button.loading {
    cursor: not-allowed;
    transform: none;
}

.gn-loadmore-button:disabled:hover {
    transform: none;
}

.gn-loadmore-button .btn-spinner {
    display: none;
    margin-left: 8px;
}

.gn-loadmore-button.loading .btn-spinner {
    display: inline-block;
}

.gn-weather-widget {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--gn-card-bg, #0f172a);
    color: #fff;
    border-radius: 6px;
}

.gn-weather-header {
    display: flex;
    align-items: center;
}

.gn-weather-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.gn-weather-main {
    display: flex;
    flex-direction: column;
}

.gn-weather-temp {
    font-size: 1.4rem;
    font-weight: 600;
}

.gn-weather-city {
    font-size: 0.95rem;
}

.gn-weather-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   GridNews Enhanced Weather Widget
 ======================================== */
.gn-weather-widget-enhanced {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gn-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gn-weather-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.gn-weather-current {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gn-weather-icon-large {
    grid-row: 1 / 3;
}

.weather-svg-icon {
    width: 80px;
    height: 80px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.weather-svg-icon svg {
    width: 100%;
    height: 100%;
}

.gn-weather-temp-main {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.gn-temp-large {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.gn-temp-unit {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.gn-weather-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gn-weather-city-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.gn-weather-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
}

.gn-weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.gn-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.gn-stat-item i {
    color: #fbbf24;
    font-size: 1rem;
}

.gn-stat-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.gn-weather-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.gn-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.gn-forecast-day:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gn-forecast-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.gn-forecast-icon {
    width: 32px;
    height: 32px;
}

.weather-svg-icon-small {
    width: 32px;
    height: 32px;
    color: #fbbf24;
}

.weather-svg-icon-small svg {
    width: 100%;
    height: 100%;
}

.gn-forecast-temp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gn-temp-high {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.gn-temp-low {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    .gn-weather-widget-enhanced {
        padding: 16px;
    }

    .gn-temp-large {
        font-size: 2.8rem;
    }

    .weather-svg-icon {
        width: 60px;
        height: 60px;
    }

    .gn-weather-city-name {
        font-size: 1.1rem;
    }

    .gn-weather-stats {
        gap: 8px;
    }

    .gn-stat-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }

    .gn-stat-item i {
        font-size: 0.9rem;
    }

    .gn-weather-forecast {
        gap: 6px;
    }

    .gn-forecast-day {
        padding: 10px 6px;
    }

    .gn-forecast-day-name {
        font-size: 0.75rem;
    }

    .gn-forecast-icon {
        width: 28px;
        height: 28px;
    }

    .weather-svg-icon-small {
        width: 28px;
        height: 28px;
    }

    .gn-temp-high {
        font-size: 0.95rem;
    }
}

.widget.widget_gridnews_weather_widget {
    margin-bottom: 24px;
}

.widget.widget_gridnews_weather_widget .gn-weather-widget-enhanced {
    max-width: 100%;
}

.gn-weather-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.gn-weather-loading i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 12px;
    display: block;
}

.gn-weather-icon-large i {
    font-size: 66px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.35));
}

.gn-forecast-icon i {
    font-size: 22px;
    color: #fbbf24;
}

.gn-cart-link {
    position: relative;
}

.gn-cart-count {
    position: absolute;
    inset-inline-start: 20px;
    min-width: 16px;
    bottom: 8px;
    height: 16px;
    line-height: 16px;
    background: #e74c3c;
    border-radius: 10px;
    display: block;
    text-align: center;
    font-size: 10px;
    color: #fff;
    transform: translateY(-55%);
    transition: transform 0.2s;
}

.gn-masonry-grid {
    position: relative;
    width: 100%;
}

.gn-masonry-sizer,
.gn-masonry-item {
    width: calc(33.333% - 20px);
}

@media (max-width: 1024px) {

    .gn-masonry-sizer,
    .gn-masonry-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 640px) {

    .gn-masonry-sizer,
    .gn-masonry-item {
        width: 100%;
    }
}

.masonry-content-wrapper,
#gn-masonry-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.gn-masonry-thumb-link {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: var(--gridnews-bg-alt) !important;
}

.gn-masonry-item img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.gn-masonry-item {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.gn-masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.gn-masonry-content {
    padding: 24px;
}

.gn-masonry-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
}

.gn-masonry-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.sitemap-column {
    width: 100%;
}

.sitemap-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    flex-shrink: 0;
}

.sitemap-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-tags-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-views i,
.meta-comments i,
.archive-post-date i,
.archive-post-author i {
    margin-inline-end: 2px;
}

/* =========================================
   Dynamic Mega Menu (GridNews)
 ========================================= */
.header-style-2 .header-bottom {
    position: relative;
}

.mobile-navigation .mega-menu-dropdown {
    display: none !important;
}

.main-menu>li.has-mega-menu {
    position: static;
}

.main-menu li.has-mega-menu>a::after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 15px;
    margin-inline-start: 6px;
    transform: translateY(1px);
    display: inline-block;
}

.main-menu>li.has-mega-menu .mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    border-top: 3px solid var(--gridnews-primary, #45278e);
    border-radius: 0 0 8px 8px;
}

.main-menu>li.has-mega-menu:hover .mega-menu-dropdown,
.main-menu>li.has-mega-menu:focus-within .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(-1px);
}

.main-menu>li.has-mega-menu .mega-menu-dropdown.has-sidebar {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.mega-menu-sidebar {
    width: 220px;
    background: #f9f9f9;
    border-right: 1px solid #eee;
    padding: 20px 0;
    flex-shrink: 0;
}

.mega-menu-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-sidebar li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    transition: all 0.2s;
    background: none !important;
}

.mega-menu-sidebar li.active a,
.mega-menu-sidebar li a:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--gridnews-primary) !important;
}

.mega-menu-content {
    flex-grow: 1;
    position: relative;
    transition: opacity 0.3s ease;
}

.mega-menu-content.is-loading {
    pointer-events: none;
}

.mega-menu-dropdown.has-sidebar .mega-menu-content {
    padding: 30px 20px;
}

.mega-menu-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

html.dark-mode .mega-menu-sidebar {
    background: #181818;
    border-right-color: #333;
}

html.dark-mode .mega-menu-sidebar li a {
    color: #bbb !important;
}

html.dark-mode .mega-menu-sidebar li.active a,
html.dark-mode .mega-menu-sidebar li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

@media (max-width: 1200px) {}

.mm-post {
    display: flex;
    flex-direction: column;
}

.mm-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f3f4f6;
    margin-bottom: 14px;
    position: relative;
}

.mm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mm-post:hover .mm-thumb img {
    transform: scale(1.08);
    /* Zoom effect */
}

.mm-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    font-family: var(--gridnews-heading-font, inherit);
}

.mm-title a {
    color: var(--gridnews-text-dark, #111) !important;
    text-decoration: none;
    background: none !important;
    padding: 0 !important;
    transition: color 0.2s ease;
}

.mm-post:hover .mm-title a {
    color: var(--gridnews-primary, #45278e) !important;
}

.mm-date {
    font-size: 12px;
    color: var(--gridnews-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

html.dark-mode .main-menu>li.has-mega-menu .mega-menu-dropdown {
    background: #1d1d1d;
    border-top-color: var(--gridnews-primary, #2962ff);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

html.dark-mode .mm-thumb {
    background: #374151;
}

html.dark-mode .mm-title a {
    color: #fff !important;
}

html.dark-mode .mm-title a:hover {
    color: var(--gridnews-primary, #2962ff) !important;
}

@media (min-width: 768px) {
    .header-style-2 .header-top {
        min-height: 120px;
    }
}

/* ==========================================
   STICKY HEADER - Style 2
   ========================================== */
.site-header.header-style-2.header-sticky {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-style-2.header-sticky.scroll-down {
    top: calc(var(--wp-admin--admin-bar--height, 0px) - 100%);
}

.site-header.header-style-2.header-sticky.scroll-up {
    top: var(--wp-admin--admin-bar--height, 0px);
}

/* ==========================================
   STICKY HEADER - Styles 1 & 3 (Hide/Reveal)
   ========================================== */
.site-header.header-sticky:not(.header-style-2) {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Account for admin bar on smaller screens */
body.admin-bar .site-header.header-sticky:not(.header-style-2) {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header.header-sticky:not(.header-style-2) {
        top: 46px;
    }
}

/* Smooth hide/reveal animation for styles 1 & 3 */
.site-header.header-sticky:not(.header-style-2).scroll-down {
    /* Hidden state - will be set via JS with exact height */
}

.site-header.header-sticky:not(.header-style-2).scroll-up {
    /* Visible state */
    transform: translateY(0) !important;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 15px;
}

.site-header.header-width-stretched .container-fluid {
    padding-inline: 0;
}

.boxed-layout {
    box-shadow: 0 1px 7px rgba(171, 171, 171, 0.5);
    max-width: 1230px;
    margin: 0 auto;
    background: var(--gridnews-bg);
}

@media (max-width: 1024px) {
    .gridnews-category-filter .gridnews-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gridnews-category-filter .gridnews-news-grid {
        grid-template-columns: 1fr;
    }
}

.gridnews-filter-grid .gridnews-news-meta {
    margin: 0 0 5px;
}

.gridnews-category-filter .gridnews-tab-btn {
    font-weight: initial;
}

.gn-menu-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: capitalize;
    letter-spacing: 0.1px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-menu a,
.mobile-menu a {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
}

.sub-menu .gn-menu-badge {
    margin-top: -1px;
}

.league-description {
    color: #666;
}

.gridnews-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: nowrap;
}

.post-cat {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    display: inline-block;
    padding: 1px 11px !important;
    line-height: 2em;
    font-size: 13px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    z-index: 3;
    overflow: hidden;
}