/* Linen Day Africa - shared public styles (brand colors preserved) */
:root {
  --primary-orange: #F15A29;
  --primary-blue: #2E3192;
  --white: #ffffff;
  --text: #333;
  --muted: #666;
  --light: #f9f9f9;
  --hover-orange: #e04a1b;
  --hover-blue: #25277a;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-orange); text-decoration: none; }
a:hover { color: var(--hover-orange); }

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-orange);
  color: var(--white) !important;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}
.btn:hover {
  background: var(--hover-orange);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(241,90,41,.3);
}
.btn-blue { background: var(--primary-blue); }
.btn-blue:hover {
  background: var(--hover-blue);
  box-shadow: 0 5px 15px rgba(46,49,146,.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}
.btn-outline:hover { background: var(--white); color: var(--primary-blue) !important; }

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-orange);
  margin: 15px auto 0;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary-blue); line-height: 1.2; }
.logo-text span { color: var(--primary-orange); }

nav ul { display: flex; list-style: none; align-items: center; gap: 8px; }
nav ul li { position: relative; }
nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  display: block;
  transition: color .3s;
}
nav ul li a:hover,
nav ul li a.active { color: var(--primary-orange); }
nav ul li a.btn { padding: 10px 20px; margin-left: 8px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 20;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 10px 16px; font-size: 14px; }
.dropdown-menu li a:hover { background: rgba(241,90,41,.08); }

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-blue);
  background: none;
  border: none;
}

.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 0 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 12px 5%;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav ul li a:hover { color: var(--primary-orange); background: rgba(241,90,41,.06); }
.mobile-nav .sub { padding-left: 20px; display: none; }
.mobile-nav .sub.open { display: block; }

