/* ============================================
   dAIEDGE Innovation Days — page-specific styles
   Built on top of the shared new-age/style.css
   theme (--primary-color: #1947ed / --secondary-color: #47317e)
   ============================================ */

/* --- Mobile nav toggler ------------------------------------------ */
#mainNav .navbar-toggler {
  color: var(--primary-color);
  border: none;
  padding: 4px 8px;
}

#mainNav .navbar-toggler i {
  font-size: 1.8rem;
}

/* --- Hero -------------------------------------------------- */
header.masthead {
  background: linear-gradient(120deg, #d6006f 0%, #9a1fa0 22%, #5a2a9e 42%, #2f2f9e 60%, var(--primary-color) 82%, #0c1230 100%);
  background-image: url('../img/background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 130px 0 90px;
}

header.masthead .header-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 2.6rem;
}

header.masthead .header-content .subtitle {
  font-size: 1.6rem;
  line-height: 2.2rem;
  font-weight: 500;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.96;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 1.5rem;
  margin-top: 2.4rem;
  font-size: 0.95rem;
}

.hero-meta .hero-meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  flex: 1 1 0;
  min-width: 200px;
  text-align: center;
}

.hero-meta .hero-meta-item i {
  margin-top: 3px;
  opacity: 0.9;
}

.hero-meta-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 0.95;
}

.hero-meta small,
.hero-meta span.meta-sub {
  display: block;
  opacity: 0.85;
  font-size: 0.85rem;
}

/* Neutralise the legacy ".header-content span" translucent badge
   (inherited from new-age.css) so hero-meta text sits flat on the background */
.hero-meta span {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

header.masthead .btn-outline.btn-xl {
  margin-top: 2.6rem;
  padding: 14px 42px;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Stats row (About) --------------------------------------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 2.8rem 0 1rem;
  text-align: center;
  flex-wrap: wrap;
}

.stats-row .stat-block {
  max-width: 260px;
  padding: 0 1.5rem;
}

.stats-row .stat-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.stats-row .stat-block p {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Achievements grid ---------------------------------------- */
.achievements .section-heading h2 {
  margin-bottom: 0.4rem;
}

.achievements .section-heading .subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.95;
}

.achievement-card {
  padding: 1.6rem 1.6rem 1.8rem;
  height: 100%;
  text-align: left;
}

.achievement-card .achievement-number {
  font-size: 1.4rem;
  letter-spacing: 2px;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.4rem;
}

.achievement-card h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.achievement-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.95;
}

.achievement-card a {
  color: #fff !important;
  text-decoration: underline;
  font-size: 0.88rem;
}

/* Outline button used on white sections (e.g. "See registration options").
   Replaces Bootstrap's .btn-outline-primary, whose default hover state
   (#007bff fill) clashed with the brand blue and made the label unreadable. */
.btn-outline-brand {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus,
.btn-outline-brand:active {
  color: var(--primary-color);
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-color: var(--primary-color);
}

.btn-bg-brand {
  color: #ffffff;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-bg-brand:hover,
.btn-bg-brand:focus,
.btn-bg-brand:active {
  color: var(--primary-color);
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-color: var(--primary-color);
}

/* --- Co-located event ------------------------------------------ */
.colocated .section-heading h2 {
  font-size: 1.9rem;
}

.colocated p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Programme timeline ----------------------------------------- */
.programme .section-heading .subtitle {
  font-size: 1.4rem;
  line-height: 1.6rem;
  font-weight: 500;
  opacity: 0.95;
  max-width: 760px;
  margin: 0 auto;
}

.programme-day {
  margin-top: 2.4rem;
}

.programme-day h3 {
  font-size: 1.2rem;
  text-align: left;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.programme-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  padding-left: 80px;
}

.programme-slot .slot-time {
  font-weight: 700;
  min-width: 120px;
}

.programme-slot .slot-body {
  flex: 1;
  min-width: 240px;
  text-align: left;
}

.programme-slot .slot-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.programme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.programme-tags span {
  background: #ffffff26;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.programme-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  opacity: 0.85;
  font-style: italic;
}

/* --- Join us in Malta CTA ---------------------------------------- */
.join-malta {
  text-align: center;
  padding: 4rem 0 3.5rem;
}

.join-malta .eyebrow {
  font-size: 1.2rem;
  color: var(--tertiary-color);
}

.join-malta h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.4rem;
  margin: 0.4rem 0 0.6rem;
}

.join-malta .join-date {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 767px) {
  .nav-menu {
    padding-right: 1.5rem !important;
  }
  .stats-row {
    gap: 1.5rem;
  }
  header.masthead .header-content h1 {
    font-size: 2rem;
  }
  .hero-meta .hero-meta-item {
    flex: 1 1 100%;
  }
  .programme-slot {
    padding-left: 0;
  }
  .programme-slot .slot-time {
    min-width: 70px;
  }
}
