/* ===== THE ROYAL TEMPLE DESIGN SYSTEM ===== */
:root {
  --royal-blue: #0B1B3D;
  --royal-blue-light: #162E5C;
  --gold: #C9A961;
  --gold-light: #DFCA9B;
  --ivory: #FFFDF9;
  --ivory-dark: #F6F3EB;
  --pink: #F4D5E3;
  --emerald: #1F4F3F;
  --emerald-light: #2A6A54;
  --charcoal: #2C2C2C;
  --white: #ffffff;
  --glass-surface: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(201, 169, 97, 0.25);
  --shadow-soft: 0 16px 45px rgba(11, 27, 61, 0.05);
  --shadow-glow: 0 0 30px rgba(201, 169, 97, 0.3);
  --transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 1.5rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background-color: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY OVERRIDES ===== */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--royal-blue);
}
.font-poetic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(201,169,97,0.45); }
  50% { transform: scale(1.06); box-shadow: 0 12px 40px rgba(201,169,97,0.7); }
}

/* ===== CUSTOM CURSOR (Luxury Golden Dot) ===== */
/* Custom cursor — desktop mouse only, completely hidden on touch/mobile */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    position: fixed; top: 0; left: 0;
    width: 10px; height: 10px;
    background-color: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    display: block;
  }
  .custom-cursor.morph-lotus {
    width: 44px; height: 44px;
    background-color: rgba(201, 169, 97, 0.1);
    border: 1.5px solid var(--gold);
    border-radius: 50% 10% 50% 10%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  body, a, button, input, select, textarea { cursor: none; }
}

/* Always hide on touch devices */
@media (hover: none) {
  .custom-cursor { display: none !important; }
}


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--royal-blue); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 60px;
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1.5px solid var(--glass-border);
  transition: var(--transition);
}
#navbar.scrolled { padding: 18px 60px; background: rgba(255, 253, 249, 0.95); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--royal-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a {
  color: var(--charcoal); text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 500; transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1.5px; background: var(--royal-blue); transform: scaleX(0); transition: var(--transition);
  transform-origin: right;
}
.nav-links a:hover { color: var(--royal-blue); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--royal-blue); font-size: 1.8rem; cursor: pointer;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--royal-blue);
}
.hero-video-container {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-video-bg {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
  transform: scale(1.02);
}
.hero-video-container iframe.youtube-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.77vh;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 27, 61, 0.15) 0%, rgba(11, 27, 61, 0.35) 100%);
  z-index: 2;
}
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--gold); border-radius: 50%; opacity: 0;
  animation: floatUp linear infinite;
}

.hero-content {
  position: relative; z-index: 5; text-align: center; padding: 135px 24px 80px;
  max-width: 1200px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Authentic pristine high-res Lord Ganesha centered top */
.hero-ganesha {
  width: 120px; height: 120px; margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.5));
}
.ganesha-img-center {
  width: 100%; height: 100%; object-fit: contain;
}

.sanskrit-blessing {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 1.15rem; color: var(--gold-light);
  letter-spacing: 5px; margin-bottom: 24px;
}

/* Colossal top countdown timer */
.temple-hero-countdown {
  margin-bottom: 30px;
}
.temple-hero-countdown .countdown {
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.temple-hero-countdown .count-block-text span {
  font-family: 'Playfair Display', serif;
  font-weight: 300; font-size: clamp(3.2rem, 8vw, 7.5rem);
  color: var(--gold); line-height: 1;
  text-shadow: 0 0 15px rgba(201, 169, 97, 0.2);
  animation: heartbeat-gold 2.5s infinite ease-in-out;
}
@keyframes heartbeat-gold {
  0%, 100% { text-shadow: 0 0 10px rgba(201, 169, 97, 0.2); }
  50% { text-shadow: 0 0 35px rgba(201, 169, 97, 0.65); color: var(--ivory); }
}
.temple-hero-countdown .count-block-text label {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 0.68rem; letter-spacing: 3px; color: var(--pink);
  margin-top: 10px; text-transform: uppercase;
}
.temple-hero-countdown .count-sep-text {
  font-family: 'Playfair Display', serif; font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 5rem); color: rgba(201, 169, 97, 0.3);
  margin-top: -30px;
}