/* Page hero (inner pages) - photo + blue translucent overlay */
.page-hero {
  margin-top: 78px;
  background-color: var(--primary-blue);
  background-image: var(--page-hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46, 49, 146, 0.82) 0%,
    rgba(26, 28, 94, 0.88) 55%,
    rgba(46, 49, 146, 0.78) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 12px;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.page-hero p {
  font-size: clamp(16px, 2.5vw, 18px);
  max-width: 720px;
  margin: 0 auto;
  opacity: .96;
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Home hero slider */
.hero-slider {
  margin-top: 78px;
  position: relative;
  height: min(92vh, 780px);
  overflow: hidden;
  background: #111;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.62));
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 20px;
  animation: fadeUp .8s ease;
}
.hero-content h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content p { font-size: clamp(16px, 2.4vw, 20px); margin-bottom: 24px; }
.hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.date-location {
  background: rgba(255,255,255,.92);
  color: #333;
  padding: 12px 24px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
}
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slider-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
}
.slider-dots button.active { background: var(--primary-orange); border-color: var(--primary-orange); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

section { padding: 70px 0; }
.bg-light { background: var(--light); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card-plain {
  background: #fff;
  padding: 28px 22px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.card-plain:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.card-plain h3 { color: var(--primary-blue); margin-bottom: 10px; font-size: 20px; }
.card-plain .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(241,90,41,.12);
  color: var(--primary-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.sector-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.about-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .3s;
}
.video-card:hover { transform: translateY(-4px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 42px;
}
.video-card .meta { padding: 14px 16px; }
.video-card h3 { font-size: 16px; color: var(--primary-blue); margin-bottom: 4px; }
.video-card p { font-size: 13px; color: var(--muted); }

/* Stats */
.stat-block h3 {
  color: var(--primary-blue);
  margin: 30px 0 16px;
  text-align: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-item {
  background: #fff;
  border-radius: 8px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,.05);
}
.stat-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: 8px;
}
.stat-item p { font-size: 13px; color: var(--muted); }

/* Partners */
.partners-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.partners-track img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: .9;
  transition: .3s;
}
.partners-track img:hover { filter: none; opacity: 1; }

/* Countdown */
.countdown-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.countdown-timers {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.countdown-timers div {
  background: var(--primary-blue);
  color: #fff;
  min-width: 72px;
  padding: 14px 10px;
  border-radius: 8px;
  text-align: center;
}
.countdown-timers span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}
.countdown-timers small { font-size: 12px; opacity: .85; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(241,90,41,.15);
}
.spam-check {
  background: rgba(46, 49, 146, 0.06);
  border: 1px solid #dde0f0;
  border-radius: 6px;
  padding: 12px 14px;
}
.spam-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-blue);
  cursor: pointer;
  margin: 0;
}
.spam-check-label input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--primary-orange);
  flex-shrink: 0;
}
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.alert-success { background: #e8f8ef; color: #1a7a44; }
.alert-error { background: #ffe8e3; color: #a33; }
.alert-info { background: #eef1ff; color: var(--primary-blue); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a1c5e 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.cta-band p { max-width: 700px; margin: 0 auto 24px; opacity: .95; }

/* Footer - photo + blue translucent overlay */
footer {
  background-color: #1a1c5e;
  background-image: var(--footer-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e8e9f5;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 28, 94, 0.86) 0%,
    rgba(18, 20, 60, 0.92) 60%,
    rgba(12, 14, 42, 0.95) 100%
  );
  pointer-events: none;
  z-index: 0;
}
footer > * {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}
footer h3 { color: #fff; margin-bottom: 16px; font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
footer p { color: #e0e2f0; }
footer a { color: #d5d7ea; }
footer a:hover { color: var(--primary-orange); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important;
  font-size: 17px;
  transition: background .25s ease, transform .25s ease;
}
.socials a:hover {
  background: var(--primary-orange);
  color: #fff !important;
  transform: translateY(-2px);
}
.socials a[aria-label="Facebook"]:hover { background: #1877F2; }
.socials a[aria-label="X (Twitter)"]:hover { background: #000; }
.socials a[aria-label="Instagram"]:hover { background: #E4405F; }
.socials a[aria-label="TikTok"]:hover { background: #010101; }
.socials a[aria-label="YouTube"]:hover { background: #FF0000; }
.socials a[aria-label="WhatsApp"]:hover { background: #25D366; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
  color: #cfd1e6;
}

/* Resources / gallery */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.filter-bar button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.filter-bar button.active,
.filter-bar button:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #fff;
}

.resource-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.resource-card,
.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,.06);
  transition: transform .3s;
}
.resource-card:hover,
.gallery-item:hover { transform: translateY(-4px); }
.resource-card img,
.gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.resource-card .body,
.gallery-item .body { padding: 16px; }
.resource-card h3 { font-size: 16px; color: var(--primary-blue); margin-bottom: 6px; }
.resource-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.04);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}
.faq-item.open .faq-a { display: block; }
.faq-a ul { margin: 10px 0 0 18px; }

/* Events timeline */
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,.06);
  margin-bottom: 24px;
}
.event-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.event-card .body { padding: 22px 22px 22px 0; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-past { background: #eee; color: #555; }
.badge-upcoming { background: rgba(241,90,41,.15); color: var(--primary-orange); }

/* Team */
.team-card { text-align: center; }
.team-card img {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 4px solid rgba(46,49,146,.15);
}
.team-card h3 { color: var(--primary-blue); margin-bottom: 4px; }
.team-card .role { color: var(--primary-orange); font-weight: 600; font-size: 14px; margin-bottom: 10px; }

/* Sponsor packages */
.package {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 28px 22px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.package.featured {
  border-color: var(--primary-orange);
  box-shadow: 0 10px 30px rgba(241,90,41,.15);
}
.package h3 { color: var(--primary-blue); }
.package .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-orange);
  margin: 10px 0 16px;
}
.package ul { list-style: none; flex: 1; margin-bottom: 18px; }
.package ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px solid #f3f3f3;
}
.package ul li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-orange);
}

/* Modal viewer */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #111;
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.modal-box.light { background: #fff; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1a1a1a;
  color: #fff;
}
.modal-box.light .modal-head { background: var(--primary-blue); }
.modal-head h3 { font-size: 16px; margin: 0; padding-right: 20px; }
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.modal-body {
  flex: 1;
  min-height: 60vh;
  background: #000;
}
.modal-body iframe,
.modal-body video {
  width: 100%;
  height: min(70vh, 620px);
  border: 0;
  display: block;
}

/* WhatsApp float */
.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

@media (max-width: 992px) {
  .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .video-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card .body { padding: 18px; }
}
@media (max-width: 768px) {
  nav.desktop { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4, .video-grid, .stat-grid, .about-gallery, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider { height: min(85vh, 640px); }
  .partners-track img { height: 44px; }
}
