/*
Theme Name: RoadTopper News
Theme URI: https://roadtopper.com
Author: RoadTopper
Author URI: https://roadtopper.com
Description: Custom News-style theme for RoadTopper - Chemicals, Ingredients & Industry Insights. Elementor compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: roadtopper-news
Tags: blog, news, custom-menu, featured-images, threaded-comments, responsive-layout
*/

/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
  --rt-primary:    #0a2540;   /* Deep navy — industry authority */
  --rt-accent:     #e8400c;   /* Burnt orange — energy/chemicals */
  --rt-accent-2:   #f5a623;   /* Amber — secondary highlight */
  --rt-surface:    #f7f8fa;   /* Light grey surface */
  --rt-white:      #ffffff;
  --rt-text:       #1a1a2e;   /* Near-black text */
  --rt-muted:      #5a6478;   /* Meta text */
  --rt-border:     #e2e6ed;   /* Subtle borders */
  --rt-card-bg:    #ffffff;

  --rt-font-head:  'Barlow Condensed', sans-serif;
  --rt-font-body:  'Source Serif 4', Georgia, serif;
  --rt-font-ui:    'Inter', system-ui, sans-serif;

  --rt-radius:     4px;
  --rt-shadow:     0 2px 12px rgba(0,0,0,0.07);
  --rt-shadow-md:  0 4px 24px rgba(0,0,0,0.11);

  --rt-max-width:  1200px;
  --rt-sidebar-w:  320px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--rt-font-body);
  color: var(--rt-text);
  background: var(--rt-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--rt-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   CONTAINER
   ============================================= */
.rt-container {
  max-width: var(--rt-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TOP BAR
   ============================================= */
.rt-topbar {
  background: var(--rt-primary);
  color: rgba(255,255,255,0.7);
  font-family: var(--rt-font-ui);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--rt-accent);
}
.rt-topbar .rt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rt-topbar a { color: rgba(255,255,255,0.7); }
.rt-topbar a:hover { color: var(--rt-accent-2); }
.rt-topbar-left { display: flex; gap: 20px; align-items: center; }
.rt-topbar-right { display: flex; gap: 16px; align-items: center; }
.rt-topbar-date { opacity: 0.6; }

/* =============================================
   HEADER
   ============================================= */
.rt-header {
  background: var(--rt-white);
  border-bottom: 3px solid var(--rt-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--rt-shadow);
}
.rt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.rt-logo img {
  height: 44px;
  width: auto;
}
.rt-logo-text {
  font-family: var(--rt-font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--rt-primary);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.rt-logo-text span { color: var(--rt-accent); }

/* --- NAV --- */
.rt-nav { display: flex; align-items: center; gap: 4px; }
.rt-nav a {
  font-family: var(--rt-font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rt-text);
  padding: 8px 14px;
  border-radius: var(--rt-radius);
  position: relative;
  white-space: nowrap;
}
.rt-nav a:hover,
.rt-nav a.current-menu-item { color: var(--rt-accent); background: rgba(232,64,12,0.06); }

/* Dropdown */
.rt-nav .menu-item-has-children { position: relative; }
.rt-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-top: 3px solid var(--rt-accent);
  border-radius: 0 0 var(--rt-radius) var(--rt-radius);
  min-width: 240px;
  box-shadow: var(--rt-shadow-md);
  z-index: 999;
}
.rt-nav .menu-item-has-children:hover .sub-menu { display: block; }
.rt-nav .sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--rt-border);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  border-radius: 0;
}
.rt-nav .sub-menu li:last-child a { border-bottom: none; }
.rt-nav .sub-menu li a:hover { background: var(--rt-surface); color: var(--rt-accent); }

/* Hamburger */
.rt-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.rt-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rt-primary);
  transition: all 0.2s;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
