/* ==========================================================================
    1. CORE CSS VARIABLES & BASE STYLES
    ========================================================================== */
:root {
    /* Brand & Primary Colors */
    --emerald: #0B2B1D;
    --emerald-dark: #071C13;
    --gold: #C5A059;
    --gold-light: #E8D3A7;
    --gold-accent: #C5A059;
    --gold-accent-hover: #F1C40F;
    --gold-dark-hover: #A38241;
    --gold-dark-alt: #B08C46;

    /* Neutrals & Surfaces */
    --cream: #F9F6F0;
    --white: #FFFFFF;
    --bg-light: #FAF8F5;
    --bg-surface: #F9F9F9;
    --bg-slate: #F4F6F8;
    --bg-hover-slate: #F8FAFC;
    --bg-divider-slate: #F1F5F9;
    --border-color: #E2D7C5;
    --border-light: #E2E8F0;
    --border-muted: #CCCCCC;
    --border-subtle: #EEEEEE;

    /* Text Colors */
    --text-dark: #2A2A2A;
    --text-body: #333333;
    --text-muted: #666666;
    --text-slate-muted: #64748B;
    --text-slate-light: #94A3B8;
    --text-subtle: #888888;
    --text-footer-light: #D1D5DB;
    --text-footer-muted: #9CA3AF;

    /* Status Colors */
    --status-success: #2E7D32;
    --status-success-bg: #E8F5E9;
    --status-danger: #D9534F;
    --status-danger-dark: #C62828;
    --status-info: #2B5B84;
    --btn-secondary: #6C757D;
    --btn-secondary-hover: #5A6268;

    /* Alpha / Transparency Variants */
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-border-alpha: rgba(197, 160, 89, 0.2);
    --black-alpha-10: rgba(0, 0, 0, 0.05);
    --black-alpha-15: rgba(0, 0, 0, 0.08);
    --black-alpha-20: rgba(0, 0, 0, 0.2);
    --black-alpha-30: rgba(0, 0, 0, 0.3);
    --black-alpha-45: rgba(0, 0, 0, 0.45);
    --black-alpha-70: rgba(0, 0, 0, 0.7);
    --black-alpha-75: rgba(0, 0, 0, 0.75);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-60: rgba(255, 255, 255, 0.6);

    /* Shadow Assembly */
    --shadow-sm: 0 4px 15px var(--black-alpha-10);
    --shadow-md: 0 8px 25px var(--black-alpha-15);
    --shadow-lg: 0 10px 30px var(--black-alpha-30);
    --shadow-card: 0 4px 12px var(--black-alpha-15);

    /* Typography Assemblies */
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

/* ==========================================================================
    2. NAVIGATION BAR
    ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--emerald);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--black-alpha-20);
}

/* Emblem Canvas */
.logo-emblem {
  position: relative;
  width: 72px;  /* Matched width to wreath width */
  height: 75px; /* Added height so crown sits properly on top */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Crown - Sits above the wreath */
.crown-svg {
  position: absolute;
  top: 0;
  width: 36px;
  height: 20px;
  color: var(--gold-accent);
  z-index: 2;
}

/* Wreath - Centered base */
.wreath-svg {
  position: absolute;
  bottom: 0;
  width: 72px;
  height: 72px;
  color: var(--gold-accent);
  z-index: 1;
}

/* "80" Number - Centered inside the wreath */
.brand-number {
  position: relative;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1;
  margin-top: 2px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

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

.btn-gold-sm {
    background-color: var(--gold);
    color: var(--emerald);
    padding: 8px 18px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-gold-sm:hover {
    background-color: var(--gold-light);
}

/* Nav Toggle */
/* Hamburger Icon (Hidden on Desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
    3. HERO SECTION
    ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--emerald);
    color: var(--gold);
    padding: 60px 8%;
    align-items: center;
    gap: 40px;
}

.hero-content {
    text-align: center;
}

.hero-subtitle-top {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-title-prefix {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: -10px;
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 5px;
}

.hero-full-name {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-full-name small {
    font-size: 1rem;
    color: var(--gold-light);
}

.age-badge {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 0 20px;
    margin-bottom: 15px;
}

.hero-quote {
    color: var(--white);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    object-position: center; 
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gold);
    display: block;
}

/* ==========================================================================
   DIGITAL COUNTDOWN TIMER
   ========================================================================== */

.countdown-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  background-color: var(--emerald);
  margin: 0 0 2rem 0;
  width: 100%;
  /* padding-right: 8%;  */
  padding-right: 7%;
  box-sizing: border-box;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  margin-bottom: 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  padding: 10px 16px;
  min-width: 65px;
  text-align: center;
  background-color: var(--black-alpha-20); 
}

.time-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.time-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-slate-light);
  margin-top: 4px;
}

.countdown-divider {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-accent);
  margin-top: -12px;
}

