/* ============================
   Ameya Performatt — aboutus.css
   Additional styling specific to About Us page
   ============================ */

/* General Section Layout */
/* ===============================
   Ameya Performatt — About Us Page
   =============================== */

/* Base section styling (inherits colors/vars from style.css) */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
  text-align: center;
}
section p, section ul {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
}
section ul li {
  margin: 8px 0;
  list-style: none;
}

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.intro-section h2 {
  color: #fff;
}

.intro-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Story Section --- */
.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.story-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.story-card p {
  font-weight: bold;
  padding: 12px;
  margin: 0;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- Leadership Section --- */
.leadership-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
}
.leader {
  flex: 1 1 calc(45% - 40px);
  max-width: 360px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
.leader img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 0%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.leader h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.leader p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}


/* --- Responsive Tweaks --- */
@media (max-width: 900px) {
  .leadership-grid {
    flex-direction: column;
    align-items: center;
  }
  .leader {
    flex: 1 1 100%;
  }
}
@media (max-width: 600px) {
  section h2 {
    font-size: 1.6rem;
  }
  section p, section ul {
    font-size: 0.95rem;
    padding: 0 15px;
  }
  .story-gallery {
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  }
  .leader img {
    width: 180px;
    height: 230px;
  }
}
/* About Us Cards Section */
.about-cards {
  display: flex;
  justify-content: left;
  align-items: stretch;
  gap: 30px;
  padding: 60px 10%;
}

.about-cards .card {
  flex: 1 1 calc(33.33% - 30px);
  background: rgba(255, 255, 255, 0.08);  /* glassmorphism */
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-cards .card h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.about-cards .card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.about-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .about-cards {
    flex-direction: column;
    padding: 40px 5%;
  }
  .about-cards .card {
    flex: 1 1 100%;
  }
}

/* ====== GRID WRAPPER ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 40px 0;
}

/* ====== CARD ====== */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  outline: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

/* Social Initiatives — scoped refinements for the grid used on About Us */
.grid[aria-label="Ameya social initiative cards"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 28px 0 40px;
}

.grid[aria-label="Ameya social initiative cards"] .card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(6,182,212,0.06);
  box-shadow: 0 8px 28px rgba(6,24,40,0.04);
}

.grid[aria-label="Ameya social initiative cards"] .card-head {
  align-items: flex-start;
}

.grid[aria-label="Ameya social initiative cards"] .card-head .icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  padding: 0; /* remove inner padding so image fills the box */
  border-radius: 12px;
  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden; /* clip image to the box */
  background: transparent;
  box-shadow: 0 6px 18px rgba(6,24,40,0.04);
}

.grid[aria-label="Ameya social initiative cards"] .card-head svg {
  width: 28px;
  height: 28px;
}

/* Image support for social initiative cards */
.grid[aria-label="Ameya social initiative cards"] .card-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit; /* match the parent rounded corners */
}

.grid[aria-label="Ameya social initiative cards"] .card-head h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #092034;
}

.grid[aria-label="Ameya social initiative cards"] .card-head p {
  color: #475569;
  font-size: 0.98rem;
  margin: 0;
}

.grid[aria-label="Ameya social initiative cards"] .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(6,24,40,0.08);
  border-color: rgba(6,182,212,0.12);
}

/* Ensure keyboard focus is obvious */
.grid[aria-label="Ameya social initiative cards"] .card:focus {
  box-shadow: 0 18px 48px rgba(6,24,40,0.12);
  outline: 3px solid rgba(6,182,212,0.08);
}

/* Responsive tighten for small screens */
@media (max-width: 640px) {
  .grid[aria-label="Ameya social initiative cards"] {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0 28px;
  }
  .grid[aria-label="Ameya social initiative cards"] .card {
    flex-direction: row;
    gap: 12px;
    padding: 18px;
  }
  .grid[aria-label="Ameya social initiative cards"] .card-head {
    gap: 12px;
  }
}

