/*
Theme Name: JF Noticias Custom
Theme URI: https://jfnoticias.local
Author: Jota Finanças
Author URI: https://jfnoticias.local
Description: Tema customizado para JF Notícias - Navy header, light gray background, golden accents
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: jf-noticias-custom
Domain Path: /languages
*/

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&family=Cormorant+Garamond:wght@400;600;700&display=swap');

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #E6E8EB;
}

body {
  background-color: #E6E8EB;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* ===== HEADER ===== */
.site-header {
  position: relative;
  background-image: url('./images/header-bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
  padding: 50px 0;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
}

/* Overlay para opacidade 80% */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 21, 48, 0.8);
  pointer-events: none;
  z-index: 1;
}

/* Garantir que o conteúdo fica acima */
.site-header > * {
  position: relative;
  z-index: 2;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo (Left) */
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 80px;
  width: auto;
}

/* Title & Slogan (Center) */
.site-identity {
  flex: 1;
  text-align: center;
}

.site-title {
  font-size: 3.8em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.1;
  letter-spacing: 1px;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

.site-tagline {
  font-size: 0.75em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #E6E8EB;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* Social Media Icons (Right) */
.header-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--jf-accent-color, #9B6B3C);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.site-description {
  display: none;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  position: relative;
  background-image: url('./images/header-bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 1 0 0;
}

/* Overlay para opacidade 80% no menu */
.main-navigation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 21, 48, 0.8);
  pointer-events: none;
  z-index: 1;
}

/* Garantir que o conteúdo do menu fica acima */
.main-navigation > * {
  position: relative;
  z-index: 2;
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 2px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--jf-accent-color, #9B6B3C);
  transition: width 0.4s ease;
}

.main-navigation a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Submenu Styling */
.main-navigation .sub-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(4, 10, 26, 0.75);
  border: 1px solid var(--jf-accent-color, #9B6B3C);
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 8px 0;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
  z-index: 1000;
}

