/* =====================
   RESET / BASE
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #000;
  line-height: 1.6;
  background-color: #fff;
}

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

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

.split img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* =====================
   LAYOUT
===================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

/* =====================
   HEADER
===================== */
header.site-header {
  background-color: #000;
  color: #fff;
  position: relative;
  z-index: 1000;
  padding: 1rem 0;
}

header.site-header .header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
header.site-header .logo img {
  height: 100px;
  width: auto;
}

/* =====================
   NAVIGATION
===================== */
header.site-header .main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

header.site-header .main-nav a {
  color: #fff;
  font-weight: 600;
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  background-image: url("images/banner_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

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

/* =====================
   BUTTONS
===================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
}

.btn-primary {
  background: #fff;
  color: #000000;
}

.btn-secondary {
  background: #e0e8e8;
  color: #000000;
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 4rem 0;
}

.section.light {
  background: #e0e8e8;
}

.center {
  text-align: center;
}

/* =====================
   PLACEHOLDER IMAGE
===================== */
.placeholder-image {
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  font-weight: 600;
}

/* =====================
   CARDS
===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card-footer {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Fix empty space beside Lost Jewellery image */
.image-card {
  width: 100%;
  background: #fff;
  padding: 0;                 /* remove inner gap */
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;           /* keeps rounded corners clean */
}


.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fills the box nicely */
  display: block;
}

@media (max-width: 768px) {
  .split {
    flex-direction: column-reverse;
  }
}

.split {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.split > div {
  flex: 1;
}

.split > div:first-child {
  padding-top: 0;
}

.split h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =====================
   CTA – DIG WITH CONFIDENCE
===================== */
.cta {
  background: #fff;
  color: #222;
  padding: 4rem 0;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 -2px 8px rgba(0, 0, 0, 0.12);
}

.cta-split {
  display: flex;
  align-items: flex-start; /* Keeps text aligned nicely */
  gap: 2rem;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

/* Control column widths */
.cta-split {
  display: flex;
  align-items: flex-start;
  gap: 3rem;          /* Slightly larger gap for breathing space */
  flex-wrap: wrap;
}

/* IMAGE COLUMN */
.cta-image {
  flex: 0 0 40%;
  max-width: 450px;
}

/* TEXT COLUMN */
.cta-content {
  flex: 1;
  margin-top: 0;      /* Remove negative margin */
  padding-right: 0;   /* Ensures it aligns with container edge */
}

.cta-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}


@media (max-width: 768px) {
  .cta-split {
    flex-direction: column;
    text-align: center;
  }

  .cta-image {
    flex: 0 0 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 2rem 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}



/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }

  .cta-split {
    flex-direction: column;
    text-align: center;
  }

  .cta-content p {
    margin-inline: auto;
    padding-top: 0;
  }

  header.site-header .logo img {
    height: 45px;
  }
}
/* CTA IMAGE META */
.cta-image-meta {
  margin-top: 0.75rem;
}

.cta-date {
  display: block;
  color: #c1121f; /* strong red */
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-location {
  display: block;
  margin-top: 0.25rem;
  color: #000;
  font-size: 1rem;
}

/* =====================
   HAMBURGER BUTTON
===================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
}

/* =====================
   MOBILE / TABLET NAV
===================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  header.site-header .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    flex-direction: column;
    width: 220px;
    padding: 1rem;
  }

  header.site-header .main-nav ul.show {
    display: flex;
  }

  header.site-header .main-nav ul li {
    margin-bottom: 0.75rem;
  }

  header.site-header .main-nav ul li:last-child {
    margin-bottom: 0;
  }
}

.charity-news {
  background: #f5f5f5;
  padding-top: 2.5rem;
  padding-bottom: 4rem;

  /* MATCH CTA BLUR LINE */
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* GREY BLUR LINE AT TOP */
.charity-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.25);
  filter: blur(1.5px);
}

/* NAV BUTTONS */
.main-nav .nav-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-block;
  line-height: 1;
}

