/**
 * La Fragata - Estilos
 * Generado: 2025-12-09 13:26:49
 * Estrategia: Mobile-First
 */

/* ========================================
   ESTILOS BASE + MOBILE
   Incluye estilos base y media queries mobile
   ======================================== */

:root {
  --color-bg: #011326;
  --color-surface: #0a1f35; /* Adjusted slightly to match new bg */
  --color-surface-light: #1e1e1e;
  --color-primary: #c5a059; /* Gold */
  --color-primary-hover: #d4b06a;
  --color-secondary: #0f172a; /* Deep Navy */
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-accent: #ef4444; /* Red for Live */

  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 15px rgba(197, 160, 89, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

blockquote {position: relative;padding: 0.2rem 1rem;background-color: #082038;margin: 0px 1rem;}

blockquote::before {font-size: 4rem;color: #6c63ff;position: absolute;top: -10px;left: 10px;}

blockquote .ql-indent-1 {
display: block; margin-top: 0.5rem; font-size: 0.9rem; color: #555;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.section {
  padding: var(--spacing-lg) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000;
}

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

.glass-panel {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-gold {
  color: var(--color-primary);
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}

@media (max-width: 770px) {
  #root {
    padding: 0rem !important;
  }
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  padding: 3rem;
}

.contact-info {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2rem;
}

.info-item {
  margin-top: 2rem;
}

.info-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.file-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.2);
}

.file-drop-zone:hover,
.file-drop-zone.dragging {
  border-color: var(--color-primary);
  background: rgba(197, 160, 89, 0.05);
}

.file-drop-zone.has-file {
  border-style: solid;
  border-color: var(--color-primary);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none; /* Let input handle clicks */
}

.upload-icon {
  font-size: 2rem;
  color: var(--color-text-muted);
}

.btn-block {
  width: 100%;
}
.file-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-icon-sm {
  color: var(--color-primary);
}

.btn-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: var(--color-accent);
}
.mr-2 {
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .contact-info {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 2rem;
  }
}

.header {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(1, 19, 38, 0.95); /* Less transparent for fixed header */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem; /* Reduced padding for image logo */
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 80px; /* Adjust based on preference */
  width: auto;
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.5));
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin: 0;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-img {
    height: 60px;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.last-lives-section {
  padding: 2rem 0;
  margin-top: -2rem; /* Pull up closer to LiveStatus */
  margin-bottom: 2rem;
}

.section-title-sm {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

.section-title-sm .icon {
  color: var(--primary);
}

.lives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.live-card {
  display: block;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.live-card .thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  width: 100%;
}

.live-card .thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.live-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

.live-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.live-card:hover .play-overlay {
  opacity: 1;
}

.live-card .play-overlay svg {
  font-size: 2rem;
  color: #fff;
}

.live-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.live-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.live-card .date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.live-section {
  padding-top: 2rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-indicator h2 {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.offline-title {
  color: var(--color-text-muted) !important;
  text-shadow: none !important;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 2rem;
}

.youtube-embed iframe,
.tiktok-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tiktok-embed {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-note {
  position: absolute;
  top: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
}

.cta-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.live-message {
  color: var(--color-text) !important;
  font-size: 1.2rem;
  animation: pulse-text 2s ease-in-out infinite;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.live-message strong {
  color: var(--color-accent);
  font-size: 1.3rem;
}

.btn-live {
  animation: pulse-button 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes pulse-button {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.6);
  }
}
.schedule-section {
  position: relative;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

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

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

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

.program-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.btn-playlist {
  position: relative; /* Ensure button stays above overlay if needed, or just visual */
  z-index: 2; /* Optional: if we want the button to be clickable separately, but overlay covers all */
  /* ... existing styles ... */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: color 0.3s;
}

.program-card:hover .btn-playlist {
  color: #fff;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary);
}

.program-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.program-logo {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  height: 70px;
  width: auto;
  z-index: 2;
  pointer-events: none; /* Allow clicks to pass through to the card link */
  opacity: 0.9;
}

.program-logo img {
  height: 100%;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.program-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.program-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Main Program Highlight */
.main-program {
  border: 1px solid var(--color-primary);
  background: linear-gradient(
    145deg,
    rgba(30, 30, 30, 0.8) 0%,
    rgba(197, 160, 89, 0.1) 100%
  );
}

.main-program .program-title {
  color: var(--color-primary);
}

.badge-main {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--color-primary);
  color: #000;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.share-buttons-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-button:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .share-buttons-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  z-index: 2;
}

.social-name {
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--hover-color);
  box-shadow: 0 0 15px var(--hover-color);
}

.social-card:hover .social-icon {
  transform: scale(1.1);
  color: var(--hover-color);
}

.social-card:hover .social-name {
  color: var(--hover-color);
}

/* TikTok Special Effect */
.tiktok-card:hover {
  border-color: #00f2ea;
  box-shadow: -2px -2px 10px rgba(0, 242, 234, 0.5),
    2px 2px 10px rgba(255, 0, 80, 0.5);
}

.tiktok-card:hover .social-icon {
  color: #fff;
  filter: drop-shadow(-2px -2px 0px #00f2ea) drop-shadow(2px 2px 0px #ff0050);
}

.tiktok-card:hover .social-name {
  background: linear-gradient(to right, #00f2ea, #ff0050);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.social-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
  z-index: 2;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-name {
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--hover-color);
  box-shadow: 0 0 15px var(--hover-color);
}

.social-card:hover .social-icon {
  transform: scale(1.1);
  color: var(--hover-color);
}

.social-card:hover .social-name {
  color: var(--hover-color);
}

/* TikTok Special Effect */
.tiktok-card:hover {
  border-color: #00f2ea;
  box-shadow: -2px -2px 10px rgba(0, 242, 234, 0.5),
    2px 2px 10px rgba(255, 0, 80, 0.5);
}

.tiktok-card:hover .social-icon {
  color: #fff;
  filter: drop-shadow(-2px -2px 0px #00f2ea) drop-shadow(2px 2px 0px #ff0050);
}

.tiktok-card:hover .social-name {
  background: linear-gradient(to right, #00f2ea, #ff0050);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .social-card {
    padding: 1.5rem;
  }

  .social-icon {
    font-size: 2rem;
  }
}

.playlist-page {
  padding: 120px 0 60px;
  min-height: 100vh;
  background: var(--bg-dark);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary);
}

.video-player-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info h1 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.video-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.video-desc {
  color: var(--text-light);
  line-height: 1.2;
  white-space: pre-wrap;
}

.playlist-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.playlist-header h2 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
  height: 120px; /* Reduced height since no description */
  align-items: center; /* Center vertically */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.video-card:hover {
  transform: translateX(5px);
  border-color: rgba(197, 160, 89, 0.3); /* Gold border on hover */
  background: rgba(197, 160, 89, 0.05); /* Subtle gold tint */
}

.video-card.active {
  border: 1px solid var(--primary);
  background: rgba(197, 160, 89, 0.1);
}

.thumbnail-wrapper {
  position: relative;
  width: 213px; /* Adjusted to maintain 16:9 with 120px height */
  min-width: 213px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

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

.video-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

.duration-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 2;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.card-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-content h3 {
  font-size: 1.1rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-light);
  line-height: 1.4;
}

.card-content .date {
  font-size: 0.8rem;
  color: var(--primary); /* Highlight date */
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.card-content .desc-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .video-card {
    flex-direction: column;
    height: auto;
  }

  .thumbnail-wrapper {
    width: 100%;
    height: 200px;
  }

  .card-content {
    padding: 1rem;
  }
}

.playlist-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--primary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(197, 160, 89, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .playlist-page {
    padding-top: 100px;
  }

  .video-info h1 {
    font-size: 1.2rem;
  }
}

/* ===============================================
   POST DETAIL PAGE - UNIFIED DESIGN SYSTEM
   =============================================== */

.post-detail-page {
  padding: 20px 0 60px;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* Editorial Subtle Mode */
.post-detail-page.editorial-mode {
  background: radial-gradient(
    circle at top right,
    #1a2640 0%,
    var(--bg-dark) 60%
  );
}

.post-loading,
.post-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--primary);
}

.post-not-found h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #0a1628;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-back:hover {
  transform: translateY(-2px);
}

/* Post Title */
.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  font-family: "Inter";
}

.editorial-mode .post-title {
  color: #e8d4a0; /* Subtle gold tint for editorials */
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1.6rem;
  }
}

/* ===============================================
   LAYOUT SYSTEMS
   =============================================== */

.post-content-wrapper {
  margin: 0 auto;
  max-width: 800px; /* Narrower to match live version */
  display: flex;
  flex-direction: column;
  gap: 0;
}

.editorial-mode .post-content-wrapper {
  border-color: rgba(197, 160, 89, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Vertical Layout (Side by Side) --- */
.post-content-wrapper.layout-vertical {
  max-width: 100%;
}

/* Responsive Ad Visibility */
.view-lg,
.view-md,
.view-sm {
  display: none !important;
}

@media (max-width: 767px) {
  .view-sm {
    display: block !important;
  }
}

/* --- Horizontal Layout (Stacked with Sidebar) --- */
.post-content-wrapper.layout-horizontal {
  max-width: 1200px;
}

.layout-horizontal .content-section-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  margin-top: 1rem;
}

.layout-horizontal .media-section {
  width: 100%;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.content-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.content-highlight-v {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .layout-horizontal .content-section-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    margin-top: 2rem;
    align-items: center;
  }

  .sidebar-widget {
    width: 100%;
    max-width: 400px;
  }
}

/* ===============================================
   MEDIA SECTION (Video / Image)
   =============================================== */

.media-section {
  width: 100%;
}

.content-main {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.5rem;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Horizontal Video (16:9) */
.video-wrapper.horizontal {
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  width: 100%;
}

/* Vertical Video (9:16) */
.video-wrapper.vertical {
  padding-bottom: 177.78%; /* 9:16 aspect ratio */
  height: 0;
  width: 100%;
  max-width: 570px;
  margin: 0 auto;
  z-index: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* TikTok Wrapper */
.tiktok-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.tiktok-wrapper.vertical {
  max-width: 605px;
  margin: 0 auto;
}

.tiktok-wrapper.horizontal {
  width: 100%;
}

.tiktok-embed {
  margin: 0 !important;
}

.featured-image-container {
  width: 100%;
  margin-bottom: 0;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.editorial-mode .featured-image {
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.image-credit {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: right;
}

/* ===============================================
   POST INFO SECTION
   =============================================== */

.post-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Metadata */
.post-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.metadata-label {
  font-size: 1.1rem;
}

.metadata-value {
  color: rgba(240, 248, 255, 0.8);
  font-weight: 400;
}

.category-badge {
  padding: 0.4rem 1rem;
  background: rgba(197, 160, 89, 0.15);
  color: var(--primary);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid #594d33;
  border-radius: 8px;
  color: rgba(240, 248, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Content Typography */
.detail-description {
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(240, 248, 255, 0.95);
  font-family: "Georgia", "Times New Roman", serif;
  margin-top: 1.5rem;
}

.short-description {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.9);
  margin: 1.5rem 0;
  float: none;
  clear: both;
  margin-top: 1rem;
  display: inline-block;
  font-feature-settings: unset;
}

.editorial-mode .short-description {
  font-style: italic;
  color: #e8d4a0; /* Subtle gold text for editorial intro */
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  clear: both;
  margin-top: 1rem;
  float: inline-end;
}

.long-description {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(240, 248, 255, 0.9);
  font-family: "Inter";
  margin-top: 1.5rem;
  clear: both;
}

.long-description p {
  text-align: left;
}

.long-description h2,
.long-description h3 {
  color: var(--text-light);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.long-description h2 {
  font-size: 1.5rem;
}

.long-description h3 {
  font-size: 1.2rem;
}

.long-description a {
  color: var(--primary);
  text-decoration: underline;
}

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

.long-description ul,
.long-description ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.long-description li {
  margin-bottom: 0.5rem;
}

.divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .post-content-wrapper.layout-vertical {
    grid-template-columns: 1fr;
  }

  .layout-vertical .media-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .post-detail-page {
    padding: 100px 0 40px;
  }

  .post-content-wrapper {
  }

  .layout-vertical .media-section {
    max-width: 100%;
  }
  .post-metadata {
    gap: 0.5rem;
    padding: 0;
    margin-bottom: -5px;
    width: 100%;
    padding: 1rem;
  }
  .short-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .long-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .post-info {
    gap: 0.5rem;
    padding: 0;
    margin-bottom: -5px;
    margin-top: 1rem;
  }
  img{
    width:100%;
  }
}

.posts-page {
  padding: 20px 0 60px;
  min-height: 100vh;
  background: var(--bg-dark);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.category-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(197, 160, 89, 0.3);
  background: rgba(197, 160, 89, 0.1);
  color: var(--text-light);
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: #8fa8d6;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* --- Cortos Layout (Vertical Grid) --- */
.posts-grid.cortos-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.cortos-layout .post-thumbnail {
  padding-bottom: 70%; /* 9:16 aspect ratio */
  aspect-ratio: 16 / 10;
}

.corto-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.corto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(197, 160, 89, 0.2);
}

/* --- Articles Layout (Newspaper Style) --- */
.posts-grid.articles-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px; /* Wider to fit 2 columns comfortably */
  margin: 0 auto 3rem;
}

.article-card {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px; /* Slightly less rounded for newspaper feel */
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 180px; /* Reduced height */
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

.article-card .post-thumbnail {
  width: 40%; /* Slightly larger image ratio for balance */
  min-width: 0; /* Allow shrinking */
  padding-bottom: 0;
  height: auto;
  position: relative;
  display: flex;
}

.article-card .post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .post-info {
  width: 60%;
  padding: 1rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align top */
  text-align: left;
}

.article-card h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1rem; /* Slightly smaller for density */
  font-weight: 600;
  color: #f0f8ff;
  margin-bottom: 0.1rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow more lines for title */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .category-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  width: fit-content;
  position: relative;
  margin: 1rem auto;
  bottom: -10px;
  align-self: self-end;
  background: rgb(97 77 41 / 69%);
}

.article-card .description {
  font-family: Georgia, Times New Roman, serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #f0f8ffcc;
  margin-bottom: 0rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .meta {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: auto;
  font-size: 0.8rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: auto;
  float: right;
}

/* --- Common Card Styles --- */
.post-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- Generic Thumbnail Styles --- */
.post-thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Category badge overlay on thumbnail */
.post-card .category-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  background: rgba(197, 160, 89, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.post-thumbnail img {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover .play-overlay {
  opacity: 1;
}

/* --- Generic Post Info Styles (Default / Cortos) --- */
.post-info {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-info h3 {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: "Inter";
}

.category-badge {
  display: flex;
  padding: 0.25rem 0.75rem;
  background: rgba(197, 160, 89, 0.2);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}

.description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* --- Loading & Empty States --- */
.posts-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--primary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(197, 160, 89, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .posts-grid.cortos-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid.articles-layout {
    grid-template-columns: 1fr; /* Stack on smaller screens */
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .posts-page {
    padding-top: 100px;
  }

  .posts-grid.cortos-layout {
    grid-template-columns: 1fr;
  }

  .posts-grid.articles-layout {
    gap: 1.5rem;
  }

  .article-card {
    flex-direction: column;
    min-height: auto;
  }

  .article-card .post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .article-card .post-info {
    width: 100%;
    padding: 1rem;
  }
}

/* ========================================
   HAMBURGER MENU (Mobile)
   ======================================== */

.hamburger {
  display: none; /* Hidden by default (desktop) */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show hamburger on mobile */
  }

  .logo-text-link {
    display: none; /* Hide "La Fragata Stream" text on mobile */
  }

  .logo-img {
    height: 64px !important; /* Smaller logo on mobile */
    top: 10px;
    margin-top: 0.2rem;
    margin-bottom: -12px;
    margin-left: 1rem;
  }

  .header-content {
    flex-direction: row !important; /* Keep logo and hamburger on same row */
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 31, 53, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 99999; /* Increased to stay above EVERYTHING */
  }

  .hamburger {
    z-index: 100000; /* Ensure button is above menu */
    position: relative;
  }

  .nav.active {
    right: 0; /* Slide in from right */
  }

  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    transition: all 0.2s;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--color-primary);
    padding-left: 0.5rem;
  }
}

/* ========================================
   DISPLAY SYSTEM STYLES (Formerly Ads)
   ======================================== */

.display-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  max-width: 100%;
}

.display-action {
  display: block;
  position: relative;
  text-decoration: none;
  transition: opacity 0.2s;
}

.display-action:hover {
  opacity: 0.9;
}

.display-asset {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive display images */
.view-lg {
  display: block;
}

.view-md {
  display: none;
}

.view-sm {
  display: none;
}

@media (max-width: 1024px) {
  .view-lg {
    display: none;
  }

  .view-md {
    display: block;
  }
}

@media (max-width: 768px) {
  .view-lg,
  .view-md {
    display: none;
  }

  .view-sm {
    display: block;
  }
}

.meta-tag {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.ad-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.ad-fallback {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ========================================
   SOCIAL ICONS STYLES
   ======================================== */

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-link:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
  border-color: var(--color-primary);
}

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

/* ========================================
   PAGE SPECIFIC STYLES (Moved from inline)
   ======================================== */

/* Post Detail */
.layout-horizontal .content-section-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  margin-top: 1rem;
}

.layout-vertical .content-section-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.vertical-video-ad {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .layout-horizontal .content-section-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Post List */
.posts-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar-column {
  position: sticky;
  top: 180px; /* Adjusted for fixed header */
}

@media (max-width: 1024px) {
  .posts-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    position: static;
    order: 2;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
}

/* Playlist Page */
.playlist-page {
  padding: 40px 0 60px; /* Reduced top padding as body has padding now */
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--color-primary);
}

.program-page-header {
  margin-bottom: 1rem;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0rem;
}

.header-main-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 300px;
}

.notebook-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 0 1rem;
  max-width: 400px;
}

.notebook-description {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.4;
}

.notebook-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  align-self: flex-end;
}

.notebook-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
  color: var(--color-primary);
}

.notebook-btn .icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.program-logo-container {
  width: 150px;
  flex-shrink: 0;
}

.program-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.program-info-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.schedule-section {
  padding: 4rem 0;
}

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

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

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  background-color: #111827;
  /* Dark blue/gray background */
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border-color: var(--color-primary);
}

.program-card.is-main {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

/* Ribbon for Main Program */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  z-index: 10;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 180px;
  padding: 8px 0;
  background-color: var(--color-primary);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  text-align: center;
  right: -45px;
  top: 30px;
  transform: rotate(45deg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}

.schedule-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  flex: 1;
  text-align: center;
  z-index: 2;
}

.program-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.program-description {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0rem;
  z-index: 2;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.btn-watch:hover {
  color: #fff;
}

.play-icon {
  font-size: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  /* Visual correction */
}

.program-logo-watermark {
  max-width: 100px;
  max-height: 100px;
  opacity: 0.8;
  filter: grayscale(20%);
  transition: all 0.3s;
}

.program-card:hover .program-logo-watermark {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.program-schedule-info {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  text-align: center;
  padding-left: 1rem;
}

.program-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.video-player-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-info h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.video-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
  height: 120px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
  transform: translateX(5px);
  border-color: rgba(197, 160, 89, 0.3);
  background: rgba(197, 160, 89, 0.05);
}

.video-card.active {
  border: 1px solid var(--color-primary);
  background: rgba(197, 160, 89, 0.1);
}

.thumbnail-wrapper {
  position: relative;
  width: 213px;
  min-width: 213px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

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

.video-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.card-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-content h3 {
  font-size: 1.1rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text-light);
  line-height: 1.4;
}

.card-content .date {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .program-page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .header-main-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .notebook-section {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }

  .notebook-btn {
    align-self: center;
  }

  .video-card {
    flex-direction: column;
    height: auto;
  }

  .thumbnail-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
  }

  .card-content {
    padding: 1rem;
    width: 100%;
  }
}

/* ===============================================
   PROFESSIONAL SHARE BUTTONS
   =============================================== */

.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem;
  border-radius: 50px; /* Pill shape for modern look */
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}

.share-btn svg {
  width: 29px;
  height: 30px;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.share-btn:hover svg {
  transform: scale(1.1);
}

/* Brand Colors */
.btn-facebook {
  background-color: #1877f2;
}

.btn-facebook:hover {
  background-color: #166fe5;
  box-shadow: 0 8px 15px rgba(24, 119, 242, 0.3);
}

.btn-twitter {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-twitter:hover {
  background-color: #1a1a1a;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #22bf5b;
  box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .share-buttons-grid {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.posts-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar-column {
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  .posts-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .sidebar-column {
    position: static;
    order: 2;
    /* Sidebar al final en mobile */
    margin-top: 0rem;
    display: flex;
    justify-content: center;
  }
}

img.featured-image.content-image {
  max-width: 300px;
  float: left;
  margin-right: 1.2rem;
  /* display: grid; */
  /* grid-template-columns: max-content; */
  clear: both;
}
h2.section-title.text-center {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
/* Logo Watermark en Tarjetas de Programa */
.program-logo-watermark {
  position: absolute;
  bottom: 0rem;
  right: 1rem;
  height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.program-card:hover .program-logo-watermark {
  transform: scale(1.1);
  opacity: 1;
}

/* ============================================
   TAG PAGE STYLES
   ============================================ */

/* Container principal */
.tag-page-container {
  padding-bottom: 60px;
}

/* Header wrapper con fondo decorativo */
.tag-header-wrapper {
  margin-bottom: 1rem;
  position: relative;
}

.tag-bg-gradient {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  z-index: -1;
  pointer-events: none;
}

/* Header superior (título y subtítulo) */
.tag-header-top {
  text-align: center;
  margin-bottom: 2rem;
}

.tag-entity-label {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: bold;
}

.tag-title {
  font-size: 3.5rem;
  margin: 0.5rem 0;
  line-height: 1.1;
  text-transform: capitalize;
}

/* Contenedor de perfil (imagen + descripción) */
.tag-profile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Wrapper de imagen */
.tag-image-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.tag-image-container {
  position: relative;
}

.tag-image-person {
  width: 100%;
  max-width: 350px;
  border-radius: 5%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 4px solid var(--glass-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tag-image-topic {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 4px solid var(--glass-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tag-featured-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Sección de texto */
.tag-info-text {
  flex-grow: 1;
}

.tag-description {
  padding: 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light);
  height: 100%;
}

.tag-posts-count {
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
}

/* Sección de compartir */
.tag-share-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.tag-share-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.tag-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.tag-share-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
}

.tag-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tag-share-btn.facebook {
  background: #1877f2;
}

.tag-share-btn.twitter {
  background: #000;
}

.tag-share-btn.whatsapp {
  background: #25d366;
}

/* Sección de posts */
.tag-no-content {
  text-align: center;
  padding: 4rem;
  background: var(--glass-bg);
  border-radius: 16px;
}

.tag-no-content .btn {
  margin-top: 1rem;
  display: inline-block;
}

.tag-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Tarjetas de posts */
.tag-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.tag-post-card:hover {
  transform: translateY(-5px);
}

.tag-post-card.editorial {
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.tag-card-img-link {
  position: relative;
  overflow: hidden;
}

.tag-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tag-post-card:hover .tag-card-img {
  transform: scale(1.05);
}

.tag-editorial-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-primary);
  color: #000;
  padding: 4px 12px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
}

.tag-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.tag-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tag-card-meta {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.tag-card-meta-category {
  opacity: 0.8;
}

.tag-card-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tag-card-title a {
  color: inherit;
  text-decoration: none;
}

.tag-card-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Responsive */

/* ============================================
   SHARE BUTTONS COMPONENT (Global)
   ============================================ */

.share-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin: 2rem 0;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.share-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  color: var(--color-primary);
}

.share-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #000;
}

.share-btn.whatsapp {
  background: #25d366;
}

/* =========================================
   NEW HOME COMPONENTS (Tag Cloud & Latest Articles)
   ========================================= */

/* Tag Cloud Section */
.tag-cloud-section {
  margin: 3rem auto;
  max-width: 1000px;
}

.tag-cloud-wrapper {
  padding: 2rem;
  text-align: center;
}

.tag-cloud-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tag-cloud-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px; /* Left border accent */
  height: 100%;
  background-color: var(--tag-accent, var(--color-primary));
  opacity: 0.7;
  transition: width 0.3s ease;
  z-index: 0;
}

.tag-cloud-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--tag-accent, var(--color-primary));
  color: #fff;
  padding-left: 1.5rem; /* Make room for expanded accent */
}

.tag-cloud-item:hover::before {
  width: 100%;
  opacity: 0.1;
}

.tag-hash {
  color: var(--tag-accent, var(--color-primary));
  margin-right: 4px;
  font-weight: bold;
  z-index: 1;
}

.tag-name {
  z-index: 1;
}

/* Latest Articles Grid */
.latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.latest-article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.latest-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  border-color: var(--color-primary);
}

.latest-article-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.latest-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.latest-article-card:hover .latest-article-image img {
  transform: scale(1.05);
}

.latest-article-content {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.latest-article-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-article-title {
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-article-title a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.latest-article-card:hover .latest-article-title a {
  color: var(--color-primary);
}

.latest-article-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.read-more-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .latest-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .latest-articles-grid {
    grid-template-columns: 1fr;
  }

  .tag-cloud-grid {
    gap: 0.75rem;
  }

  .tag-cloud-item {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
}

/* =========================================
   NOTEBOOK AI CARD - PREMIUM DESIGN
   ========================================= */

.notebook-section {
    max-width: 450px;
    width: 100%;
    margin-left: auto; /* Push to right */
    padding: 0;
}

.notebook-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 30, 48, 0.4) 100%);
    border: 1px solid rgba(197, 160, 89, 0.2); /* Gold border very subtle */
    border-radius: 16px;
    padding: 1.5rem; /* Increased padding */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notebook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Decorative Glow */
.notebook-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.notebook-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align left inside text block */
    text-align: left;
}

.notebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.notebook-badge {
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.notebook-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.notebook-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notebook-desc {
    color: #b0b8c4;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 95%;
}

.notebook-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    background: var(--color-primary);
    color: #000;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.2);
}

.notebook-cta-btn:hover {
    background: #e2b969; /* Lighter gold */
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}

.notebook-cta-btn svg {
    transition: transform 0.2s ease;
}

.notebook-cta-btn:hover svg {
    transform: translateX(3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .notebook-section {
        max-width: 100%;
        margin-left: 0;
    }
    
    .notebook-card {
        text-align: center;
        align-items: center;
    }
    
    .notebook-content-wrapper {
        align-items: center;
        text-align: center;
    }
    
    .notebook-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}