/* Key Dates Overlay */
.temple-dates-bar {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 35px; max-width: 900px;
  background: rgba(255, 255, 255, 0.05); padding: 12px 24px;
  border-radius: 40px; border: 1.2px solid rgba(201, 169, 97, 0.15);
}
.temple-date-item {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.74rem;
  color: var(--ivory); letter-spacing: 1.5px; text-transform: uppercase;
}
.temple-date-sep { color: var(--gold); font-size: 1.1rem; }

/* Enormous Playfair names */
.temple-hero-names {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 40px;
}
.temple-hero-names h1 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem); color: var(--ivory);
  line-height: 1.1; letter-spacing: -1.5px;
}
.temple-hero-and {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 2.2rem; color: var(--gold); margin: 10px 0;
}

/* bottom venue overlay */
.temple-hero-venue {
  margin-top: 20px;
}
.venue-link-overlay {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; background: rgba(11, 27, 61, 0.85);
  border: 1.5px solid var(--gold); border-radius: 40px;
  padding: 10px 28px; transition: var(--transition);
}
.venue-link-overlay:hover {
  background: var(--ivory); border-color: var(--royal-blue);
}
.venue-link-overlay:hover .venue-text { color: var(--royal-blue); }
.venue-link-overlay:hover .venue-arrow { transform: translateX(5px); color: var(--royal-blue); }
.venue-text {
  font-family: 'Poppins', sans-serif; font-size: 0.78rem;
  color: var(--ivory); letter-spacing: 1px; transition: var(--transition);
}
.venue-arrow { color: var(--gold); font-size: 0.85rem; transition: var(--transition); }

.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.6); font-size: 0.68rem; letter-spacing: 4px; cursor: pointer;
  z-index: 5; text-transform: uppercase; font-family: 'Poppins', sans-serif; font-weight: 600;
}
.scroll-arrow { font-size: 0.9rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== DUAL OVERLAPPING INFINITE SCROLLING MARQUEES ===== */
.dual-marquees-container {
  width: 100%; position: relative; overflow: hidden;
  margin: 30px 0; display: flex; flex-direction: column; gap: 0;
  z-index: 10;
}
.marquee-ribbon {
  width: 120%; margin-left: -10%; padding: 20px 0; overflow: hidden;
  display: flex; align-items: center;
}
.ribbon-top {
  background: var(--royal-blue);
  transform: rotate(-1.5deg);
  border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  box-shadow: 0 10px 30px rgba(11, 27, 61, 0.25);
  z-index: 11;
}
.ribbon-bottom {
  background: transparent;
  transform: rotate(1.5deg);
  border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  margin-top: -24px; z-index: 10;
}
.marquee-track-l2r, .marquee-track-r2l {
  display: flex; gap: 40px; width: max-content;
}
.marquee-track-l2r span, .marquee-track-r2l span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 800; letter-spacing: 3px; white-space: nowrap;
  text-transform: uppercase;
}
.marquee-track-l2r span { color: var(--ivory); }
.marquee-track-r2l span {
  color: transparent; -webkit-text-stroke: 1.2px var(--gold);
}

.marquee-track-l2r { animation: marquee-left 25s linear infinite; }
.marquee-track-r2l { animation: marquee-right 25s linear infinite; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-33.33%); }
}
@keyframes marquee-right {
  from { transform: translateX(-33.33%); }
  to { transform: translateX(0); }
}

/* ===== SECTIONS ===== */
.section { padding: 120px 60px; position: relative; }
.section-alt { background-color: var(--ivory-dark); }
.section-header { text-align: center; margin-bottom: 80px; }
.lotus-divider { font-size: 2.2rem; color: var(--royal-blue); margin-bottom: 12px; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--royal-blue); margin-bottom: 12px;
}
.section-sub {
  color: var(--gold); font-size: 0.8rem; letter-spacing: 4px;
  text-transform: uppercase; font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* ===== COUPLE SECTION (Circular Frames, Asymmetrical Magazine Layout) ===== */
.temple-couple-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 100px;
}
.temple-couple-spread {
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center; gap: 60px;
}
.temple-couple-spread.groom-spread {
  grid-template-columns: 1fr 1.2fr;
}
.temple-couple-photo-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 27, 61, 0.15);
  border: 2px solid var(--gold);
  transition: var(--transition);
}
.circular-frame {
  border-radius: 50% !important;
}
.circular-frame img {
  border-radius: 50% !important;
  object-position: center 15%;
}
.groom-frame img {
  object-position: center top !important;
}
.temple-couple-photo-frame:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 30px 65px rgba(11, 27, 61, 0.22), var(--shadow-glow);
}
.temple-couple-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.temple-couple-photo-frame:hover .temple-couple-img {
  transform: scale(1.04);
}