/* Hover + Keyboard Focus */
.card:hover,
.card:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.1);
  border-color: #06b6d4;
}

/* ====== CARD HEADER ====== */
.card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-head .icon {
  background: #f0fdfa;
  padding: 12px;
  border-radius: 12px;
  display: inline-flex;
}

/* ====== TITLE & TEXT ====== */
.card-head h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

.card-head p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

/* ====== CTA ROW ====== */
.cta-row {
  margin-top: 16px;
}

.pill {
  display: inline-block;
  background: #06b6d4;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.3px;
}

/* ====== RESPONSIVE BREAKPOINTS ====== */

/* Tablet */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 20px;
  }

  .card-head h3 {
    font-size: 1.1rem;
  }

  .card-head p {
    font-size: 0.9rem;
 
  }
}
.section-head {
  text-align: center;
  margin-bottom: 20px;
}

.section-head .title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-head .quote {
  font-size: 1.1rem;
  color: #475569;
  margin-top: 4px;
}

.lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;   /* centers the block */
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
}
/* Tablet */
@media (max-width: 992px) {
  .section-head .title {
    font-size: 1.8rem;
  }

  .section-head .quote {
    font-size: 1rem;
  }

  .lead {
    font-size: 1rem;
    max-width: 700px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section-head {
    margin-bottom: 16px;
    padding: 0 16px;
  }

  .section-head .title {
    font-size: 1.5rem;
  }

  .section-head .quote {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .lead {
    font-size: 0.9rem;
    max-width: 90%;
    padding: 0 10px;
  }
}

/* Extra Small Mobile */
@media (max-width: 420px) {
  .section-head .title {
    font-size: 1.35rem;
  }

  .section-head .quote {
    font-size: 0.9rem;
  }

  .lead {
    font-size: 0.88rem;
    max-width: 95%;
  }
}
/* ============================================================
   LARGE SCREENS (Desktops >1440px)
   Increase readability + spacing
============================================================ */
@media (min-width: 1440px) {
  section {
    padding: 100px 0;
  }

  .story-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   STANDARD DESKTOP (1200px)
   Slight tighten for mid-size screens
============================================================ */
@media (max-width: 1200px) {
  .about-cards {
    gap: 25px;
    padding: 50px 6%;
  }

  .leader {
    max-width: 320px;
  }
}

/* ============================================================
   TABLET LANDSCAPE (992px)
============================================================ */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid {
    gap: 30px;
  }

  .leader {
    flex: 1 1 80%;
  }
}

/* ============================================================
   TABLET PORTRAIT (768px)
============================================================ */
@media (max-width: 768px) {
  section h2 {
    font-size: 1.7rem;
  }

  section p {
    font-size: 0.95rem;
  }

  .intro-section {
    padding: 60px 0;
  }

  .about-cards {
    flex-direction: column;
    padding: 40px 8%;
  }

  .about-cards .card {
    padding: 25px;
  }

  .story-card img {
    height: 280px;
  }
}

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

  .story-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .leader img {
    width: 160px;
    height: 220px;
  }

  section {
    padding: 60px 0;
  }

  .about-cards {
    padding: 30px 6%;
  }
}

/* ============================================================
   SMALL MOBILE (480px)
============================================================ */
@media (max-width: 480px) {
  .story-gallery {
    grid-template-columns: 1fr;
  }

  .story-card img {
    height: 220px;
  }

  .leader img {
    width: 140px;
    height: 200px;
  }

  .about-cards .card {
    padding: 20px;
  }

  .card {
    padding: 18px;
  }

  .card-head h3 {
    font-size: 1rem;
  }
}

/* ============================================================
   EXTRA SMALL DEVICES (360px)
============================================================ */
@media (max-width: 360px) {
  section h2 {
    font-size: 1.3rem;
  }

  .leader img {
    width: 120px;
    height: 180px;
  }

  .card {
    padding: 15px;
  }

  .pill {
    padding: 5px 12px;
    font-size: 0.7rem;
  }
}
