/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary-blue: hsl(219, 77%, 34%);
  --accent-red: hsl(0, 74%, 50%);
  --professional-gray: hsl(217, 19%, 27%);
  --light-bg: hsl(210, 40%, 98%);
  --gold-accent: hsl(36, 95%, 48%);
  --success-green: hsl(158, 64%, 52%);
  --text-muted: hsl(215, 20%, 65%);
  --navbar-height: 80px; /* default; can be overridden per landing settings */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--professional-gray);
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
.font-merriweather {
  font-family: 'Merriweather', serif;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Fixed Navbar Styles for Desktop Single Row */
.navbar-custom {
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1rem 0;
  min-height: 60px;
  flex-wrap: nowrap !important;
}

.navbar-brand {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: #ddd;
}

.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  justify-content: flex-end;
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  color: #bfdbfe;
}

/* Ensure active menu item is clearly visible on dark navbar */
.nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 2px;
}

.btn-register {
  background-color: #dc2626;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.btn-register:hover {
  background-color: #b91c1c;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  width: 100%;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.5rem 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, hsl(224, 76%, 48%) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080') center/cover;
  opacity: 0.15;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 300;
  color: hsl(214, 100%, 85%);
}

/* Hero Logos: support transparent images, consistent sizing, and alignment */
.hero-logo-img {
  height: var(--hero-logo-height, 48px) !important;
  width: auto !important;
  max-height: var(--hero-logo-height, 48px);
  max-width: 320px;
  object-fit: contain;
  background: transparent;
  display: block;
}

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

/* Countdown styles */
.countdown {
  color: white;
  font-weight: 700;
}
.countdown .cd-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  backdrop-filter: blur(2px);
}
.countdown .cd-item span {
  font-size: 1.25rem;
}
.countdown .cd-item small {
  font-size: 0.75rem;
  opacity: 0.9;
}
.countdown .cd-sep {
  font-size: 1.25rem;
  opacity: 0.9;
  animation: pulse 1s infinite;
}

/* Light variant inside detail card */
.countdown.light { color: var(--professional-gray); }
.countdown.light .cd-item { border-color: rgba(31,41,55,0.3); }
.countdown.simple .cd-item { border: none; padding: 0; min-width: auto; font-weight: 700; }
.countdown.simple .cd-label { margin-right: 0.75rem; font-weight: 500; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 9999px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25);
  min-height: 48px;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.35);
  color: white;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.btn-outline {
  border: 2px solid white;
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* Event Details Card */
.event-details-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  color: var(--professional-gray);
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  font-size: 1.5rem;
}

/* Prevent icon container from deforming due to font metrics */
.detail-item .detail-icon {
  flex: 0 0 50px;
}

/* Ensure icons remain centered and not squashed inside the round badge */
.detail-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
  text-align: center;
  aspect-ratio: 1 / 1;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

/* QR Code Styles */
.qr-code-container {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 2.5rem 0;
}

.qr-code {
  margin: 1rem auto;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  display: inline-block;
}

.qr-code canvas {
  width: 220px !important;
  height: 220px !important;
}

/* Payment Page Styles */
.payment-section {
  padding: 2rem 0;
  background: #f9fafb;
  min-height: 100vh;
}

.payment-header {
  background: var(--primary-blue);
  color: white;
  padding: calc(2rem + var(--navbar-height)) 0 2rem 0; /* include navbar height to avoid white gap */
}

.payment-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.amount-display {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.amount-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-blue);
}

/* Form Styles */
.form-section {
  padding: calc(2rem + var(--navbar-height)) 0 2rem 0; /* include navbar height to avoid white gap */
  background: #f9fafb;
  min-height: 100vh;
}

.form-header {
  background: var(--primary-blue);
  color: white;
  padding: 2rem 0; /* header itself no extra margin; offset handled by parent */
}

.back-link {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #bfdbfe;
}

.event-info {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
}

.event-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 2rem auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

.error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  background: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.success-card {
  background: white;
  border-radius: 10px;
  padding: 3.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 3rem auto;
}

.success-card h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}

.success-card p {
  line-height: 1.7;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

/* Poster Section */
.poster-section {
  background: #ffffff; /* make entire poster section plain white */
  padding: 5rem 0;
}

.poster-container {
  background: transparent; /* blend with section */
  border-radius: 0;
  padding: 0; /* remove inner white frame */
  box-shadow: none;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.poster-image {
  max-width: 100%;
  height: auto;
  border-radius: 0; /* keep edges flush with background */
  box-shadow: none;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: var(--light-bg); /* swapped to light background */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid hsl(214, 32%, 91%);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), hsl(217, 91%, 60%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
  background: #ffffff; /* swapped to white */
  padding: 5rem 0;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-blue);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: center;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.testimonial-role {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.quote-icon {
  color: var(--accent-red);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
  background: white;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

/* Registration Section */
.registration-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, hsl(224, 76%, 48%) 100%);
  color: white;
  padding: 5rem 0;
}

.registration-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  margin: 0 auto;
}

.price-highlight {
  background: var(--accent-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}


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

/* Ensure horizontal layout on desktop */
@media (min-width: 769px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}


.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.benefits-list li:before {
  content: "•";
  color: #fbbf24;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: var(--professional-gray);
  color: white;
  padding: 3rem 0 2rem;
}

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

/* Ensure horizontal layout on desktop */
@media (min-width: 769px) {
  .footer-content {
    grid-template-columns: 1fr 1fr !important;
  }
}

.footer h5 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.footer p {
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.footer small {
  color: #9ca3af;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none !important;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .event-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Ensure desktop navigation stays horizontal */
@media (min-width: 769px) {
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .form-card {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .poster-container {
    margin: 0 1rem;
    padding: 1.5rem;
  }
  
  .registration-card {
    margin: 0 1rem;
    padding: 2rem;
  }
  
  .payment-card {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* Announcements Section */
.announcement-card {
  border-left: 4px solid #6c757d;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-card.urgent {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.announcement-card.important {
  border-left-color: #ffc107;
  background-color: #fffbf0;
}

.announcement-card.general {
  border-left-color: #6c757d;
  background-color: #f8f9fa;
}

.announcement-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.announcement-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.announcement-message {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.announcement-time {
  font-size: 0.875rem;
  color: #718096;
}