.temple-gold-border {
  position: absolute; inset: 12px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  pointer-events: none; opacity: 0.85; z-index: 10;
}

.temple-couple-info {
  display: flex; flex-direction: column; align-items: flex-start;
}
.temple-badge {
  display: inline-block; background: rgba(11, 27, 61, 0.05);
  border: 1.2px solid var(--royal-blue); color: var(--royal-blue);
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; font-weight: 700;
  margin-bottom: 16px;
}
.couple-title-name {
  font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800; color: var(--royal-blue); line-height: 1.1; margin-bottom: 8px;
}
.couple-lineage {
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: var(--gold);
  letter-spacing: 1px; font-weight: 600; text-transform: uppercase;
  margin-bottom: 12px;
}
.groom-job-tag {
  display: inline-block; background: rgba(31, 79, 63, 0.08);
  border: 1px solid var(--emerald); color: var(--emerald);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 12px; margin-bottom: 24px;
  text-transform: uppercase; font-family: 'Poppins', sans-serif;
}
.line-divider {
  width: 60px; height: 2px; background: var(--gold); margin-bottom: 24px;
}
.couple-description {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  line-height: 1.9; color: var(--charcoal); font-style: italic;
}

/* Mirror layout for Groom spread details on desktop */
.temple-couple-spread.groom-spread .temple-couple-info {
  order: -1;
}

/* ===== PRE-WEDDING EVENTS SECTION ===== */
.section-prewedding {
  background: var(--ivory);
}
.pre-wedding-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px; max-width: 1000px; margin: 0 auto;
}
.pre-wedding-card {
  background: var(--glass-surface);
  border: 2px solid var(--glass-border); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; position: relative;
  box-shadow: var(--shadow-soft); transition: var(--transition);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
}
.pre-wedding-card:hover {
  transform: translateY(-8px); border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(11,27,61,0.08), var(--shadow-glow);
}
.pre-card-badge {
  display: inline-block; background: rgba(31, 79, 63, 0.08); border: 1.2px solid var(--emerald);
  color: var(--emerald); font-size: 0.62rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px; font-weight: 700;
  font-family: 'Poppins', sans-serif; margin: 0 auto 18px; width: fit-content;
}
.pre-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pre-card-title {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--royal-blue); font-weight: 800; margin-bottom: 12px;
}
.pre-card-text {
  color: var(--charcoal); opacity: 0.85; font-size: 0.85rem; line-height: 1.8;
  margin-bottom: 24px;
}
.pre-card-footer {
  border-top: 1px solid rgba(201, 169, 97, 0.15); padding-top: 16px;
}
.pre-status {
  font-family: 'Poppins', sans-serif; font-size: 0.72rem; letter-spacing: 2px;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}

/* ===== EVENTS SECTION (Horizontal Carousel with peeking cards) ===== */
.carousel-outer-container {
  position: relative; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.events-carousel-wrapper {
  overflow-x: auto;
  width: 100%;
  padding: 20px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events-carousel-wrapper::-webkit-scrollbar {
  display: none;
}
.events-carousel-track {
  display: flex; gap: 30px;
}
.carousel-card {
  flex: 0 0 calc(33.33% - 20px); min-width: 310px;
  background: var(--glass-surface); border-radius: var(--radius);
  border: 1.5px solid var(--glass-border); box-shadow: var(--shadow-soft);
  overflow: hidden; transition: var(--transition);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.carousel-card:hover {
  transform: scale(1.02) translateY(-6px); border-color: var(--gold);
  box-shadow: 0 25px 50px rgba(11,27,61,0.12), var(--shadow-glow);
}
.carousel-control {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--gold);
  color: var(--royal-blue); font-size: 1.8rem; font-weight: 300;
  cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); outline: none; line-height: 1;
}
.carousel-control:hover {
  background: var(--royal-blue); color: var(--ivory); border-color: var(--gold);
  transform: scale(1.1);
}

.card-venue-img {
  width: 100%; height: 140px; overflow: hidden;
  border-bottom: 1.5px solid var(--glass-border);
}
.card-venue-img img { width: 100%; height: 100%; object-fit: cover; }

.card-header-block { padding: 24px 24px 12px; }
.card-badge {
  display: inline-block; background: rgba(11, 27, 61, 0.05); border: 1.2px solid var(--royal-blue);
  color: var(--royal-blue); font-size: 0.6rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px; font-weight: 700;
  margin-bottom: 12px; font-family: 'Poppins', sans-serif;
}
.card-body-block { padding: 0 24px 24px; flex-grow: 1; }
.card-actions-block {
  padding: 16px 24px 24px; border-top: 1px solid rgba(201, 169, 97, 0.15);
  background: rgba(11, 27, 61, 0.02);
}

.event-massive-date {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 2rem; color: var(--gold); line-height: 1.1; margin-bottom: 6px;
}
.event-massive-date.highlighted-date { color: var(--royal-blue); }
.event-massive-date.highlighted-date-gold { color: var(--gold); }
.event-name {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--royal-blue); font-weight: 800; margin-top: 4px;
}