.rt-ticker {
  background: var(--rt-accent);
  color: white;
  font-family: var(--rt-font-ui);
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
}
.rt-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.rt-ticker-label {
  background: var(--rt-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rt-ticker-track {
  overflow: hidden;
  flex: 1;
  padding: 0 20px;
}
.rt-ticker-items {
  display: flex;
  gap: 60px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.rt-ticker-items a { color: white; font-weight: 500; }
.rt-ticker-items a:hover { text-decoration: underline; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   SECTION HEADING (Category title bar)
   ============================================= */
.rt-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rt-border);
}
.rt-section-head h2 {
  font-family: var(--rt-font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rt-primary);
  position: relative;
}
.rt-section-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--rt-accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.rt-section-head a.rt-see-all {
  margin-left: auto;
  font-family: var(--rt-font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rt-accent);
  border: 1px solid var(--rt-accent);
  padding: 4px 12px;
  border-radius: 2px;
}
.rt-section-head a.rt-see-all:hover { background: var(--rt-accent); color: white; }

/* =============================================
   HERO SECTION
   ============================================= */
.rt-hero {
  background: var(--rt-white);
  padding: 28px 0 0;
  border-bottom: 1px solid var(--rt-border);
}
.rt-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 24px;
}
.rt-hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--rt-radius);
}
.rt-hero-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.rt-hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.95) 60%, transparent);
  padding: 32px 28px 24px;
  color: white;
}
.rt-hero-main-content .rt-cat-badge {
  background: var(--rt-accent);
  color: white;
  font-family: var(--rt-font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}
.rt-hero-main-content h1 {
  font-family: var(--rt-font-head);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.rt-hero-main-content h1 a { color: white; }
.rt-hero-main-content h1 a:hover { color: var(--rt-accent-2); }
.rt-hero-main-content .rt-meta {
  font-family: var(--rt-font-ui);
  font-size: 12px;
  opacity: 0.7;
}

/* Hero side cards */
.rt-hero-side { display: flex; flex-direction: column; gap: 16px; }
.rt-hero-side-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 10px;
  transition: box-shadow 0.2s;
}
.rt-hero-side-card:hover { box-shadow: var(--rt-shadow); }
.rt-hero-side-card img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 2px;
}
.rt-hero-side-card-body .rt-cat-badge {
  font-family: var(--rt-font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rt-accent);
  margin-bottom: 4px;
  display: block;
}
.rt-hero-side-card-body h3 {
  font-family: var(--rt-font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rt-text);
}
.rt-hero-side-card-body h3 a:hover { color: var(--rt-accent); }
.rt-hero-side-card-body .rt-meta {
  font-family: var(--rt-font-ui);
  font-size: 11px;
  color: var(--rt-muted);
  margin-top: 4px;
}

/* =============================================
   MAIN LAYOUT (content + sidebar)
   ============================================= */
.rt-main-wrap {
  padding: 36px 0 48px;
}
.rt-content-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--rt-sidebar-w);
  gap: 40px;
  align-items: start;
}
.rt-content { min-width: 0; }

/* =============================================
   CATEGORY NEWS GRID
   ============================================= */
.rt-category-section { margin-bottom: 44px; }

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

/* Post card */
.rt-card {
  background: var(--rt-card-bg);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.rt-card:hover {
  box-shadow: var(--rt-shadow-md);
  transform: translateY(-2px);
}
.rt-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.rt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.rt-card:hover .rt-card-thumb img { transform: scale(1.04); }
.rt-card-body { padding: 14px 16px 16px; }
.rt-cat-badge {
  display: inline-block;
  font-family: var(--rt-font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--rt-accent);
  margin-bottom: 6px;
}
.rt-card-body h3 {
  font-family: var(--rt-font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rt-text);
  margin-bottom: 8px;
}
.rt-card-body h3 a:hover { color: var(--rt-accent); }
.rt-card-excerpt {
  font-size: 13.5px;
  color: var(--rt-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.rt-meta {
  font-family: var(--rt-font-ui);
  font-size: 11.5px;
  color: var(--rt-muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.rt-meta .rt-dot { opacity: 0.4; }

/* =============================================
   SIDEBAR
   ============================================= */
.rt-sidebar { position: sticky; top: 80px; }
.rt-widget {
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.rt-widget-title {
  font-family: var(--rt-font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rt-white);
  background: var(--rt-primary);
  padding: 10px 16px;
  border-left: 4px solid var(--rt-accent);
}
.rt-widget-body { padding: 14px 16px; }

/* Recent posts widget */
.rt-widget-posts li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rt-border);
}
.rt-widget-posts li:last-child { border-bottom: none; }
.rt-widget-posts li img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 2px;
}
.rt-widget-posts .rt-wp-title {
  font-family: var(--rt-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rt-text);
}
.rt-widget-posts .rt-wp-title a:hover { color: var(--rt-accent); }
.rt-widget-posts .rt-wp-date {
  font-family: var(--rt-font-ui);
  font-size: 11px;
  color: var(--rt-muted);
  margin-top: 3px;
}

/* Category widget */
.rt-widget-cats li {
  border-bottom: 1px solid var(--rt-border);
}
.rt-widget-cats li:last-child { border-bottom: none; }
.rt-widget-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--rt-font-ui);
  font-size: 13.5px;
  color: var(--rt-text);
  font-weight: 500;
}
.rt-widget-cats li a:hover { color: var(--rt-accent); }
.rt-widget-cats .count {
  background: var(--rt-surface);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--rt-muted);
}

