/* ============================================================
   Maha Chandra Prathishtana — Main Stylesheet
   Clean, readable CSS with a consistent brand palette.
   ============================================================ */

/* --- Brand colors & shared tokens --- */
:root {
  --color-primary: #0c3c60;
  --color-primary-dark: #07263d;
  --color-accent: #e8a020;
  --color-accent-hover: #c98a15;
  --color-dark: #0f172a;
  --color-text: #000000;
  --color-text-muted: #555555;
  --color-border: #e2e8f0;
  --color-light: #f8fafc;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-body: 'Lato', sans-serif;
  --font-heading: 'Lato', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --section-padding: 80px;
}

/* --- Base reset & typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

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

/* --- Top contact bar --- */
.top-header {
  background: var(--color-white);
  color: var(--color-black);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.top-header a {
  color: var(--color-black);
  margin-right: 24px;
}

.top-header a:hover {
  color: #666666;
}

.top-header a i {
  margin-right: 6px;
  color: var(--color-black);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: var(--color-black);
  font-size: 14px;
}

.social-icons a:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* --- Main navigation --- */
.site-navbar {
  background: var(--color-black);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.site-navbar.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* The logo file has ~21% empty margin above and below the artwork.
   A fixed-height, overflow-hidden brand box with a taller image crops
   that empty space so the Kannada wordmark fills the header cleanly. */
.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  height: 92px;
  padding: 0;
  overflow: hidden;
}

.site-navbar .navbar-brand img {
  height: 160px;
  width: auto;
  /* Logo artwork is black on a white background; inverting turns the
     Kannada text white and blends the background into the black header. */
  filter: invert(1);
}

.site-navbar .nav-link {
  font-weight: 600;
  color: var(--color-white) !important;
  padding: 8px 14px !important;
  position: relative;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #b3b3b3 !important;
}

/* White hamburger icon for the dark navbar on mobile */
.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

.cta-button {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--color-accent-hover);
  color: var(--color-dark);
}

/* --- UPI contribute modal --- */
.upi-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.upi-modal[hidden] {
  display: none;
}

.upi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.upi-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: upiModalIn 0.25s ease;
}

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

.upi-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.upi-modal__close:hover {
  color: var(--color-black);
}

.upi-modal__dialog h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-black);
  margin: 0 0 4px;
}

.upi-modal__dialog p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.upi-modal__qr {
  width: 190px;
  height: 190px;
  margin: 0 auto 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  background: var(--color-white);
  flex: 0 0 auto;
}

.upi-modal__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upi-modal__id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.upi-modal__id span {
  font-weight: 700;
  color: var(--color-black);
  word-break: break-all;
}

.upi-modal__copy {
  flex: 0 0 auto;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.upi-modal__copy:hover {
  background: #333333;
}

.upi-modal__pay {
  display: block;
  width: 100%;
}

.upi-modal__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Hero carousel --- */
.hero-carousel .carousel-item {
  position: relative;
}

.hero-carousel .carousel-item img {
  height: 85vh;
  min-height: 420px;
  object-fit: cover;
}

.hero-carousel .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 38, 61, 0.85) 0%,
    rgba(12, 60, 96, 0.45) 0%,
    rgba(12, 60, 96, 0.25) 0%
  );
}

.hero-carousel .carousel-caption {
  bottom: 28%;
  left: 10%;
  right: 10%;
  text-align: left;
}

.hero-carousel .carousel-caption h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-carousel .carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

/* --- Shared section styles --- */
.page-section {
  padding: var(--section-padding) 0;
}

.page-section--light {
  background: var(--color-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-heading .heading-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- About intro (home) --- */
.about-intro {
  text-align: center;
}

.about-intro p {
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto 16px;
  color: var(--color-text);
}

.primary-button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.25s ease;
}

.primary-button:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* --- Focus area cards --- */
.focus-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.focus-card .focus-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(12, 60, 96, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
}

.focus-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.focus-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Initiative banner --- */
.initiative-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.initiative-banner h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.initiative-banner p {
  opacity: 0.9;
  margin: 0;
  max-width: 520px;
}

.initiative-banner .cta-button {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 14px 28px;
  font-size: 15px;
}

.initiative-banner .cta-button:hover {
  background: var(--color-white);
}

/* --- Gallery preview --- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(7, 38, 61, 0.85));
  color: var(--color-white);
  font-weight: 600;
  font-size: 14px;
}

/* Year-wise gallery tabs */
.gallery-year-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.gallery-year-tab {
  background: var(--color-white);
  color: var(--color-black);
  border: 2px solid var(--color-border);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-year-tab:hover {
  border-color: var(--color-black);
}

.gallery-year-tab.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.gallery-year-panel {
  display: none;
}

.gallery-year-panel.active {
  display: block;
}

/* Contact form */
.contact-section {
  background: var(--color-white);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 6px;
}

.contact-form .form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--color-black);
}

.contact-form .form-control:focus {
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-form-status.is-success {
  color: #166534;
}

.contact-info-card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
}

.contact-info-card p {
  margin-bottom: 14px;
  color: var(--color-text);
}

.contact-info-card a {
  color: var(--color-black);
}