.event-time { color: var(--royal-blue); font-weight: 700; font-size: 0.88rem; font-family: 'Poppins', sans-serif; margin-bottom: 8px; }
.event-venue { color: var(--charcoal); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.event-location { color: var(--charcoal); opacity: 0.8; font-size: 0.78rem; margin-bottom: 8px; }
.mapped-distance {
  color: var(--emerald); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.5px; text-transform: uppercase; margin-top: 8px;
  font-family: 'Poppins', sans-serif;
}
.event-note { color: var(--charcoal); opacity: 0.8; font-size: 0.76rem; font-style: italic; }

.event-map-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  background: transparent; color: var(--royal-blue); padding: 10px 20px;
  border-radius: 9999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-decoration: none; transition: var(--transition); border: 1.5px solid var(--gold);
  font-family: 'Poppins', sans-serif; text-transform: uppercase;
}
.event-map-btn:hover {
  background: var(--royal-blue); color: var(--white); border-color: var(--royal-blue);
  box-shadow: var(--shadow-glow);
}
.event-map-btn.gold-btn {
  background: var(--gold); color: var(--royal-blue); border: none;
}
.event-map-btn.gold-btn:hover { background: var(--royal-blue); color: var(--white); }

/* ===== LOVE STORY TIMELINE SECTION (Asymmetrical Diagonal) ===== */
.journey-timeline-container {
  position: relative; max-width: 900px; margin: 0 auto;
  padding: 60px 0;
}
.journey-timeline-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: rgba(201, 169, 97, 0.25); transform: translateX(-50%);
}
.journey-progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--gold); transition: height 0.1s ease;
}

.journey-item {
  position: relative; width: 50%; padding: 24px 45px; box-sizing: border-box;
  display: flex;
}
.journey-item.left { left: 0; justify-content: flex-end; text-align: right; }
.journey-item.right { left: 50%; justify-content: flex-start; text-align: left; }

.journey-marker {
  position: absolute; top: 32px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--gold); z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--royal-blue);
  box-shadow: var(--shadow-soft); transition: var(--transition);
}
.journey-item.left .journey-marker { right: -16px; }
.journey-item.right .journey-marker { left: -16px; }

.journey-card {
  background: var(--glass-surface); border-radius: var(--radius);
  padding: 30px; border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-soft); position: relative;
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  transition: var(--transition); max-width: 380px; width: 100%;
}
.journey-card::before {
  content: ''; position: absolute; top: 28px; width: 12px; height: 12px;
  background: rgba(255, 255, 255, 0.65); border: 1.5px solid var(--glass-border);
  transform: rotate(45deg); z-index: 0; pointer-events: none;
  border-top: none; border-right: none;
}
.journey-item.left .journey-card::before {
  right: -7px; border-top: 1.5px solid var(--glass-border); border-right: 1.5px solid var(--glass-border); border-bottom: none; border-left: none;
}
.journey-item.right .journey-card::before {
  left: -7px;
}

.journey-date {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 2px; color: var(--gold); text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.journey-title {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  color: var(--royal-blue); font-weight: 800; margin-bottom: 12px;
}
.journey-location {
  font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 10px;
}
.journey-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  color: var(--charcoal); opacity: 0.9; line-height: 1.7;
}