/* Ad widget */
.rt-widget-ad { text-align: center; padding: 16px; }
.rt-widget-ad p {
  font-family: var(--rt-font-ui);
  font-size: 11px;
  color: var(--rt-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.rt-single-wrap {
  padding: 36px 0 56px;
}
.rt-single-content-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--rt-sidebar-w);
  gap: 40px;
  align-items: start;
}
.rt-single-header { margin-bottom: 24px; }
.rt-breadcrumb {
  font-family: var(--rt-font-ui);
  font-size: 12px;
  color: var(--rt-muted);
  margin-bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.rt-breadcrumb a { color: var(--rt-accent); }
.rt-breadcrumb span { opacity: 0.4; }
.rt-single-cat {
  display: inline-block;
  background: var(--rt-accent);
  color: white;
  font-family: var(--rt-font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.rt-single-title {
  font-family: var(--rt-font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rt-primary);
  margin-bottom: 16px;
}
.rt-single-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--rt-font-ui);
  font-size: 13px;
  color: var(--rt-muted);
  padding: 14px 0;
  border-top: 1px solid var(--rt-border);
  border-bottom: 1px solid var(--rt-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.rt-single-meta .rt-author { font-weight: 600; color: var(--rt-text); }
.rt-single-featured {
  margin-bottom: 28px;
  border-radius: var(--rt-radius);
  overflow: hidden;
}
.rt-single-featured img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Article body */
.rt-article-body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--rt-text);
}
.rt-article-body h2 {
  font-family: var(--rt-font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--rt-primary);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rt-border);
}
.rt-article-body h3 {
  font-family: var(--rt-font-head);
  font-size: 21px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--rt-primary);
}
.rt-article-body p { margin-bottom: 20px; }
.rt-article-body ul, .rt-article-body ol {
  margin: 16px 0 20px 24px;
  list-style: disc;
}
.rt-article-body ol { list-style: decimal; }
.rt-article-body li { margin-bottom: 6px; }
.rt-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.rt-article-body th {
  background: var(--rt-primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--rt-font-ui);
  font-size: 13px;
  font-weight: 600;
}
.rt-article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--rt-border);
}
.rt-article-body tr:nth-child(even) td { background: var(--rt-surface); }
.rt-article-body blockquote {
  border-left: 4px solid var(--rt-accent);
  background: var(--rt-surface);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--rt-primary);
}
.rt-article-body a { color: var(--rt-accent); text-decoration: underline; }
.rt-article-body img {
  border-radius: var(--rt-radius);
  margin: 20px 0;
}
/* AdSense in-article */
.rt-adsense-inline {
  margin: 28px 0;
  text-align: center;
  min-height: 90px;
  background: var(--rt-surface);
  border: 1px dashed var(--rt-border);
  border-radius: var(--rt-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tags */
.rt-post-tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rt-border);
}
.rt-post-tags span {
  font-family: var(--rt-font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rt-muted);
  margin-right: 8px;
}
.rt-post-tags a {
  display: inline-block;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  color: var(--rt-text);
  font-family: var(--rt-font-ui);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
  margin: 3px 3px 3px 0;
  text-decoration: none;
}
.rt-post-tags a:hover { background: var(--rt-primary); color: white; border-color: var(--rt-primary); }

/* Related posts */
.rt-related { margin-top: 40px; }

/* =============================================
   ARCHIVE / CATEGORY PAGE
   ============================================= */
.rt-archive-header {
  background: var(--rt-primary);
  color: white;
  padding: 28px 0;
  margin-bottom: 32px;
}
.rt-archive-header h1 {
  font-family: var(--rt-font-head);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rt-archive-header p {
  font-family: var(--rt-font-ui);
  font-size: 14px;
  opacity: 0.7;
  margin-top: 6px;
}
.rt-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Pagination */
.rt-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 20px 0;
}
.rt-pagination .page-numbers {
  font-family: var(--rt-font-ui);
  font-size: 14px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  color: var(--rt-text);
  transition: all 0.18s;
}
.rt-pagination .page-numbers:hover,
.rt-pagination .page-numbers.current {
  background: var(--rt-primary);
  color: white;
  border-color: var(--rt-primary);
}

