/* -----------------------------------------
   DUBAI EVENT 2025 – Modern Responsive Theme
   Includes: Countdown, Registration Table, Confirmation Box
------------------------------------------*/

:root {
  --navy: #1F3C64;
  --gold: #D6B56F;
  --light: #F5F5F5;
  --white: #FFFFFF;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--light);
  scroll-behavior: smooth;
}

/* ---------------------- HERO ---------------------- */
/* ---------------------- HERO ---------------------- */
.hero {
  background: linear-gradient(to bottom, #12283c, #002037);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-logo img {
  width: 260px;
  height: auto;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  animation: fadeIn 1.2s ease-out;
}

.hero-logo h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.hero-logo p,
.hero-logo .event-date,
.hero-logo .subtitle {
  color: #ffffff !important;
}

/* ---- Countdown ---- */
.countdown {
  background-color: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  display: block;
  text-align: center;
  margin: 1.2rem auto 1.5rem;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: pulse 2s infinite ease-in-out;
}

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

/* ---- Primary button ---- */
.btn-primary.large {
  background-color: var(--gold);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: 0.3s ease;
  display: block;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  min-width: 160px;
}

.btn-primary.large:hover {
  background-color: #C1A363;
  transform: translateY(-2px);
}

/* ---------------------- MOBILE FIX ---------------------- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 5rem 1rem 3rem;
  }

  .hero-logo img {
    width: 220px;
    margin-bottom: 1.2rem;
  }

  /* Force same width + perfect center on mobile */
  .countdown,
  .btn-primary.large {
    width: 80%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .countdown {
    padding: 0.8rem 0;
  }

  .btn-primary.large {
    padding: 1rem 0;
  }
}


/* ---------------------- GENERAL SECTIONS ---------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section { padding: 4rem 0; }

h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  text-align: center;
  padding: 4rem 1.5rem;
}

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

.about p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Topics Section */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.topic-card:hover { transform: translateY(-5px); }
.topic-card h3 { margin: 0.5rem 0; }

/* Program Section */
.program ul {
  list-style: none;
  padding: 0;
}
.program li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #ddd;
}

/* Speakers */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.speaker img {
  width: 100%;
  border-radius: 8px;
}
.speaker h3 { margin: 0.5rem 0 0.25rem; }

/* ---------------------- REGISTRATION FORM ---------------------- */
.register form {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: auto;
}

.register label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.register input,
.register select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.checkbox {
  margin: 1rem 0;
  font-size: 0.9rem;
}

.btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Confirmation Box */
.confirmation {
  margin-top: 2rem;
  background: #e8f8ee;
  border-left: 5px solid #4CAF50;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: #255c2c;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.hidden { display: none; }

/* Registration Table */
.admin-access, .admin-panel {
  margin-top: 2rem;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tr:hover { background: #fafafa; }

/* ---------------------- VENUE ---------------------- */
.venue iframe {
  border-radius: 8px;
  margin-top: 1rem;
}

/* ---------------------- PARTNERS ---------------------- */
.partners {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #f8f9fb;
}

.partners h2 {
  font-family: 'Playfair Display', serif;
  color: #1F3C64;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.partner-logos img {
  max-width: 180px;
  height: auto;
  filter: grayscale(0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.partner-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(0);
}

/* ---------------------- FOOTER ---------------------- */
.footer {
  background-color: #0d1f33;
  color: #ffffff;
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 1rem;
}

.footer a {
  text-decoration: none;
  color: #ffffff;
}

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

.footer-contact {
  margin-top: 1.5rem;
  line-height: 1.8;
  color: #ffffff;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1.8rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25d366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  display: block;
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 5rem 1rem 3rem; }
  section { padding: 3rem 1rem; }
  form { padding: 1.5rem; }
  table th, table td { font-size: 0.9rem; }
  .countdown { font-size: 0.95rem; padding: 0.6rem 1rem; }
}