/* Highlight timeline card */
.journey-highlight-card {
  border-color: var(--gold);
  background: rgba(11, 27, 61, 0.03);
  box-shadow: 0 20px 40px rgba(11,27,61,0.08), var(--shadow-glow);
}
.journey-item:hover .journey-card {
  transform: scale(1.02); border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(11,27,61,0.08), var(--shadow-glow);
}
.journey-item:hover .journey-marker {
  background: var(--royal-blue); border-color: var(--gold); color: var(--ivory);
  transform: scale(1.2);
}

/* ===== ENGAGEMENT STORY ===== */
.love-story-card {
  max-width: 800px; margin: 0 auto; text-align: center;
  background: var(--glass-surface); border-radius: var(--radius);
  padding: 60px 45px; box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--glass-border); position: relative; overflow: hidden;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.love-story-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--royal-blue), var(--gold), var(--royal-blue));
}
.love-story-icon { font-size: 2.8rem; margin-bottom: 24px; }
.love-story-text {
  font-size: 1.2rem; line-height: 2.1; color: var(--charcoal); font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
}
.love-story-text strong { color: var(--royal-blue); font-weight: 700; }
.love-story-text em { color: var(--gold); font-style: italic; font-weight: 500; }
.story-flowers { margin-top: 30px; font-size: 1.1rem; letter-spacing: 10px; color: var(--gold); }

/* ===== ENGAGEMENT VIDEO (Fluid Warp Mask) ===== */
.video-wrapper { max-width: 900px; margin: 0 auto; }
.video-frame {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1.5px solid var(--glass-border);
  background: var(--royal-blue); transition: var(--transition);
}
.video-frame.warp-mask {
  border-radius: 50px 20px 50px 20px;
}
.video-frame.warp-mask:hover {
  border-radius: 20px 50px 20px 50px;
}
.video-frame video { width: 100%; display: block; min-height: 480px; object-fit: cover; }
.video-no-file {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--royal-blue), #071024);
  text-align: center; padding: 40px; min-height: 480px;
}
.no-video-icon { font-size: 3.5rem; margin-bottom: 18px; color: var(--gold); }
.video-no-file h3 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  color: var(--white); margin-bottom: 12px; font-weight: 700;
}
.video-no-file p { color: var(--pink); margin-bottom: 8px; font-size: 0.9rem; opacity: 0.85; }
.video-no-file code {
  background: rgba(255,255,255,0.06); color: var(--gold-light);
  padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.08);
}

/* ===== ENGAGEMENT GALLERY (Coffee-Table Book 80-90% Width) ===== */
.eng-slider-wrapper {
  position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden;
  background: var(--royal-blue); border-radius: var(--radius);
  border: 2px solid var(--gold); box-shadow: 0 30px 60px rgba(11, 27, 61, 0.15);
}
.eng-slider {
  display: flex; width: 100%; height: 600px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.eng-slide {
  flex: 0 0 100%; width: 100%; height: 100%; position: relative; overflow: hidden;
  padding: 40px; display: flex; align-items: center; justify-content: center;
}
.eng-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(35px) brightness(0.2) saturate(1.2); transform: scale(1.15); z-index: 0;
  transition: background-image 0.8s ease;
}
.eng-slide img {
  position: relative; width: 85%; height: 85%;
  object-fit: contain; object-position: center; display: block; z-index: 1;
  border: 1.5px solid var(--gold); border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  padding: 10px; background: rgba(11, 27, 61, 0.4);
}
.eng-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 70px 40px 30px;
  background: linear-gradient(to top, var(--royal-blue) 0%, rgba(11, 27, 61, 0.5) 60%, transparent 100%);
  color: var(--ivory); font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400; font-style: italic; text-align: center;
  z-index: 2;
}

.eng-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255, 253, 249, 0.9); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--gold); border-radius: 50%;
  color: var(--royal-blue); font-size: 1.1rem;
  cursor: pointer; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); outline: none;
}
.eng-arrow:hover {
  background: var(--royal-blue); border-color: var(--gold); color: var(--ivory);
  transform: translateY(-50%) scale(1.08);
}
.eng-prev { left: 20px; }
.eng-next { right: 20px; }

.eng-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 20;
}
.eng-dot {
  width: 18px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: var(--transition);
}
.eng-dot.active {
  background: var(--gold); width: 30px;
}

