/*
Theme Name: Fernando Ribeiro Notícias
Theme URI: https://fernandoribeironoticias.com.br/
Author: Fernando Ribeiro Notícias
Description: Tema clássico responsivo para portal de notícias regional, com áreas dedicadas de publicidade via Widgets (compatível com AdRotate), destaque em slider, barra Urgente, ranking de matérias mais lidas, botão para grupo do WhatsApp e personalização pelo Personalizador do WordPress.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frn-news
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options
*/

:root {
    --frn-bg: #f1f4f9;
    --frn-surface: #ffffff;
    --frn-navy: #050a1a;
    --frn-navy-dark: #030617;
    --frn-navy-soft: #111933;
    --frn-red: #dc2626;
    --frn-red-dark: #b91c1c;
    --frn-red-deep: #991b1b;
    --frn-green: #22c55e;
    --frn-wa: #25d366;
    --frn-wa-dark: #16a34a;
    --frn-text: #0f172a;
    --frn-text-body: #334155;
    --frn-text-muted: #64748b;
    --frn-text-light: #94a3b8;
    --frn-border: #e2e8f0;
    --frn-border-soft: #f1f5f9;
    --frn-radius: 12px;
    --frn-radius-lg: 14px;
    --frn-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --frn-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.09);
    --frn-container: 1180px;
    --frn-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset & Strict Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    font-family: var(--frn-font);
    background-color: var(--frn-bg);
    color: var(--frn-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
}

img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe, embed, object {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

button, input {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.frn-container {
    width: 100%;
    max-width: var(--frn-container);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Enforce containment on major wrappers */
.frn-top-ad-wrap,
.frn-header-main,
.frn-nav-wrap,
.frn-ticker-bar,
.frn-main-wrap,
.frn-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* ==========================================================================
   HEADER: Top Ad Banner, Logo/Search Row, Navigation, Breaking News Ticker
   ========================================================================== */
.frn-top-ad-wrap {
    background: var(--frn-surface);
    border-bottom: 1px solid var(--frn-border);
    padding: 12px 0;
}

.frn-top-ad-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.frn-top-ad-inner .widget {
    margin: 0;
    max-width: 100%;
    text-align: center;
}

.frn-top-ad-inner img,
.frn-top-ad-inner ins,
.frn-top-ad-inner iframe {
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
}

/* Header Main Bar */
.frn-header-main {
    background: var(--frn-surface);
    padding: 14px 0;
    border-bottom: 1px solid var(--frn-border);
}

.frn-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

/* Brand / Logo */
.frn-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
}

.frn-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.frn-brand .custom-logo-link img {
    max-height: 52px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.frn-brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--frn-navy);
    color: #ffffff;
    padding: 6px 12px 6px 8px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    max-width: 100%;
}

.frn-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    background: var(--frn-red);
    border-radius: 6px;
    color: #ffffff;
    flex-shrink: 0;
}

.frn-brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.frn-brand-name {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frn-brand-sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Search */
.frn-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.frn-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.frn-search-input {
    width: 260px;
    max-width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--frn-border);
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--frn-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.frn-search-input:focus {
    border-color: var(--frn-navy);
    background: #ffffff;
}

.frn-search-submit {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--frn-navy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    flex-shrink: 0;
}

.frn-search-submit:hover {
    background: var(--frn-red);
}

/* Mobile Menu Button */
.frn-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--frn-border);
    border-radius: 8px;
    background: var(--frn-navy);
    color: #ffffff;
    cursor: pointer;
}

/* Primary Navigation Bar */
.frn-nav-wrap {
    background: var(--frn-navy);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(3, 6, 23, 0.18);
    overflow: visible;
}

.frn-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.frn-nav-menu > li {
    position: relative;
}