.main-navigation .menu-item-has-children {
  position: relative;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu .menu-item {
  padding: 0;
  position: relative;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95em;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.main-navigation .sub-menu a:hover {
  background: rgba(155, 107, 60, 0.15);
  color: var(--jf-accent-color, #9B6B3C);
}

.main-navigation .sub-menu a::after {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FINANCIAL INDICATORS ===== */
.financial-indicators {
  background: #E6E8EB;
  border-top: 3px solid var(--jf-accent-color, #9B6B3C);
  padding: 15px 20px;
}

.indicators-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.indicators-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.indicator-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator-label {
  font-weight: 700;
  color: var(--jf-primary-color, #040a1a);
}

.indicator-value {
  color: #333;
}

.indicator-value.positive {
  color: #27ae60;
}

.indicator-value.negative {
  color: #e74c3c;
}

/* ===== MAIN CONTENT ===== */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* ===== CAROUSEL & PANELS ===== */
.carousel-panels-row {
  background-color: #E6E8EB;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
  padding: 20px 0;
  position: relative;
  margin-bottom: 30px;
}

.carousel-panels-row::before,
.carousel-panels-row::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.carousel-panels-row::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.carousel-panels-row::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.carousel-panels-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
}

.carousel-section {
  width: 100%;
}

/* Right Sidebar: Panels + Video */
.panels-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
}

/* Panels 2-3 Section - 2 Cards Side by Side */
.panels-2-3-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: white;
  height: 245px;
}

.panel-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-category {
  color: var(--jf-accent-color, #9B6B3C);
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-title {
  margin: 4px 0 8px 0;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.3;
}

.panel-title a {
  color: var(--jf-primary-color, #040a1a);
  text-decoration: none;
}

.panel-title a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

.panel-meta {
  margin-top: auto;
  font-size: 0.75em;
  color: #999;
}

/* Carousel Styles */
.carousel-wrapper {
  position: relative;
  height: 500px;
}

.carousel-slide {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f9f9f9;
  height: 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  transition: background 0.3s ease;
  z-index: 5;
}

.carousel-slide:hover .carousel-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
}

.carousel-category {
  display: inline-block;
  background-color: var(--jf-primary-color, #040a1a);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: 600;
  margin-bottom: 10px;
}

.carousel-title {
  margin: 0 0 10px 0;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3;
}

.carousel-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.carousel-title a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

.carousel-excerpt {
  margin: 0 0 15px 0;
  color: #ddd;
  font-size: 0.95em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85em;
  color: #bbb;
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--jf-accent-color, #9B6B3C);
}

/* Panel 2-3 Cards */

/* ===== VIDEO PLAYER CARD ===== */
.video-player-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--jf-primary-color, #040a1a) 0%, #1a2a4a 100%);
  display: flex;
  flex-direction: column;
  aspect-ratio: 16/9;
  color: #fff;
  transition: all 0.3s ease;
  border: 2px solid var(--jf-accent-color, #9B6B3C);
}

.video-player-card:hover {
  border-color: #ffd966;
  box-shadow: 0 4px 12px rgba(155, 107, 60, 0.3);
}

.video-placeholder {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(155, 107, 60, 0.1) 0%, rgba(155, 107, 60, 0.05) 100%);
  min-height: 0;
}

.play-icon {
  width: 70px;
  height: 70px;
  color: var(--jf-accent-color, #9B6B3C);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.video-player-card:hover .play-icon {
  color: #ffd966;
  opacity: 1;
  transform: scale(1.15);
}

.video-content {
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(155, 107, 60, 0.3);
  flex-shrink: 0;
}

.video-title {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--jf-accent-color, #9B6B3C);
  line-height: 1.2;
}

.video-description {
  margin: 0;
  font-size: 0.75em;
  color: #ddd;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-link {
  color: var(--jf-accent-color, #9B6B3C);
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.video-link:hover {
  color: #ffd966;
  transform: translateX(4px);
}

/* ===== GRID PANELS (5-8) ===== */
.grid-row {
  background-color: #E6E8EB;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 30px;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.grid-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  height: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.grid-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--jf-accent-color, #9B6B3C);
  transform: translateY(-2px);
}

.grid-card-image {
  display: none !important;
}

.grid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-card-overlay {
  display: none;
}

.grid-card-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
  background: #fff;
}

.grid-card-title {
  margin: 0;
  font-size: 1.56em;
  font-weight: 700;
  color: #333;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.5px;
  font-style: italic;
}

.grid-card-link-btn {
  color: var(--jf-accent-color, #9B6B3C);
  font-weight: 700;
  font-size: 0.8em;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.grid-card-link-btn:hover {
  color: #a87e2b;
}

.grid-card-posts {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.grid-post-item {
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
}

.grid-post-item:last-child {
  border-bottom: none;
}

.grid-post-item:hover {
  background: #fafafa;
  transform: translateX(2px);
}

.grid-post-item-featured {
  padding: 0;
  border: none !important;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
}

.grid-post-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 0;
}

.grid-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-post-item-featured .grid-post-category,
.grid-post-item-featured .grid-post-title {
  padding: 0 12px;
}

.grid-post-item-featured .grid-post-title {
  padding-bottom: 12px;
}

.grid-post-title {
  color: var(--jf-primary-color, #040a1a);
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  padding: 0 12px;
}

.grid-post-item-featured .grid-post-title {
  font-weight: 700;
  font-size: 0.95em;
}

.grid-post-category {
  display: inline-block;
  color: var(--jf-accent-color, #9B6B3C);
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  padding: 0 12px;
  margin-top: 4px;
}

.grid-category {
  display: inline-block;
  background-color: var(--jf-primary-color, #040a1a);
  color: #fff;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65em;
  font-weight: 600;
  margin-bottom: 6px;
  width: fit-content;
}

.grid-title {
  margin: 0 0 8px 0;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.grid-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.grid-title a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

.grid-meta {
  display: flex;
  gap: 8px;
  font-size: 0.75em;
  color: #999;
}

/* ===== ADVERTISEMENT PANEL ===== */
.ad-row {
  background-color: #E6E8EB;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 30px;
}

.ad-placeholder {
  background-color: #f0f0f0;
  border: 2px dashed #ddd;
  padding: 40px 20px;
  text-align: center;
  color: #999;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.ad-placeholder p {
  margin: 0;
  font-weight: 600;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background-color: #E6E8EB;
  padding: 15px;
  border-radius: 4px;
  height: fit-content;
}

.adsense-placeholder-sidebar {
  background-color: #fff;
  padding: 0;
}

.adsense-placeholder-sidebar .adsense-placeholder {
  background-color: #f5f5f5;
  border: 2px dashed #ddd;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.adsense-placeholder-sidebar .adsense-placeholder p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95em;
}

.widget {
  margin-bottom: 20px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--jf-accent-color, #9B6B3C);
  color: var(--jf-primary-color, #040a1a);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--jf-primary-color, #040a1a);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: var(--jf-accent-color, #9B6B3C);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--jf-primary-color, #040a1a);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 40px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 1 0 0 0;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget h3 {
  margin-bottom: 12px;
  color: var(--jf-accent-color, #9B6B3C);
  font-size: 1.2em;
  line-height: 1.3;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 6px;
}

.footer-widget p {
  color: #ddd;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
}

.footer-widget a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
  line-height: 1.4;
}

.footer-widget a:hover {
  color: var(--jf-accent-color, #9B6B3C);
  text-decoration: underline;
}

.footer-disclaimer {
  text-align: center;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  color: #bbb;
  font-size: 0.68em;
  line-height: 1.3;
}

.footer-disclaimer p {
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #333;
  color: #bbb;
  font-size: 0.72em;
  line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    justify-content: center;
  }

  .header-logo {
    order: 1;
  }

  .site-identity {
    order: 2;
  }

  .header-social {
    order: 3;
    justify-content: center;
  }

  .site-title {
    font-size: 2.4em;
  }

  .site-tagline {
    font-size: 0.65em;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }

  .main-navigation ul {
    gap: 15px;
  }

  .carousel-panels-container {
    grid-template-columns: 1fr;
  }

  .panels-sidebar {
    grid-template-rows: auto auto;
  }

  .panels-2-3-section {
    grid-template-columns: 1fr;
  }

  .panel-card {
    display: flex;
    flex-direction: column;
  }

  .panel-image {
    height: 150px;
  }

  .panel-title {
    font-size: 0.9em;
  }

  .video-player-card {
    aspect-ratio: 16/9;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }

  .header-logo {
    order: 1;
  }

  .site-identity {
    order: 2;
  }

  .header-social {
    order: 3;
    justify-content: center;
  }

  .site-title {
    font-size: 1.8em;
  }

  .site-tagline {
    font-size: 0.6em;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

  .main-navigation ul {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .carousel-wrapper {
    height: 300px;
  }

  .carousel-title {
    font-size: 1.1em;
  }

  .carousel-excerpt {
    display: none;
  }

  .panels-2-3-section {
    grid-template-columns: 1fr;
  }

  .panel-image {
    height: 120px;
  }

  .panel-title {
    font-size: 0.85em;
  }

  .panel-content {
    padding: 10px;
  }

  .panel-meta {
  }

  .panels-sidebar {
    grid-template-rows: auto auto;
    gap: 15px;
  }

  .video-player-card {
    aspect-ratio: 16/9;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .indicators-list {
    gap: 15px;
    font-size: 0.9em;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
/* ===== Financial Ticker Section ===== */
.financial-ticker-section {
    background: #E6E8EB !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;

    /* Gradient fade borders (golden) */
    border-top: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    background-image:
        linear-gradient(#f5f5f5, #f5f5f5),
        linear-gradient(90deg, var(--jf-accent-color, #9B6B3C) 0%, rgba(155, 107, 60, 0.5) 50%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(155, 107, 60, 0.5) 50%, var(--jf-accent-color, #9B6B3C) 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box, border-box !important;
    background-size: 100% 100%, 100% 1px, 100% 1px !important;
    background-position: 0 0, 0 0, 0 100% !important;
    background-repeat: no-repeat !important;
}

.ticker-scroll {
    display: flex !important;
    animation: scroll-left 40s linear infinite !important;
    gap: 8px !important;
    padding: 0 20px !important;
    will-change: transform !important;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

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

.ticker-item {
    flex: 0 0 auto !important;
    min-width: 100px !important;
    padding: 6px 10px !important;
    background: #E6E8EB !important;
    border-left: 3px solid var(--jf-accent-color, #9B6B3C) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.ticker-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ticker-item.index {
    border-left-color: var(--jf-primary-color, #040a1a);
}

.ticker-item.stock {
    border-left-color: #27ae60;
}

.ticker-item.currency {
    border-left-color: #3498db;
}

.ticker-item.rate {
    border-left-color: #e67e22;
}

.ticker-symbol {
    font-weight: 700;
    color: var(--jf-primary-color, #040a1a);
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.ticker-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--jf-primary-color, #040a1a);
    margin-bottom: 2px;
    display: block;
}

.ticker-change {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 2px;
    background: #ecf0f1;
    display: block;
}

.ticker-change.positive {
    color: #a3e635;
    background: #d5f4e6;
}

.ticker-change.negative {
    color: #e74c3c;
    background: #fadbd8;
}

/* Responsive */
@media (max-width: 768px) {
    .financial-ticker-section {
        padding: 6px 0;
    }
    
    .ticker-scroll {
        padding: 0 10px;
        gap: 6px;
    }
    
    .ticker-item {
        min-width: 85px;
        padding: 5px 8px;
    }
    
    .ticker-symbol {
        font-size: 10px;
    }
    
    .ticker-value {
        font-size: 11px;
    }
    
    .ticker-change {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .financial-ticker-section {
        padding: 5px 0;
    }
    
    .ticker-scroll {
        padding: 0 8px;
        gap: 5px;
    }
    
    .ticker-item {
        min-width: 75px;
        padding: 4px 6px;
    }
    
    .ticker-symbol {
        font-size: 9px;
    }
    
    .ticker-value {
        font-size: 10px;
    }
    
    .ticker-change {
        font-size: 8px;
        padding: 1px 3px;
    }
}

/* ===== POSTS LIST + SIDEBAR SECTION ===== */
.posts-sidebar-row {
  background-color: #E6E8EB;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
  padding: 40px 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.posts-sidebar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

/* Posts List Section */
.posts-list-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  padding-right: 20px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Post List Item - Base: Desktop layout 150px image left + content right */
.post-list-item {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  padding: 12px !important;
  background: white !important;
  border-bottom: 2px solid #ddd !important;
  border-image: linear-gradient(to right, var(--jf-accent-color, #9B6B3C), var(--jf-accent-color, #9B6B3C) 40%, transparent) 0 0 1 0 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  color: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: flex-start !important;
  margin-bottom: 3px !important;
}

.post-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-list-item:hover {
  background: #fafafa !important;
  transform: translateX(2px) !important;
  border-radius: 4px !important;
  border-bottom-color: var(--jf-accent-color, #9B6B3C) !important;
}

.post-list-item:visited,
.post-list-item:link {
  color: inherit;
  text-decoration: none;
}

.post-list-item * {
  text-decoration: none !important;
}

.post-list-item a {
  text-decoration: none !important;
  color: inherit !important;
}

.post-list-item a:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.post-list-item a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.post-list-item a:link {
  text-decoration: none !important;
  color: inherit !important;
}

.post-list-item a:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Image Container */
.post-list-image {
  display: flex;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  object-fit: cover;
}

.post-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Container */
.post-list-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.post-list-category {
  color: var(--jf-accent-color, #9B6B3C);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  display: block;
  text-decoration: none !important;
}

.post-list-title {
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--jf-primary-color, #040a1a);
  text-decoration: none !important;
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.post-list-excerpt {
  display: none;
}

.post-list-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #bbb;
  margin: 0;
  padding: 0;
  text-decoration: none !important;
}

.post-list-time {
  text-decoration: none !important;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.pagination span,
.pagination a {
  display: inline-block !important;
  padding: 10px 14px !important;
  color: var(--jf-accent-color, #9B6B3C) !important;
  text-decoration: none !important;
  font-size: 0.95em !important;
  transition: all 0.3s ease !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  background-color: #fff !important;
}

.pagination a:hover {
  color: #A67C2A !important;
  border-color: var(--jf-accent-color, #9B6B3C) !important;
  background-color: #faf5f0 !important;
}

.pagination .current {
  color: #fff !important;
  background-color: var(--jf-accent-color, #9B6B3C) !important;
  border-color: var(--jf-accent-color, #9B6B3C) !important;
  font-weight: 600 !important;
}

/* AdSense Sidebar */
.adsense-sidebar {
  display: flex;
  flex-direction: column;
}

.adsense-placeholder {
  background-color: #f0f0f0;
  border: 2px dashed #ddd;
  padding: 40px 20px;
  text-align: center;
  color: #999;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

.adsense-placeholder p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95em;
}

/* ===== SIDEBAR AGENDA SECTION ===== */
.sidebar-agenda-section {
  margin-bottom: 20px;
}

.sidebar-agenda-section .weekly-agenda-card {
  margin: 0 !important;
}

.affiliate-panel {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 20px;
  text-align: center;
  color: #999;
  border-radius: 4px;
  margin-bottom: 20px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-panel p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9em;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop/Tablet: >= 769px - Horizontal layout with 150px image */
@media (min-width: 769px) {
  .post-list-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  .post-list-image {
    width: 150px !important;
    height: 150px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 1024px) {
  .posts-sidebar-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .adsense-sidebar {
    order: 2;
  }
}

/* Tablet: 769px - 768px */
@media (max-width: 768px) {
  .posts-sidebar-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-list-item {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .post-list-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    flex-shrink: 1;
  }

  .post-list-title {
    font-size: 15px;
  }

  .panel-excerpt {
    font-size: 0.8em;
    -webkit-line-clamp: 2;
  }

  .adsense-placeholder {
    min-height: 300px;
  }
}

/* Mobile: <= 480px */
@media (max-width: 480px) {
  .posts-sidebar-row {
    padding: 15px 0;
  }

  .posts-sidebar-container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.2em;
  }

  .post-list-item {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    padding: 10px 8px;
  }

  .post-list-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    flex-shrink: 1;
  }

  .post-list-title {
    font-size: 14px;
  }

  .panel-excerpt {
    font-size: 0.75em;
    -webkit-line-clamp: 1;
  }

  .post-list-meta {
    font-size: 0.65em;
    gap: 8px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination a,
  .pagination span {
    display: inline-block !important;
    min-width: 32px;
    height: 32px;
    padding: 8px 12px !important;
    font-size: 0.8em;
    color: var(--jf-accent-color, #9B6B3C) !important;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
  }

  .pagination a:visited {
    color: var(--jf-accent-color, #9B6B3C) !important;
  }

  .pagination a:hover {
    background-color: #faf5f0 !important;
    border-color: var(--jf-accent-color, #9B6B3C) !important;
  }

  .pagination .current {
    background-color: var(--jf-accent-color, #9B6B3C) !important;
    color: #fff !important;
    border-color: var(--jf-accent-color, #9B6B3C) !important;
  }

  .adsense-placeholder {
    min-height: 250px;
    padding: 30px 15px;
  }
}

/* ===== SECTION HEADER & TITLE ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--jf-accent-color, #9B6B3C) 15%, var(--jf-accent-color, #9B6B3C) 85%, transparent) 0 0 1 0;
}

.section-title {
  margin: 0;
  font-size: 1.56em;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.5px;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  display: block;
  line-height: 1.3;
}

.posts-list-section .section-title {
  font-size: 1.56em !important;
  font-weight: 700 !important;
  color: var(--jf-accent-color, #9B6B3C) !important;
  letter-spacing: 0.5px !important;
  font-style: italic !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Extra specificity to ensure color applies */
.posts-sidebar-container .posts-list-section .section-header .section-title {
  color: var(--jf-accent-color, #9B6B3C) !important;
}

.section-link-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--jf-accent-color, #9B6B3C);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Posts List - Remove bottom border from last item */
.post-list-item:last-child {
  border-bottom: none !important;
}
