/* ==========================================================================
   Sagar Sandesh - Maritime News & Industry Portal Stylesheet (Increased Header & Ad Height)
   PHP 8.x Compatible Assets Structure
   ========================================================================== */

/* Premium Professional Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Default Light Color Palette */
  --primary-navy: #002b5b;
  --primary-dark: #001a38;
  --primary-blue: #0056b3;
  --accent-cyan: #00a8cc;
  --accent-gold: #d4af37;
  --accent-gold-light: #fff8e7;
  --accent-red: #d9534f;
  --accent-red-dark: #c9302c;
  
  --body-bg: #4c4c4c; /* Requested #4c4c4c Body Backdrop Color */
  --wrapper-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: #002b5b;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12);

  /* Modern Premium Typography Stack */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Lora', Georgia, serif;

  /* Boxed Layout Width - 90% */
  --max-boxed-width: 90%;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK THEME OVERRIDES ([data-theme="dark"])
   ========================================================================== */
[data-theme="dark"] {
  --body-bg: #1f1f1f;
  --wrapper-bg: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --bg-light: #1e293b;
  --bg-card: #1e293b;
  --bg-nav: #0b1329;
  --border-color: #334155;
  --border-subtle: #475569;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --accent-gold-light: #2a2208;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--body-bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding: 0 !important;
  margin: 0 !important;
  top: 0px !important;
  margin-top: 0px !important;
  position: static !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* HIDE ONLY THE TOP GOOGLE TRANSLATE BANNER IFRAME */
iframe.goog-te-banner-frame,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   BOXED WRAPPER (90% Width Centered Layout)
   ========================================================================== */
.boxed-wrapper {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  background-color: var(--wrapper-bg);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.45), 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  position: relative;
  overflow: visible;
  border-left: 1px solid rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease;
}

.container {
  width: 100%;
  padding: 0 1.25rem;
  margin: 0 auto;
}

/* ==========================================================================
   1. TOP UTILITY BAR & GOOGLE TRANSLATE WORLD LANGUAGE SELECTOR
   ========================================================================== */
.top-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: background-color 0.3s ease;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.top-bar-left i {
  color: var(--primary-blue);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--primary-blue);
}

.top-nav span {
  color: var(--border-subtle);
}

/* Google Translate World Language Selector Styling */
.lang-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  transition: var(--transition);
  position: relative;
  z-index: 9999;
}

.lang-selector-wrapper:hover {
  border-color: var(--primary-blue);
}

.globe-icon {
  color: var(--primary-blue);
  font-size: 0.9rem;
  pointer-events: none;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: inline-block !important;
}

.goog-te-gadget {
  font-family: var(--font-body) !important;
  font-size: 0px !important;
  color: transparent !important;
}

