@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --bg: #f9fafc;
  --panel: #ffffff;
  --text: #1a1a1a;
  --muted: #777;
  --accent: #ff5c5c;
  --nav: #2c2c2c;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  padding-bottom: 2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

header {
  background: var(--nav);
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
header h1 a {
  color: inherit;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}
.breadcrumbs a {
  color: var(--accent);
}
.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
}

/* ===== Layout ===== */
.layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 1rem;
}

/* ===== Sidebar ===== */
nav.sidebar {
  background: var(--nav);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
nav.sidebar h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
nav.sidebar ul {
  list-style: none;
}
nav.sidebar li {
  margin: 0.5rem 0;
}
nav.sidebar a {
  color: #fff;
  display: block;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
}
nav.sidebar a:hover,
nav.sidebar a:focus {
  color: var(--accent);
}
nav.sidebar a.active {
  text-decoration: underline;
}

/* ===== Main Content ===== */
main.content {
  display: grid;
  gap: 1rem;
}

/* ===== Article Styling ===== */
.article {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.75;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.article h2,
.article h3 {
  margin-top: 0;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.article p {
  margin-bottom: 1em;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Images ===== */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Portrait on mobile: show full, don’t overwhelm */
@media (max-width: 900px) {
  .hero-img.portrait {
    object-fit: contain;
    max-height: 80vh;
    background: #fff;
  }
}

figure {
  margin: 1rem 0;
  text-align: center;
}
figcaption {
  text-align: left;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ===== Hub Layout (Mobile First) ===== */
.hub-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}
.center-circle {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.nav-item {
  background: var(--panel);
  padding: 0.75rem 1rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--text);
  width: 80%;
  text-align: center;
  transition: all 0.3s ease;
}
.nav-item:hover,
.nav-item:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

/* ===== Desktop Layout ===== */
@media (min-width: 821px) {
  .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
  }
  .hub-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 4rem auto;
    flex-direction: unset;
    gap: 0;
  }
  .center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    font-size: 1.3rem;
  }
  .nav-item {
    position: absolute;
    width: auto;
  }
  .about-us {
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideFromTop 0.8s ease-out forwards;
  }
  .editor-approved {
    top: 50%;
    right: -20%;
    transform: translate(50%, -50%);
    animation: slideFromRight 0.8s ease-out 0.2s forwards;
  }
  .ctrl-backspace {
    bottom: 12%;
    left: 50%;
    transform: translate(-50%, 50%);
    animation: slideFromBottom 0.8s ease-out 0.4s forwards;
  }
  .news-not-boring {
    top: 50%;
    left: -20%;
    transform: translate(-50%, -50%);
    animation: slideFromLeft 0.8s ease-out 0.6s forwards;
  }
}

/* ===== Animations ===== */
@keyframes slideFromTop {
  from { transform: translate(-50%, -150%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes slideFromRight {
  from { transform: translate(150%, -50%); opacity: 0; }
  to { transform: translate(50%, -50%); opacity: 1; }
}
@keyframes slideFromBottom {
  from { transform: translate(-50%, 150%); opacity: 0; }
  to { transform: translate(-50%, 50%); opacity: 1; }
}
@keyframes slideFromLeft {
  from { transform: translate(-150%, -50%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}
@media (min-width: 821px) {
  .about-us { animation-delay: 0s; }
  .editor-approved { animation-delay: 0.2s; }
  .ctrl-backspace { animation-delay: 0.4s; }
  .news-not-boring { animation-delay: 0.6s; }
}

/* ===== Scroll-Fade ===== */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero Image Fade-In for Articles ===== */
.article img {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== Footer Slide-Up Reveal ===== */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
footer {
  animation: slideUp 0.6s ease-out forwards;
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Desktop: Let images break out of text column ===== */
@media (min-width: 901px) {
  /* Remove paragraph/figure width limit for images */
  .article p,
  .article figure {
    max-width: none;
  }

  /* Make hero images fill the article width */
  .article img.hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    background-color: transparent;
  }
}
/* ===== Desktop: Show portrait images in landscape frame ===== */
@media (min-width: 901px) {
  .hero-img.portrait {
    aspect-ratio: 16 / 9;   /* landscape shape */
    width: 100%;
    height: auto;
    object-fit: cover;      /* crop top/bottom to fit */
    object-position: center;
  }
}
/* ===== Center Circle Responsive Font Fix ===== */
.center-circle {
  white-space: nowrap; /* keep TEEN INSIGHTS on one line */
}

/* Mobile: ≤ 820px */
@media (max-width: 820px) {
  .center-circle {
    width: 150px;
    height: 150px;
    font-size: clamp(0.85rem, 3vw, 0.95rem); /* min, preferred, max */
  }
}

/* ===== Desktop Portrait Defaults + Focus Utilities ===== */
@media (min-width: 901px) {
  /* Default desktop portrait style */
  .hero-img.portrait {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

  /* Focus utilities — same specificity as default */
  .hero-img.portrait.focus-center        { object-position: 50% 50%; }
  .hero-img.portrait.focus-top           { object-position: 50% 0%; }
  .hero-img.portrait.focus-bottom        { object-position: 50% 100%; }
  .hero-img.portrait.focus-left          { object-position: 0% 50%; }
  .hero-img.portrait.focus-right         { object-position: 100% 50%; }
  .hero-img.portrait.focus-upper-left    { object-position: 0% 0%; }
  .hero-img.portrait.focus-upper-right   { object-position: 100% 0%; }
  .hero-img.portrait.focus-lower-left    { object-position: 0% 100%; }
  .hero-img.portrait.focus-lower-right   { object-position: 100% 100%; }
  .hero-img.portrait.focus-lower-middle  { object-position: 50% 70%; }
  hero-img.portrait.focus-upper-middle {object-position: 50% 30%; }

}
/* ===== Section Base Style ===== */
.section {
  background: var(--panel);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* Subtle alternate tint for even sections */
.section:nth-of-type(even) {
  background: rgba(0,0,0,0.02);
}

/* Accent bar under headings */
.section h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: currentColor; /* matches text colour */
  border-radius: 2px;
}

/* Hover lift effect */
.section:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid currentColor;
}

/* ===== Section Base Style ===== */
.section, .article {
  background: var(--panel);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* Subtle alternate tint for even sections */
.section:nth-of-type(even),
.article:nth-of-type(even) {
  background: rgba(0,0,0,0.02);
}

/* Accent bar under headings */
.section h2, .article h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.section h2::after, .article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: currentColor; /* matches text colour */
  border-radius: 2px;
}

/* Hover lift effect */
.section:hover, .article:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid currentColor;
}

/* ===== Section & Article Base Style ===== */
.section, .article {
  background: var(--panel);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* Subtle alternate tint for even sections */
.section:nth-of-type(even),
.article:nth-of-type(even) {
  background: rgba(0,0,0,0.02);
}

/* Accent bar under headings */
.section h2, .article h2,
.sidebar h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.section h2::after, .article h2::after,
.sidebar h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

/* Hover lift effect */
.section:hover, .article:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid currentColor;
}

/* ===== Page-Level Accent Colours ===== */
.news-page .sidebar h2,
.news-page .sidebar .accent-bar { color: #2a9d8f; border-color: #2a9d8f; }
.lifestyle-page .sidebar h2,
.lifestyle-page .sidebar .accent-bar { color: #ff7f50; border-color: #ff7f50; }
.editor-page .sidebar h2,
.editor-page .sidebar .accent-bar { color: #ff5c5c; border-color: #ff5c5c; }
.about-page .sidebar h2,
.about-page .sidebar .accent-bar { color: #6c757d; border-color: #6c757d; }
.ctrl-backspace-page .sidebar h2,
.ctrl-backspace-page .sidebar .accent-bar { color: #3a86ff; border-color: #3a86ff; }
.home-page .sidebar h2,
.home-page .sidebar .accent-bar { color: var(--accent); border-color: var(--accent); }

/* ===== News Not Boring — Subtopic Accents (inside news.html) ===== */
.news-page #general h2, .news-page #general h3, .news-page #general .accent-bar { color: #2a9d8f; border-color: #2a9d8f; }
.news-page #lifestyle h2, .news-page #lifestyle h3, .news-page #lifestyle .accent-bar { color: #ff7f50; border-color: #ff7f50; }
.news-page #entertainment h2, .news-page #entertainment h3, .news-page #entertainment .accent-bar { color: #9b5de5; border-color: #9b5de5; }
.news-page #health h2, .news-page #health h3, .news-page #health .accent-bar { color: #06d6a0; border-color: #06d6a0; }
.news-page #rewrite h2, .news-page #rewrite h3, .news-page #rewrite .accent-bar { color: #ffb703; border-color: #ffb703; }

/* ===== News Not Boring — Subtopic Accents (subpages & articles) ===== */
.news-page.general-subpage h1, .news-page.general-subpage h2, .news-page.general-subpage .accent-bar { color: #2a9d8f; border-color: #2a9d8f; }
.news-page.lifestyle-subpage h1, .news-page.lifestyle-subpage h2, .news-page.lifestyle-subpage .accent-bar { color: #ff7f50; border-color: #ff7f50; }
.news-page.entertainment-subpage h1, .news-page.entertainment-subpage h2, .news-page.entertainment-subpage .accent-bar { color: #9b5de5; border-color: #9b5de5; }
.news-page.health-subpage h1, .news-page.health-subpage h2, .news-page.health-subpage .accent-bar { color: #06d6a0; border-color: #06d6a0; }
.news-page.rewrite-subpage h1, .news-page.rewrite-subpage h2, .news-page.rewrite-subpage .accent-bar { color: #ffb703; border-color: #ffb703; }

/* ===== Accent Bar Element ===== */
.accent-bar {
  height: 4px;
  max-width: 100px;
  background: currentColor;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}
.sidebar .accent-bar {
  max-width: none;
  width: 100%;
}

/* ===== Headline (h2 & h3), Read More & Breadcrumb link colours ===== */

/* Inside news.html (section IDs) */
.news-page #general h2 a,
.news-page #general h3 a,
.news-page #general a.read-more,
.news-page #general .breadcrumbs a {
  color: #2a9d8f;
}

.news-page #lifestyle h2 a,
.news-page #lifestyle h3 a,
.news-page #lifestyle a.read-more,
.news-page #lifestyle .breadcrumbs a {
  color: #ff7f50;
}

.news-page #entertainment h2 a,
.news-page #entertainment h3 a,
.news-page #entertainment a.read-more,
.news-page #entertainment .breadcrumbs a {
  color: #9b5de5;
}

.news-page #health h2 a,
.news-page #health h3 a,
.news-page #health a.read-more,
.news-page #health .breadcrumbs a {
  color: #06d6a0;
}

.news-page #rewrite h2 a,
.news-page #rewrite h3 a,
.news-page #rewrite a.read-more,
.news-page #rewrite .breadcrumbs a {
  color: #ffb703;
}

/* For subpages & articles (Option 1 classes) */
.news-page.general-subpage h2 a,
.news-page.general-subpage h3 a,
.news-page.general-subpage a.read-more,
.news-page.general-subpage .breadcrumbs a {
  color: #2a9d8f;
}

.news-page.lifestyle-subpage h2 a,
.news-page.lifestyle-subpage h3 a,
.news-page.lifestyle-subpage a.read-more,
.news-page.lifestyle-subpage .breadcrumbs a {
  color: #ff7f50;
}

.news-page.entertainment-subpage h2 a,
.news-page.entertainment-subpage h3 a,
.news-page.entertainment-subpage a.read-more,
.news-page.entertainment-subpage .breadcrumbs a {
  color: #9b5de5;
}

.news-page.health-subpage h2 a,
.news-page.health-subpage h3 a,
.news-page.health-subpage a.read-more,
.news-page.health-subpage .breadcrumbs a {
  color: #06d6a0;
}

.news-page.rewrite-subpage h2 a,
.news-page.rewrite-subpage h3 a,
.news-page.rewrite-subpage a.read-more,
.news-page.rewrite-subpage .breadcrumbs a {
  color: #ffb703;
}

/* Optional: hover effect for all */
.news-page h2 a:hover,
.news-page h3 a:hover,
.news-page a.read-more:hover,
.news-page .breadcrumbs a:hover {
  text-decoration: underline;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

    /* ===== SIDEBAR BASE ===== */
    .sidebar {
      background: #fff;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      position: relative;
      z-index: 10;
    }
    .sidebar ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .sidebar li {
      margin-bottom: 0.5rem;
    }
    .sidebar a {
      display: block;
      padding: 0.5rem 0.75rem;
      border-radius: 4px;
      text-decoration: none;
      font-weight: 500;
      color: inherit;
    }
    .sidebar a:hover {
      background-color: rgba(0,0,0,0.05);
    }

  /* ===== ACTIVE LINK ACCENT ===== */
.news-page.general-subpage .sidebar a.active { background-color: #2a9d8f; color: #fff; }
.news-page.lifestyle-subpage .sidebar a.active { background-color: #ff7f50; color: #fff; }
.news-page.entertainment-subpage .sidebar a.active { background-color: #9b5de5; color: #fff; }
.news-page.health-subpage .sidebar a.active { background-color: #06d6a0; color: #fff; }
.news-page.rewrite-subpage .sidebar a.active { background-color: #ffb703; color: #fff; }



    /* ===== MOBILE TOGGLE BUTTON ===== */
    .sidebar-toggle {
      display: block;
      background: var(--accent-color, #333);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      margin-bottom: 0.5rem;
      font-size: 1rem;
      border-radius: 4px;
      cursor: pointer;
    }

    /* ===== MOBILE ===== */
    @media (max-width: 768px) {
      nav.sidebar {
        display: none;
      }
      nav.sidebar.open {
        display: block !important;
        margin-bottom: 1rem;
      }
    }

    /* ===== DESKTOP ===== */
    @media (min-width: 769px) {
      .sidebar {
        position: sticky;
        top: 1rem;
        align-self: flex-start;
        display: block !important;
      }
      .sidebar-toggle {
        display: none;
      }
    }

/* --- Header Icons: Search (left) + Login (right) --- */
.header-icons {
  position: absolute;
  top: 1rem;
  left: 1rem;               /* stretch from left */
  right: 1rem;              /* to right */
  display: flex;
  justify-content: space-between; /* pushes first child left, last child right */
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Side Panels --- */
.side-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 300px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.side-panel h2 {
  margin-top: 0;
}

.side-panel .close-btn {
  background: none;
  color: #333;
  font-size: 1.2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

/* Search panel slides in from left */
.search-panel {
  left: 0;
}
.search-panel.open {
  transform: translateX(0);
}

/* Login panel slides in from right */
.login-panel {
  right: 0;
  left: auto;
  transform: translateX(100%);
}
.login-panel.open {
  transform: translateX(0);
}

/* Search results styling */
#searchResults p {
  margin: 0.5rem 0;
}
#searchResults a {
  color: var(--accent-color, #3a86ff);
  text-decoration: none;
}
#searchResults a:hover {
  text-decoration: underline;
}

/* Signup link styling */
.signup-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.signup-link a {
  color: var(--accent-color, #3a86ff);
  text-decoration: none;
}
.signup-link a:hover {
  text-decoration: underline;
}

/* Mobile: panels take full width */
@media (max-width: 500px) {
  .side-panel {
    width: 100%;
  }
}

/* --- Related / Read More section --- */
.related {
  border-top: 3px solid currentColor; /* border matches current text/link colour */
  margin: 2rem 0;
  padding-top: 1rem;
}

.related h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: currentColor; /* heading matches section colour */
}

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

.related li {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.related a {
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  /* no hard‑coded colour here — inherits from your .read-more rules */
}

.related a:hover {
  text-decoration: underline;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.photo-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Optional: captions under each image */
.photo-gallery figure {
  margin: 0;
}

.photo-gallery figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
  text-align: center;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Mobile: 1 column */
.team-grid {
  grid-template-columns: 1fr;
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1; /* perfect square */
  object-fit: cover;
  border-radius: 8px;
}

.team-member h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
}

.team-member p {
  font-size: 0.9rem;
  color: #555;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Portrait videos – slightly shorter than true 9:16 */
.video-item.portrait {
  position: relative;
  padding-bottom: 150%; /* was 177.78% */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

/* Landscape videos – still full width, but not too tall */
.video-item.landscape {
  grid-column: 1 / -1;
  position: relative;
  padding-bottom: 50%; /* was 56.25% */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

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

/* Mobile: stack everything */
@media (max-width: 767px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}