@media (max-width: 480px) {
    .countdown-box {
        min-width: 48px;
        padding: 8px 10px;
    }
    .time-value {
        font-size: 1.4rem;
    }
    .countdown-divider {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
    4. COMMON SECTION STYLES & DETAILS GRID
    ========================================================================== */
.section-padding {
    padding: 70px 8%;
}

.text-center { text-align: center; }
.bg-white { background-color: var(--white); }
.bg-cream { background-color: var(--cream); }

.section-title {
    font-size: 2.2rem;
    color: var(--emerald);
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '❖';
    display: block;
    font-size: 1rem;
    color: var(--gold);
    margin-top: 5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.detail-card {
    border-right: 1px solid var(--border-color);
    padding: 10px 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 8px 24px var(--black-alpha-15);
    transform: translateY(-2px); 
}

.detail-card:last-child {
    border-right: none;
}

.detail-card h3 {
    color: var(--emerald);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.detail-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ACCOMMODATION & PARKING SECTION
   ========================================================================== */
.accommodation-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    align-items: stretch;
}

.accommodation-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    height: 100%;
    border-right: none; /* Overrides default .detail-card right border for grid layout */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
}

.accommodation-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.accommodation-card .card-title {
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.accommodation-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.accommodation-card .card-action {
    margin-top: 1.5rem;
}

.accommodation-card .card-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.85rem;
    text-decoration: none;
}

.accommodation-card .parking-note {
    font-size: 0.85rem;
    color: var(--gold-dark-alt);
    line-height: 1.5;
}

.accommodation-card .card-footer-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--black-alpha-15);
}

.accommodation-card .disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
    5. ABOUT DAD & PROGRAM TIMELINE
    ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 20px;
    line-height: 1.8;
}

.about-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    /* background: rgba(0, 0, 0, 0.7) */
    background: rgba(11, 43, 29, 0.85);}

.about-slides {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.about-slides .slide-card {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 80vh;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(0, 0, 0, 0.7) */
    background: rgba(11, 43, 29, 0.85);}

.about-slides .slide-card .slide-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(20px) brightness(0.5);
    transform: scale(1.1); 
    z-index: 1;
}

.about-slides .slide-card .slide-img-main {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
}

/* Caption Layer - Responsive & Screen-Aware */
.about-slides .slide-card .slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%); */
    background: linear-gradient(to bottom, rgba(11, 43, 29, 0.2) 0%, rgba(11, 43, 29, 0.85) 100%);
    /* color: var(--gold); */
    color: var(--bg-light);
    padding: 8px 12px;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    /* Enforce maximum height so it never overwhelms the card */
    max-height: 28%;
    overflow-y: auto; /* Adds subtle scrolling if text is very long */
    
    /* Responsive font sizing */
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-weight: bold;
    line-height: 1.35;
    
    /* Safari Layer Isolation */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Custom minimal scrollbar for long captions on mobile */
.about-slides .slide-card .slide-description::-webkit-scrollbar {
    width: 3px;
}
.about-slides .slide-card .slide-description::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.about-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10; 
    pointer-events: none;
}

.about-photo-counter {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    /* color: var(--white, #ffffff); */
    color: var(--bg-light);
    letter-spacing: 0.04em;
    padding: 4px 10px;
    /* background-color: rgba(0, 0, 0, 0.65); */
    background: rgba(11, 43, 29, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Navigation Buttons */
.about-prev,
.about-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--black-alpha-45, rgba(0, 0, 0, 0.45));
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 1.3rem;
}

.about-prev {
    left: 1rem;
}

.about-next {
    right: 1rem;
}

.about-prev:hover,
.about-next:hover {
    background: var(--black-alpha-70, rgba(0, 0, 0, 0.70));
}
.about-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--white-alpha-60, rgba(255, 255, 255, 0.6));
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* .about-dot.active {
    background: var(--white);
    transform: scale(1.25);
} */

/* .about-photo-counter {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 0.03em;
    padding: 2px;
} */

/* Responsive Fix */
@media (max-width: 600px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
}

/* ==========================================================================
   ABOUT DAD READ MORE / COLLAPSE TOGGLE
   ========================================================================== */
.text-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.3s ease;
}

.text-collapse.expanded {
    max-height: 500px; /* Adjust if your content is longer */
    opacity: 1;
    margin-top: 10px;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--emerald);
}

