/*
Theme Name: Talking Cruise
Theme URI: https://talkingcruise.com
Author: Mythic Laboratories
Author URI: https://mythiclabs.io
Description: Custom theme for Talking Cruise - Cruise Confidently. A modern cruise news and media platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talkingcruise
Tags: blog, news, custom-logo, featured-images, dark-mode
*/

/* ========================================
   CSS RESET & VARIABLES
   ======================================== */

:root {
  --cruise-blue: #0068C3;
  --cruise-dark-blue: #003B6F;
  --cruise-amber: #FBBF24;
  --cruise-cyan: #7cddfe;
  --cruise-navy: #060e1f;
  --text-primary: #f0f4f8;
  --text-secondary: #8899ad;
  --bg-primary: #070d1c;
  --bg-secondary: #0f1a2e;
  --bg-card: #0c1526;
  --border-color: #1c2d45;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1400px;
  --radius: 0.5rem;
  --transition: all 0.3s ease;
}

/* Light mode */
[data-theme="light"] {
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --cruise-navy: #f0f4f8;
}

/* Light mode overrides for specific elements */
[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--cruise-blue);
}

[data-theme="light"] .hero-overlay {
  background: rgba(0,0,0,0.35);
}

[data-theme="light"] .post-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

[data-theme="light"] .post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="light"] .post-content img {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .post-content img:hover {
  box-shadow: 0 12px 40px rgba(0,104,195,0.12), 0 0 0 2px rgba(0,104,195,0.2);
}

[data-theme="light"] .post-content a:hover {
  color: var(--cruise-dark-blue);
}

[data-theme="light"] .post-content h3 {
  color: var(--cruise-dark-blue);
}

[data-theme="light"] .tc-comment-card {
  background: #ffffff;
}

[data-theme="light"] .tc-comment-form {
  background: #ffffff;
}

[data-theme="light"] .tc-comment-form input,
[data-theme="light"] .tc-comment-form textarea {
  background: var(--bg-secondary);
}

[data-theme="light"] .tc-lightbox {
  background: rgba(0,0,0,0.85);
}

[data-theme="light"] .trending-bar {
  background: rgba(15,23,42,0.95);
  color: rgba(255,255,255,0.85);
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.85);
}

[data-theme="light"] .site-footer a {
  color: rgba(255,255,255,0.7);
}

[data-theme="light"] .site-footer a:hover {
  color: var(--cruise-amber);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Theme Toggle — sticky bottom right */
.tc-theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.tc-theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--cruise-blue);
  box-shadow: 0 6px 28px rgba(0,104,195,0.25);
}

.tc-theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.tc-theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Sun icon hidden in dark, shown in light */
.tc-theme-toggle .icon-sun { display: none; }
.tc-theme-toggle .icon-moon { display: block; }

[data-theme="light"] .tc-theme-toggle .icon-sun { display: block; }
[data-theme="light"] .tc-theme-toggle .icon-moon { display: none; }

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

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

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.main-content {
  flex: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cruise-blue);
  border-bottom: 2px solid var(--cruise-amber);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .header-inner { height: 64px; padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .header-inner { height: 72px; padding: 0 2rem; }
}

.site-logo img {
  height: 36px;
  width: auto;
}

@media (min-width: 640px) {
  .site-logo img { height: 40px; }
}

@media (min-width: 1024px) {
  .site-logo img { height: 50px; }
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

.main-nav a svg {
  width: 16px;
  height: 16px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cruise-blue);
  padding: 1rem;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.1);
}

/* ========================================
   NOW TRENDING BAR
   ======================================== */

.trending-bar {
  background: linear-gradient(to right, #172554, #1e3a5f);
  padding: 0.5rem 0;
  overflow: hidden;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.trending-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--cruise-amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}

.trending-label svg {
  width: 14px;
  height: 14px;
}

.trending-marquee-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.trending-marquee {
  display: flex;
  gap: 0;
  animation: marquee 60s linear infinite;
  width: max-content;
}

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

.trending-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 0 1.5rem;
  transition: color 0.2s ease;
}

.trending-marquee-item:hover {
  color: var(--cruise-amber);
}

.trending-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cruise-amber);
  flex-shrink: 0;
}

.trending-time-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.08));
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--cruise-amber);
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  line-height: 1;
}

.icon-xs {
  width: 12px;
  height: 12px;
}

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

.trending-social {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .trending-social { display: flex; }
}

.trending-social a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.trending-social a:hover {
  color: white;
}

.trending-social svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cruise-navy), var(--cruise-dark-blue));
}

