/* public/css/landing/about-page.css */

:root {
  --about-blue: #51729C;
  --about-font: "Cairo", sans-serif;
  --card-radius: 14px;
  --soft-border: rgba(0, 0, 0, 0.06);
}

/* Page */
.about-page {
  background: #fff;
}

/* HERO */
.about-hero {
  position: relative;
  padding: 44px 0 14px;
  background: #f6f7f9;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}

.about-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(255, 255, 255, 1) 100%);
}

.about-hero-inner {
  position: relative;
  text-align: center;
}

.about-hero-title {
  margin: 0 0 10px;
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.12;
  color: var(--accent-orange);
}

.about-hero-subtitle {
  margin: 0;
  font-family: var(--about-font);
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.62);
}

/* CONTENT */
.about-content {
  padding: 30px 0 70px;
}

/* Sections */
.about-section {
  padding: 34px 0 0;
}

.about-sec-title {
  text-align: center;
  color: var(--accent-orange);
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 18px;
}

/* Unified card */
.about-card {
  border: 1px solid var(--soft-border);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

/* Vision / Mission */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.vm-card {
  border: 1px solid var(--soft-border);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

.vm-title {
  margin: 0 0 10px;
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 18px;
  color: #0b2a4a;
  text-align: right;
}

.vm-text {
  margin: 0;
  font-family: var(--about-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  text-align: right;
}

.vm-text-wrapper {
  flex: 1;
}

.vm-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button */
.vm-read-more {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--accent-orange);
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.vm-read-more:hover {
  opacity: 0.8;
}

/* Modal Overlay */
.about-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.about-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.about-modal-content::-webkit-scrollbar {
  width: 6px;
}

.about-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.about-modal-overlay.show .about-modal-content {
  transform: scale(1);
}

/* Close Button (X in top left) */
.about-modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: background 0.2s;
  line-height: 1;
}

.about-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Modal Header */
.about-modal-header {
  margin-bottom: 20px;
  padding-left: 40px;
}

.about-modal-title {
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 22px;
  color: var(--about-blue);
  margin: 0 0 10px 0;
}

.about-modal-underline {
  width: 40px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}

/* Modal Body */
.about-modal-body p {
  font-family: var(--about-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  color: #1f2937;
  margin: 0;
  text-align: right;
  white-space: pre-wrap;
}

/* Info grid inside one card */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fbfbfc;
  border-radius: 12px;
  padding: 12px 14px;
}

.info-item .k {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.info-item .v {
  font-family: var(--about-font);
  font-weight: 700;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
}

/* Leadership (3 items in one card) */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.leader {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fbfbfc;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.leader-role {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

.leader-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.leader-name {
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 16px;
  color: #0b2a4a;
}

.leader-sub {
  font-family: var(--about-font);
  font-weight: 600;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 4px;
}

.leader-empty {
  font-family: var(--about-font);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  padding: 18px 0;
}

.leader-bio {
  margin-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px;
  font-family: var(--about-font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  text-align: right;
  background: #f8fafc;
  border-radius: 10px;
  overflow: visible;
  height: auto;
  min-height: min-content;
}

.leader-bio-title {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 16px;
  color: #0b2a4a;
  margin: 0 0 8px 0;
}

.leader-bio-text {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}

/* Former presidents */
.presidents-list {
  display: grid;
  gap: 10px;
}

.president-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
}

.president-row-name {
  font-family: var(--about-font);
  font-weight: 800;
  color: #0b2a4a;
}

.president-row-dates {
  font-family: var(--about-font);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.60);
  white-space: nowrap;
}

.muted-center {
  text-align: center;
  padding: 14px 0;
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--about-font);
  font-weight: 700;
}

/* Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--soft-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
  background: #fff;
}

.about-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .about-hero-title {
    font-size: 38px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

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

  .about-gallery-item img {
    height: 240px;
  }
}

/* Empty State */
.empty-state {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
}

.empty-card h2 {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
  color: #0b2a4a;
}

.empty-card p {
  font-family: var(--about-font);
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}

.empty-btn {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   SVG FILE ICONS (mask + fallback)
========================= */
.icon-mask {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-color: var(--accent-orange);

  -webkit-mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: var(--icon-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* sizes */
.icon-sm {
  width: 24px;
  height: 24px;
}

.icon-md {
  width: 26px;
  height: 26px;
}

.icon-lg {
  width: 34px;
  height: 34px;
}

/* fallback img (hidden when mask supported) */
.icon-fallback {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.icon-fallback.icon-sm {
  width: 24px;
  height: 24px;
}

.icon-fallback.icon-md {
  width: 26px;
  height: 26px;
}

.icon-fallback.icon-lg {
  width: 34px;
  height: 34px;
}

@supports (-webkit-mask-image: url("")) or (mask-image: url("")) {
  .icon-fallback {
    display: none;
  }
}

/* containers look */
.title-icon,
.leader-icon,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

.title-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
}

.leader-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  margin: 0.5rem auto 0.25rem;
}

.empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.12);
  margin-inline: auto;
}

/* =========================
   ✅ Committees (2 cards)
========================= */
.committees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.committee-card {
  padding: 18px;
}

.committee-title {
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 16px;
  color: #0b2a4a;
  text-align: right;
  margin-bottom: 12px;
}

.committee-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.committee-person {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fbfbfc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.committee-role {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

.committee-avatar {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  margin: 0 auto 10px;
}

.committee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.committee-name {
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 14px;
  color: #0b2a4a;
}

/* =========================
   ✅ Team Coaches (team + coach + photo)
========================= */
.team-coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-coach {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fbfbfc;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.team-coach-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  margin: 0 auto 10px;
}

.team-coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-coach-team {
  font-family: var(--about-font);
  font-weight: 900;
  font-size: 14px;
  color: #0b2a4a;
  margin-bottom: 4px;
}

.team-coach-name {
  font-family: var(--about-font);
  font-weight: 800;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 992px) {
  .committees-grid {
    grid-template-columns: 1fr;
  }

  .committee-people {
    grid-template-columns: 1fr;
  }

  .team-coaches-grid {
    grid-template-columns: 1fr 1fr;
  }
}