.frn-nav-menu > li > a {
    display: block;
    padding: 13px 11px;
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.frn-nav-menu > li > a:hover,
.frn-nav-menu > li.current-menu-item > a,
.frn-nav-menu > li.current-category-ancestor > a,
.frn-nav-menu > li.current-post-ancestor > a,
.frn-nav-menu > li.frn-active > a {
    color: #ef4444;
}

/* Submenus */
.frn-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--frn-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.frn-nav-menu li:hover > .sub-menu,
.frn-nav-menu li:focus-within > .sub-menu {
    display: block;
}

.frn-nav-menu .sub-menu a {
    display: block;
    padding: 9px 16px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.frn-nav-menu .sub-menu a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #ffffff;
}

/* Breaking News / URGENTE Ticker (min-width: 0 prevents mobile horizontal blowout!) */
.frn-ticker-bar {
    background: var(--frn-red);
    color: #ffffff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.frn-ticker-inner {
    display: flex;
    align-items: center;
    height: 36px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.frn-ticker-label {
    flex-shrink: 0;
    background: var(--frn-red-deep);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.frn-ticker-viewport {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.frn-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    will-change: transform;
    animation: frnTickerScroll 34s linear infinite;
}

.frn-ticker-bar:hover .frn-ticker-track {
    animation-play-state: paused;
}

.frn-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.frn-ticker-item:hover {
    text-decoration: underline;
}

.frn-ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    display: inline-block;
    flex-shrink: 0;
}

@keyframes frnTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================================== */
.frn-main-wrap {
    padding: 24px 0 44px;
}

.frn-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.frn-main-col,
.frn-sidebar {
    min-width: 0;
    max-width: 100%;
}

/* ==========================================================================
   HERO SLIDER (HOME)
   ========================================================================== */
.frn-hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: var(--frn-radius-lg);
    overflow: hidden;
    background: var(--frn-navy);
    margin-bottom: 28px;
    box-shadow: var(--frn-shadow);
    aspect-ratio: 16 / 9.4;
    min-height: 360px;
}

.frn-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.frn-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.frn-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.frn-hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.frn-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.frn-hero-slide:hover .frn-hero-img {
    transform: scale(1.02);
}

.frn-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(3, 6, 23, 0.94) 0%,
        rgba(3, 6, 23, 0.56) 45%,
        rgba(3, 6, 23, 0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 30px 26px;
}

.frn-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.frn-badge-cat {
    display: inline-block;
    background: var(--frn-red);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.2;
}

.frn-hero-date {
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.frn-hero-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(20px, 2.7vw, 31px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 95%;
    overflow-wrap: break-word;
}

.frn-hero-excerpt {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.45;
    max-width: 85%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Controls & Pill Dots */
.frn-hero-dots {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.frn-hero-dot {
    width: 14px;
    height: 4px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.frn-hero-dot.is-active {
    width: 26px;
    background: #ffffff;
}

.frn-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(3, 6, 23, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.frn-hero-slider:hover .frn-hero-arrow {
    opacity: 1;
}

.frn-hero-arrow:hover {
    background: var(--frn-red);
}

.frn-hero-prev { left: 14px; }
.frn-hero-next { right: 14px; }

/* ==========================================================================
   SECTION HEADING ("ÚLTIMAS MATÉRIAS COBERTAS")
   ========================================================================== */
.frn-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid #dbe3ee;
}

.frn-section-title {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--frn-navy);
}

.frn-section-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--frn-green);
    flex-shrink: 0;
}

/* ==========================================================================
   2-COLUMN NEWS CARD GRID
   ========================================================================== */
.frn-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.frn-card {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-shadow: var(--frn-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frn-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--frn-shadow-hover);
}

.frn-card-thumb-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.frn-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.frn-card:hover .frn-card-thumb {
    transform: scale(1.03);
}

.frn-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.frn-card-body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.frn-card-cat {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--frn-red);
    margin-bottom: 6px;
    display: inline-block;
}

.frn-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.32;
    color: var(--frn-text);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.frn-card-title a:hover {
    color: var(--frn-red);
}

.frn-card-excerpt {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--frn-text-muted);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.frn-card-footer {
    padding-top: 10px;
    border-top: 1px solid var(--frn-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--frn-text-light);
}

/* Pagination */
.frn-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.frn-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.frn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    color: var(--frn-text);
    font-size: 13px;
    font-weight: 700;
}

.frn-pagination .page-numbers.current,
.frn-pagination .page-numbers:hover {
    background: var(--frn-navy);
    border-color: var(--frn-navy);
    color: #ffffff;
}