.btn-read-more .btn-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.btn-read-more.expanded .btn-icon {
    transform: rotate(180deg);
}
/*  */
.program-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
}

.program-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.icon-bubble {
    width: 50px;
    height: 50px;
    background-color: var(--emerald);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-sm);
}

.program-step p {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--emerald);
}

/* ==========================================================================
    6. RSVP FORM SECTION
    ========================================================================== */
.rsvp-container {
    max-width: 680px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.rsvp-container:hover {
    box-shadow: 0 8px 24px var(--black-alpha-15);
    transform: translateY(-2px); 
}

.notice-box {
    background-color: var(--emerald);
    color: var(--white);
    border-left: 4px solid var(--gold);
    padding: 15px;
    font-size: 0.85rem;
    margin: 25px 0 30px;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
}

.radio-options {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-card {
    background-color: var(--bg-light);
    border: 1px dashed var(--gold);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.guest-card h3 {
    font-size: 1.1rem;
    color: var(--emerald);
    margin-bottom: 15px;
}

.btn-submit {
    width: 100%;
    background-color: var(--emerald);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--gold);
    color: var(--emerald);
}

/* =========================================
   LIVE EVENT COMING SOON
   ========================================= */

.live-coming-soon-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 20px 20px;
}

.live-coming-soon-badge {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.live-coming-soon-subtitle {
  max-width: 620px;
  margin: 0 auto 30px;
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

.live-coming-soon-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 650px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: left;
  background: linear-gradient(
    135deg,
    rgba(11, 43, 29, 0.97),
    rgba(11, 43, 29, 0.90)
  );
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.live-icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.25rem;
  padding-left: 3px;
}

.live-coming-soon-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.live-coming-soon-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.live-coming-soon-card strong {
  color: #fff;
}

.live-coming-soon-note {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}


/* Mobile */
@media (max-width: 600px) {

  .live-coming-soon-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .live-coming-soon-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .live-coming-soon-card h3 {
    font-size: 1rem;
  }

  .live-coming-soon-subtitle {
    font-size: 0.92rem;
  }
}

/* ================================
   LIVE STREAM
   ================================ */

.live-stream-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.live-stream-subtitle {
    color: var(--text-muted);
    margin: -10px auto 30px;
    font-size: 0.95rem;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--emerald-dark);
    border: 1px solid var(--gold-border-alpha);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-stream-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.live-stream-note a {
    color: var(--gold-dark-alt);
    font-weight: 600;
    text-decoration: none;
}

.live-stream-note a:hover {
    color: var(--gold-accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Guest Messages Wall
   ========================================================================== */

.messages-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.messages-subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  min-height: 260px;
}

.message-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.message-quote-icon {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: -10px;
}

.message-text {
  font-style: italic;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.message-author {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-dark-alt);
  font-size: 0.9rem;
  text-align: right;
  border-top: 1px solid var(--bg-divider-slate);
  padding-top: 10px;
}

.message-date {
  text-align: right;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.7rem;
}

.messages-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
}

.messages-nav-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark-alt);
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.messages-nav-btn:hover {
  background: var(--gold);
  color: var(--white);
}

.messages-page-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
    7. Pop-Up Modal Overlay
    ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-alpha-75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.modal-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid var(--gold);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Top-Right "X" Close Button */
.modal-close-icon {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-subtle);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-icon:hover {
    color: var(--emerald);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--emerald);
    margin-bottom: 0.75rem;
}

.modal-body {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-modal-close {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-modal-close:hover {
    background-color: var(--gold-dark-hover);
}

/* ==========================================================================
    8. DASHBOARD
    ========================================================================== */
.event-dashboard-app {
  font-family: var(--font-sans);
  background: var(--bg-surface);
  color: var(--text-body);
  padding: 2rem;
}

.event-dashboard-app h1,
.event-dashboard-app h2 { 
  font-family: var(--font-serif); 
  color: var(--emerald); 
}

/* Cards */
.event-dashboard-app .eda-card { 
  background: var(--white); 
  padding: 1.5rem; 
  border-radius: 8px; 
  box-shadow: var(--shadow-card); 
  margin-bottom: 2rem; 
}

/* Desktop Base Table Styles */
.event-dashboard-app table.eda-table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0;
  margin-top: 1rem; 
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--black-alpha-10);
}

.event-dashboard-app table.eda-table th, 
.event-dashboard-app table.eda-table td { 
  border-bottom: 1px solid var(--border-light); 
  padding: 12px 16px; 
  text-align: left; 
  vertical-align: middle;
}

.event-dashboard-app table.eda-table th { 
  background: var(--emerald); 
  color: var(--white); 
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--emerald-dark);
}

