/*
Theme Name:   NewsFire Global Child
Theme URI:    https://newsfire.gr/en
Description:  NewsFire Global Child Theme based on GeneratePress
Author:       NewsFire Global
Author URI:   https://newsfire.gr
Template:     generatepress
Version:      1.0.0
Text Domain:  newsfire-global-child
*/

/* =============================================
   IMPORT PARENT THEME
   ============================================= */
@import url("../generatepress/style.css");

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --primary:    #082545;
    --accent:     #8B1E1E;
    --news-blue:  #1e73be;
    --line-gray:  #f2f2f2;
    --bg:         #FDFCFB;
    --text:       #111;
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
body {
    font-family: 'Source Serif 4', serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, opacity 0.3s;
}

/* =============================================
   LAYOUT CONTAINER
   ============================================= */
.nfg-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nfg-container { padding: 0 1.25rem; }
}

/* =============================================
   HEADER
   ============================================= */
.nfg-header {
    border-bottom: 1px solid #eee;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nfg-header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .nfg-header-top {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 10px;
        margin-bottom: 0;
    }
}

.nfg-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nfg-logo { text-align: center; }

.nfg-logo img {
    height: 52px;
    margin: 0 auto;
    display: block;
}

.nfg-logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 1024px) {
    .nfg-logo img        { height: 38px !important; }
    .nfg-logo-tagline    { font-size: 8px !important; letter-spacing: 1.5px !important; margin-top: 4px !important; }
}

.nfg-header-right {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.nfg-btn-gr {
    background: var(--news-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 11px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.nfg-btn-gr:hover       { background: #000 !important; color: #fff; }

.nfg-btn-gr-mobile {
    display: none;
    background: var(--news-blue);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 10px;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
}

.nfg-btn-subscribe {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 11px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.nfg-btn-subscribe:hover { background: #000 !important; color: #fff; }

@media (max-width: 768px) {
    .nfg-btn-gr        { display: none; }
    .nfg-btn-subscribe { display: none; }
    .nfg-btn-gr-mobile { display: flex; }
}

/* Navigation */
.nfg-nav {
    border-top: 1px solid #eee;
    padding: 15px 0;
    position: relative;
}

.nfg-nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nfg-nav-links a            { color: #000; }
.nfg-nav-links a:hover      { color: var(--news-blue); }
.nfg-nav-links a.active     { color: var(--news-blue); position: relative; }
.nfg-nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--news-blue);
}

.nfg-burger-desktop {
    position: absolute;
    right: 0;
    top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) { .nfg-nav { display: none !important; } }

/* =============================================
   MOBILE MENU
   ============================================= */
.nfg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.nfg-overlay.active     { display: block; }

.nfg-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    transition: left 0.4s;
    padding: 40px;
    overflow-y: auto;
}

.nfg-mobile-menu.active { left: 0; }

.nfg-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.nfg-mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    display: block;
}

.nfg-mobile-section-title {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 3px;
    margin: 32px 0 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    text-transform: uppercase;
}

.nfg-mobile-sub-link {
    display: block;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: lowercase;
    opacity: 0.7;
    font-family: 'Inter', sans-serif;
}

/* =============================================
   HERO SECTION
   ============================================= */
.nfg-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    margin: 30px 0 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .nfg-hero { grid-template-columns: 1fr; gap: 30px; }
}

.nfg-hero-img {
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.nfg-hero-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nfg-hero-img:hover img { transform: scale(1.03); }

.nfg-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nfg-hero-label {
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    text-transform: uppercase;
}

.nfg-hero-title {
    font-size: 3.1rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 950;
    color: #000;
}

@media (max-width: 768px) { .nfg-hero-title { font-size: 2.2rem; } }

.nfg-hero-excerpt {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.5;
    border-left: 5px solid #f3f4f6;
    padding-left: 25px;
    font-style: italic;
}

.nfg-hero-meta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =============================================
   HERO SUB-GRID (2 articles below main hero)
   ============================================= */
.nfg-hero-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 0 50px;
}

@media (max-width: 768px) {
    .nfg-hero-sub { grid-template-columns: 1fr; gap: 30px; }
}

.nfg-hero-sub-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nfg-hero-sub-img {
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.nfg-hero-sub-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nfg-hero-sub-img:hover img { transform: scale(1.03); }

.nfg-hero-sub-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfg-hero-sub-label {
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 10px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    text-transform: uppercase;
}

.nfg-hero-sub-label a {
    color: var(--accent);
    text-decoration: none;
}

.nfg-hero-sub-title {
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1.15;
    margin: 0;
}

@media (max-width: 768px) {
    .nfg-hero-sub-title { font-size: 1.3rem; }
}

.nfg-hero-sub-title a {
    color: #000;
    text-decoration: none;
}

.nfg-hero-sub-title a:hover { color: var(--accent); }

.nfg-hero-sub-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =============================================
   NEWS GRID 3x4
   ============================================= */
.nfg-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .nfg-news-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .nfg-news-grid { grid-template-columns: 1fr; gap: 40px; }
}

.nfg-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nfg-card-img {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
}

.nfg-card-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nfg-card-img:hover img { transform: scale(1.04); }

.nfg-card-cat {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nfg-card-topic {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #ddd;
}
.nfg-card-topic:hover { color: var(--news-blue); }

.nfg-card-title {
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.25;
    color: #000;
}

.nfg-card-title:hover { color: var(--news-blue); }

.nfg-card-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.nfg-card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
}

/* =============================================
   OPINION SECTION
   ============================================= */
.nfg-opinion {
    margin: 60px 0;
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
}

.nfg-opinion-label-wrap {
    display: flex;
    justify-content: center;
    margin-top: -82px;
    margin-bottom: 50px;
}

.nfg-opinion-label {
    background: #fff;
    color: #000;
    padding: 8px 35px;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    border: 1.5px solid #eee;
}

.nfg-opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) { .nfg-opinion-grid { grid-template-columns: 1fr; } }

.nfg-op-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.nfg-op-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.nfg-op-card:hover .nfg-op-img { filter: grayscale(0%); }

.nfg-op-author {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.nfg-op-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 950;
    line-height: 1.3;
    color: #000;
}

.nfg-op-title:hover { color: var(--news-blue); }

/* =============================================
   TAG SECTION — "Troubling our mind"
   ============================================= */
.nfg-tag-section { margin: 100px 0; }

.nfg-tag-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 950;
    margin-bottom: 45px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nfg-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) { .nfg-tag-grid { grid-template-columns: 1fr; } }