/* Home Bottom Banner Ad */
.frn-home-bottom-ad {
    margin-top: 28px;
    max-width: 100%;
    overflow: hidden;
}

.frn-home-bottom-ad .widget {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius);
    padding: 10px;
    text-align: center;
    box-shadow: var(--frn-shadow);
    max-width: 100%;
    overflow: hidden;
}

.frn-home-bottom-ad img {
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* ==========================================================================
   SIDEBAR: Ad Cards, Bombando / Mais Lidas, Grupo WhatsApp
   ========================================================================== */
.frn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.frn-sidebar-ad-card {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius);
    padding: 14px;
    box-shadow: var(--frn-shadow);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.frn-sidebar-ad-card .widget-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--frn-text-light);
    margin: 0 0 8px;
}

.frn-sidebar-ad-card img,
.frn-sidebar-ad-card iframe,
.frn-sidebar-ad-card ins {
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Popular Posts Card ("Bombando no Portal" / "Mais Lidas do Dia") */
.frn-popular-card {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius);
    padding: 20px;
    box-shadow: var(--frn-shadow);
    max-width: 100%;
}

.frn-popular-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--frn-border-soft);
}

.frn-popular-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--frn-navy);
}

.frn-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.frn-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--frn-border-soft);
}

.frn-popular-item:first-child {
    padding-top: 2px;
}

.frn-popular-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.frn-popular-num {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: #cbd5e1;
    flex-shrink: 0;
    min-width: 28px;
}

.frn-popular-link {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--frn-text);
    overflow-wrap: break-word;
    min-width: 0;
}

.frn-popular-link:hover {
    color: var(--frn-red);
}

/* Dark WhatsApp Group Card */
.frn-whatsapp-card {
    background: var(--frn-navy);
    color: #ffffff;
    border-radius: var(--frn-radius-lg);
    padding: 22px 20px;
    box-shadow: 0 10px 24px rgba(3, 6, 23, 0.16);
    max-width: 100%;
}

.frn-whatsapp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--frn-wa);
    margin-bottom: 8px;
}

.frn-whatsapp-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    color: #ffffff;
}

.frn-whatsapp-desc {
    margin: 0 0 18px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #94a3b8;
}

.frn-whatsapp-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: var(--frn-wa-dark);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.frn-whatsapp-btn:hover {
    background: #15803d;
    color: #ffffff;
}

/* ==========================================================================
   SINGLE POST & PAGE
   ========================================================================== */
.frn-article-card {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius-lg);
    padding: 32px 34px;
    box-shadow: var(--frn-shadow);
    max-width: 100%;
    overflow-wrap: break-word;
}

.frn-article-header {
    margin-bottom: 22px;
}

.frn-article-title {
    margin: 12px 0 14px;
    font-size: clamp(22px, 3vw, 33px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--frn-text);
    overflow-wrap: break-word;
}

.frn-article-lead {
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 3px solid #cbd5e1;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--frn-text-muted);
}

.frn-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--frn-border-soft);
    border-bottom: 1px solid var(--frn-border-soft);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--frn-text-muted);
}

.frn-article-author strong {
    color: var(--frn-text);
}

.frn-article-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.frn-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.frn-article-featured {
    margin: 0 0 14px;
    border-radius: var(--frn-radius);
    overflow: hidden;
    background: #0f172a;
}

.frn-article-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.frn-article-caption {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--frn-text-muted);
    background: #f8fafc;
    border-top: 1px solid var(--frn-border-soft);
}

/* Dark Navy Share Bar right below featured image */
.frn-share-bar {
    background: var(--frn-navy);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.frn-share-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1;
}

.frn-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.frn-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 6px;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.frn-share-btn:hover {
    opacity: 0.9;
}