@media (min-width: 768px) {
  .hero { min-height: 600px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg video,
.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 ratio fill */
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 2rem 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-logo {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 120px;
  height: 120px;
  animation: float 3s ease-in-out infinite;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .hero-logo { width: 160px; height: 160px; opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: white;
  color: var(--cruise-blue);
}

.btn-primary:hover {
  background: #f1f5f9;
  color: var(--cruise-blue);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.btn-blue {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
}

.btn-blue:hover {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
  color: white;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.section-title svg {
  width: 24px;
  height: 24px;
  color: var(--cruise-blue);
}

.section-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cruise-blue);
  font-size: 0.875rem;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

.section-divider {
  height: 1px;
  background: var(--cruise-cyan);
  opacity: 0.3;
  margin: 0.5rem 0;
}

/* ========================================
   POST CARDS
   ======================================== */

.posts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.post-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

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

.post-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.875rem;
  background: linear-gradient(135deg, #0068C3, #003B6F);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* News badge — blue with pulse dot */
.post-card-badge.badge-news {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: rgba(255,255,255,0.1);
}

.post-card-badge.badge-news::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fca5a5;
  margin-right: 0.375rem;
  animation: badgePulse 2s ease-in-out infinite;
}

/* Articles badge — amber/gold */
.post-card-badge.badge-article {
  background: linear-gradient(135deg, #b45309, #78350f);
  border-color: rgba(251,191,36,0.2);
}

.post-card-badge.badge-article::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cruise-amber);
  margin-right: 0.375rem;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.post-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.post-card-meta svg {
  width: 12px;
  height: 12px;
}

.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .post-card-title { font-size: 1.0625rem; }
}

.post-card-title a {
  color: var(--text-primary);
}

.post-card-title a:hover {
  color: var(--cruise-blue);
}

.post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cruise-blue);
  font-size: 0.8125rem;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* Featured Post Grid */
.featured-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-main .post-card-image {
  height: 300px;
}

@media (min-width: 768px) {
  .featured-main .post-card-image { height: 400px; }
}

.featured-main .post-card-title {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .featured-main .post-card-title { font-size: 1.5rem; }
}

.featured-sidebar {
  display: grid;
  gap: 1rem;
}

.featured-sidebar .post-card {
  flex-direction: row;
}

.featured-sidebar .post-card-image {
  width: 120px;
  min-width: 120px;
  height: auto;
}

@media (min-width: 640px) {
  .featured-sidebar .post-card-image { width: 160px; min-width: 160px; }
}

.featured-sidebar .post-card-title {
  font-size: 0.875rem;
  -webkit-line-clamp: 2;
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post-header {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(0,104,195,0.06) 0%, transparent 100%);
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.single-post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .single-post-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .single-post-title { font-size: 3rem; }
}

.single-post-featured {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  max-height: 500px;
}

.single-post-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Content Prose */
.post-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0,104,195,0.2);
}
.post-content h3 {
  font-size: 1.375rem;
  color: var(--cruise-cyan);
}
.post-content h4 { font-size: 1.125rem; }

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content > p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 400;
}

.post-content > p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 800;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  color: var(--cruise-blue);
}

.post-content img {
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.post-content img:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 48px rgba(0,104,195,0.2), 0 0 0 2px rgba(0,104,195,0.3);
}

.post-content figure {
  position: relative;
  margin: 2.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.post-content figure img {
  margin: 0;
  border-radius: 0;
}

.post-content figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-style: italic;
  margin-top: 0;
  text-align: left;
}

/* Image counter badge */
.post-content .gallery-img-wrap {
  position: relative;
  display: block;
  margin: 2rem auto;
}

.post-content .gallery-img-wrap img {
  margin: 0;
}

.post-content .gallery-img-wrap .img-counter {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* ========================================
   LIGHTBOX GALLERY
   ======================================== */

.tc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tc-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.tc-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-lightbox.active .tc-lightbox-img {
  transform: scale(1);
}

.tc-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.tc-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.tc-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.tc-lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.08);
}

.tc-lightbox-prev { left: 1.5rem; }
.tc-lightbox-next { right: 1.5rem; }

.tc-lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  font-weight: 500;
}

.tc-lightbox-counter strong {
  color: white;
}

.tc-lightbox-dots {
  display: flex;
  gap: 0.375rem;
}

.tc-lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tc-lightbox-dot.active {
  background: var(--cruise-blue);
  transform: scale(1.3);
}

.tc-lightbox-caption {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
}

/* Thumbnail strip */
.tc-lightbox-thumbs {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
  max-width: 80vw;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: none;
}

.tc-lightbox-thumbs::-webkit-scrollbar { display: none; }

.tc-lightbox-thumb {
  width: 56px;
  height: 38px;
  border-radius: 0.25rem;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.tc-lightbox-thumb:hover {
  opacity: 0.7;
}

.tc-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--cruise-blue);
}

@media (max-width: 768px) {
  .tc-lightbox-nav { display: none; }
  .tc-lightbox-img { max-width: 95vw; max-height: 80vh; }
  .tc-lightbox-thumbs { display: none; }
}

.post-content a {
  color: var(--cruise-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--cruise-amber);
}

.post-content blockquote {
  border-left: 4px solid var(--cruise-blue);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(0,104,195,0.08), rgba(0,104,195,0.02));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-primary);
  position: relative;
}

.post-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  font-size: 3rem;
  color: var(--cruise-blue);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.post-content ul, .post-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.625rem;
  line-height: 1.7;
}

.post-content li::marker {
  color: var(--cruise-blue);
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cruise-blue), transparent);
  margin: 2.5rem 0;
  opacity: 0.3;
}

/* duplicate removed — see above */

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.post-content table th,
.post-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.post-content table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--cruise-cyan);
}