.nfg-tag-item {
    position: relative;
    aspect-ratio: 1 / 0.7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
}

/* Tag images: BW + dark by default, color + brighter + zoom on hover */
.nfg-tag-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: grayscale(100%) contrast(1.1) brightness(0.75);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.nfg-tag-item:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(1.1);
    transform: scale(1.07);
}

.nfg-tag-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-color: #000;
    opacity: 0.45;
    transition: background-color 0.5s, opacity 0.5s;
}

.nfg-tag-item:hover .nfg-tag-overlay { opacity: 0.25; }

/* Per-tag accent colors on hover */
.nfg-tag-item:nth-child(1):hover .nfg-tag-overlay { background-color: var(--primary); }
.nfg-tag-item:nth-child(2):hover .nfg-tag-overlay { background-color: var(--accent); }
.nfg-tag-item:nth-child(3):hover .nfg-tag-overlay { background-color: #1A1A1A; }
.nfg-tag-item:nth-child(4):hover .nfg-tag-overlay { background-color: #4A148C; }
.nfg-tag-item:nth-child(5):hover .nfg-tag-overlay { background-color: #1B5E20; }
.nfg-tag-item:nth-child(6):hover .nfg-tag-overlay { background-color: #E65100; }

.nfg-tag-title {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0,0,0,0.9), 
                 0 0 40px rgba(0,0,0,0.9),
                 0 2px 4px rgba(0,0,0,1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    color: #fff !important;
}

.nfg-tag-item:hover .nfg-tag-title { transform: scale(1.1); }

.nfg-tag-divider {
    border: 0;
    border-top: 1.5px solid #eee;
    margin-top: 60px;
}

/* =============================================
   LATEST NEWS + NEWSLETTER
   ============================================= */
.nfg-latest-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 70px;
    margin: 80px 0;
}

@media (max-width: 1024px) { .nfg-latest-container { grid-template-columns: 1fr; } }

.nfg-latest-title {
    font-size: 2rem;
    border-bottom: 3.5px solid #000;
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
    font-weight: 950;
}

.nfg-news-item {
    display: flex;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid #f2f2f2;
    align-items: flex-start;
}

.nfg-news-item-age {
    color: var(--accent);
    font-weight: 950;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    min-width: 28px;
    flex-shrink: 0;
}

.nfg-news-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.nfg-news-item h4:hover { color: var(--news-blue); }

.nfg-view-all {
    margin-top: 25px;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 950;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1.5px;
}

.nfg-view-all:hover { color: var(--news-blue); }

/* Newsletter */
.nfg-newsletter {
    background: var(--news-blue);
    color: #fff;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nfg-newsletter img {
    height: 35px;
    width: fit-content;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.nfg-newsletter p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 700;
    font-family: 'Source Serif 4', serif;
}

.nfg-newsletter input[type="email"] {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    padding: 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
}

.nfg-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }

.nfg-newsletter button {
    background: #fff;
    color: var(--news-blue);
    font-weight: 950;
    padding: 20px;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    width: 100%;
    transition: background 0.3s, color 0.3s;
}

.nfg-newsletter button:hover { background: var(--primary); color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
.nfg-footer {
    background: #fff;
    padding: 100px 0 60px;
    border-top: 1px solid #eee;
    color: #111;
}

.nfg-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 1024px) { .nfg-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px)  { .nfg-footer-grid { grid-template-columns: 1fr; text-align: center; } }

.nfg-footer-logo {
    height: 45px;
    margin-bottom: 30px;
    display: block;
}

@media (max-width: 768px) {
    .nfg-footer-logo { margin-left: auto; margin-right: auto; }
}

.nfg-manifesto {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    text-align: justify;
}

@media (max-width: 768px) { .nfg-manifesto { text-align: center; } }

.nfg-footer-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #000;
}

.nfg-footer-nav ul  { list-style: none; padding: 0; margin: 0; }
.nfg-footer-nav li  { margin-bottom: 12px; }
.nfg-footer-nav a   { color: #888; font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif; transition: color 0.3s; }
.nfg-footer-nav a:hover { color: var(--news-blue); }

.nfg-footer-credit {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 50px;
    font-size: 9px;
    color: #bbb;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 80px;
    font-family: 'Inter', sans-serif;
}

/* =============================================
   SINGLE POST
   ============================================= */
.nfg-single {
    max-width: 780px;
    margin: 60px auto;
    padding: 0 2rem;
}

.nfg-single-cat {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 950;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 20px;
    display: inline-block;
}

.nfg-single-title {
    font-size: 2.8rem;
    font-weight: 950;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
}

@media (max-width: 768px) { .nfg-single-title { font-size: 2rem; } }

.nfg-single-meta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 950;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.nfg-single-featured {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.nfg-single-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

.nfg-single-content p           { margin-bottom: 1.5em; }
.nfg-single-content h2          { font-size: 1.8rem; margin: 2em 0 0.75em; }
.nfg-single-content h3          { font-size: 1.4rem; margin: 1.75em 0 0.5em; }
.nfg-single-content blockquote  { border-left: 5px solid #f3f4f6; padding-left: 25px; font-style: italic; color: #444; margin: 2em 0; }

/* Sources */
.nfg-sources { margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.nfg-sources h2 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 950; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.nfg-sources ul { list-style: none; padding: 0; }
.nfg-sources li { margin-bottom: 10px; font-size: 0.9rem; }
.nfg-sources a  { color: var(--news-blue); }
.nfg-sources a:hover { text-decoration: underline; }

/* =============================================
   UTILITIES
   ============================================= */
@media (max-width: 1024px) { .nfg-hide-mobile  { display: none !important; } }
@media (min-width: 1025px) { .nfg-hide-desktop { display: none !important; } }

.nfg-single-wrap {
    max-width: 964px;
    margin: 60px auto;
    padding: 0 2rem;
    width: 100%;
}

.site-main {
    width: 100% !important;
    max-width: 100% !important;
}

.sidebar {
    display: none !important;
}

body.single .site-main {
    margin: 0 auto;
}

body.single #page.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.single .site-content {
    max-width: 100% !important;
    width: 100% !important;
}

body.single .site-content {
    display: flex;
    justify-content: center;
}

body.single main {
    width: 100%;
    max-width: 1320px;
    padding: 0 2rem;
}
.nfg-single-content .wp-caption-text,
.nfg-single-content figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #444;
    text-align: left;
    margin-top: 6px;
    margin-bottom: 2em;
    font-style: italic;
    padding: 0;
    display: block;
}

.nfg-meta-published {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.nfg-meta-updated {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 3px;
}

.nfg-single-wrap .nfg-single-tag-section,
.nfg-single-wrap .nfg-recent-grid-wrap,
.nfg-single-wrap .nfg-related {
    max-width: 100%;
    width: 100%;
}


/* ── Header search form ─────────────────────────────────────────────── */
.nfg-header-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nfg-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: currentColor;
    display: flex;
    align-items: center;
}
.nfg-header-search-form {
    display: none;
    align-items: center;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1.5px solid #000;
    width: 260px;
    z-index: 9999;
}
.nfg-header-search.is-open .nfg-header-search-form {
    display: flex;
}
.nfg-header-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 7px 12px;
    background: transparent;
    min-width: 0;
}
.nfg-header-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 10px;
    color: #000;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* =============================================
   FIGURE CAROUSEL (Swiper)
   ============================================= */
.nfg-carousel-wrap {
    margin: 2rem 0;
    width: 100%;
}
.nfg-carousel-wrap .swiper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}
/* Fixed 16:9 slide — portrait images shrink to fit, landscape fills the box */
.nfg-carousel-wrap .nfg-slide {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}
.nfg-carousel-wrap .nfg-slide figure,
.nfg-carousel-wrap .nfg-slide > img {
    margin: 0;
    width: 100%;
    height: 100%;
}
.nfg-carousel-wrap .nfg-slide figure img,
.nfg-carousel-wrap .nfg-slide > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.nfg-carousel-wrap .swiper-button-next,
.nfg-carousel-wrap .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.35);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.nfg-carousel-wrap .swiper-button-next::after,
.nfg-carousel-wrap .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}
.nfg-carousel-wrap .swiper-pagination-bullet-active {
    background: var(--accent);
}

