/*
Theme Name: RoarBit
Theme URI: https://roarbit.com.br
Author: RoarBit
Author URI: https://roarbit.com.br
Description: Tema personalizado RoarBit - Portal de Tecnologia
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roarbit

RoarBit WordPress Theme v3 — Portal Magazine
Colors: #0B0F14 (Dark), #E63946 (Red), #FF6B35 (Orange), #F1FAEE (Light)
Font: Inter
*/

/* ==========================================
   CSS CUSTOM PROPERTIES
========================================== */
:root {
  --bg-primary: #0B0F14;
  --bg-secondary: #111820;
  --bg-tertiary: #161d27;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --bg-glass: rgba(11,15,20,0.82);
  --text-primary: #F1FAEE;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  --accent: #E63946;
  --accent-light: #FF6B35;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-subtle: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(255,107,53,0.08));
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(230,57,70,0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(230,57,70,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h: 64px;
  --container: 1240px;
}

/* ==========================================
   RESET & BASE
========================================== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:15px;
  line-height:1.7;
  color:var(--text-primary);
  background:var(--bg-primary);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  opacity:1 !important;
  visibility:visible !important;
}

h1,h2,h3,h4,h5,h6 {
  font-weight:700;
  line-height:1.25;
  letter-spacing:-0.02em;
  color:var(--text-primary);
}
h1 { font-size:clamp(1.8rem,4vw,2.8rem); }
h2 { font-size:clamp(1.4rem,3vw,2rem); }
h3 { font-size:clamp(1.1rem,2.5vw,1.4rem); }
h4 { font-size:1.1rem; }

p { margin-bottom:1rem; color:var(--text-secondary); }
a { text-decoration:none; color:var(--accent); transition:var(--transition); }
a:hover { color:var(--accent-light); }
img { max-width:100%; height:auto; display:block; }
::selection { background:var(--accent); color:#fff; }

.container { max-width:var(--container); margin:0 auto; padding:0 1.5rem; }

/* WordPress Core */
.alignleft { float:left; margin:0 1.5rem 1rem 0; }
.alignright { float:right; margin:0 0 1rem 1.5rem; }
.aligncenter { display:block; margin:0 auto; }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute!important; height:1px; width:1px; overflow:hidden; }

/* ==========================================
   BUTTONS
========================================== */
.btn {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.75rem 1.6rem;
  border-radius:var(--radius-xl);
  font-weight:600;
  font-size:0.875rem;
  border:none;
  cursor:pointer;
  transition:var(--transition);
  position:relative;
  overflow:hidden;
  letter-spacing:0.01em;
}
.btn-primary {
  background:var(--gradient);
  color:#fff;
  box-shadow:0 4px 20px rgba(230,57,70,0.25);
}
.btn-primary:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(230,57,70,0.4);
  color:#fff;
}
.btn-outline {
  background:transparent;
  border:1.5px solid var(--border);
  color:var(--text-primary);
}
.btn-outline:hover {
  border-color:var(--accent);
  color:var(--accent);
  transform:translateY(-2px);
}
.btn-whatsapp {
  background:linear-gradient(135deg,#25D366,#128C7E);
  color:#fff;
  box-shadow:0 4px 20px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(37,211,102,0.4);
  color:#fff;
}
.btn-site {
  background:var(--gradient);
  color:#fff;
}

/* ==========================================
   HEADER
========================================== */
.site-header {
  position:fixed;
  top:0; left:0;
  width:100%;
  height:var(--header-h);
  z-index:1000;
  background:var(--bg-glass);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border-bottom:1px solid var(--border);
  transition:transform 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled { box-shadow:0 4px 30px rgba(0,0,0,0.4); }
.site-header.header-hidden { transform:translateY(-100%); }

.header-content {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:var(--header-h);
}
.header-left { display:flex; align-items:center; gap:2rem; }
.site-logo a { display:flex; align-items:center; }
.logo-img { height:34px; width:auto; transition:var(--transition); }
.logo-img:hover { transform:scale(1.04); }

/* Navigation */
.main-navigation .menu {
  display:flex;
  gap:0.2rem;
  align-items:center;
  list-style:none;
}
.main-navigation .menu-link {
  color:var(--text-secondary);
  font-weight:500;
  font-size:0.82rem;
  padding:0.45rem 0.85rem;
  border-radius:var(--radius-sm);
  display:flex;
  align-items:center;
  gap:0.35rem;
  transition:var(--transition);
  border:1px solid transparent;
}
.main-navigation .menu-link:hover {
  color:var(--text-primary);
  background:rgba(255,255,255,0.05);
  border-color:var(--border);
}
.main-navigation .menu-link i { font-size:0.75rem; opacity:0.7; }

.header-actions { display:flex; align-items:center; gap:0.5rem; }

.search-toggle {
  background:none;
  border:1px solid var(--border);
  color:var(--text-secondary);
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:var(--transition);
  font-size:0.8rem;
}
.search-toggle:hover {
  color:var(--text-primary);
  border-color:var(--accent);
  background:rgba(230,57,70,0.08);
}

.menu-toggle {
  display:none;
  background:none;
  border:1px solid var(--border);
  color:var(--text-primary);
  width:38px; height:38px;
  border-radius:var(--radius-sm);
  cursor:pointer;
  font-size:1rem;
  transition:var(--transition);
  align-items:center;
  justify-content:center;
}

/* ==========================================
   SEARCH OVERLAY
========================================== */
.search-overlay {
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,0.88);
  backdrop-filter:blur(24px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:20vh;
  opacity:0;
  visibility:hidden;
  transition:var(--transition);
}
.search-overlay.active { opacity:1; visibility:visible; }
.search-overlay-inner { width:min(600px,90vw); position:relative; }
.search-overlay .search-field {
  width:100%;
  background:rgba(255,255,255,0.06);
  border:2px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.2rem 3.5rem 1.2rem 1.5rem;
  color:var(--text-primary);
  font-size:1.2rem;
  font-family:inherit;
  outline:none;
  transition:var(--transition);
}
.search-overlay .search-field:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(230,57,70,0.15);
}
.search-overlay .search-field::placeholder { color:var(--text-muted); }
.search-close {
  position:absolute;
  right:16px; top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:1.3rem;
  cursor:pointer;
  transition:var(--transition);
}
.search-close:hover { color:var(--accent); }

/* ==========================================
   HERO SECTION (index.php fallback)
========================================== */
.hero-section {
  padding:calc(var(--header-h) + 3rem) 0 2rem;
  position:relative;
  overflow:hidden;
}
.hero-section::before {
  content:'';
  position:absolute;
  top:-50%; right:-20%;
  width:600px; height:600px;
  background:radial-gradient(circle,rgba(230,57,70,0.06) 0%,transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.hero-content { position:relative; z-index:1; max-width:680px; }
.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.35rem 0.9rem;
  background:rgba(230,57,70,0.1);
  border:1px solid rgba(230,57,70,0.2);
  border-radius:var(--radius-xl);
  color:var(--accent);
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  margin-bottom:1.5rem;
}
.hero-badge i { font-size:0.65rem; }
.hero-title {
  font-size:clamp(1.8rem,4.5vw,2.8rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.03em;
  margin-bottom:1.25rem;
}
.hero-title .gradient-text {
  background:var(--gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-description {
  font-size:1rem;
  color:var(--text-secondary);
  line-height:1.7;
  margin-bottom:2rem;
  max-width:560px;
}
.hero-stats {
  display:flex;
  gap:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
}
.hero-stat { display:flex; flex-direction:column; }
.hero-stat-number {
  font-size:1.4rem;
  font-weight:800;
  background:var(--gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-stat-label {
  font-size:0.72rem;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:500;
}

/* ==========================================
   SECTION HEADER (used in index.php)
========================================== */
.section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:2rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}
.section-title {
  font-size:1.1rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.section-title i { color:var(--accent); font-size:0.9rem; }

/* ==========================================
   CONTENT AREA
========================================== */
.site-content { padding-top:0; min-height:60vh; }
.site-content.no-hero { padding-top:calc(var(--header-h) + 2rem); }
.content-area { width:100%; }

/* ==========================================
   POSTS GRID / CONTAINER
========================================== */
.posts-container,
.posts-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  margin-bottom:2rem;
}
@media(min-width:640px) { .posts-container, .posts-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px) { .posts-container, .posts-grid { grid-template-columns:repeat(3,1fr); } }

/* ==========================================
   POST CARD (content.php)
========================================== */
.post-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
}
.post-card:hover {
  background:var(--bg-card-hover);
  border-color:var(--border-hover);
  transform:translateY(-5px);
  box-shadow:var(--shadow-glow), 0 12px 40px rgba(0,0,0,0.3);
}
.post-card__link {
  display:flex;
  flex-direction:column;
  height:100%;
  color:var(--text-primary);
  text-decoration:none;
}
.post-card__link:hover { color:var(--text-primary); }

.post-card .card-thumbnail {
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
}
.post-card .card-thumbnail img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.6s ease;
}
.post-card:hover .card-thumbnail img { transform:scale(1.08); }
.post-card .card-thumbnail__overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.15) 100%);
  pointer-events:none;
}
.post-card .card-category {
  position:absolute;
  top:12px; left:12px;
  padding:0.22rem 0.65rem;
  background:var(--gradient);
  border-radius:var(--radius-xl);
  font-size:0.65rem;
  font-weight:700;
  color:#fff;
  letter-spacing:0.04em;
  text-transform:uppercase;
  z-index:2;
}

.post-card .card-body {
  padding:1.2rem 1.2rem 0.8rem;
  flex:1;
  display:flex;
  flex-direction:column;
}
.post-card .card-title {
  font-size:0.95rem;
  font-weight:700;
  line-height:1.35;
  margin-bottom:0.5rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-card .card-excerpt {
  font-size:0.82rem;
  color:var(--text-muted);
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:0;
  flex:1;
}

.post-card .card-footer {
  padding:0.75rem 1.2rem;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.post-card .card-reading {
  font-size:0.72rem;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:0.3rem;
}
.post-card .card-reading i { font-size:0.65rem; color:var(--accent); }
.post-card .card-read-more {
  font-size:0.72rem;
  font-weight:600;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:0.3rem;
}
.post-card .card-read-more i { font-size:0.6rem; transition:var(--transition); }
.post-card:hover .card-read-more i { transform:translateX(4px); }

/* ==========================================
   FEATURED POST (content-featured.php)
========================================== */
.post-featured {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:var(--transition);
}
@media(min-width:768px) { .post-featured { grid-template-columns:1.2fr 1fr; } }
.post-featured:hover {
  border-color:var(--border-hover);
  box-shadow:var(--shadow-glow);
}
.post-featured .card-thumbnail {
  aspect-ratio:16/10;
  overflow:hidden;
}
@media(min-width:768px) {
  .post-featured .card-thumbnail { aspect-ratio:auto; min-height:320px; }
}
.post-featured .card-thumbnail img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.5s ease;
}
.post-featured:hover .card-thumbnail img { transform:scale(1.04); }
.post-featured .card-body {
  padding:2rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.post-featured .featured-badge {
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.3rem 0.8rem;
  background:rgba(230,57,70,0.12);
  border:1px solid rgba(230,57,70,0.2);
  border-radius:var(--radius-xl);
  color:var(--accent);
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  margin-bottom:1rem;
  width:fit-content;
}
.post-featured .card-title { font-size:clamp(1.2rem,2.5vw,1.6rem); margin-bottom:0.8rem; }
.post-featured .card-excerpt { -webkit-line-clamp:4; line-clamp:4; margin-bottom:1.5rem; }
.post-featured .card-footer { border-top:1px solid var(--border); padding:1rem 0 0; margin-top:auto; }

/* ==========================================
   PORTAL CAROUSEL
========================================== */
.portal-carousel {
  padding-top:calc(var(--header-h) + 1.5rem);
  padding-bottom:1rem;
  position:relative;
}

.carousel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1.25rem;
}
.carousel-label {
  display:flex;
  align-items:center;
  gap:0.75rem;
  font-size:0.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--text-secondary);
}
.carousel-dot {
  width:8px; height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px var(--accent);
  animation:dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; }
  50% { opacity:0.35; }
}
.carousel-line {
  width:60px;
  height:1px;
  background:var(--border);
}