/* Register – outline style */
.main-nav .nav-btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.main-nav .nav-btn-outline:hover {
  background: #fff;
  color: #000;
}

/* Login – solid style */
.main-nav .nav-btn-solid {
  background: #06b800;
  color: #fff;
  border: 2px solid #fff;
}

.main-nav .nav-btn-solid:hover {
  background: transparent;
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
}

/* SPONSORS */
.sponsor-card a img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sponsors-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #444;
}

.sponsor-card img {
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.lost-item-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lost-item-form input,
.lost-item-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

#map {
  width: 100%;
}

.split {
  display: flex;
  gap: 40px;
}

.split > div {
  flex: 1;
}

#map {
  border-radius: 18px;
  overflow: hidden;
}

.success-message {
  background: #e8f7ee;
  border: 1px solid #b7e4c7;
  color: #1b5e20;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.error-message {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b42318;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.lost-item-row {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  align-items: center;
}

.lost-item-image img {
  width: 100%;
  border-radius: 12px;
}

.item-map {
  height: 220px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .lost-item-row {
    grid-template-columns: 1fr;
  }
}

.case-card{
  display: grid;
  grid-template-columns: 260px 260px 1fr;
  gap: 24px;
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  align-items: stretch; /* THIS makes them equal height */
}

.case-left{
  height: 240px;
}
.case-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.case-right{
  height: 240px;
}

