/*
Theme Name: OCEWEB4
Theme URI: https://www.oceweb.it/
Author: OCEWeb
Author URI: https://www.oceweb.it/
Description: Tema magazine WordPress per OCEWeb.it — completamente personalizzabile, stile editoriale professionale.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: oceweb4
Tags: magazine, news, blog, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* =========================================================================
   0. Local Webfonts (@font-face)
   ========================================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuFuYAZ9hjp-Ek-_0ew.woff') format('woff');
}

/* =========================================================================
   0.1 Custom Properties & Color Schemes
   ========================================================================= */
:root {
  --primary: #0B7BC3;          /* OCEWeb blue accent */
  --primary-dark: #075A92;     /* Darker OCEWeb blue */
  --primary-soft: #EAF5FB;     /* Light blue tint background */
  --ink: #111a28;              /* Darkest headings / title color */
  --text: #333333;             /* Body text */
  --muted: #6c757d;            /* Muted text / meta dates */
  --line: #e2e8f0;             /* Clean modern border */
  --line-dark: #cbd5e1;        /* Darker border */
  --surface: #ffffff;          /* White card surface */
  --surface-alt: #f8fafc;      /* Subtle gray background */
  --page-bg: #eef2f6;          /* Page background */
  --header-bg: #0B7BC3;        /* OCEWeb header blue */
  --nav-bg: #0B7BC3;           /* Navigation bar (same background as site-header) */
  --nav-text: #ffffff;         /* Navigation text */
  --shell: 1240px;             /* Max layout container width */
  --gutter: clamp(14px, 2vw, 28px);
  --sans: 'Inter';
  --display: 'Inter';
  --radius: 3px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

/* Blue Color Scheme (switchable from Customizer) */
body.color-scheme--blue {
  --primary: #0B7BC3;
  --primary-dark: #075A92;
  --primary-soft: #EAF5FB;
  --header-bg: #0B7BC3;
  --nav-bg: #0B7BC3;
}

/* =========================================================================
   Typography Overrides (Local Inter)
   ========================================================================= */
* {
  font-family: "Inter";
}

p {
  font-size: 18px !important;
  text-align: justify !important;
  font-family: "Inter" !important;
}

ul {
  font-family: "Inter" !important;
  font-size: 18px !important;
}

li {
  font-family: "Inter" !important;
  font-size: 18px !important;
}

h2 {
  margin-top: 20px !important;
  margin-bottom: 5px !important;
  color: #cf2e2e !important;
  font-size: 22px !important;
  font-family: "Inter" !important;
}

h3 {
  margin-top: 10px !important;
  margin-bottom: 5px !important;
  color: #0693e3 !important;
  font-size: 19px !important;
  font-family: "Inter" !important;
}

/* =========================================================================
   1. Reset & Base
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    margin-top: 46px;
  }
}

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =========================================================================
   2. Accessibility & Utilities
   ========================================================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 99999;
  font-weight: bold;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}

.site-shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Optional layout mode: keep the existing boxed layout as the default, but
   allow the Customizer to use the available desktop width without making
   long-form article text excessively wide. */
body.layout--full-width .site-shell {
  width: 100%;
  max-width: none;
}

body.layout--full-width .single-main.site-shell {
  max-width: none;
}

body.layout--full-width .single-main .entry-content {
  margin-inline: auto;
}

.media-placeholder {
  display: block;
  min-height: 100%;
  background: linear-gradient(135deg, var(--surface-alt), var(--primary-soft));
  position: relative;
}

.media-placeholder::after {
  content: "OCEWeb.it";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  opacity: 0.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================================================
   3. Top Bar — .topbar
   ========================================================================= */
.topbar {
  background-color: #46464c !important;
  color: #ffffff;
  font-size: 15px;
  border-bottom: none;
}

.topbar__inner {
  display: flex;
  justify-content: flex-start;
  padding-inline: 0;
  min-height: 42px;
  align-items: center;
  gap: 16px;
}

.topbar__info {
  display: flex;
  width: 100%;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 15px;
}

.topbar__info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__info a {
  color: #ffffff;
  font-size: 15px;
}

.topbar__info a:hover {
  color: #ffffff;
}

/* Popolari Topbar — High Visibility Shortcuts */
.ocew-popular-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
}

.ocew-popular {
  background-color: #D9534F;
  color: #F9F9F9;
  padding: 5px 10px;
  margin-right: 4px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}

.ocew-popular-link {
  font-weight: 700;
  font-size: 15px !important;
  color: #ffffff !important;
  padding: 5px 8px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ocew-popular-link:hover {
  background-color: #0b7bc3 !important;
  color: #ffffff !important;
}

.topbar__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
  font-size: 15px;
}

.topbar__menu a {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.topbar__menu a:hover {
  color: #0b7bc3;
}

.topbar__social {
  display: flex;
  gap: 2px;
  align-items: center;
}

.topbar__social .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #ffffff;
  border-radius: 2px;
}

.topbar__social .social-icon:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.topbar__social .social-icon--linkedin {
  background-color: #0077b5;
}

.topbar__social .social-icon--facebook {
  background-color: #3b5998;
}

.topbar__social .social-icon--twitter {
  background-color: #000000;
}

.topbar__social .social-icon--youtube {
  background-color: #cd201f;
}

.topbar__social .social-icon--instagram {
  background-color: #e4405f;
}

.topbar__social .social-icon--whatsapp {
  background-color: #25d366;
}

.topbar__social .social-icon--telegram {
  background-color: #0088cc;
}

.topbar__social .social-icon--tiktok {
  background-color: #000000;
}

/* =========================================================================
   4. Site Header — .site-header
   ========================================================================= */
.site-header {
  background-color: var(--header-bg);
  padding: 8px var(--gutter);
  transition: background-color 0.3s;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-brand__link {
  display: flex;
  align-items: center;
}

.site-brand__logo-img {
  max-width: clamp(220px, 30vw, 340px);
  max-height: clamp(64px, 9vw, 94px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-brand__fallback {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-family: var(--display);
}

.site-brand__tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
  border-left: 2px solid rgba(255,255,255,0.25);
  padding-left: 16px;
}

.site-cta {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-cta:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================================
   5. Main Navigation — .main-nav
   ========================================================================= */
.main-nav {
  background-color: var(--nav-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
  transition: all 0.3s;
}

.main-nav__inner {
  display: flex;
  margin: 0 auto;
}

.site-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-menu > li {
  position: relative;
}

.site-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--nav-text);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, color 0.2s;
}

.site-menu > li > a:hover {
  background-color: var(--primary);
  color: #fff;
}

.site-menu > li:first-child > a,
.site-menu > li.current-menu-item > a {
  background-color: var(--primary);
  color: #fff;
}

.site-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 240px;
  background-color: var(--surface);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 200;
  border-radius: 0 0 var(--radius) var(--radius);
}

.site-menu li:hover > .sub-menu,
.site-menu li.is-sub-open > .sub-menu {
  display: block;
}

.site-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.site-menu .sub-menu li:last-child > a {
  border-bottom: none;
}

.site-menu .sub-menu a:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.site-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* =========================================================================
   6. Mobile Navigation
   ========================================================================= */
.mobile-nav {
  display: none;
  background-color: var(--nav-bg);
  padding: 8px var(--gutter);
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  border: none;
  color: #fff;
  font-weight: 750;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.65);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav__overlay.is-open {
  transform: translateX(0);
}

.mobile-nav__panel {
  background-color: var(--surface);
  width: 85%;
  max-width: 320px;
  height: 100%;
  padding: 30px 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.mobile-nav__close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-nav__brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.mobile-nav__menu {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.mobile-nav__menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.mobile-nav__social {
  display: flex;
  gap: 8px;
}

.mobile-nav__social .social-icon {
  background-color: var(--surface-alt);
  color: var(--ink);
}

/* =========================================================================
   7. Breaking News Ticker — .news-ticker
   ========================================================================= */
.news-ticker {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: relative;
  z-index: 10;
}

.news-ticker__inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 14px;
}

.news-ticker__badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-ticker__label {
  background-color: var(--primary);
  color: #fff;
  text-transform: uppercase;
  font-weight: 850;
  font-size: 0.72rem;
  padding: 5px 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
}

.news-ticker__slider {
  flex: 1;
  min-width: 0;
  height: 44px;
  position: relative;
  overflow: hidden;
}

.news-ticker__track {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.news-ticker__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.news-ticker__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.news-ticker__cat {
  background-color: var(--ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.news-ticker__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker__link:hover {
  color: var(--primary);
}

.news-ticker__controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.news-ticker__btn {
  width: 26px;
  height: 26px;
  background-color: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.news-ticker__btn:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.news-ticker__btn svg {
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* =========================================================================
   8. Homepage Portal Layout
   ========================================================================= */
.home-main {
  padding-top: 24px;
  padding-bottom: 50px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.portal-main, .portal-sidebar {
  min-width: 0;
}

body.no-sidebar .portal-layout {
  grid-template-columns: 1fr;
}

/* =========================================================================
   9. Section Headings
   ========================================================================= */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}

.section-heading__title,
h2.section-heading__title,
h3.section-heading__title,
span.section-heading__title {
  margin: 0 !important;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  padding: 7px 18px !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  border-radius: var(--radius) 0 0 0 !important;
  display: inline-block !important;
  line-height: normal !important;
}

.section-heading__line {
  flex: 1;
  height: 2px;
  background-color: var(--primary);
  opacity: 0.85;
}

.section-heading__more {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-left: auto;
  text-decoration: none;
  padding-left: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.2s;
}

.section-heading__more:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* =========================================================================
   10. Hero / Featured Section
   ========================================================================= */
.hero-section {
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 8px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-main__media {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-main__image, .hero-main .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-main__image {
  transform: scale(1.03);
}

.hero-main__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(17, 26, 40, 0.95) 0%, rgba(17, 26, 40, 0.6) 70%, transparent 100%);
  color: #fff;
}

.hero-main__cat {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.hero-main__content h2 {
  margin: 0 0 8px !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

.hero-main__content h2 a {
  color: #ffffff !important;
  text-decoration: none;
}

.hero-main__content h2 a:hover {
  color: var(--primary-soft);
}

.hero-main__content time {
  opacity: 0.85;
  font-size: 0.76rem;
  display: block;
}

.hero-main__content p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 8px 0 0;
  opacity: 0.92;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-side-card__media {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-side-card__image, .hero-side-card .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-side-card:hover .hero-side-card__image {
  transform: scale(1.04);
}

.hero-side-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(17, 26, 40, 0.95) 0%, rgba(17, 26, 40, 0.5) 75%, transparent 100%);
  color: #fff;
}

.hero-side-card__cat {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.hero-side-card__content h3 {
  margin: 0 0 4px !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
}

.hero-side-card__content h3 a {
  color: #ffffff !important;
  text-decoration: none;
}

.hero-side-card__content time {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* =========================================================================
   11. Category Section — 2 Columns (PHOTO & TITLE ONLY, TIGHT GAP)
   ========================================================================= */
.cat-section {
  margin-bottom: 34px;
}

.cat-grid,
.cat-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* =========================================================================
   12. Article Cards — .article-card (Enlarged Photo, Big Title)
   ========================================================================= */
.article-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--surface-alt);
}

.article-card__image, .article-card .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__image {
  transform: scale(1.05);
}

.article-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.article-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  margin: 0 0 8px;
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.35;
}

.article-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card__title a:hover {
  color: var(--primary);
}

.article-card__meta {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: auto;
  font-weight: 500;
}

/* =========================================================================
   13. Editor's Choice Banner — .editor-banner
   ========================================================================= */
.editor-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editor-banner__link {
  display: block;
  width: 100%;
  height: 100%;
}

.editor-banner__media {
  position: absolute;
  inset: 0;
}

.editor-banner__image, .editor-banner .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.editor-banner:hover .editor-banner__image {
  transform: scale(1.03);
}

.editor-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 26, 40, 0.92) 0%, rgba(17, 26, 40, 0.4) 60%, transparent 100%);
}

.editor-banner__content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  color: #fff;
  max-width: 650px;
}

.editor-banner__cat {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.editor-banner__content h2 {
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

.editor-banner__content p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.45;
}

/* =========================================================================
   14. Latest Items List — .latest-section
   ========================================================================= */
.latest-list {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 20px;
  box-shadow: var(--shadow-sm);
}

.latest-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

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

.latest-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  background-color: var(--surface-alt);
}

.latest-item__image, .latest-item .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-item:hover .latest-item__image {
  transform: scale(1.04);
}

.latest-item__body {
  min-width: 0;
}

.latest-item__cat {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.latest-item__body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.35;
}

.latest-item__body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.latest-item__body h3 a:hover {
  color: var(--primary);
}

.latest-item__body time {
  color: var(--muted);
  font-size: 0.74rem;
  display: block;
  margin-bottom: 4px;
}

.latest-item__body p {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}

/* =========================================================================
   15. Sidebar & Widgets (FIX OVERLAPPING & ENHANCE SPACING)
   ========================================================================= */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.widget {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.widget__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  font-size: 0.86rem;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* Popular Posts Widget */
.popular-list,
.widget-popular-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item,
.widget-popular-posts li {
  display: grid;
  grid-template-columns: 24px 80px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.popular-item:last-child,
.widget-popular-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-item__rank {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--muted);
  text-align: center;
  opacity: 0.6;
}

.popular-item:nth-child(1) .popular-item__rank,
.widget-popular-posts li:nth-child(1) .popular-item__rank {
  color: var(--primary);
  opacity: 1;
}

.popular-item__media,
.w-pop-img {
  width: 80px;
  height: 56px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background-color: var(--surface-alt);
}

.popular-item__image,
.w-pop-img img,
.popular-item .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-item:hover .popular-item__image,
.widget-popular-posts li:hover .w-pop-img img {
  transform: scale(1.06);
}

.popular-item__body,
.w-pop-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popular-item__categories,
.w-pop-cat {
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.popular-item__title,
.w-pop-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.popular-item__title a,
.w-pop-title a {
  color: var(--ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}

.popular-item__title a:hover,
.w-pop-title a:hover {
  color: var(--primary);
}

.popular-item__date {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 1px;
}

/* Promise Box (Promotional Magazine Box) */
.widget--promise {
  padding: 0;
  overflow: hidden;
  border: none;
}

.promise-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.promise-box__badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.promise-box__title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.promise-box__tagline {
  font-size: 0.85rem;
  opacity: 0.92;
  line-height: 1.45;
  margin: 0;
}

.promise-box__cta {
  margin-top: 6px;
  display: inline-block;
  background-color: #ffffff;
  color: var(--ink);
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.promise-box__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

/* Sidebar Categories */
.sidebar-categories,
.sidebar-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-categories li {
  border-bottom: 1px solid var(--line);
}

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

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-categories a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Search widget & form */
.search-form {
  display: flex;
  gap: 0;
  width: 100%;
}

.search-form__input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background-color: #fff;
  color: var(--ink);
  font-size: 0.88rem;
}

.search-form__submit {
  height: 42px;
  padding: 0 16px;
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.search-form__submit:hover {
  background-color: var(--primary-dark);
}

.wp-block-search__button.wp-element-button {
  background-color: #0B7BC3;
  color: #FAFAFA;
  text-transform: uppercase;
}

/* Widget About */
.widget-about-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-about-logo img {
  max-width: 180px;
  height: auto;
}

.w-about-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

/* Widget Newsletter */
.widget-newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.w-news-desc {
  font-size: 0.84rem;
  color: var(--text);
  margin: 0;
}

/* Widget Ad */
.widget-ad-content img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* =========================================================================
   16. Footer Top (Tabbed Section) — .footer-top
   ========================================================================= */
.footer-top {
  background-color: #0b7bc3;
  color: #fff;
  padding: 34px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-top__tab {
  padding: 10px 20px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.65);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-top__tab.is-active,
.footer-top__tab:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.footer-top__panel {
  display: none;
  padding-top: 22px;
}

.footer-top__panel.is-active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-top-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-top-item img,
.footer-top-item .media-placeholder {
  width: 75px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.footer-top-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.footer-top-item__title:hover {
  color: var(--primary);
}

.footer-top-item__date {
  color: #94a3b8;
  font-size: 0.7rem;
}

.footer-top-categories {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-top-categories a {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-top-categories a:hover {
  color: var(--primary);
}

.footer-top-cat-count {
  color: #64748b;
  font-size: 0.72rem;
}

/* =========================================================================
   17. Site Footer — .site-footer
   ========================================================================= */
.site-footer {
  background-color: #47474d;
  color: rgba(255,255,255,0.72);
  padding: 40px 0 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(var(--footer-cols, 3), 1fr);
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget__title {
  color: #ffffff;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.25;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--primary);
}

.footer-widget p {
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

.footer-widget__brand,
.footer-widget__logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.footer-widget__brand {
  margin-top: 4px;
}

.footer-widget__brand--license {
  max-width: 150px;
}

.footer-widget__logo--network {
  width: min(180px, 100%);
  margin: 2px 0 10px;
}

.footer-widget__logo--renato {
  width: 88px;
  margin: 2px 0 8px;
}

.footer-widget a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-widget a:hover {
  color: #ffffff;
}

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

.footer-widget li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.84rem;
}

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

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom__copyright {
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom__search {
  display: flex;
}

.footer-bottom__input {
  padding: 8px 14px;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.82rem;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.footer-bottom__submit {
  padding: 8px 16px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =========================================================================
   18. Single Post — .single-main
   ========================================================================= */
.single-main {
  max-width: 920px;
  padding-top: 30px;
  padding-bottom: 50px;
}

.single-with-sidebar .single-main {
  max-width: var(--shell);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Reserve the sidebar track only when single.php actually renders it. */
.single-with-sidebar .single-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.single-content,
.single-sidebar {
  min-width: 0;
}

.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.post-breadcrumbs {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.post-breadcrumbs a {
  color: var(--muted);
}

.post-breadcrumbs a:hover {
  color: var(--primary);
}

.bc-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* White background card for the article */
.post-article,
.page-article {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.post-header {
  margin-bottom: 24px;
}

.post-header__categories {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.post-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 850;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 14px;
}

.post-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-hero {
  margin: 0 0 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--surface-alt);
}

.post-hero__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-header {
  margin-bottom: 24px;
}

.post-header__categories {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.post-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 850;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

.post-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.single-main .entry-content {
  --article-heading-gap: clamp(24px, 3.5vw, 36px);
  --article-subheading-gap: clamp(20px, 3vw, 28px);
  max-width: 74ch;
  font-size: clamp(1rem, 0.18vw + 1rem, 1.08rem);
  line-height: 1.78;
}

/* Editorial heading scale: each level is distinct in size, weight and rhythm. */
.single-main .entry-content h2,
.single-main .entry-content h3,
.single-main .entry-content h4,
.single-main .entry-content h5,
.single-main .entry-content h6 {
  color: var(--ink) !important;
  font-family: var(--display) !important;
  letter-spacing: -0.015em;
  line-height: 1.25 !important;
}

.single-main .entry-content h2 { color: #cf2e2e !important; font-size: clamp(1.55rem, 2.2vw, 1.9rem) !important; font-weight: 850 !important; margin: var(--article-heading-gap) 0 14px !important; padding-bottom: 8px; border-bottom: 2px solid var(--primary-soft); }
.single-main .entry-content h3 { color: #0693e3 !important; font-size: clamp(1.25rem, 1.4vw, 1.45rem) !important; font-weight: 800 !important; margin: var(--article-subheading-gap) 0 10px !important; }
.single-main .entry-content h4 { font-size: clamp(1.08rem, 1vw, 1.2rem) !important; font-weight: 800 !important; margin: 24px 0 8px !important; }
.single-main .entry-content h5 { font-size: 0.98rem !important; font-weight: 800 !important; letter-spacing: 0.045em; text-transform: uppercase; margin: 20px 0 6px !important; }
.single-main .entry-content h6 { font-size: 0.9rem !important; font-weight: 750 !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted) !important; margin: 16px 0 6px !important; }
.single-main .entry-content > :first-child { margin-top: 0 !important; }
.single-main .entry-content h2 + p,
.single-main .entry-content h3 + p,
.single-main .entry-content h4 + p,
.single-main .entry-content h5 + p,
.single-main .entry-content h6 + p { margin-top: 0; }

.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Social Share Section */
.oceweb-article-share {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lblOCEWebShare {
  font-family: "Inter" !important;
  font-size: 19px !important;
  font-weight: 300 !important;
  color: #333333 !important;
  margin-top: 15px !important;
  margin-bottom: 8px !important;
}

.oceweb-share-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  margin-bottom: 20px !important;
}

.btnOCEWebShare {
  font-family: "Inter" !important;
  font-size: 16px !important;
  color: #ffffff !important;
  font-weight: bolder !important;
  text-transform: lowercase !important;
  cursor: pointer !important;
  padding: 4px 11px !important;
  border-radius: 0 !important;
  display: inline-block !important;
  transition: opacity 0.2s ease !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.btnOCEWebShare:hover {
  opacity: 0.88 !important;
}

.btnOCEWebShare_Facebook {
  background-color: #3b5998 !important;
  border: 1px solid #3b5998 !important;
}

.btnOCEWebShare_Twitter {
  background-color: #00aced !important;
  border: 1px solid #00aced !important;
}

.btnOCEWebShare_Pinterest {
  background-color: #cb2027 !important;
  border: 1px solid #cb2027 !important;
}

.btnOCEWebShare_Tumblr {
  background-color: #cb2027 !important;
  border: 1px solid #cb2027 !important;
}

.btnOCEWebShare_Email {
  background-color: #cb2027 !important;
  border: 1px solid #cb2027 !important;
}

.btnOCEWebShare_LinkedIn {
  background-color: #007bb6 !important;
  border: 1px solid #007bb6 !important;
}

.btnOCEWebShare_Reddit {
  background-color: #F34902 !important;
  border: 1px solid #F34902 !important;
}

.btnOCEWebShare_WhatsApp {
  background-color: #23A214 !important;
  border: 1px solid #23A214 !important;
}

/* Hide keywords/tags */
.post-tags {
  display: none !important;
}

/* Enhanced Post Navigation (Previous / Next Cards) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.post-nav__empty {
  display: block;
}

.post-nav__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.22s ease;
  min-height: 86px;
}

.post-nav__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.post-nav__card--next {
  text-align: right;
  justify-content: flex-end;
}

.post-nav__media {
  width: 68px;
  height: 52px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background-color: var(--surface-alt);
}

.post-nav__image,
.post-nav__media img,
.post-nav__media .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-nav__card:hover .post-nav__media img {
  transform: scale(1.08);
}

.post-nav__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-nav__badge {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-nav__title {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}

.post-nav__card:hover .post-nav__title {
  color: var(--primary);
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav__card--next {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }
}

.related-posts {
  margin-top: 30px;
  padding: clamp(20px, 3.5vw, 32px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

/* =========================================================================
   19. Comments Template
   ========================================================================= */
.comments-section {
  margin-top: 30px;
  padding: clamp(24px, 4.5vw, 44px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.comments-section__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--ink);
}

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

.comment-list .comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment-author .avatar {
  border-radius: 50%;
  float: left;
  margin-right: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background-color: var(--surface);
  margin-bottom: 14px;
}

.comment-form input[type="submit"] {
  background-color: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
}

.comment-form input[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* =========================================================================
   20. Archive & Search
   ========================================================================= */
.archive-main {
  padding-top: 34px;
  padding-bottom: 50px;
}

.archive-header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
}

.archive-header .kicker {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.archive-header h1 {
  font-size: 1.8rem;
  font-weight: 850;
  margin: 4px 0 0;
  color: var(--ink);
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.oceweb_footer_widget_p {
  font-size: small !important;
}

/* =========================================================================
   21. Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
	.portal-layout {
		grid-template-columns: 1fr;
	}

	.single-layout,
	.single-with-sidebar .single-layout {
		grid-template-columns: 1fr;
	}

	.single-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
  
  .portal-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-main {
    min-height: 320px;
  }
  
  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top__panel.is-active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .topbar {
    display: none;
  }
  
	.portal-sidebar {
		grid-template-columns: 1fr;
	}

	.single-sidebar {
		grid-template-columns: 1fr;
	}
  
  .cat-grid,
  .cat-grid--2col {
    grid-template-columns: 1fr;
  }
  
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-posts__grid {
    grid-template-columns: 1fr;
  }
  
  .hero-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header__inner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  
  .site-brand__tagline {
    display: none;
  }
  
  .latest-item {
    grid-template-columns: 1fr;
  }
  
  .latest-item__media {
    aspect-ratio: 16 / 9;
  }
  
  .archive-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .footer-top__panel.is-active {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   22. Print & Reduced Motion
   ========================================================================= */
@media print {
  .topbar, .site-header, .main-nav, .mobile-nav, .news-ticker,
  .portal-sidebar, .site-footer, .footer-top, .post-nav, .comments-section {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}









/* Sticky header desktop and touch-friendly mobile navigation */
.desktop-header-stack {
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.25s ease;
}
.desktop-header-stack.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
@media (min-width: 861px) {
  body.admin-bar .desktop-header-stack {
    top: 32px;
  }
}
@media (max-width: 782px) {
  body.admin-bar .desktop-header-stack {
    top: 0;
  }
}
.mobile-nav__toggle {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding: 10px 14px;
  touch-action: manipulation;
}
.mobile-nav__toggle:focus-visible,
.mobile-nav__close:focus-visible,
.mobile-nav__menu a:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}
.mobile-nav__overlay {
  visibility: hidden;
  opacity: 0;
  transform: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-nav__overlay.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.mobile-nav__panel {
  width: min(88vw, 360px);
  max-width: none;
  padding: max(28px, env(safe-area-inset-top)) 20px 24px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-nav__overlay.is-open .mobile-nav__panel {
  transform: translateX(0);
}
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}
.mobile-nav__menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--primary-soft);
}
.mobile-nav__menu .sub-menu a {
  padding: 10px 0 10px 14px;
  font-size: 0.86rem;
}
@media (max-width: 860px) {
  .desktop-header-stack {
    position: sticky;
    top: 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
  }
  .mobile-nav {
    position: static;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-header-stack,
.mobile-nav__overlay,
.mobile-nav__panel {
    transition: none;
  }
}
/* Mobile menu usability refinement */
.mobile-nav {
  padding: 6px var(--gutter);
  background-color: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-nav__toggle {
  width: auto;
  min-width: 116px;
  min-height: 48px;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  line-height: 1;
}
.mobile-nav__toggle svg {
  flex: 0 0 24px;
}
.mobile-nav__overlay {
  background-color: rgba(8, 15, 28, 0.72);
  overscroll-behavior: contain;
}
.mobile-nav__panel {
  width: min(100%, 380px);
  height: 100%;
  min-height: 100%;
  max-height: 100dvh;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 0 16px 16px 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.mobile-nav__close {
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  border-radius: 10px;
  color: var(--ink);
  background-color: var(--surface-alt);
}
.mobile-nav__brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-right: 58px;
  margin-bottom: 16px;
  font-size: clamp(1.15rem, 5vw, 1.4rem);
}
.mobile-nav__menu {
  margin-bottom: 28px;
}
.mobile-nav__menu li {
  min-width: 0;
}
.mobile-nav__menu a {
  min-height: 48px;
  padding: 12px 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mobile-nav__menu .sub-menu {
  margin: 0 0 4px 4px;
  padding-left: 12px;
}
.mobile-nav__menu .sub-menu a {
  min-height: 44px;
  padding: 10px 4px 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}
.mobile-nav__social {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.mobile-nav__social .social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 860px) {
  .mobile-nav {
    top: 0;
  }
}
@media (max-width: 782px) {
  body.admin-bar .mobile-nav {
    top: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav__panel {
    transition: none;
  }
}
/* Chosen slider and pre-footer layout */
.chosen-slider__viewport {
  position: relative;
  min-height: 280px;
}
.chosen-slider__slide[hidden] {
  display: none;
}
.chosen-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.chosen-slider__button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.chosen-slider__button:hover,
.chosen-slider__button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chosen-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chosen-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-dark);
  cursor: pointer;
}
.chosen-slider__dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}
.below-body-area {
  padding: 28px 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.below-body-widget + .below-body-widget {
  margin-top: 24px;
}
.below-body-widget__title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}
.pre-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.pre-footer__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.pre-footer__column {
  min-width: 0;
}
.pre-footer-widget {
  margin: 0;
}
.pre-footer-widget__title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--ink);
}
.guide-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  color: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}
.guide-box__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
}
.guide-box__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
}
.guide-box__text p {
  margin: 0 0 10px;
}
.guide-box__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.portal-sidebar .popular-list {
  gap: 10px;
}
.portal-sidebar .popular-item {
  grid-template-columns: 30px 76px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
  align-items: start;
}
.portal-sidebar .popular-item__media {
  width: 76px;
  height: 58px;
  border-radius: 6px;
}
.portal-sidebar .popular-item__title {
  font-size: 0.78rem;
  line-height: 1.25;
}
.portal-sidebar .popular-item__categories {
  font-size: 0.62rem;
}
.portal-sidebar .popular-item__date {
  font-size: 0.64rem;
}

/* Selected Popular Posts Widget — vertical photo and title cards */
.selected-popular-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-popular-post {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

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

.selected-popular-post__link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.selected-popular-post__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--surface-alt);
}

.selected-popular-post__image,
.selected-popular-post__media .media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.selected-popular-post__link:hover .selected-popular-post__image,
.selected-popular-post__link:focus-visible .selected-popular-post__image {
  transform: scale(1.04);
}

.selected-popular-post__title {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.3;
  transition: color 0.18s;
}

.selected-popular-post__link:hover .selected-popular-post__title,
.selected-popular-post__link:focus-visible .selected-popular-post__title {
  color: var(--primary);
}

@media (max-width: 860px) {
  .pre-footer__inner {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chosen-slider__dot {
    transform: none;
  }
}