/* =============================================
   PAGE (Static pages, Elementor compat)
   ============================================= */
.rt-page-wrap { padding: 36px 0 56px; }
.rt-page-header {
  background: linear-gradient(135deg, var(--rt-primary) 0%, #1a3a6b 100%);
  color: white;
  padding: 40px 0;
  margin-bottom: 36px;
}
.rt-page-header h1 {
  font-family: var(--rt-font-head);
  font-size: 40px;
  font-weight: 700;
}
.rt-page-body {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--rt-text);
  max-width: 860px;
}
.rt-page-body h2 { font-family: var(--rt-font-head); font-size: 26px; font-weight: 700; color: var(--rt-primary); margin: 28px 0 12px; }
.rt-page-body p { margin-bottom: 18px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.rt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.rt-contact-form-wrap h2 {
  font-family: var(--rt-font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--rt-primary);
  margin-bottom: 20px;
}
.rt-form-group { margin-bottom: 18px; }
.rt-form-group label {
  display: block;
  font-family: var(--rt-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--rt-text);
  margin-bottom: 6px;
}
.rt-form-group input,
.rt-form-group textarea,
.rt-form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rt-border);
  border-radius: var(--rt-radius);
  font-family: var(--rt-font-body);
  font-size: 15px;
  color: var(--rt-text);
  background: var(--rt-white);
  transition: border-color 0.2s;
  outline: none;
}
.rt-form-group input:focus,
.rt-form-group textarea:focus { border-color: var(--rt-accent); }
.rt-form-group textarea { min-height: 140px; resize: vertical; }
.rt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rt-accent);
  color: white;
  font-family: var(--rt-font-ui);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--rt-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.rt-btn:hover { background: #c0330a; color: white; }
.rt-contact-info { background: var(--rt-primary); color: white; padding: 28px; border-radius: var(--rt-radius); }
.rt-contact-info h3 { font-family: var(--rt-font-head); font-size: 22px; margin-bottom: 20px; }
.rt-contact-info-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.rt-contact-info-item .icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.rt-contact-info-item p { font-family: var(--rt-font-ui); font-size: 14px; opacity: 0.85; }
.rt-contact-info-item strong { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; opacity: 0.6; }

/* =============================================
   FOOTER
   ============================================= */
.rt-footer {
  background: var(--rt-primary);
  color: rgba(255,255,255,0.8);
  border-top: 4px solid var(--rt-accent);
}
.rt-footer-top { padding: 48px 0 36px; }
.rt-footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
}
.rt-footer-brand .rt-logo-text { color: white; font-size: 22px; margin-bottom: 12px; }
.rt-footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  opacity: 0.7;
  margin-bottom: 16px;
}
.rt-footer-col h4 {
  font-family: var(--rt-font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.rt-footer-col ul li {
  margin-bottom: 8px;
}
.rt-footer-col ul li a {
  font-size: 13.5px;
  opacity: 0.7;
  transition: opacity 0.18s;
}
.rt-footer-col ul li a:hover { opacity: 1; color: var(--rt-accent-2); }
.rt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.rt-footer-bottom .rt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rt-footer-bottom p {
  font-family: var(--rt-font-ui);
  font-size: 12.5px;
  opacity: 0.55;
}
.rt-footer-bottom-links { display: flex; gap: 16px; }
.rt-footer-bottom-links a { font-family: var(--rt-font-ui); font-size: 12px; opacity: 0.55; }
.rt-footer-bottom-links a:hover { opacity: 1; color: var(--rt-accent-2); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .rt-content-sidebar,
  .rt-single-content-sidebar { grid-template-columns: 1fr; }
  .rt-sidebar { position: static; }
  .rt-news-grid { grid-template-columns: repeat(2, 1fr); }
  .rt-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .rt-hero-grid { grid-template-columns: 1fr; }
  .rt-hero-side { display: grid; grid-template-columns: repeat(2, 1fr); flex-direction: unset; }
  .rt-footer-grid { grid-template-columns: 1fr 1fr; }
  .rt-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rt-topbar { display: none; }
  .rt-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--rt-white); border-top: 3px solid var(--rt-accent); box-shadow: var(--rt-shadow-md); padding: 12px 20px; }
  .rt-nav.is-open { display: flex; }
  .rt-hamburger { display: flex; }
  .rt-header-inner { flex-wrap: wrap; }
  .rt-hero-side { grid-template-columns: 1fr; }
  .rt-news-grid, .rt-archive-grid { grid-template-columns: 1fr; }
  .rt-news-grid.rt-grid-2, .rt-news-grid.rt-grid-4 { grid-template-columns: 1fr; }
  .rt-single-title { font-size: 28px; }
  .rt-footer-grid { grid-template-columns: 1fr; }
  .rt-footer-bottom .rt-container { flex-direction: column; text-align: center; }
}

