/* ===== About Page Styles ===== */

.brand-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.crisis-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.crisis-highlight-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.crisis-highlight-card .highlight-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.crisis-highlight-card h4 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.crisis-highlight-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── SDG Grid ── */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.sdg-card {
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  padding: 28px 0.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.sdg-card .sdg-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}

.sdg-card .sdg-number {
  display: inline-block;
  color: var(--brown);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  width: fit-content;
}

.sdg-card h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  /* height: 3rem; */
}

.sdg-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Media Coverage ── */
.media-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 48px 0 20px;
  padding-bottom: 12px;
}

.media-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

.media-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 12px 12px 0 0;
}

.media-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-featured-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-light);
  transition: transform .3s, box-shadow .3s;
}

.media-featured-card:hover {
  transform: translateY(-0px);
  box-shadow: var(--shadow-md);
}

.media-featured-card .media-photo-grid {
  display: grid;
  gap: 4px;
}

.media-featured-card .media-photo-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.media-featured-card .media-photo-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.media-featured-card .media-photo-grid img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  display: block;
}

.media-featured-card .media-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.media-featured-card .media-body {
  padding: 20px;
}

.media-featured-card .media-tag {
  display: inline-block;
  background: rgba(74, 111, 60, 0.1);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.media-featured-card h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.media-featured-card .media-meta {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.media-featured-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.media-radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

.media-radio-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-light);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}

.media-radio-card:hover {
  transform: translateY(-0px);
  box-shadow: var(--shadow-md);
}

.media-radio-card .media-photo-grid {
  display: grid;
  gap: 4px;
}

.media-radio-card .media-photo-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.media-radio-card .media-photo-grid img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  display: block;
}

.media-radio-card .media-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.media-radio-card .media-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-radio-card .media-tag {
  display: inline-block;
  background: rgba(74, 111, 60, 0.1);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.media-radio-card h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.media-radio-card .media-meta {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.media-radio-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.interview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 1rem;
}

.interview-table th,
.interview-table td {
  padding: 16px 20px;
  text-align: left;
  margin: 0 auto;
}

.interview-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.interview-table td {
  color: var(--text-muted);
}

.interview-table tr:hover td {
  background: var(--bg-alt);
}

.interview-table a {
  color: var(--primary);
  text-decoration: none;
}

.interview-table a:hover {
  text-decoration: underline;
}

/* ── About Hero ── */
.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #fafdf3;
  color: var(--text);
  overflow: hidden;
  padding: 0 0 80px;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/group-photo-of-students.jpg") center/cover no-repeat;
  opacity: 0.12;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}

.about-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  align-content: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 3.6rem;
  align-items: center;
}

.zh hero-title {
  text-align: left;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.about-hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 560px;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Carousel ── */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

/* Inline styles moved from HTML */
.about-hero-title { text-align: left; color: var(--primary-dark); font-size: 1.8rem; }
.body-text { font-size: 1.05rem; }
.text-primary { color: var(--primary); }
.rounded-media { border-radius: 1rem; overflow: hidden; }
.section-subtitle-center { text-align: center; display: flex; flex-direction: column; }
.link-primary-underline { color: var(--primary); text-decoration: underline; }
.facility-intro { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.facility-text { text-align: center; margin: 0 auto; max-width: 80%; }
.facility-heading { color: var(--primary-dark); margin-bottom: 16px; }
.facility-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.facility-image-wrap { width: 100%; max-height: 400px; overflow: hidden; border-radius: var(--radius-md); }
.img-cover-full { width: 100%; height: 100%; object-fit: cover; }
.sdg-header { display: flex; flex-direction: column; align-items: center; }
.media-body-padded { padding: 20px; }

.carousel-btn:hover {
  background: #fff;
}

.aboutus-section {
  padding: 3rem 1.8rem 3rem;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

.situation-desc {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Inline styles converted to classes ── */
.aboutus-button {
  margin: 0 auto;
  display: flex;
  width: fit-content;
}

.sdg-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.situation-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.situation-content {
  text-align: center;
  margin: 0 auto;
  max-width: 75%;
}

.situation-title {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 2rem;
}

.situation-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.situation-image-wrap {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.situation-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  text-align: left;
  color: var(--primary-dark);
  font-size: 1.8rem;
}

.brand-title .zh {
  color: var(--primary);
  font-weight: 600;
}

.section-subtitle-flex {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.media-body-padded {
  padding: 20px;
}

.brand-title-accent {
  color: var(--primary);
  font-weight: 600;
}

.brand-text {
  font-size: 1.05rem;
}

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

.img-placeholder {
  border-radius: 1rem;
  overflow: hidden;
}

.aboutus-button-rthk {
  width: fit-content;
  align-self: center;
  margin: 0 28px 28px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .situation-desc { max-width: 100%; }
  .sdg-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding: 9rem 1.8rem 3rem; }
  .about-hero .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .zh hero-title { text-align: left; }
  .about-hero-media { max-height: 400px; }


  .crisis-highlight,
  .sdg-grid,
  .media-featured-grid,
  .media-radio-grid { grid-template-columns: 1fr; }
  .media-photo-grid.grid-2 { grid-template-columns: 1fr; }
  .interview-table th,
  .interview-table td { padding: 12px 14px; font-size: 1rem; }
  .carousel-slide img { height: 20rem; }
  .aboutus-button {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .situation-content { max-width: 100%; }
  .aboutus-section {
  padding: 3rem 1.8rem 3rem;
}
.sdg-card {
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  padding: 28px 2.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}
.media-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 48px 0 0 0;
  padding-bottom: 0px;
}
.aboutus-button{
display: flex;
flex-direction: row;
justify-content: center;
margin: 0;
width: 100%;
}
.media-radio-card .media-photo-grid img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}
.media-radio-card .media-photo-grid.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}
}

/* About origins: keep the label, heading, and body connected as one reading block. */
.origin-section .origin-grid {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
  gap: 20px;
  align-items: start;
}

.origin-section .brand-content {
  gap: 0.8rem;
  text-align: left;
}

.origin-section .section-header {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0;
}

.origin-section p {
  max-width: 820px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.origin-section .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.origin-section .origin-grid {
  max-width: none;
  margin: 0;
}

.origin-section .rounded-media {
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.origin-section .rounded-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .origin-section .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .origin-section .rounded-media {
    max-height: 360px;
  }
}
