:root {
  /* Updated to better match Beyond School Hours look */
  --navy: #0f2f44;
  --blue: #1e6fa8;
  --teal: #2aa7a1;
  --orange: #f28c28;
  --light-bg: #f4f8fb;
  --white: #ffffff;
  --text: #1f2a33;
  --muted: #5f6b7a;
  --border: #d9e0e7;
  --shadow: 0 18px 40px rgba(15, 47, 68, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #121138;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  background: #121138;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.header-link {
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 680px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 50, 75, 0.88) 0%, rgba(21, 50, 75, 0.62) 45%, rgba(21, 50, 75, 0.35) 100%);
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #74c8e1;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1,
.section-heading,
.form-card h2,
.info-card h2,
.content-card h2,
.timeline-section h2,
.modal-content h2 {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: #f68121;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

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

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(242, 140, 40, 0.25);
}

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

.btn-full {
  width: 100%;
}

.countdown-container {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: fit-content;
  max-width: 100%;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(65px, 90px));
  gap: 10px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: center;
  padding: 12px 10px;
}

.countdown-item span:first-child {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.cd-unit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.main-section,
.content-section,
.timeline-section {
  padding: 64px 0;
}

.info-card,
.form-card,
.content-card,
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.form-card {
  padding: 28px;
}

.section-kicker {
  color: var(--teal);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card h2,
.form-card h2,
.content-card h2,
.timeline-section h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.event-title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 700;
}

.event-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.meta-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.event-description p,
.content-body p,
.content-body li,
.thank-you-text,
.share-panel p,
.rules-text p,
.timeline-copy,
.winner-copy {
  color: var(--muted);
  line-height: 1.7;
}

.form-subtitle {
  color: #121138;
  line-height: 1.7;
}

.how-to-enter {
  margin: 26px 0;
  padding: 20px;
  border-radius: 16px;
  background: #eaf6f5;
  border: 1px solid #cde7e5;
}

.how-to-enter h3,
.content-block h3,
.share-panel h3,
.winner-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.how-to-enter ul,
.content-body ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.required-asterisk {
  color: #ef4444;
  margin-left: 2px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(36, 95, 143, 0.15);
  border-color: var(--blue);
}

.disclaimer {
  font-size: 0.85rem;
  margin-top: 24px;
  text-align: center;
  color: #121138;
}

.disclaimer a,
.footer a,
.inline-link {
  color: var(--blue);
  font-weight: 600;
}

.success-icon {
  margin-bottom: 12px;
}

.share-panel {
  margin-top: 26px;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.share-url-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 16px 0;
}

.social-shares {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-social {
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.92rem;
  flex: 1;
  min-width: 120px;
}

.btn-fb {
  background: #1877f2;
}

.btn-tw {
  background: #111827;
}

.btn-li {
  background: #0077b5;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 111, 168, 0.1);
  color: var(--blue);
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 140, 40, 0.3);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #f68121;
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.2;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.content-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.content-block + .content-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #ecf0f4;
}

.copy-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  white-space: pre-wrap;
  color: var(--text);
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

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

.timeline-card {
  padding: 20px;
}

.timeline-date {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.timeline-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.winner-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid #eadfcd;
}

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 24px));
  margin: 5vh auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 960px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-card {
    position: static;
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .hero-layout-grid {
    padding: 30px 0;
  }

  .countdown-container {
    padding: 16px;
    width: 100%;
  }

  .countdown-timer {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .countdown-item {
    padding: 10px 4px;
  }
  
  .countdown-item span:first-child {
    font-size: 1.3rem;
  }
  
  .cd-unit {
    font-size: 0.7rem;
  }

  .hero-kicker {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .modal-content,
  .info-card,
  .form-card,
  .content-card,
  .timeline-card {
    padding: 20px;
  }

  .info-card h2,
  .form-card h2,
  .content-card h2,
  .timeline-section h2 {
    font-size: 1.5rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .header-container {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .share-url-container {
    grid-template-columns: 1fr;
  }

  .btn-social {
    width: 100%;
  }
}