.eng-date-badge {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(11, 27, 61, 0.9); border: 1px solid var(--gold); border-radius: 30px;
  color: var(--gold-light); padding: 8px 24px;
  font-size: 0.68rem; letter-spacing: 2px; font-weight: 700;
  white-space: nowrap; z-index: 20; font-family: 'Poppins', sans-serif; text-transform: uppercase;
}
.eng-counter {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.6); border-radius: 20px; padding: 4px 14px;
  color: rgba(255,255,255,0.8); font-size: 0.72rem; z-index: 20;
  font-family: 'Poppins', sans-serif;
}

/* ===== FAMILY ===== */
.family-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px; max-width: 960px; margin: 0 auto;
}
.family-card {
  background: var(--glass-surface); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  border: 1.5px solid var(--glass-border); transition: var(--transition);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.family-card:hover { border-color: var(--gold); }
.family-card-header {
  padding: 36px 30px 26px; text-align: center;
  border-bottom: 1.5px solid var(--glass-border);
}
.bride-header { background: linear-gradient(135deg, rgba(11, 27, 61, 0.04) 0%, transparent 100%); }
.groom-header { background: linear-gradient(135deg, rgba(201, 169, 97, 0.04) 0%, transparent 100%); }
.family-icon { font-size: 2.2rem; margin-bottom: 8px; }
.family-card-header h3 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  color: var(--royal-blue); font-weight: 700; margin-bottom: 6px;
}
.family-name-title {
  font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--royal-blue);
}
.family-members { padding: 24px 30px; }
.member {
  display: flex; flex-direction: column; padding: 14px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.member:last-child { border-bottom: none; }
.member-role { font-size: 0.65rem; color: var(--charcoal); opacity: 0.8; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.member-name { font-family: 'Poppins', sans-serif; font-size: 0.95rem; color: var(--charcoal); font-weight: 600; }

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px; max-width: 1200px; margin: 0 auto;
}
.gallery-placeholder {
  background: var(--glass-surface); border-radius: var(--radius);
  border: 1.5px dashed var(--glass-border);
  padding: 60px 30px; text-align: center;
  transition: var(--transition); cursor: pointer;
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.gallery-placeholder:hover { border-color: var(--royal-blue); background: rgba(11, 27, 61, 0.02); }
.placeholder-icon { font-size: 2.6rem; margin-bottom: 14px; color: var(--royal-blue); }
.gallery-placeholder p { color: var(--royal-blue); font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 6px; font-weight: 700; }
.gallery-placeholder span { color: var(--charcoal); opacity: 0.8; font-size: 0.78rem; font-family: 'Poppins', sans-serif; }

/* ===== GUEST BOOK SECTION ===== */
.wishes-container { max-width: 800px; margin: 0 auto; text-align: center; }
.guestbook-invite {
  background: var(--glass-surface); border-radius: var(--radius);
  padding: 50px 40px; border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-soft); margin-bottom: 50px;
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.guestbook-invite-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.3rem; color: var(--charcoal); line-height: 1.9; margin-bottom: 28px;
}
.open-guestbook-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--royal-blue); color: var(--ivory); padding: 16px 36px;
  border-radius: 40px; font-size: 0.82rem; font-weight: 700; letter-spacing: 2px;
  border: 1.5px solid var(--gold); cursor: pointer; transition: var(--transition);
  text-transform: uppercase; font-family: 'Poppins', sans-serif;
}
.open-guestbook-btn:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-glow); background: var(--royal-blue-light);
}

.wishes-display { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.wish-card {
  background: var(--glass-surface); border-radius: 16px; padding: 26px 32px;
  box-shadow: var(--shadow-soft); border: 1.5px solid var(--glass-border);
  border-left: 5px solid var(--royal-blue);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.wish-card .wish-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--royal-blue); font-weight: 700; }
.wish-card .wish-relation { color: var(--gold); font-size: 0.72rem; margin-bottom: 12px; font-family: 'Poppins', sans-serif; text-transform: uppercase; font-weight: 600; }
.wish-card .wish-msg { color: var(--charcoal); opacity: 0.95; font-style: italic; line-height: 1.8; font-size: 1rem; }

/* ===== THE GUEST BOOK POPUP MODAL ===== */
.guestbook-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(11, 27, 61, 0.45); backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
  padding: 20px;
}
.guestbook-modal.open {
  opacity: 1; pointer-events: auto;
}
.guestbook-modal-content {
  background: var(--ivory); border-radius: var(--radius);
  max-width: 580px; width: 100%; padding: 45px 36px;
  border: 2.5px solid var(--gold); box-shadow: 0 30px 70px rgba(11, 27, 61, 0.4);
  position: relative; transform: scale(0.9); transition: var(--transition);
}
.guestbook-modal.open .guestbook-modal-content {
  transform: scale(1);
}
.guestbook-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 1.4rem; color: var(--royal-blue);
  cursor: pointer; opacity: 0.7; transition: var(--transition);
}
.guestbook-close:hover { opacity: 1; transform: rotate(90deg); }