.goog-te-combo {
  padding: 0.2rem 0.45rem !important;
  border-radius: 4px !important;
  border: 1px solid var(--border-subtle) !important;
  font-size: 0.78rem !important;
  font-family: var(--font-body) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.goog-te-gadget img,
.goog-te-gadget span {
  display: none !important;
}

body > .skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* ==========================================================================
   2. MAIN HEADER & INCREASED AD BANNER SLIDER HEIGHT (125px OLDCMS Height)
   ========================================================================== */
.main-header {
  background-color: var(--wrapper-bg);
  padding: 1.25rem 0; /* Increased Header Padding */
  transition: background-color 0.3s ease;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo-img {
  max-width: 480px;
  max-height: 120px; /* Increased Logo Height */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .brand-logo-img {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.brand-logo-img:hover {
  transform: scale(1.01);
}

.header-ad-slider-wrapper {
  flex: 1;
  max-width: 740px;
  height: 125px; /* Increased Ad Slider Height to match OLDCMS 125px */
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}

.ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.ad-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.ad-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important; /* Full width and full height stretching */
  object-position: center !important;
  display: block !important;
}

.ad-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
}

.ad-emblem {
  width: 46px;
  height: 46px;
  background: #002b5b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

.ad-details h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.ad-details p {
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 600;
}

.ad-details .ad-dates {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 700;
}

.ad-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1rem;
}

.btn-ad-apply {
  background: #dc2626;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
  white-space: nowrap;
}

.btn-ad-apply:hover {
  background: #b91c1c;
}

.ad-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.qr-box {
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 2px;
}

.header-ad-dots {
  display: none !important;
}

.ad-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 30px;
  background-color: rgba(0, 27, 56, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(2px);
}

.header-ad-slider-wrapper:hover .ad-nav-btn {
  opacity: 0.8;
  visibility: visible;
}

.ad-nav-btn:hover {
  opacity: 1 !important;
  background-color: var(--primary-navy);
  color: #ffffff;
}

.ad-prev-btn {
  left: 0 !important;
  border-radius: 0 3px 3px 0 !important;
}

.ad-next-btn {
  right: 0 !important;
  border-radius: 3px 0 0 3px !important;
}

.ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.ad-dot.active {
  background-color: var(--primary-blue);
  width: 16px;
  border-radius: 4px;
}

/* ==========================================================================
   3. MAIN NAVIGATION BAR & THEME TOGGLE BUTTON
   ========================================================================== */
.navbar {
  background-color: var(--bg-nav);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--accent-gold);
  color: #ffffff;
}

.nav-item-home .nav-link {
  font-size: 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-search,
.btn-theme-toggle {
  color: #ffffff;
  font-size: 1rem;
  padding: 0.55rem;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-nav-search:hover,
.btn-theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
}

.mobile-nav-toggle {
  display: none;
  color: #ffffff;
  font-size: 1.4rem;
  padding: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  display: none;
  list-style: none;
  z-index: 100;
  border-top: 2px solid var(--accent-gold);
}

.nav-item:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-blue);
  padding-left: 1.1rem;
}

/* ==========================================================================
   4. TICKER & ALERT BAR
   ========================================================================== */
.alert-strip {
  background-color: #0b3c75;
  color: #ffffff;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.alert-badge {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.alert-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.alert-marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 35s linear infinite;
  font-weight: 500;
}

.alert-marquee:hover p {
  animation-play-state: paused;
}

.ticker-section {
  background-color: var(--wrapper-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ticker-label {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 0.48rem 0.85rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-content {
  flex: 1;
  padding: 0 0.75rem;
  overflow: hidden;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: tickerMarquee 110s linear infinite;
  will-change: transform;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ticker-item::after {
  content: '•';
  margin-left: 2rem;
  color: var(--primary-blue, #0056b3);
  font-weight: 800;
}

.ticker-item:hover {
  color: var(--primary-blue, #0056b3);
  text-decoration: underline;
}

.ticker-controls {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-right: 0.45rem;
  flex-shrink: 0;
}

.btn-ticker {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  transition: var(--transition);
}

.btn-ticker:hover {
  background-color: var(--border-color);
  color: var(--primary-navy);
}

/* ==========================================================================
   5. MAIN HERO NEWS GRID (PROPORTIONAL IMAGES & PERFECT FONT SIZES)
   ========================================================================== */
.hero-news-section {
  padding: 1.25rem 0;
  background-color: var(--wrapper-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.25fr 1fr;
  gap: 1.25rem;
  align-items: stretch; /* All 3 columns equal height */
}

/* Column 1: Top Story Carousel */
.hero-col-main {
  height: 100%;
}

.top-story-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.top-story-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  z-index: 10;
  letter-spacing: 0.5px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 410px;
  overflow: hidden;
  background-color: #0f172a;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.slide-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  padding: 1.5rem 1.25rem;
  color: #ffffff;
}

.slide-overlay h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  letter-spacing: -0.02em;
}

.slide-meta {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  right: 15px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: #ffffff;
  width: 20px;
  border-radius: 4px;
}

/* Column 2: Secondary Headlines (4 News Items - Larger Thumbnails & Rich Typography) */
.hero-col-secondary {
  height: 100%;
}

.secondary-headlines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: space-between;
  height: 100%;
}

.headline-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  flex: 1;
}

.headline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.headline-img {
  width: 96px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.headline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.headline-card:hover .headline-img img {
  transform: scale(1.08);
}

.headline-content {
  flex: 1;
}

.headline-content h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.headline-content h3:hover {
  color: var(--primary-blue);
}

.headline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

/* Column 3: Newsletter & e-Paper Box (Matches Height of Col 1 & 2) */
.hero-col-newsletter {
  height: 100%;
}

.newsletter-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.newsletter-header {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  letter-spacing: 0.4px;
}

.newsletter-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-card) 100%);
  flex: 1;
  justify-content: space-between;
}

.newsletter-graphic {
  position: relative;
  width: 100%;
  max-width: 210px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.35rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.newsletter-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 43, 91, 0.35);
  color: #ffffff;
  padding: 0.35rem;
}