.event-dashboard-app table.eda-table tbody tr {
  transition: background-color 0.15s ease;
}

.event-dashboard-app table.eda-table tbody tr:hover {
  background-color: var(--bg-hover-slate);
}

.event-dashboard-app table.eda-table tbody tr:last-child td {
  border-bottom: none;
}

.event-dashboard-app .eda-badge-count {
    font-size: large;
}

.event-dashboard-app .eda-badge-count-number {
    color: var(--gold);
}

/* Responsive Stacked Cards View (< 768px) */
@media screen and (max-width: 768px) {
  .event-dashboard-app table.eda-table thead {
    display: none;
  }

  .event-dashboard-app table.eda-table,
  .event-dashboard-app table.eda-table tbody,
  .event-dashboard-app table.eda-table tr,
  .event-dashboard-app table.eda-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .event-dashboard-app table.eda-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .event-dashboard-app table.eda-table tr {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 6px 0;
    box-shadow: 0 2px 4px var(--black-alpha-10);
  }

  .event-dashboard-app table.eda-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-divider-slate);
    padding: 10px 14px;
    text-align: right;
  }

  .event-dashboard-app table.eda-table td:last-child {
    border-bottom: none;
  }

  .event-dashboard-app table.eda-table td:nth-of-type(1)::before {
    content: "ID";
  }

  .event-dashboard-app table.eda-table td:nth-of-type(2)::before {
    content: "Name / Details";
  }

  .event-dashboard-app table.eda-table td:nth-of-type(3)::before {
    content: "Status";
  }

  .event-dashboard-app table.eda-table td:nth-of-type(4)::before {
    content: "Actions";
  }

  .event-dashboard-app table.eda-table td::before {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-slate-muted);
    letter-spacing: 0.05em;
    text-align: left;
    padding-right: 12px;
  }

  .event-dashboard-app table.eda-table td[colspan]::before {
    display: none;
  }

  .event-dashboard-app table.eda-table td[colspan] {
    justify-content: center;
    text-align: center;
    color: var(--text-slate-light);
  }
}

/* Status Indicators */
.event-dashboard-app .eda-status-attending {
  color: var(--status-success);
  font-weight: 600;
}

.event-dashboard-app .eda-status-declined {
  color: var(--status-danger);
  font-weight: 600;
}

/* Gallery Grid */
.event-dashboard-app .eda-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 1rem; 
  margin-top: 1rem; 
}

.event-dashboard-app .eda-grid-item { 
  border: 1px solid var(--border-color); 
  padding: 10px; 
  background: var(--white); 
  border-radius: 6px; 
  text-align: center; 
}

.event-dashboard-app .eda-grid-item img { 
  width: 100%; 
  height: 140px; 
  object-fit: cover; 
  border-radius: 4px; 
}

.event-dashboard-app .eda-caption {
  margin: 8px 0 4px;
}

.event-dashboard-app .eda-btn { 
  background: var(--gold); 
  color: var(--white); 
  border: none; 
  padding: 8px 16px; 
  cursor: pointer; 
  border-radius: 4px; 
  text-decoration: none; 
  display: inline-block; 
}

.event-dashboard-app .eda-btn-sm {
  padding: 4px 10px;
  font-size: 0.875rem;
}

.event-dashboard-app .eda-btn-info {
  background-color: var(--status-info);
}

.event-dashboard-app .eda-btn-danger { 
  background-color: var(--status-danger); 
}

.event-dashboard-app .eda-badge { 
  background: var(--cream); 
  padding: 3px 8px; 
  border-radius: 12px; 
  font-size: 0.8rem; 
}

/* Alerts & Forms */
.event-dashboard-app .eda-alert-success {
  background: var(--status-success-bg); 
  color: var(--status-success); 
  padding: 10px; 
  margin-bottom: 1rem; 
  border-radius: 4px;
}

.event-dashboard-app .eda-form-delete {
  margin-top: 10px;
}

/* ==========================================================================
    9. VIEW RSVP
    ========================================================================== */
.rsvp-view-wrapper {
    padding: 2rem 1rem;
}