.guestbook-header { text-align: center; margin-bottom: 28px; }
.guestbook-mandala { font-size: 2rem; color: var(--royal-blue); margin-bottom: 8px; display: block; }
.guestbook-header h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--royal-blue); font-weight: 800; margin-bottom: 6px; }
.guestbook-header p { font-family: 'Poppins', sans-serif; font-size: 0.8rem; color: var(--charcoal); opacity: 0.75; }

.wishes-form { background: none; border: none; padding: 0; box-shadow: none; backdrop-filter: none; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--royal-blue); margin-bottom: 8px; font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--glass-border); border-radius: 12px;
  font-family: inherit; font-size: 0.95rem;
  color: var(--charcoal); background: var(--ivory-dark);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--royal-blue); box-shadow: 0 0 0 3px rgba(11, 27, 61, 0.1); background: var(--white);
}
.submit-btn {
  width: 100%; padding: 18px;
  background: var(--royal-blue); color: var(--white); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 2px; border: none; border-radius: 12px; cursor: pointer;
  transition: var(--transition); font-family: 'Poppins', sans-serif; text-transform: uppercase;
  border: 1px solid var(--gold);
}
.submit-btn:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-glow); background: var(--royal-blue-light);
}

/* Floating Lotus Petal fall Animation elements */
.lotus-petal-particle {
  position: fixed; pointer-events: none; z-index: 100000;
  font-size: 1.5rem;
  animation: fallLotus linear forwards;
}
@keyframes fallLotus {
  from { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ===== DIRECTIONS / VENUE GEOMETRIC MAP ===== */
.qr-wrapper { max-width: 900px; margin: 0 auto; }
.qr-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--glass-surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.geometric-map-frame {
  border: 2px solid var(--gold);
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.qr-venue-photo { position: relative; min-height: 340px; overflow: hidden; }
.qr-venue-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.9); }
.qr-venue-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 27, 61, 0.9) 0%, rgba(11, 27, 61, 0.2) 70%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.qr-venue-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--gold-light); margin-bottom: 6px; font-weight: 700;
}
.qr-venue-overlay p { color: var(--white); opacity: 0.8; font-size: 0.88rem; }

.qr-code-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 45px 36px; background: rgba(255, 253, 249, 0.3); text-align: center;
  border-left: 1.5px solid var(--glass-border);
}
.qr-label {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--royal-blue); font-weight: 700;
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.qr-frame {
  position: relative; display: inline-block;
  padding: 14px; background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow-soft); margin-bottom: 20px;
}
.qr-corner { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.qr-corner.qr-tl { top: 6px; left: 6px; border-top: 3px solid var(--royal-blue); border-left: 3px solid var(--royal-blue); border-radius: 6px 0 0 0; }
.qr-corner.qr-tr { top: 6px; right: 6px; border-top: 3px solid var(--royal-blue); border-right: 3px solid var(--royal-blue); border-radius: 0 6px 0 0; }
.qr-corner.qr-bl { bottom: 6px; left: 6px; border-bottom: 3px solid var(--royal-blue); border-left: 3px solid var(--royal-blue); border-radius: 0 0 0 6px; }
.qr-corner.qr-br { bottom: 6px; right: 6px; border-bottom: 3px solid var(--royal-blue); border-right: 3px solid var(--royal-blue); border-radius: 0 0 6px 0; }
.qr-img { width: 180px; height: 180px; display: block; border-radius: 6px; }
.qr-sub { color: var(--charcoal); opacity: 0.75; font-size: 0.8rem; font-style: italic; margin-bottom: 20px; }

.directions-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--royal-blue); color: var(--white); padding: 14px 32px; border-radius: 9999px;
  font-weight: 600; letter-spacing: 2px; text-decoration: none;
  font-size: 0.8rem; transition: var(--transition); border: 1px solid var(--gold);
  font-family: 'Poppins', sans-serif; text-transform: uppercase;
}
.directions-btn:hover { background: var(--royal-blue-light); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ===== FOOTER (Watermark Shloka) ===== */
#footer {
  background: var(--ivory-dark); padding: 90px 40px; text-align: center;
  border-top: 1.5px solid var(--glass-border); color: var(--charcoal);
  position: relative; overflow: hidden;
}
.footer-shloka-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Noto Serif Malayalam', serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--royal-blue);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.footer-mandala, .footer-names, .footer-date, .footer-divider, .footer-credit, .footer-dev {
  position: relative; z-index: 1;
}
.footer-mandala { font-size: 2.6rem; color: var(--royal-blue); margin-bottom: 24px; }
.footer-names { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 14px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--royal-blue); font-weight: 800; }
.footer-amp { font-size: 1.4rem; color: var(--gold); }
.footer-date { color: var(--charcoal); opacity: 0.8; font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 28px; font-family: 'Poppins', sans-serif; text-transform: uppercase; font-weight: 600; }
.footer-divider { color: var(--gold); margin-bottom: 20px; letter-spacing: 8px; }
.footer-credit { color: var(--charcoal); opacity: 0.75; font-size: 0.78rem; }