.post-content table tr:hover td {
  background: rgba(0,104,195,0.05);
}

.post-content iframe,
.post-content .wp-block-embed {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.post-tag {
  padding: 0.3rem 0.875rem;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(0,104,195,0.05));
  border: 1px solid rgba(0,104,195,0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.post-tag:hover {
  background: var(--cruise-blue);
  color: white;
  border-color: var(--cruise-blue);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2rem 0;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--cruise-blue);
  color: white;
  border-color: var(--cruise-blue);
}

/* ========================================
   COMMENTS SECTION — Enhanced
   ======================================== */

.tc-comments {
  padding: 2.5rem 0;
}

.tc-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0,104,195,0.15);
}

.tc-comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.tc-comments-sort {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
}

.tc-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tc-comment {
  list-style: none;
}

.tc-comment-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.tc-comment-card:hover {
  border-color: rgba(0,104,195,0.3);
}

.tc-comment-author .tc-comment-card {
  border-left: 3px solid var(--cruise-blue);
  background: linear-gradient(135deg, rgba(0,104,195,0.06), var(--bg-secondary));
}

.tc-comment-nested .tc-comment-card {
  margin-left: 2rem;
  border-left: 2px solid var(--border-color);
}

.tc-comment-avatar {
  position: relative;
  flex-shrink: 0;
}

.tc-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.tc-author-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--cruise-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: white;
  border: 2px solid var(--bg-secondary);
}

.tc-comment-body {
  flex: 1;
  min-width: 0;
}

.tc-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.tc-comment-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.tc-author-tag {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  background: var(--cruise-blue);
  color: white;
  border-radius: 9999px;
}

.tc-comment-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tc-comment-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.tc-comment-text p {
  margin-bottom: 0.5rem;
}

.tc-comment-text p:last-child {
  margin-bottom: 0;
}

.tc-comment-actions {
  margin-top: 0.625rem;
}

.tc-comment-actions a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cruise-blue);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(0,104,195,0.2);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.tc-comment-actions a:hover {
  background: var(--cruise-blue);
  color: white;
  border-color: var(--cruise-blue);
}

/* Comment Form */
.tc-comment-form-header {
  margin-bottom: 1.5rem;
}

.tc-comment-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tc-comment-notes {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tc-comment-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.tc-comment-form .tc-comment-field,
.tc-comment-form p {
  margin-bottom: 1rem;
}

.tc-field-label,
.tc-comment-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-comment-form input[type="text"],
.tc-comment-form input[type="email"],
.tc-comment-form input[type="url"],
.tc-comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-comment-form input:focus,
.tc-comment-form textarea:focus {
  outline: none;
  border-color: var(--cruise-blue);
  box-shadow: 0 0 0 3px rgba(0,104,195,0.15);
}

.tc-comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.tc-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--cruise-blue), var(--cruise-dark-blue));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,104,195,0.3);
}

.tc-comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,104,195,0.4);
}

/* ========================================
   VIDEOS SECTION
   ======================================== */

.video-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .video-grid {
    grid-template-columns: 1fr 380px;
  }
}

.video-main {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-main iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1023px) {
  .video-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: none;
    overflow-y: auto;
  }
}

.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  filter: brightness(0.7);
  transition: var(--transition);
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .video-thumb {
    aspect-ratio: 16/9;
  }
}

@media (min-width: 1024px) {
  .video-thumb {
    display: flex;
    gap: 0.625rem;
    padding: 0.375rem;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    filter: none;
    opacity: 0.7;
  }

  .video-thumb:hover,
  .video-thumb.active {
    opacity: 1;
    background: var(--bg-card);
    border-color: var(--cruise-blue);
    filter: none;
  }
}

.video-thumb:hover,
.video-thumb.active {
  filter: brightness(1);
}

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

@media (min-width: 1024px) {
  .video-thumb img {
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    border-radius: calc(var(--radius) - 2px);
  }
}

.video-thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .video-thumb-title {
    position: static;
    background: none;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.pagination a:hover {
  background: var(--cruise-blue);
  color: white;
  border-color: var(--cruise-blue);
}

.pagination .current {
  background: var(--cruise-blue);
  color: white;
  border: 1px solid var(--cruise-blue);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--cruise-navy);
  border-top: 2px solid var(--cruise-amber);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-tagline {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--cruise-amber);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cruise-blue);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--cruise-cyan);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   NEWSLETTER / CTA SECTION
   ======================================== */

.newsletter-section {
  background: linear-gradient(135deg, rgba(0, 104, 195, 0.15), rgba(0, 59, 111, 0.1));
  border: 1px solid rgba(0, 104, 195, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

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

.search-input-wrap input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--cruise-blue);
}

.search-input-wrap button {
  padding: 0.75rem 1.25rem;
  background: var(--cruise-blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ========================================
   SIDEBAR
   ======================================== */

.content-with-sidebar {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cruise-blue);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--cruise-navy), var(--cruise-dark-blue));
  padding: 3rem 0;
  text-align: center;
}

.page-header-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .page-header-title { font-size: 2.5rem; }
}

.page-header-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
