/* Canadian Jats Association — custom styles (Bootstrap 5) */

:root {
  --cja-primary: #1a237e;
  --cja-primary-light: #3949ab;
  --cja-accent: #e65100;
  --cja-accent-soft: #ff9800;
  --cja-dark: #212121;
  --cja-muted: #6c757d;
  --cja-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --cja-card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cja-dark);
  background-color: #f8f9fa;
}

/* ---------- Navbar ---------- */
.navbar-cja {
  background-color: var(--cja-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.navbar-cja .navbar-brand img {
  max-height: 48px;
  width: auto;
  border-radius: 4px;
}

.navbar-cja .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar-cja .dropdown-menu {
  border: none;
  box-shadow: var(--cja-card-shadow-hover);
}

.navbar-cja .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-cja .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

/* ---------- Main ---------- */
main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.section-heading {
  font-weight: 500;
  color: var(--cja-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cja-accent-soft);
  display: inline-block;
}

/* ---------- Hero / Diwali ---------- */
.hero-diwali {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-diwali .hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.hero-diwali .hero-body {
  padding: 1.5rem 1.75rem;
}

.hero-diwali h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: var(--cja-primary);
  margin-bottom: 0.75rem;
}

.hero-diwali .event-meta {
  color: var(--cja-accent);
  font-weight: 600;
  margin: 0.75rem 0;
  line-height: 1.6;
}

.hero-diwali .highlights-title {
  color: var(--cja-accent);
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.hero-diwali ul.highlights {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.hero-diwali .ticket-prices {
  font-weight: 500;
  margin: 0.5rem 0;
}

/* ---------- Carousel ---------- */
.cja-carousel {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--cja-card-shadow);
  margin-bottom: 2rem;
  background: #fff;
}

.cja-carousel .carousel-item img {
  max-height: 420px;
  object-fit: contain;
  width: 100%;
  background: #fff;
}

.cja-carousel .carousel-control-prev,
.cja-carousel .carousel-control-next {
  width: 8%;
}

.cja-carousel .carousel-control-prev-icon,
.cja-carousel .carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* ---------- About / Vision / Mission ---------- */
.info-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  height: 100%;
}

.info-card .card-title {
  color: var(--cja-primary);
  font-weight: 500;
}

.info-card .card-text {
  line-height: 1.65;
  font-size: 0.975rem;
}

.info-card .mission-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9ecef;
}

/* ---------- Executive Members ---------- */
.team-section {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.member-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  text-align: center;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.member-card:hover {
  box-shadow: var(--cja-card-shadow-hover);
  transform: translateY(-2px);
}

.member-card .card-up {
  height: 72px;
  background: linear-gradient(135deg, var(--cja-primary-light), var(--cja-primary));
}

.member-card .avatar-wrap {
  margin-top: -48px;
  margin-bottom: 0.5rem;
}

.member-card .avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #e9ecef;
}

.member-card .card-body {
  padding: 0.5rem 0.75rem 1.25rem;
}

.member-card .member-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cja-dark);
  margin-bottom: 0.15rem;
}

.member-card .member-place {
  font-size: 0.875rem;
  color: var(--cja-muted);
  margin-bottom: 0.15rem;
}

.member-card .member-phone {
  font-size: 0.85rem;
  color: var(--cja-primary-light);
  text-decoration: none;
}

.member-card .member-phone:hover {
  text-decoration: underline;
}

/* ---------- Gallery ---------- */
.gallery-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gallery-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover {
  box-shadow: var(--cja-card-shadow-hover);
  transform: translateY(-2px);
}

.gallery-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-card .gallery-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-thumb {
  opacity: 0.9;
}

.gallery-card .card-body {
  text-align: center;
  padding: 0.85rem;
}

.gallery-card .card-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: var(--cja-primary);
}

/* ---------- Sponsors ---------- */
.sponsors-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.sponsors-row {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.sponsor-card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: var(--cja-card-shadow);
  background: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  transition: box-shadow 0.2s ease;
}

.sponsor-card:hover {
  box-shadow: var(--cja-card-shadow-hover);
}

.sponsor-card img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  padding: 0;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
}

.contact-card .card-body {
  padding: 2rem;
}

.contact-intro {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--cja-muted);
}

.contact-sidebar address {
  font-style: normal;
  line-height: 1.6;
}

.contact-sidebar a {
  color: var(--cja-primary-light);
  text-decoration: none;
}

.contact-sidebar a:hover {
  text-decoration: underline;
}

.btn-cja {
  background-color: var(--cja-primary);
  border-color: var(--cja-primary);
  color: #fff;
}

.btn-cja:hover,
.btn-cja:focus {
  background-color: var(--cja-primary-light);
  border-color: var(--cja-primary-light);
  color: #fff;
}

/* Form is presentational for draft — no backend */
.contact-form .form-note {
  font-size: 0.8rem;
  color: var(--cja-muted);
}

/* ---------- Footer ---------- */
.footer-cja {
  background-color: var(--cja-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
}

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

.footer-cja a:hover {
  text-decoration: underline;
}

/* ---------- Placeholder badges ---------- */
.placeholder-hint {
  font-size: 0.7rem;
  color: var(--cja-muted);
  font-style: italic;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  .hero-diwali .hero-img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero-diwali .hero-body {
    padding: 1.25rem;
  }

  .cja-carousel .carousel-item img {
    max-height: 260px;
  }

  .contact-card .card-body {
    padding: 1.25rem;
  }

  .member-card .avatar {
    width: 80px;
    height: 80px;
  }

  .member-card .avatar-wrap {
    margin-top: -40px;
  }
}

/* ---------- Auth / Directory / Admin pages ---------- */
.app-page {
  min-height: 60vh;
}

.app-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  background: #fff;
}

.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.approved { background: #d4edda; color: #155724; }
.status-badge.rejected { background: #f8d7da; color: #721c24; }

.directory-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--cja-card-shadow);
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.directory-card:hover {
  box-shadow: var(--cja-card-shadow-hover);
}

.directory-card .card-title {
  color: var(--cja-primary);
  font-weight: 600;
}

.btn-cja-outline {
  color: var(--cja-primary);
  border-color: var(--cja-primary);
}

.btn-cja-outline:hover {
  background: var(--cja-primary);
  color: #fff;
}

.admin-table th {
  background: var(--cja-primary);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

.admin-tabs .nav-link.active {
  background: var(--cja-primary);
  color: #fff;
  border-color: var(--cja-primary);
}