/* =============================================
   ELEMENTOR COMPATIBILITY
   ============================================= */
.elementor-page .rt-page-body,
.elementor-page .entry-content { max-width: 100%; }
.elementor-section { width: 100% !important; }

/* =============================================
   HOMEPAGE SPECIAL SECTIONS
   ============================================= */

/* AdSense strip */
.rt-adsense-strip {
  margin: 28px 0;
  min-height: 90px;
}

/* Section head icon */
.rt-sh-icon { margin-right: 6px; }

/* Section head color variants */
.rt-section-latest h2::before  { background: #2196f3; }
.rt-section-mustread h2::before { background: #e8400c; }
.rt-section-trending h2::before { background: #f5a623; }

/* ── MUST READ GRID ── */
.rt-must-read-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.rt-mr-card {
  display: flex;
  gap: 14px;
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.rt-mr-card:hover { box-shadow: var(--rt-shadow-md); }

/* Featured (first) card spans full height of left column */
.rt-mr-card--featured {
  grid-column: 1;
  grid-row: 1 / 3;
  flex-direction: column;
}
.rt-mr-card--featured .rt-mr-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
/* Side cards (2, 3, 4) */
.rt-mr-card:not(.rt-mr-card--featured) {
  grid-column: 2;
  flex-direction: row;
  align-items: center;
}
.rt-mr-card:not(.rt-mr-card--featured) .rt-mr-thumb img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}
.rt-mr-thumb { display: block; }
.rt-mr-thumb img { display: block; }

.rt-mr-body {
  padding: 14px 16px;
  flex: 1;
  position: relative;
}
.rt-mr-card--featured .rt-mr-body { padding: 16px 18px; }

.rt-mr-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--rt-font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--rt-border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.rt-mr-card--featured .rt-mr-num { font-size: 56px; top: 8px; right: 14px; }

.rt-mr-body h3 {
  font-family: var(--rt-font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rt-text);
  margin: 4px 0 8px;
}
.rt-mr-card--featured .rt-mr-body h3 { font-size: 22px; }
.rt-mr-body h3 a:hover { color: var(--rt-accent); }

/* ── TRENDING LIST ── */
.rt-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  overflow: hidden;
}
.rt-trending-item {
  display: grid;
  grid-template-columns: 44px 90px 1fr;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--rt-border);
  transition: background 0.15s;
}
.rt-trending-item:last-child { border-bottom: none; }
.rt-trending-item:hover { background: var(--rt-surface); }

.rt-tr-num {
  font-family: var(--rt-font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--rt-accent);
  text-align: center;
  padding: 0 4px;
  line-height: 1;
}
.rt-trending-item:first-child .rt-tr-num { color: var(--rt-accent); }
.rt-trending-item:nth-child(2) .rt-tr-num { color: var(--rt-primary); }
.rt-trending-item:nth-child(3) .rt-tr-num { color: var(--rt-muted); }

.rt-tr-thumb { display: block; height: 72px; overflow: hidden; }
.rt-tr-thumb img { width: 90px; height: 72px; object-fit: cover; }

.rt-tr-body { padding: 10px 14px; }
.rt-tr-body h3 {
  font-family: var(--rt-font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rt-text);
  margin: 3px 0 6px;
}
.rt-tr-body h3 a:hover { color: var(--rt-accent); }

/* ── TWO COLUMN CATEGORIES (Agriculture + Textile) ── */
.rt-two-col-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.rt-two-col-cats .rt-category-section { margin-bottom: 0; }
.rt-two-col-cats .rt-news-grid { grid-template-columns: 1fr !important; }

/* ── RESPONSIVE FIXES ── */
@media (max-width: 768px) {
  .rt-must-read-grid {
    grid-template-columns: 1fr;
  }
  .rt-mr-card--featured { grid-row: auto; }
  .rt-mr-card:not(.rt-mr-card--featured) { grid-column: 1; }
  .rt-trending-item { grid-template-columns: 36px 70px 1fr; }
  .rt-tr-thumb, .rt-tr-thumb img { width: 70px; height: 56px; }
  .rt-two-col-cats { grid-template-columns: 1fr; }
}