/* =============================================
   MOBILE SINGLE PAGE — zero horizontal padding
   ============================================= */
@media (max-width: 767px) {
    .single header,
    .single footer {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .single .nfg-container,
    .single .nfg-single-wrap,
    .single .nfg-related {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .single main {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ============================================================
   TRP BANNER — responsive promo banner below hero  (v1.0.0)
   ============================================================ */

.nfg-trp-banner-wrap {
    margin: 28px 0 8px;
    width: 100%;
    line-height: 0;
}

.nfg-trp-banner-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(8, 37, 69, 0.10);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}

.nfg-trp-banner-link:hover {
    box-shadow: 0 8px 32px rgba(8, 37, 69, 0.18);
    transform: translateY(-2px);
}

.nfg-trp-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Desktop banner: show on ≥ 768px */
.nfg-trp-banner--desktop { display: block; }
.nfg-trp-banner--mobile  { display: none;  }

@media (max-width: 767px) {
    .nfg-trp-banner-wrap {
        margin: 16px 0 4px;
        border-radius: 8px;
    }
    .nfg-trp-banner--desktop { display: none;  }
    .nfg-trp-banner--mobile  { display: block; }
    .nfg-trp-banner-link {
        border-radius: 8px;
    }
    .nfg-trp-banner {
        border-radius: 8px;
    }
}