.footer-dev-divider {
  width: 140px; height: 1px; background: rgba(201, 169, 97, 0.15);
  margin: 20px auto 16px; position: relative; z-index: 1;
}
.footer-dev {
  color: var(--charcoal); opacity: 0.8; font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
  font-family: 'Poppins', sans-serif; font-weight: 500;
}
.footer-dev strong { color: var(--royal-blue); font-weight: 700; }
.footer-email { color: var(--gold); text-decoration: none; transition: var(--transition); font-weight: 600; }
.footer-email:hover { color: var(--royal-blue); text-decoration: underline; }

/* ===== MOBILE & RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .section { padding: 90px 30px; }
  #navbar { padding: 16px 40px; }
  #navbar.scrolled { padding: 12px 40px; }
  .temple-couple-container { gap: 60px; }
  .temple-couple-spread { gap: 30px; }
}

@media (max-width: 900px) {
  .hero-content { padding-top: 100px; }
  .temple-couple-spread { grid-template-columns: 1fr; gap: 40px; }
  .temple-couple-spread.groom-spread { grid-template-columns: 1fr; }
  .temple-couple-spread.groom-spread .temple-couple-info { order: 0; }
  
  .marquee-track-l2r span, .marquee-track-r2l span { font-size: 1rem; }
  
  .journey-timeline-container { padding: 40px 20px; }
  .journey-timeline-line { left: 20px; }
  .journey-item { width: 100%; padding-left: 40px; padding-right: 0; }
  .journey-item.left { justify-content: flex-start; text-align: left; }
  .journey-item.right { left: 0; justify-content: flex-start; text-align: left; }
  .journey-marker { left: 13px !important; right: auto !important; }
  .journey-card::before { left: -7px !important; right: auto !important; border-top: none !important; border-right: none !important; border-bottom: 1.5px solid var(--glass-border) !important; border-left: 1.5px solid var(--glass-border) !important; }
}

@media (max-width: 768px) {
  #navbar { padding: 12px 20px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%;
    left: 0; right: 0; background: rgba(255, 253, 249, 0.98);
    padding: 30px; gap: 24px; border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(11,27,61,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  
  .video-frame video, .video-no-file { min-height: 320px; }
  .qr-card { grid-template-columns: 1fr; }
  .qr-venue-photo { min-height: 220px; }
  .qr-code-block { padding: 36px 20px; border-left: none; border-top: 1.5px solid var(--glass-border); }
  .family-grid { grid-template-columns: 1fr; gap: 30px; }
  
  .carousel-card { flex: 0 0 85%; min-width: 280px; }
  .carousel-control { display: none !important; }
}

@media (max-width: 580px) {
  .temple-hero-countdown .count-block-text span { font-size: 2.6rem; }
  .temple-hero-countdown .count-sep-text { font-size: 2rem; margin-top: -10px; }
  .temple-dates-bar { padding: 8px 16px; gap: 8px; }
  .temple-date-item { font-size: 0.65rem; }
  .temple-date-sep { font-size: 0.8rem; }
  .event-card { padding: 30px 20px; }
  .guestbook-modal-content { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .section-header { margin-bottom: 40px; }
  .video-frame video, .video-no-file { min-height: 240px; }
  .footer-names { flex-direction: column; gap: 6px; }
  .footer-name { font-size: 1.5rem; }
}