.newsletter-overlay-text h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  color: #ffffff;
}

.btn-newsletter {
  background-color: var(--primary-navy);
  color: #ffffff;
  width: 100%;
  padding: 0.52rem 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-newsletter:hover {
  background-color: var(--primary-blue);
  transform: translateY(-1px);
}

.newsletter-date-badge {
  margin: 0.35rem 0;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 0.2rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 18px;
  letter-spacing: 0.5px;
}

.epaper-bottom-section {
  width: 100%;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.45rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.btn-epaper-bottom {
  background-color: var(--accent-red);
  color: #ffffff;
  width: 100%;
  padding: 0.52rem 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(217, 83, 79, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-epaper-bottom:hover {
  background-color: var(--accent-red-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. BANNERS & NOTIFICATIONS GRID (ADVERTISEMENTS)
   ========================================================================== */
.feature-banners-section {
  padding: 1.1rem 0 1.5rem;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.ad-label-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

.ad-label-tag-white {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ad-label-tag-dark {
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.ad-label-tag-gold {
  background: rgba(184, 134, 11, 0.15);
  color: #d4af37;
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   DYNAMIC AD BANNER SLOTS (bottom-latest-news-1/2/3 from tbl_adspace)
   ========================================================================== */
.dyn-banner-slot {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 240px;
  transition: box-shadow 0.25s ease;
}

.dyn-banner-slot:hover {
  box-shadow: var(--shadow-md);
}

.dyn-banner-slot > .ad-label-tag {
  display: none !important;
}

.dyn-ad-slider {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 240px;
}

.dyn-ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
  pointer-events: none;
}

.dyn-ad-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.dyn-ad-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.dyn-ad-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  display: block;
}

.dyn-ad-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dyn-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  background-color: rgba(0, 27, 56, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  z-index: 20;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(2px);
}

.dyn-ad-slider:hover .dyn-nav-btn {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 27, 56, 0.75);
}

.dyn-nav-btn:hover {
  opacity: 1 !important;
  background-color: var(--primary-navy);
}

.dyn-prev-btn {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.dyn-next-btn {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.imu-banner-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.imu-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
}

.imu-logo-circle {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.imu-header-text h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e0f2fe;
}

.imu-header-text h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.imu-dates {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.7rem;
}

.imu-dates p {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.18rem;
}

.imu-dates span {
  font-weight: 800;
  color: #fef08a;
}

.imu-programmes {
  font-size: 0.72rem;
}

.imu-programmes h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #bae6fd;
  margin-bottom: 0.3rem;
}

.imu-programmes ul {
  list-style-type: none;
  padding-left: 0;
}

.imu-programmes ul li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.18rem;
}

.imu-programmes ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: #fef08a;
}

.imu-action {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-imu-register {
  background-color: var(--accent-gold);
  color: #000000;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.btn-imu-register:hover {
  background-color: #facc15;
}

.caution-card {
  background-color: var(--bg-card);
  border: 2px solid var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.caution-header {
  text-align: center;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 0.45rem;
  margin-bottom: 0.7rem;
}

.caution-header h3 {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.caution-header h4 {
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--text-muted);
}

.caution-content {
  font-size: 0.72rem;
  color: var(--text-main);
  line-height: 1.45;
  flex: 1;
}

.caution-content ol {
  padding-left: 1.05rem;
}

.caution-content ol li {
  margin-bottom: 0.38rem;
}

.caution-footer {
  margin-top: 0.45rem;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.38rem;
}

.anniversary-card {
  background: var(--accent-gold-light);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.anniversary-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
}

.anniversary-emblem {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.anniversary-title {
  font-family: var(--font-editorial);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
}

.anniversary-subtitle {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 0.45rem;
}

.anniversary-badge-15 {
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.22rem 0.85rem;
  border-radius: 12px;
  margin: 0.35rem 0;
}

.anniversary-text {
  font-family: var(--font-editorial);
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.42;
  margin-top: 0.38rem;
}

.nearshoring-section {
  background-color: var(--wrapper-bg);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Owl Carousel - custom top-right section nav buttons control the slider */
.nearshoring-owl.owl-carousel .owl-nav { display: none !important; }

.nearshoring-owl.owl-carousel .owl-stage-outer {
  border-radius: var(--radius-sm);
}

.nearshoring-owl.owl-carousel .owl-item .ns-img-card {
  margin: 0 5px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 0.4rem;
  margin-bottom: 1.15rem;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title-bar {
  width: 4px;
  height: 19px;
  background-color: var(--accent-red);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.section-nav-btns {
  display: flex;
  gap: 0.28rem;
}

.btn-sec-nav {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: var(--transition);
}

.btn-sec-nav:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.nearshoring-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.series-card,
a.series-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.95rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  border: 1px solid #334155;
  height: 138px;
  text-decoration: none;
}

.series-card:hover,
a.series-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.series-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.45px;
}

.series-pill {
  background-color: #ec4899;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  display: inline-block;
  margin: 0.28rem auto;
}

.series-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  line-height: 1.2;
}

.series-date {
  font-size: 0.64rem;
  color: #64748b;
  margin-top: 0.28rem;
  font-weight: 500;
}

/* OLDCMS-style nearshoring image cards */
.ns-img-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 160px;
  border: 2px solid #334155;
}

.ns-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ns-img-card:hover .ns-bg-img {
  transform: scale(1.05);
}

.ns-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.65rem 0.7rem;
  gap: 0.2rem;
}

.ns-img-card .series-tag {
  background: #ec4899;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.15rem;
}

.ns-img-card .series-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ns-img-card .series-date {
  font-size: 0.65rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

.photo-stories-section {
  padding: 1.5rem 0;
  background-color: var(--bg-light);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.photo-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.photo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover .photo-img-wrapper img {
  transform: scale(1.06);
}

.photo-caption-box {
  background-color: #0b3c75;
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.45;
  border-top: 3px solid var(--accent-gold);
}

.photo-caption-box p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.multi-content-section {
  padding: 1.1rem 0 2rem;
  background-color: var(--wrapper-bg);
}

/* ==========================================================================
   CATEGORY NEWS & SIDEBAR LAYOUT (Premium Aesthetic & Enhanced Spacing)
   ========================================================================== */
.category-layout-section {
  padding: 1.5rem 0 3rem;
  background-color: var(--wrapper-bg);
}

.cat-layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 991px) {
  .cat-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Main Left Column */
.cat-main-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cat-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.cat-block:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cat-block .section-header {
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
}

.btn-view-all {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.6px;
  padding: 0.25rem 0.75rem;
  border: 1.5px solid var(--primary-navy);
  border-radius: 20px;
  transition: all 0.25s ease;
  background: transparent;
}

.btn-view-all:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 43, 91, 0.2);
}

/* Layout 01: 2-column (1 main feature + 4 sub list) */
.cat-two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.35rem;
}

@media (max-width: 650px) {
  .cat-two-col {
    grid-template-columns: 1fr;
  }
}

.cat-main-feature {
  display: flex;
  flex-direction: column;
}

.cat-main-feature .cat-main-img-wrap {
  display: block;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.cat-main-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.cat-main-feature:hover img {
  transform: scale(1.05);
}

.cat-main-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.cat-main-feature h3 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.cat-main-feature h3 a:hover {
  color: var(--accent-red);
}

.cat-date {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cat-date i {
  color: var(--primary-navy);
}

.cat-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cat-sub-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.cat-sub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cat-sub-item:hover {
  transform: translateX(4px);
}

.cat-sub-img {
  width: 88px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cat-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.cat-sub-item:hover .cat-sub-img img {
  transform: scale(1.08);
}

.cat-sub-text {
  flex: 1;
}

.cat-sub-text h4 {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-sub-text h4 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.cat-sub-text h4 a:hover {
  color: var(--accent-red);
}

/* Layout 02: 4 Columns (8 posts) */
.cat-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .cat-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-grid-card {
  display: flex;
  flex-direction: column;
}

.cat-grid-card .cat-grid-img-wrap {
  display: block;
  width: 100%;
  height: 125px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.55rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cat-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.cat-grid-card:hover img {
  transform: scale(1.08);
}

.cat-grid-card h4 {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-grid-card h4 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.cat-grid-card h4 a:hover {
  color: var(--accent-red);
}

/* Default list */
.cat-default-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cat-default-list li {
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cat-default-list li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.cat-default-list li a:hover {
  color: var(--accent-red);
}

.cat-sidebar-col,
.sidebar-col,
.sidebar-wrapper,
.news-area .col-xl-4.col-lg-4 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 85px !important;
  align-self: flex-start !important;
  margin-bottom: 2rem;
  z-index: 90;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.25rem;
}

.sidebar-widget .section-header {
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 0.45rem;
  margin-bottom: 1rem;
}

.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sb-news-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.sb-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sb-news-item:hover {
  transform: translateX(3px);
}

.sb-news-img {
  width: 72px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sb-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sb-news-item:hover .sb-news-img img {
  transform: scale(1.08);
}

.sb-news-text h5 {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-news-text h5 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.sb-news-text h5 a:hover {
  color: var(--accent-red);
}

/* Sidebar Categories list */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.sidebar-cat-list li:last-child a {
  border-bottom: none;
}

.sidebar-cat-list li a i {
  font-size: 0.65rem;
  color: var(--primary-navy);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-cat-list li a:hover {
  color: var(--primary-navy);
  padding-left: 0.4rem;
}

.sidebar-cat-list li a:hover i {
  color: var(--accent-red);
  transform: translateX(3px);
}

.sidebar-quick-banners {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.9rem;
}

.sb-banner-link {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sb-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

.sb-banner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Sidebar Featured News: 1 Big + 4 Small Vertical */
.sb-main-feature {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sb-main-feature .sb-main-img-wrap {
  display: block;
  width: 100%;
  height: 165px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.sb-main-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.sb-main-feature:hover img {
  transform: scale(1.06);
}

.sb-main-feature h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 0.35rem;
}

.sb-main-feature h3 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.sb-main-feature h3 a:hover {
  color: var(--accent-red);
}

.sb-sub-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sb-sub-vertical-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.sb-sub-vertical-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sb-sub-vertical-item:hover {
  transform: translateX(4px);
}

.sb-sub-img {
  width: 78px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sb-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.sb-sub-vertical-item:hover .sb-sub-img img {
  transform: scale(1.08);
}

.sb-sub-text {
  flex: 1;
}

.sb-sub-text h4 {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-sub-text h4 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.sb-sub-text h4 a:hover {
  color: var(--accent-red);
}

.sidebar-ad-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.sidebar-ad-img:hover {
  transform: translateY(-2px);
}



.multi-grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  gap: 1.25rem;
}

.editor-pick-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.editor-main-feature {
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.editor-img {
  width: 100%;
  height: 142px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

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

.editor-main-feature h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.editor-main-feature h3:hover {
  color: var(--primary-blue);
}

.editor-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.editor-sub-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.editor-sub-img {
  width: 60px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.editor-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-sub-item h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.28;
}

.editor-sub-item h4:hover {
  color: var(--primary-blue);
}

.updates-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.updates-tabs {
  display: flex;
  gap: 0.22rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0.8rem;
}

.tab-btn {
  padding: 0.38rem 0.62rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background-color: var(--bg-light);
}

.updates-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.updates-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.32;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.updates-list li::before {
  content: '•';
  color: var(--primary-blue);
  font-size: 1.15rem;
  line-height: 1;
}

.updates-list li a:hover {
  color: var(--primary-blue);
}

.update-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.12rem;
}

.btn-view-more {
  align-self: center;
  margin-top: 0.8rem;
  border: 1px solid var(--primary-navy);
  color: var(--text-main);
  padding: 0.32rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: var(--transition);
  letter-spacing: 0.4px;
}

.btn-view-more:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.popular-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

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

.popular-num {
  width: 24px;
  height: 24px;
  background-color: var(--primary-navy);
  color: #ffffff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.popular-content h4 {
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.32;
}

.popular-content h4:hover {
  color: var(--primary-blue);
}

.popular-date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
  font-weight: 500;
}

.footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding-top: 2.25rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.footer-logo-icon {
  width: 35px;
  height: 35px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.45rem;
}

.footer-social a {
  width: 27px;
  height: 27px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.9rem;
  position: relative;
  padding-bottom: 0.38rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.footer-links a {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 0.28rem;
}

.footer-contact-info p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 0.48rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-contact-info i {
  color: var(--accent-gold);
  margin-top: 0.18rem;
}

.footer-bottom {
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-container {
  background: var(--bg-card);
  padding: 1.85rem;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.search-input-wrapper input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  background-color: var(--bg-light);
  color: var(--text-main);
}

.search-input-wrapper input:focus {
  border-color: var(--primary-blue);
}

.btn-search-submit {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
}

.btn-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.3rem;
  color: var(--text-muted);
}

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

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

@media (max-width: 1024px) {
  body {
    padding: 0 !important;
  }
  .boxed-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter-card {
    grid-column: span 2;
  }
  .banners-grid {
    grid-template-columns: 1fr;
  }
  .nearshoring-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .multi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .popular-card {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .header-ad-slider-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .brand-logo-img {
    max-width: 100%;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-grid, .photo-grid, .multi-grid, .nearshoring-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-card, .popular-card {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Google AdSense Space Removal (Unfilled / Empty Ads)
   ========================================================================== */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle[data-adsbygoogle-status="done"][data-ad-status="unfilled"],
ins.adsbygoogle:empty {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.google-ad-wrapper:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.google-ad-wrapper:has(ins.adsbygoogle:empty) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   OFF-CANVAS MOBILE APP NAVIGATION DRAWER (PREMIUM APP UI)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 35, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-app-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--primary-navy, #001a38);
  color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-app-drawer.active {
  transform: translateX(320px);
}

.drawer-header {
  padding: 1rem 1.15rem;
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-logo {
  max-height: 42px;
  width: auto;
  filter: brightness(1.1);
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-drawer-close:hover {
  background: var(--accent-red, #dc2626);
}

.drawer-body {
  flex: 1;
  padding: 0.85rem 0;
  overflow-y: auto;
}

.drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  transition: background 0.2s ease;
}

.drawer-link-row:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.drawer-link {
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--accent-gold, #d4af37);
}

.drawer-sub-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.drawer-item.open .drawer-sub-toggle {
  transform: rotate(180deg);
  color: var(--accent-gold, #d4af37);
}

.drawer-submenu {
  list-style: none;
  padding: 0.3rem 0 0.5rem 2.25rem;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.25);
  display: none;
}

.drawer-item.open .drawer-submenu {
  display: block;
}

.drawer-sublink {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0;
  display: block;
  transition: color 0.2s ease;
}

.drawer-sublink:hover {
  color: #ffffff;
}

.drawer-footer {
  padding: 1.1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.drawer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.drawer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.drawer-socials a:hover {
  background: var(--primary-blue, #0056b3);
  transform: translateY(-2px);
}

.drawer-copyright {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Mobile & Tablet Top Bar Fixes */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    align-items: center;
    text-align: center;
  }

  .top-bar-left {
    font-size: 0.72rem;
  }

  .top-bar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .top-nav {
    font-size: 0.74rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo-img {
    max-height: 48px !important;
  }

  .header-wrapper {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    display: none !important; /* Hide old dropdown list on mobile in favor of app drawer */
  }
}