.frn-share-wa { background: #16a34a; }
.frn-share-fb { background: #1d4ed8; }
.frn-share-x  { background: #334155; }
.frn-share-copy { background: var(--frn-red); }

/* Article Content Typography */
.frn-article-content {
    font-size: 16.5px;
    line-height: 1.82;
    color: var(--frn-text-body);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.frn-article-content p {
    margin: 0 0 1.3em;
}

.frn-article-content h2,
.frn-article-content h3,
.frn-article-content h4 {
    color: var(--frn-text);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.frn-article-content a {
    color: var(--frn-red);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.frn-article-content blockquote {
    margin: 1.5em 0;
    padding: 14px 18px;
    background: #f8fafc;
    border-left: 4px solid var(--frn-red);
    border-radius: 0 8px 8px 0;
    color: var(--frn-text);
    font-style: italic;
}

.frn-article-content img,
.frn-article-content figure {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.frn-article-content table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* Sponsored / End-of-Post Ad Slot */
.frn-post-bottom-ad {
    margin-top: 28px;
    margin-bottom: 22px;
    max-width: 100%;
    overflow: hidden;
}

.frn-post-bottom-ad .widget {
    text-align: center;
    max-width: 100%;
}

.frn-post-bottom-ad img {
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

.frn-sponsored-placeholder {
    background: linear-gradient(90deg, #991b1b, #b91c1c, #991b1b);
    color: #fde68a;
    text-align: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Tags & Back Button */
.frn-article-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.frn-article-tags a {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--frn-text-muted);
}

.frn-article-tags a:hover {
    background: var(--frn-navy);
    color: #ffffff;
}

.frn-back-home-wrap {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--frn-border-soft);
}

.frn-btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--frn-navy);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 11px 18px;
    border-radius: 8px;
}

.frn-btn-back-home:hover {
    background: var(--frn-red);
    color: #ffffff;
}

/* Archive / Search Header */
.frn-archive-header {
    background: var(--frn-surface);
    border: 1px solid var(--frn-border);
    border-radius: var(--frn-radius);
    padding: 20px 24px;
    margin-bottom: 22px;
    border-left: 4px solid var(--frn-red);
}

.frn-archive-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--frn-text);
    overflow-wrap: break-word;
}

.frn-archive-desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--frn-text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.frn-footer {
    background: var(--frn-navy-dark);
    color: #e2e8f0;
    padding: 26px 0;
    margin-top: 20px;
}

.frn-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.frn-footer-copy {
    margin: 0;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.frn-footer-sub {
    margin: 4px 0 0;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.frn-footer-credits {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-align: right;
}

.frn-footer-credits strong {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile — Zero Horizontal Scroll)
   ========================================================================== */
@media (max-width: 980px) {
    .frn-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .frn-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .frn-popular-card,
    .frn-whatsapp-card {
        grid-column: 1 / -1;
    }

    .frn-mobile-toggle {
        display: inline-flex;
    }

    .frn-nav-wrap {
        position: relative;
        overflow-x: clip;
    }

    .frn-nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 14px;
    }

    .frn-nav-menu.is-open {
        display: flex;
    }

    .frn-nav-menu > li > a {
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        white-space: normal;
    }

    .frn-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }
}

@media (max-width: 680px) {
    .frn-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .frn-header-main {
        padding: 12px 0;
    }

    .frn-header-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .frn-brand {
        max-width: calc(100% - 54px);
    }

    .frn-brand .custom-logo-link img {
        max-height: 44px;
    }

    .frn-header-actions {
        width: 100%;
        order: 3;
    }

    .frn-search-form {
        width: 100%;
    }

    .frn-search-input {
        flex: 1 1 auto;
        width: 100%;
        font-size: 14px;
    }

    .frn-main-wrap {
        padding: 16px 0 32px;
    }

    .frn-hero-slider {
        min-height: 260px;
        aspect-ratio: 4 / 3;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .frn-hero-overlay {
        padding: 16px 16px 34px;
    }

    .frn-hero-title {
        font-size: 19px;
        max-width: 100%;
    }

    .frn-hero-excerpt {
        display: none;
    }

    .frn-hero-dots {
        right: 14px;
        bottom: 12px;
    }

    .frn-hero-arrow {
        display: none;
    }

    .frn-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .frn-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .frn-article-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .frn-article-content {
        font-size: 15.5px;
    }

    .frn-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .frn-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .frn-footer-credits {
        text-align: center;
    }
}