.case-map{
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.case-middle{
  min-width: 0;
}

/* Mobile stack */
@media (max-width: 1000px){
  .case-card{
    grid-template-columns: 1fr;
  }
  .case-left img,
  .case-map{
    height: 220px;
  }
}

.status{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Pending = amber button look */

.status-pending{
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe69c;
}

/* Searching = blue */

.status-searching{
  background: #e7f1ff;
  color: #0b5ed7;
  border: 1px solid #cfe2ff;
}

/* Found = green */

.status-found{
  background: #e8f7ee;
  color: #1b5e20;
  border: 1px solid #b7e4c7;
}

.video-wrapper {
  width: 100%;
  max-width: 800px; /* increase this for a bigger player */
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  display: block;
}

.split .video-wrapper {
  max-width: none; /* remove artificial limit */
}

.section-break {
  border-top: 1px solid #e5e7eb;
  margin-top: 60px;
  padding-top: 50px;
}

/* Lost item register layout */
.lost-register {
  align-items: stretch;
}

.lost-form-col,
.lost-map-col {
  display: flex;
  flex-direction: column;
}

/* Leaflet map must have a height */
#map {
  width: 100%;
  min-height: 600px;   /* REQUIRED */
  border-radius: 12px;
}
/* Ensure split columns match height */
.container.split {
  align-items: stretch;
}

.login-form {
  max-width: 420px;
}

.login-form input {
  width: 100%;
}

/* Login card */
.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 420px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Intro text */
.login-intro {
  margin-bottom: 1.5rem;
  color: #444;
}

/* Form layout */
.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.login-form input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.login-form input:focus {
  outline: none;
  border-color: #000;
}

/* Full-width buttons */
.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer links */
.login-footer {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.login-footer a {
  font-weight: 600;
}

/* Centre login card in CTA */
.login-center {
  display: flex;
  justify-content: center;
}
.card.alert {
  border: 2px solid #c62828; /* deep red */
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.15);
}

/* =====================
   PROFESSIONAL TEXTAREA
===================== */

.lost-item-form textarea,
.card textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db; /* soft grey */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 110px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.lost-item-form textarea:focus,
.card textarea:focus {
  outline: none;
  border-color: #16a34a; /* your green accent */
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Placeholder styling */
.lost-item-form textarea::placeholder,
.card textarea::placeholder {
  color: #9ca3af;
}

/* =====================
   STATUS BADGES
===================== */

.status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Pending */
.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Assigned */
.status-assigned {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

/* Recovered */
.status-recovered {
  background-color: #e6f4ea;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

/* =====================
   MOBILE LOGIN FIX
===================== */
@media (max-width: 768px) {

  /* Stack CTA content properly */
  .cta-split {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Center the login container */
  .cta-content.login-center {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
  }

  /* Login card – clean & consistent */
  .login-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 12px;
  }

  /* Headings look centred & balanced */
  .cta-heading.login-center {
    text-align: center;
    margin-bottom: 1.25rem;
  }

  /* Form spacing consistency */
  .login-form .form-group {
    width: 100%;
  }

  .login-form input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Full-width button that doesn’t look oversized */
  .btn-full {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
  }

  /* Footer links don’t bunch up */
  .login-footer {
    text-align: center;
    margin-top: 1rem;
  }
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.video-card {
  flex: 0 0 calc(33.333% - 1rem);
}

.video-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px) {
  .video-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .video-card {
    flex: 0 0 100%;
  }
}

/* =========================
   CREATOR PROFILE (Split Layout)
========================= */

.profile-split {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-avatar {
  flex: 0 0 220px;
}

.profile-avatar img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.profile-content {
  flex: 1;
}

.profile-content h2 {
  margin-bottom: 1rem;
}

.profile-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #444;
}

.profile-button {
  margin-top: 1.5rem;
}

/* =========================
   VIDEO GRID (3 Per Row)
========================= */



/* ===== FEATURED VIDEO ===== */
.featured-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  margin-bottom: 2rem;
}

.featured-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.05);
}

.designer-credit {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.4rem;
}

.designer-credit a {
  color: inherit;
  text-decoration: underline;
}

.designer-credit a:hover {
  opacity: 1;
}

/* Hide mobile home button by default */
.mobile-home-btn {
  display: none;
  background: #06b800;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Show only on mobile */
@media (max-width: 992px) {
  .mobile-home-btn {
    display: inline-block;
  }
}

@media (max-width: 992px) {
  .mobile-home-btn {
    display: inline-block;
  }
}

/* Hide dashboard quick links by default */
.dashboard-mobile-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

/* Mobile behaviour */
@media (max-width: 768px) {

  /* Show Home + Edit Profile */
  body.dashboard-page .dashboard-mobile-nav {
    display: flex;
  }

  /* 🔥 FORCE HIDE HAMBURGER ON DASHBOARD MOBILE */
  body.dashboard-page .menu-toggle {
    display: none !important;
  }

.mobile-dashboard-toggle {
  text-decoration: none;
  text-align: center;
}
.mobile-dashboard-toggle {
  white-space: nowrap;
}
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  margin-right: 15px;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-links {
    margin-top: 1rem;
  }

  .footer-links a {
    display: block;
    margin-bottom: 8px;
  }
}
/* ===== FOOTER LEGAL SECTION ===== */

.footer-copy {
  margin: 0;
}

.footer-legal {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #bbb;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-divider {
  opacity: 0.5;
}

.footer-shield {
  font-size: 0.9rem;
  margin-right: 4px;
  opacity: 0.8;
}

/* Mobile layout */
@media (max-width: 768px) {

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-divider {
    display: none;
  }

}

.total-donated {
  margin: 2rem 0;
  background: #f4f8f4;
  padding: 1.5rem;
  border-radius: 10px;
}

.donation-total {
  color: #0a7c2f;
  font-weight: 700;
  font-size: 1.8rem;
}

/* ===== CHARITY TOTAL (MATCHES MOST VOTED STYLE) ===== */

.charity-total-wrapper {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.charity-total-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0a7c2f, #0f9e3f);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(10,124,47,0.35);
  position: relative;
  overflow: hidden;
  animation: badgePulse 3s ease-in-out infinite;
}

/* Reuse same pulse animation */
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(10,124,47,0.4);
  }
}

/* Subtle shimmer sweep */
.charity-total-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.2)
  );
  transform: skewX(-20deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -75%; }
  60% { left: 125%; }
  100% { left: 125%; }
}

.video-wrapper {
  position: relative;
}

.video-overlay-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s ease;
  z-index: 5;
}

.video-overlay-btn:hover {
  background: #06B800; /* your brand red */
}