.rsvp-view-card {
    background: var(--white);
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.rsvp-view-card h2 {
    font-family: var(--font-serif);
    color: var(--emerald);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.rsvp-view-group {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.rsvp-view-group.no-border {
    border-bottom: none;
}

.rsvp-view-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvp-view-value {
    font-size: 1.1rem;
    color: var(--emerald);
    margin-top: 4px;
    line-height: 1.5;
}

.rsvp-view-box {
    background: var(--bg-slate);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.rsvp-view-box ul {
    margin: 0;
    padding-left: 20px;
}

.rsvp-view-actions {
    margin-top: 2rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rsvp-view-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.rsvp-view-btn:hover {
    background: var(--gold-dark-alt);
    color: var(--white);
}

.rsvp-view-btn-secondary {
    background: var(--btn-secondary);
}

.rsvp-view-btn-secondary:hover {
    background: var(--btn-secondary-hover);
}

.status-attending {
    color: var(--status-success);
    font-weight: 700;
}

.status-declined {
    color: var(--status-danger-dark);
    font-weight: 700;
}

/* ==========================================================================
    10. EDIT RSVP
    ========================================================================== */
.rsvp-edit-wrapper {
    padding: 2rem 1rem;
}

.rsvp-edit-card {
    background: var(--white);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.rsvp-edit-card h2 {
    font-family: var(--font-serif);
    color: var(--emerald);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.rsvp-edit-form p {
    margin-bottom: 1.25rem;
}

.rsvp-edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--emerald);
    font-size: 0.9rem;
}

.rsvp-edit-form input[type="text"],
.rsvp-edit-form input[type="email"],
.rsvp-edit-form input[type="number"],
.rsvp-edit-form input[type="tel"],
.rsvp-edit-form select,
.rsvp-edit-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    box-sizing: border-box;
}

.rsvp-edit-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rsvp-edit-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.rsvp-edit-btn:hover {
    background: var(--gold-dark-alt);
}

.rsvp-edit-cancel {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.rsvp-edit-cancel:hover {
    text-decoration: underline;
    color: var(--text-body);
}

/* ==========================================================================
    11. FOOTER
    ========================================================================== */
.footer {
    background-color: var(--emerald);
    color: var(--white);
    padding: 3rem 1rem 1.5rem;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-contact h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-contact p {
    color: var(--text-footer-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contact-card {
    background: var(--white-alpha-10);
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.contact-link {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-link:visited,
.contact-link:focus,
.contact-link:active {
    color: var(--white);
    text-decoration: none;
}

.contact-link:hover {
    background: var(--gold);
    color: var(--emerald);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--white-alpha-10);
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-footer-muted);
}

/* ==========================================================================
    12. RESPONSIVE BREAKPOINTS
    ========================================================================== */
@media (max-width: 900px) {
    .hero-section, .about-container { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .detail-card { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
    .program-timeline { flex-wrap: wrap; gap: 20px; }
    .program-step { flex: 1 1 30%; }
    .nav-links { display: none; }
    
    .btn-gold-sm-hero {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--emerald);
        flex-direction: column;
        padding: 1.5rem 0;
        box-shadow: 0 8px 16px var(--black-alpha-30);
        text-align: center;
        border-top: 1px solid var(--gold-border-alpha);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
        display: block;
    }
    
    .about-dot {
        width: 0.4rem;
        height: 0.4rem;
    }

    .about-slides .slide-card .slide-description {
        padding: 6px 10px;
        max-height: 22%;
        font-size: 0.75rem;
    }

    .nav-rsvp-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    } 

    .details-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 1rem;
    }

    /*  */
    .accommodation-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 1.5rem;
        padding: 0 1rem; /* Prevent edge touching on narrow phones */
    }

    .accommodation-card {
        padding: 1.5rem 1.25rem; /* Slightly tighter padding for small screens */
    }

    .accommodation-card .card-btn {
        width: 100%; /* Full-width button on mobile for easy tapping */
        text-align: center;
    }
    /*  */

    .notice-box {
        width: 95%;
        padding: 12px 14px;
        font-size: 0.80rem;
        line-height: 1.45;
    }

    .notice-box strong {
        display: block; /* Puts "IMPORTANT:" on its own line on small screens for emphasis */
        margin-bottom: 4px;
    }

    .form-row-contact {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .form-row-contact .form-group {
        width: 100%;
    }

    .messages-page-indicator {
        font-size: 0.70rem;
    }

    .contact-section {
        width: 95%;
        gap: 12px;
    }

    .contact-card {
        padding: 14px 12px;
    }

    .contact-actions {
        flex-direction: column; /* Stacks Call & WhatsApp vertically on mobile for full-width tap targets */
        gap: 10px;
    }

    .contact-link {
        width: 100%; /* Full-width buttons are much easier to tap on phones */
        box-sizing: border-box;
        padding: 12px 16px; /* Slightly taller tap target for mobile thumbs */
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .footer-copyright {
        padding: 1rem 0.75rem;
    }

    .footer-copyright p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Unstick navigation in landscape mode on small screens */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .navbar { 
        position: absolute; /* Moves with page scrolling instead of staying fixed */
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
}