.carousel-controls {
  display:flex;
  align-items:center;
  gap:0.75rem;
}
.carousel-btn {
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text-secondary);
  font-size:0.75rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:var(--transition);
}
.carousel-btn:hover {
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(230,57,70,0.08);
}
.carousel-counter {
  font-size:0.75rem;
  font-weight:600;
  color:var(--text-muted);
  min-width:50px;
  text-align:center;
}
.carousel-current { color:var(--accent); font-weight:700; }

/* Track */
.carousel-track-wrapper {
  overflow:hidden;
  border-radius:var(--radius-lg);
}
.carousel-track {
  display:flex;
  transition:transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change:transform;
}
.carousel-slide {
  min-width:100%;
  display:grid;
  grid-template-columns:1.4fr 1fr;
  min-height:380px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  text-decoration:none;
  color:var(--text-primary);
  transition:var(--transition);
}
.carousel-slide:hover {
  border-color:var(--border-hover);
  color:var(--text-primary);
}

.carousel-slide__img {
  position:relative;
  overflow:hidden;
}
.carousel-slide__img img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.7s ease;
}
.carousel-slide:hover .carousel-slide__img img { transform:scale(1.05); }
.carousel-slide__overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events:none;
}
.carousel-slide__badge {
  position:absolute;
  top:16px; left:16px;
  padding:0.3rem 0.9rem;
  background:var(--gradient);
  color:#fff;
  font-size:0.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  border-radius:var(--radius-xl);
  z-index:2;
}