.contact-info-card a:hover {
  color: var(--color-text-muted);
}

.contact-info-card i {
  color: var(--color-black);
  width: 20px;
}

/* --- About page layout --- */
.about-page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 10px 0;
  text-align: center;
}

.about-page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.about-page-hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-split h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.about-split p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* --- Founders / blessings section --- */
.blessing-text {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text);
}

.founders-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
}

.founder-card {
  text-align: center;
  max-width: 220px;
}

.founder-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(12, 60, 96, 0.15);
  background: var(--color-light);
  box-shadow: var(--shadow-sm);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

/* The central founder (Swamy) is emphasised with a larger portrait */
.founder-card--main {
  max-width: 260px;
}

.founder-card--main .founder-photo {
  width: 230px;
  height: 230px;
  border-color: var(--color-accent);
}

.founder-card--main h4 {
  font-size: 1.1rem;
}

/* --- About narrative paragraphs --- */
.about-narrative {
  max-width: 900px;
  margin: 0 auto;
}

.about-narrative p {
  font-size: 1.08rem;
  color: var(--color-text);
  margin-bottom: 18px;
}

/* --- Mission / Vision / Goal cards --- */
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  transition: transform 0.25s ease;
}

.info-card:hover {
  transform: translateY(-3px);
}

.info-card .card-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Aim & Goals two-column layout --- */
.aim-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* Dotted divider between the two columns (matches the source document) */
.aim-goal-grid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed var(--color-border);
}

.aim-goal-column h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.aim-goal-column h3 i {
  color: var(--color-accent);
  margin-right: 8px;
}

.numbered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}

.numbered-list li {
  counter-increment: item;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

/* --- Team member cards --- */
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(12, 60, 96, 0.12);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(12, 60, 96, 0.08);
  color: var(--color-primary);
  font-size: 14px;
}

.team-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Project cards --- */
.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.project-body {
  padding: 22px;
}

.project-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.project-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-link {
  font-weight: 600;
  color: var(--color-primary);
}

.project-link i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.project-link:hover {
  color: var(--color-accent);
}

.project-link:hover i {
  transform: translateX(4px);
}

/* --- Value tags --- */
.value-tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s ease;
}

.value-tag:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --- Join CTA block --- */
.join-cta {
  text-align: center;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}

.join-cta h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.join-cta p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* --- Site footer --- */
.site-footer {
  /* Matches the solid background of logo_english.jpg so the white
     English wordmark blends seamlessly into the footer. */
  background: #232323;
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0 20px;
}

.site-footer .footer-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px -6px;
}

.site-footer h5 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.site-footer p,
.site-footer li {
  font-size: 16px;
  line-height: 1.9;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
  font-size: 14px;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-bottom a {
  color: var(--color-white);
}

.site-footer .footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- Responsive adjustments --- */
@media (max-width: 991px) {
  .site-navbar .navbar-brand {
    height: 64px;
  }

  .site-navbar .navbar-brand img {
    height: 112px;
  }

  .hero-carousel .carousel-caption {
    bottom: 18%;
    text-align: center;
  }

  .hero-carousel .carousel-caption p {
    margin: 0 auto;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .initiative-banner {
    padding: 32px 24px;
    text-align: center;
    justify-content: center;
  }

  .aim-goal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aim-goal-grid::before {
    display: none;
  }

  .founders-row {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }

  .hero-carousel .carousel-item img {
    height: 60vh;
  }

  .top-header a {
    display: block;
    margin-bottom: 6px;
    margin-right: 0;
  }
}

/* ============================================================
   Body palette overrides — keep headings & focus icons black
   (placed last so they win over the earlier brand-blue rules).
   ============================================================ */
.section-heading h2,
.focus-card h3,
.info-card h3,
.about-split h3,
.aim-goal-column h3,
.team-card h4,
.project-body h3,
.founder-card h4,
.join-cta h2 {
  color: var(--color-black);
}

.focus-card .focus-icon {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-black);
}

/* ============================================================
   Projects page — hero banner + detailed project showcase
   ============================================================ */
.projects-hero {
  background: linear-gradient(135deg, #232323 0%, #000000 100%);
  color: var(--color-white);
  /* Generous top padding so the banner clears the sticky header
     and its content is never cut off underneath it. */
  padding: 84px 0 64px;
  text-align: center;
}

.projects-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.projects-hero p {
  max-width: 860px;
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

/* Alternate the image side for a natural left/right rhythm */
.project-detail:nth-child(even) .project-detail__media {
  order: 2;
}

.project-detail__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.project-number {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail__title h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
}

.project-includes-label {
  font-weight: 800;
  color: var(--color-black);
  text-decoration: underline;
  margin-bottom: 12px;
}

.project-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-includes li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.project-includes li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.project-detail__media {
  display: grid;
  gap: 12px;
}

.project-detail__media.media-2 {
  grid-template-columns: 1fr 1fr;
}

.project-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.project-detail__media.media-1 img {
  aspect-ratio: 16 / 10;
}

/* Recognition / in-the-news gallery */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.news-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .project-detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-detail:nth-child(even) .project-detail__media {
    order: 0;
  }

  .projects-list {
    gap: 48px;
  }
}