.carousel-slide__body {
  padding:2.5rem 2rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.carousel-slide__title {
  font-size:clamp(1.3rem,2.8vw,1.8rem);
  font-weight:800;
  line-height:1.25;
  letter-spacing:-0.02em;
  margin:0 0 0.8rem;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.carousel-slide__excerpt {
  font-size:0.9rem;
  color:var(--text-muted);
  line-height:1.65;
  margin:0 0 auto;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.carousel-slide__meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  font-size:0.78rem;
  color:var(--text-muted);
  margin-top:1.5rem;
  padding-top:1rem;
  border-top:1px solid var(--border);
}
.carousel-slide__meta i { color:var(--accent); margin-right:0.3rem; }
.carousel-slide__readmore {
  font-weight:600;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:0.4rem;
}
.carousel-slide:hover .carousel-slide__readmore i { transform:translateX(3px); }
.carousel-slide__readmore i { transition:var(--transition); }

/* Carousel dots */
.carousel-dots {
  display:flex;
  justify-content:center;
  gap:0.5rem;
  margin-top:1.25rem;
}
.carousel-dot-btn {
  width:8px; height:8px;
  border-radius:50%;
  border:none;
  background:var(--border);
  cursor:pointer;
  transition:var(--transition);
  padding:0;
}
.carousel-dot-btn.active,
.carousel-dot-btn:hover {
  background:var(--accent);
  transform:scale(1.3);
  box-shadow:0 0 8px rgba(230,57,70,0.4);
}

/* ==========================================
   PORTAL SECTION (category columns)
========================================== */
.portal-section {
  padding:2rem 0;
  border-top:1px solid var(--border);
}
.portal-section__head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1.5rem;
}
.portal-section__title {
  font-size:1.05rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.portal-section__title i {
  color:var(--accent);
  font-size:0.85rem;
  width:28px; height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(230,57,70,0.1);
  border-radius:var(--radius-sm);
}
.portal-section__count {
  font-size:0.65rem;
  font-weight:600;
  color:var(--text-muted);
  background:var(--bg-card);
  padding:0.15rem 0.5rem;
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  margin-left:0.25rem;
}
.portal-section__link {
  font-size:0.78rem;
  font-weight:600;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:0.35rem;
}
.portal-section__link:hover { color:var(--accent-light); gap:0.55rem; }
.portal-section__link i { font-size:0.65rem; transition:var(--transition); }

/* Category section grid */
.portal-section__grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem;
}

/* Featured card in category section */
.portal-card--featured {
  display:flex;
  flex-direction:column;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  text-decoration:none;
  color:var(--text-primary);
  transition:var(--transition);
}
.portal-card--featured:hover {
  border-color:var(--border-hover);
  transform:translateY(-4px);
  box-shadow:var(--shadow-glow);
  color:var(--text-primary);
}
.portal-card__img {
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
}
.portal-card__img img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.6s ease;
}
.portal-card--featured:hover .portal-card__img img { transform:scale(1.06); }
.portal-card__overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events:none;
}
.portal-card__content {
  padding:1.3rem;
  flex:1;
  display:flex;
  flex-direction:column;
}
.portal-card__title {
  font-size:1.05rem;
  font-weight:700;
  line-height:1.3;
  margin:0 0 0.5rem;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.portal-card__excerpt {
  font-size:0.82rem;
  color:var(--text-muted);
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 auto;
}
.portal-card__read {
  font-size:0.72rem;
  color:var(--text-muted);
  margin-top:0.8rem;
  display:flex;
  align-items:center;
  gap:0.3rem;
}
.portal-card__read i { color:var(--accent); font-size:0.65rem; }

/* List items (3 smaller posts in category section) */
.portal-card__list {
  display:flex;
  flex-direction:column;
  gap:0;
}
.portal-list-item {
  display:grid;
  grid-template-columns:90px 1fr;
  gap:1rem;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  text-decoration:none;
  color:var(--text-primary);
  transition:var(--transition);
  background:var(--bg-card);
  margin-bottom:0.6rem;
}
.portal-list-item:last-child { margin-bottom:0; }
.portal-list-item:hover {
  border-color:var(--border-hover);
  background:var(--bg-card-hover);
  color:var(--text-primary);
  transform:translateX(4px);
}
.portal-list-item__img {
  border-radius:var(--radius-sm);
  overflow:hidden;
  aspect-ratio:1;
}
.portal-list-item__img img {
  width:100%; height:100%;
  object-fit:cover;
}
.portal-list-item__body {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.portal-list-item__title {
  font-size:0.85rem;
  font-weight:600;
  line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.portal-list-item__meta {
  font-size:0.7rem;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:0.3rem;
  margin-top:0.35rem;
}
.portal-list-item__meta i { color:var(--accent); font-size:0.6rem; }

/* Portal "all" section */
.portal-all {
  padding:2rem 0;
  border-top:1px solid var(--border);
}
.view-all-posts {
  text-align:center;
  margin-top:2rem;
  padding-bottom:1rem;
}

/* ==========================================
   SINGLE POST
========================================== */
.single-post-header {
  padding-top:calc(var(--header-h) + 2rem);
  padding-bottom:1.5rem;
  max-width:780px;
  margin:0 auto;
}

/* Breadcrumb */
.single-breadcrumb {
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:0.75rem;
  color:var(--text-muted);
  margin-bottom:1.5rem;
}
.single-breadcrumb a {
  color:var(--text-muted);
  transition:var(--transition);
}
.single-breadcrumb a:hover { color:var(--accent); }
.single-breadcrumb i.fa-chevron-right { font-size:0.5rem; opacity:0.5; }
.single-breadcrumb i.fa-home { font-size:0.7rem; }

.single-category-badge {
  display:inline-flex;
  padding:0.3rem 0.9rem;
  background:var(--gradient);
  color:#fff;
  font-size:0.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
  border-radius:var(--radius-xl);
  margin-bottom:1rem;
  transition:var(--transition);
}
.single-category-badge:hover {
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 4px 15px rgba(230,57,70,0.35);
}

.single-post-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
  flex-wrap:wrap;
  margin-top:1.25rem;
}
.single-post-meta__left {
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.meta-chip {
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  font-size:0.75rem;
  color:var(--text-muted);
  font-weight:500;
  padding:0.3rem 0.8rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
}
.meta-chip i { color:var(--accent); font-size:0.65rem; }
.meta-chip--long {
  background:rgba(230,57,70,0.08);
  border-color:rgba(230,57,70,0.15);
  color:var(--accent);
}

.single-post-title {
  font-size:clamp(1.6rem,3.5vw,2.4rem);
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.03em;
}

.single-post-thumbnail {
  max-width:900px;
  margin:0 auto 2.5rem;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
}
.single-post-thumbnail img {
  width:100%; height:auto;
  max-height:480px;
  object-fit:cover;
}

.single-post-content { max-width:720px; margin:0 auto; }
.single-post-content .entry-content { font-size:1.02rem; line-height:1.85; }
.single-post-content .entry-content h2 {
  margin:2.5rem 0 1rem;
  padding-top:1rem;
  border-top:1px solid var(--border);
}
.single-post-content .entry-content h3 { margin:2rem 0 0.8rem; }
.single-post-content .entry-content p { margin-bottom:1.4rem; color:var(--text-secondary); }
.single-post-content .entry-content ul,
.single-post-content .entry-content ol { margin:0 0 1.5rem 1.5rem; color:var(--text-secondary); }
.single-post-content .entry-content li { margin-bottom:0.5rem; }
.single-post-content .entry-content blockquote {
  margin:2rem 0;
  padding:1.5rem 1.5rem 1.5rem 2rem;
  border-left:3px solid var(--accent);
  background:rgba(255,255,255,0.02);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  font-style:italic;
  color:var(--text-secondary);
}
.single-post-content .entry-content pre {
  background:var(--bg-secondary);
  padding:1.5rem;
  border-radius:var(--radius-md);
  overflow-x:auto;
  font-size:0.875rem;
  border:1px solid var(--border);
  margin-bottom:1.5rem;
}
.single-post-content .entry-content code {
  background:rgba(255,255,255,0.06);
  padding:0.15rem 0.4rem;
  border-radius:4px;
  font-size:0.9em;
}
.single-post-content .entry-content img {
  border-radius:var(--radius-md);
  margin:1.5rem 0;
}
.single-post-content .entry-content a {
  color:var(--accent);
  text-decoration:underline;
  text-decoration-color:rgba(230,57,70,0.3);
  text-underline-offset:3px;
}
.single-post-content .entry-content a:hover { text-decoration-color:var(--accent); }

/* Reading progress bar */
.reading-progress {
  position:fixed;
  top:0; left:0;
  width:0%;
  height:3px;
  background:var(--gradient);
  z-index:1001;
  transition:width 0.1s linear;
}

/* Tags */
.post-tags {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  align-items:center;
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
}
.post-tags__label {
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:0.35rem;
}
.post-tags__label i { color:var(--accent); font-size:0.7rem; }
.post-tags a {
  padding:0.25rem 0.7rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  font-size:0.72rem;
  font-weight:500;
  color:var(--text-muted);
  transition:var(--transition);
}
.post-tags a:hover {
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(230,57,70,0.08);
}

/* Share buttons */
.post-share {
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-top:1.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
}
.post-share__label {
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-muted);
  margin-right:0.25rem;
}
.post-share__btn {
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text-muted);
  font-size:0.85rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:var(--transition);
}
.post-share__btn:hover { transform:translateY(-2px); }
.post-share__btn--twitter:hover { border-color:#1DA1F2; color:#1DA1F2; background:rgba(29,161,242,0.08); }
.post-share__btn--linkedin:hover { border-color:#0077B5; color:#0077B5; background:rgba(0,119,181,0.08); }
.post-share__btn--whatsapp:hover { border-color:#25D366; color:#25D366; background:rgba(37,211,102,0.08); }
.post-share__btn--copy:hover { border-color:var(--accent); color:var(--accent); background:rgba(230,57,70,0.08); }

/* Post navigation */
.post-navigation {
  max-width:720px;
  margin:2.5rem auto;
  padding:1.5rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
.post-navigation .nav-links { display:flex; justify-content:space-between; }
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:0.85rem;
  font-weight:600;
  color:var(--text-secondary);
  transition:var(--transition);
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover { color:var(--accent); }

/* ==========================================
   RELATED POSTS
========================================== */
.related-posts {
  max-width:900px;
  margin:3rem auto;
  padding-top:2rem;
}
.related-posts__title {
  font-size:1.15rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-bottom:1.5rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}
.related-posts__title i { color:var(--accent); font-size:0.9rem; }
.related-posts__grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.25rem;
}

.related-card {
  display:flex;
  flex-direction:column;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  text-decoration:none;
  color:var(--text-primary);
  transition:var(--transition);
}
.related-card:hover {
  border-color:var(--border-hover);
  transform:translateY(-4px);
  box-shadow:var(--shadow-glow);
  color:var(--text-primary);
}
.related-card__img {
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
}
.related-card__img img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.5s ease;
}
.related-card:hover .related-card__img img { transform:scale(1.06); }
.related-card__badge {
  position:absolute;
  top:10px; left:10px;
  padding:0.2rem 0.6rem;
  background:var(--gradient);
  color:#fff;
  font-size:0.6rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
  border-radius:var(--radius-xl);
}
.related-card__body {
  padding:1rem;
}
.related-card__title {
  font-size:0.88rem;
  font-weight:600;
  line-height:1.35;
  margin:0 0 0.4rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-card__meta {
  font-size:0.7rem;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:0.3rem;
}
.related-card__meta i { color:var(--accent); font-size:0.6rem; }

/* ==========================================
   CTA BOX (modern redesign)
========================================== */
.article-cta {
  max-width:720px;
  margin:3rem auto;
  background:var(--gradient-subtle);
  border:1px solid rgba(230,57,70,0.20);
  border-radius:var(--radius-lg);
  padding:2.5rem;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.article-cta::before {
  content:'';
  position:absolute;
  top:-50%; right:-30%;
  width:300px; height:300px;
  background:radial-gradient(circle,rgba(230,57,70,0.08) 0%,transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.article-cta__icon {
  width:52px; height:52px;
  border-radius:var(--radius-md);
  background:var(--gradient);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.3rem;
  color:#fff;
  margin:0 auto 1.2rem;
}
.article-cta h3 {
  font-size:1.3rem;
  margin-bottom:0.5rem;
  color:var(--text-primary);
  font-weight:800;
}
.article-cta p { color:var(--text-secondary); margin-bottom:1.5rem; font-size:0.92rem; line-height:1.7; }
.cta-buttons { display:flex; gap:0.8rem; justify-content:center; flex-wrap:wrap; }
.cta-trust {
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:1.5rem;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,0.05);
}
.cta-trust span {
  font-size:0.72rem;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:0.3rem;
}
.cta-trust i { color:var(--accent); font-size:0.65rem; }

/* ==========================================
   PAGINATION
========================================== */
.pagination {
  display:flex;
  justify-content:center;
  margin:2.5rem 0 3rem;
}
.pagination ul { display:flex; gap:0.35rem; list-style:none; }
.pagination li a,
.pagination li span {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:40px; height:40px;
  padding:0 0.6rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:0.85rem;
  font-weight:600;
  color:var(--text-secondary);
  transition:var(--transition);
}
.pagination li a:hover {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  transform:translateY(-2px);
}
.pagination li.current a {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
  background:var(--bg-secondary);
  border-top:1px solid var(--border);
  margin-top:3rem;
}
.footer-center {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:3rem 0 1.5rem;
}
.footer-center .footer-logo { height:48px; margin-bottom:1rem; }
.footer-tagline { font-size:0.88rem; color:var(--text-muted); margin-bottom:1.5rem; }
.footer-social { display:flex; gap:0.6rem; }
.footer-social a {
  width:40px; height:40px;
  border:1px solid var(--border);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  font-size:0.9rem;
  transition:var(--transition);
}
.footer-social a:hover {
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(230,57,70,0.08);
  transform:translateY(-2px);
}
.footer-bottom {
  border-top:1px solid var(--border);
  padding:1rem 0;
  text-align:center;
}
.footer-bottom p { font-size:0.75rem; color:var(--text-muted); margin:0; }

/* ==========================================
   FLOATING BUTTONS
========================================== */
.social-float {
  position:fixed;
  width:50px; height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  color:#fff;
  z-index:999;
  transition:var(--transition);
  box-shadow:var(--shadow-md);
}
.social-float:hover { transform:translateY(-4px) scale(1.08); color:#fff; }
.whatsapp-float { bottom:24px; right:24px; background:linear-gradient(135deg,#25D366,#128C7E); }
.whatsapp-float:hover { box-shadow:0 8px 30px rgba(37,211,102,0.5); }
.instagram-float { bottom:82px; right:24px; background:linear-gradient(135deg,#E1306C,#C13584,#833AB4); }
.instagram-float:hover { box-shadow:0 8px 30px rgba(193,53,132,0.5); }

/* ==========================================
   PAGE HEADER (archive, search)
========================================== */
.page-header {
  padding-top:calc(var(--header-h) + 2rem);
  padding-bottom:1.5rem;
  margin-bottom:1rem;
}
.page-header .page-title { font-size:clamp(1.4rem,3vw,2rem); font-weight:700; }
.not-found, .no-results { text-align:center; padding:6rem 0; }
.not-found h1, .no-results h1 {
  font-size:clamp(2rem,5vw,4rem);
  background:var(--gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.fade-up {
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }
.fade-up:nth-child(2) { transition-delay:0.08s; }
.fade-up:nth-child(3) { transition-delay:0.16s; }
.fade-up:nth-child(4) { transition-delay:0.24s; }
.fade-up:nth-child(5) { transition-delay:0.32s; }
.fade-up:nth-child(6) { transition-delay:0.40s; }

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:0.01ms !important;
    transition-duration:0.01ms !important;
  }
}

/* Hidden elements */
.posted-on, .entry-date, .byline, .comments-link, .entry-meta, .cat-links { display:none; }
.sidebar, #secondary, .widget-area { display:none; }

/* ==========================================
   RESPONSIVE
========================================== */
@media(max-width:960px) {
  .carousel-slide {
    grid-template-columns:1fr;
    min-height:auto;
  }
  .carousel-slide__img { aspect-ratio:16/9; }
  .carousel-slide__body { padding:1.5rem; }
  .carousel-slide__title { font-size:1.2rem; }

  .portal-section__grid {
    grid-template-columns:1fr;
  }
  .portal-card__list { flex-direction:row; flex-wrap:wrap; gap:0.6rem; }
  .portal-list-item { flex:1; min-width:250px; margin-bottom:0; }

  .related-posts__grid { grid-template-columns:1fr; }
}

@media(max-width:768px) {
  .menu-toggle { display:flex; }
  .main-navigation .menu {
    display:none;
    position:absolute;
    top:var(--header-h);
    left:0; right:0;
    flex-direction:column;
    background:var(--bg-glass);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
    padding:0.75rem;
    gap:0.25rem;
  }
  .main-navigation.toggled .menu { display:flex; }
  .main-navigation .menu-link { padding:0.85rem 1rem; width:100%; }

  .hero-section { padding:calc(var(--header-h) + 2rem) 0 2rem; }
  .hero-stats { gap:1.5rem; flex-wrap:wrap; }

  .social-float { width:44px; height:44px; font-size:19px; }
  .whatsapp-float { bottom:16px; right:16px; }
  .instagram-float { bottom:68px; right:16px; }

  .post-featured { grid-template-columns:1fr; }

  .related-posts__grid { grid-template-columns:1fr; }

  .carousel-slide__body { padding:1.2rem; }
  .single-post-meta { flex-direction:column; align-items:flex-start; }
}

@media(max-width:480px) {
  .container { padding:0 1rem; }
  .logo-img { height:28px; }
  .cta-buttons { flex-direction:column; }
  .cta-buttons .btn { width:100%; justify-content:center; }
  .cta-trust { flex-direction:column; align-items:center; }
  .portal-list-item { grid-template-columns:70px 1fr; }
  .carousel-header { flex-direction:column; gap:0.75rem; align-items:flex-start; }
  .post-share { flex-wrap:wrap; }
  .single-breadcrumb { font-size:0.7rem; }
}


