.section-block {
  padding: 3rem 0;
}

.media-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 58, 87, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.media-visual {
 height: 250px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  width: calc(100% + 2px);
  margin: 0 -1px;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
  align-self: stretch;
}

.media-visual a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.media-visual img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.media-visual a:hover img {
  transform: scale(1.05);
}

.media-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-body h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.media-body .muted {
  color: var(--muted);
  margin: 0;
}

.media-actions {
  margin-top: 0.5rem;
}

/* Video Section Styles */
.video-section-latest {
  margin: 3rem 0;
  padding: 2rem 0;
}

.latest-video-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.latest-video-container {
  max-width: 800px;
}

.latest-video-player {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 58, 87, 0.12);
}

.video-content-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2.5rem;
  margin: 3rem 0;
  align-items: start;
}

/* Zakat page has video-main first, sidebar second - reverse the columns */
.zakat-video-layout {
  grid-template-columns: 3fr 1fr;
}

/* Videos list styling */
.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .videos-list {
    grid-template-columns: 1fr;
  }
}

.video-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.video-player-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.video-player {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 58, 87, 0.12);
  background: #000;
}

.video-thumbnail,
.video-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-element {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: contain;
  background: #000;
}

.youtube-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  z-index: 3;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  color: var(--secondary);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-copy-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.video-copy-link:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-copy-link svg {
  width: 16px;
  height: 16px;
}

.video-info,
.video-details {
  padding: 1.5rem;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.video-info h5,
.video-details h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
}

.video-info p,
.video-details p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Video Sidebar */
.video-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(18, 58, 87, 0.08);
  align-self: flex-start;
  position: sticky;
  top: 120px;
}

.videos-sidebar {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.sidebar-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 1.5rem 0;
}

.video-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.video-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
}

.video-nav-item:not(.active):hover {
  background: rgba(10, 124, 102, 0.05);
  color: var(--secondary);
}

.video-nav-item.active {
  color: var(--secondary);
  font-weight: 600;
  background: rgba(18, 58, 87, 0.05);
  cursor: default;
  pointer-events: auto;
}

.video-nav-item:not(.active) {
  opacity: 0.7;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.video-nav-item.active .nav-dot {
  background: var(--secondary);
}

/* Lessons scroll list */
.lessons-list-container {
  margin-top: 1.5rem;
}

.lessons-scroll-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.lessons-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.lessons-scroll-list::-webkit-scrollbar-track {
  background: rgba(18, 58, 87, 0.05);
  border-radius: 3px;
}

.lessons-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(18, 58, 87, 0.2);
  border-radius: 3px;
}

.lessons-scroll-list::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 58, 87, 0.3);
}

.lesson-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(18, 58, 87, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.lesson-item:hover:not([style*="opacity: 0.6"]) {
  background: rgba(18, 58, 87, 0.08);
}

.nav-arrow {
  margin-right: auto;
  color: var(--muted);
  font-size: 1rem;
}

.video-nav-item:hover .nav-arrow {
  color: var(--secondary);
}

.sidebar-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.sidebar-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 1rem 0;
}

.sidebar-subheading svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.sidebar-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0;
  line-height: 1.6;
}

@media (max-width: 968px) {
  .video-content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-sidebar {
    position: static;
  }

  .video-thumbnail {
    min-height: 300px;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Media cards - smaller on mobile */
  .media-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .media-visual {
    height: 160px;
    min-height: 160px;
  }

  .media-visual img {
    min-height: 160px;
  }

  .media-body {
    padding: 1rem;
    gap: 0.4rem;
  }

  .media-body h4 {
    font-size: 1rem;
  }

  .media-body .muted {
    font-size: 0.85rem;
  }

  .media-actions {
    margin-top: 0.5rem;
  }

  .media-actions .solid {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
@font-face {
  font-family: "Alexandria";
  src: url("./assets/fonts/Alexandria-VariableFont_wght-BF669094903b292.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #123a57;
  --secondary: #0a7c66;
  --canvas: #f6fbf7;
  --muted-tone: #397f92;
  --mid: #2e7062;
  --light: #a8d3c5;
  --border-tone: #cee5d5;
  --accent: #ffc817;
  --text: #0f1f1a;
  --muted: #4c6e66;
  --border: #dfe9e4;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(18, 58, 87, 0.12);
  --transition: all 180ms ease;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Alexandria", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
  gap: 1rem;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 18px 40px;
  border-bottom: 2px solid rgba(10, 124, 102, 0.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 12px;
  z-index: 1001;
  justify-self: start;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.topbar.scrolled .menu-toggle span {
  background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  transform-origin: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  transition: color 0.3s ease;
  justify-self: start;
  grid-column: 2;
  text-decoration: none;
  cursor: pointer;
}

.topbar:not(.scrolled) .logo {
  color: #fff;
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

@media (max-width: 968px) {
  .logo-text {
    display: none;
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-weight: 600;
  grid-column: 3;
}

.nav-links a {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--primary);
  font-weight: 600;
}

.topbar:not(.scrolled) .nav-links a {
  color: #fff;
}

.nav-links a:hover {
  background: rgba(10, 124, 102, 0.15);
  color: var(--secondary);
}

.topbar:not(.scrolled) .nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.auth-actions {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
  grid-column: 4;
}

/* Logo text in topbar (replacing auth-actions) */
.topbar > .logo-text {
  justify-self: end;
  grid-column: 4;
  align-self: center;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.topbar:not(.scrolled) > .logo-text {
  color: #fff;
}

.topbar > .logo-text:hover {
  background: rgba(10, 124, 102, 0.15);
  color: var(--secondary);
}

.topbar:not(.scrolled) > .logo-text:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Zakat and About pages - logo-text always primary color */
body.zakat-page .topbar > .logo-text,
body.about-page .topbar > .logo-text {
  color: var(--primary);
}

body.zakat-page .topbar:not(.scrolled) > .logo-text,
body.about-page .topbar:not(.scrolled) > .logo-text {
  color: var(--primary);
}

body.zakat-page .topbar > .logo-text:hover,
body.about-page .topbar > .logo-text:hover {
  background: rgba(10, 124, 102, 0.15);
  color: var(--secondary);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  transition: var(--transition);
}

.solid {
  background: var(--secondary);
  color: #fff;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

a .solid,
a.solid {
  text-decoration: none;
}

.solid:hover {
  filter: brightness(0.95);
}

.ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.topbar:not(.scrolled) .ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Zakat page - keep text colors consistent when scrolling */
body.zakat-page .topbar.scrolled .logo,
body.zakat-page .topbar.scrolled .nav-links a,
body.zakat-page .topbar.scrolled .ghost {
  color: var(--primary);
}

body.zakat-page .topbar.scrolled .ghost {
  border-color: var(--primary);
}

body.zakat-page .topbar.scrolled .menu-toggle span {
  background: var(--primary);
}

body.zakat-page .topbar:not(.scrolled) .logo,
body.zakat-page .topbar:not(.scrolled) .nav-links a,
body.zakat-page .topbar:not(.scrolled) .ghost {
  color: var(--primary);
}

body.zakat-page .topbar:not(.scrolled) .ghost {
  border-color: var(--primary);
}

body.zakat-page .topbar:not(.scrolled) .menu-toggle span {
  background: var(--primary);
}

body.about-page .topbar.scrolled .logo,
body.about-page .topbar.scrolled .nav-links a,
body.about-page .topbar.scrolled .ghost {
  color: var(--primary);
}

body.about-page .topbar.scrolled .ghost {
  border-color: var(--primary);
}

body.about-page .topbar.scrolled .menu-toggle span {
  background: var(--primary);
}

body.about-page .topbar:not(.scrolled) .logo,
body.about-page .topbar:not(.scrolled) .nav-links a,
body.about-page .topbar:not(.scrolled) .ghost {
  color: var(--primary);
}

body.about-page .topbar:not(.scrolled) .ghost {
  border-color: var(--primary);
}

body.about-page .topbar:not(.scrolled) .menu-toggle span {
  background: var(--primary);
}

body.about-page .topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(10, 124, 102, 0.05);
}

.outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 600;
}

.outline:hover {
  background: var(--secondary);
  color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 4vw 4rem;
}

.hero {
  background: linear-gradient(135deg, rgba(206, 229, 213, 0.9), rgba(18, 58, 87, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

.hero-fullbleed {
  margin: 0 calc(-1 * 4vw);
  width: calc(100% + 8vw);
  max-width: none;
  border-radius: 0;
  border: none;
  padding: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 0 4vw;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 28, 36, 0.78), rgba(10, 124, 102, 0.62)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=80")
      center/cover;
  animation: slide-pan 18s linear infinite;
  z-index: 0;
}

.hero-slideshow-section::before {
  display: none;
}

/* Hero Slideshow Styles for index.html */
.hero-slideshow-section {
  position: relative;
  margin: 0 calc(-1 * 4vw);
  width: calc(100% + 8vw);
  max-width: none;
}

.hero-slideshow-section .hero-slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.hero-slideshow-section .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 0 4vw;
}

.hero-slideshow-section .hero-slide.hero-slide-active {
  opacity: 1;
  z-index: 2;
}

.hero-slideshow-section .hero-slide-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1.05);
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
}

.hero-slideshow-section .hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(120deg, rgba(12, 28, 36, 0.78), rgba(10, 124, 102, 0.62)),
              linear-gradient(90deg, rgba(12, 19, 25, 0.65), rgba(12, 19, 25, 0.35));
  z-index: 1;
}

.hero-slideshow-section .hero-slide .hero__text {
  position: relative;
  z-index: 2;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 19, 25, 0.65), rgba(12, 19, 25, 0.35));
  z-index: 1;
}

.hero-slider > .hero__text {
  position: relative;
  z-index: 2;
}

.hero-slideshow-controls {
  position: absolute;
  bottom: 2rem;
  right: 4vw;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  z-index: 10;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.hero-slideshow-section .hero-slideshow-controls {
  position: absolute;
  bottom: 2rem;
  right: 4vw;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  z-index: 10;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.hero-slideshow-section .hero-slide-prev,
.hero-slideshow-section .hero-slide-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slideshow-section .hero-slide-prev svg,
.hero-slideshow-section .hero-slide-next svg {
  width: 18px;
  height: 18px;
}

.hero-slideshow-section .hero-slide-prev:hover,
.hero-slideshow-section .hero-slide-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.hero-slideshow-section .hero-slide-indicators {
  display: flex;
  gap: 0.4rem;
}

.hero-slideshow-section .hero-slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slideshow-section .hero-slide-indicator.hero-slide-indicator-active {
  background: #fff;
  border-color: #fff;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 968px) {
  .hero-slideshow-section .hero-slideshow-container {
    height: 100vh;
    min-height: 100vh;
  }
  
  .hero-slideshow-section .hero-slide {
    height: 100%;
    min-height: 100vh;
  }
  
  .hero-slideshow-section .hero-slide-background {
    height: 100vh;
    min-height: 100vh;
  }
  
  .hero-slideshow-section .hero-slide-overlay {
    height: 100vh;
    min-height: 100vh;
  }
  
  .hero-slideshow-section .hero-slideshow-controls {
    bottom: 1rem;
    right: 1rem;
    padding: 0;
    gap: 0.75rem;
  }
  
  .hero-slideshow-section .hero-slide-prev,
  .hero-slideshow-section .hero-slide-next {
    width: 28px;
    height: 28px;
  }
  
  .hero-slideshow-section .hero-slide-prev svg,
  .hero-slideshow-section .hero-slide-next svg {
    width: 16px;
    height: 16px;
  }
  
  .hero-slideshow-section .hero-slide-indicator {
    width: 6px;
    height: 6px;
  }
  
  .hero-slideshow-section .hero-slide-indicator.hero-slide-indicator-active {
    width: 20px;
  }
}

@keyframes slide-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.placeholder {
  width: 100%;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
      45deg,
      rgba(18, 58, 87, 0.08),
      rgba(18, 58, 87, 0.08) 12px,
      rgba(10, 124, 102, 0.06) 12px,
      rgba(10, 124, 102, 0.06) 24px
    ),
    #f7fbfa;
  min-height: 240px;
  border: 1px dashed rgba(18, 58, 87, 0.32);
}

.media-visual .placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.placeholder-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: repeating-linear-gradient(
      135deg,
      rgba(18, 58, 87, 0.14),
      rgba(18, 58, 87, 0.14) 10px,
      rgba(10, 124, 102, 0.1) 10px,
      rgba(10, 124, 102, 0.1) 20px
    ),
    #f7fbfa;
  border: 1px dashed rgba(18, 58, 87, 0.4);
}

.section-heading {
  text-align: start;
  padding: 1rem 0;
  margin-bottom: 1rem;


}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--primary);
}

.tracks .section-heading h3 {
  color: var(--secondary);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.tracks {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

.tracks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  margin: 0 0 3rem 0;
}

.tracks-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.tracks-discover-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tracks-discover-btn:hover {
  background: var(--primary);
  color: #fff;
}

.tracks-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tracks-programs-panel {
  background: var(--primary);
  padding: 2.5rem;
  border-radius: 12px;
  min-height: 600px;
}

.tracks-categories-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 120px;
}

.category-block {
  position: relative;
  min-height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.category-block:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.category-block.active {
  transform: translateX(-10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.category-block-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  opacity: 0.6;
}

.category-block-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.category-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem 0;
}

.category-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin: 0 0 2.5rem 0;
}

.program-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.program-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.program-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-card:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.program-card-content {
  flex: 1;
}

.program-card-content h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
}

.program-card-content p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.program-card-arrow {
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.program-card:hover .program-card-arrow {
  transform: translateX(-5px);
}

.tracks-pattern {
  position: relative;
}

.tracks-pattern::before {
  content: none;
}

.tracks-pattern > * {
  position: relative;
  z-index: 1;
}

.tracks-heading-with-pattern {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tracks-heading-pattern {
  width: auto;
  height: 120px;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .tracks-heading-pattern {
    height: 80px;
  }
}

.heading-pattern {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: left;
  padding-right: 290px;
}

.about-section {
  padding: 2rem 4vw;
  margin: 1rem 0;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.05), rgba(168, 211, 197, 0.05));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.about-section-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2rem;
  max-width: 50%;
  position: relative;
  z-index: 1;
  margin-right: 0;
  padding-right: 12rem;
  text-align: center;
}

.about-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.about-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(10, 124, 102, 0.2);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.about-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 124, 102, 0.3);
}

@media (max-width: 968px) {
  .about-section {
    padding: 0.5rem 2vw;
    margin: 1rem 0;
    flex-direction: row;
    min-height: auto;
  }

  .about-section-content {
    gap: 2.5rem;
    max-width: 100%;
    margin-right: 0;
    padding-right: 12rem;
    align-items: start;
    text-align: center;
  }

  .about-section h2 {
    white-space: normal;
  }

  .about-section.heading-pattern::before {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 200px;
    transform: none;
    margin-top: 2rem;
  }

  .about-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}

.about-section.heading-pattern::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -40%;
  width: 100%;
  height: 150%;
  background: url("./assets/patren/code_03.png") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-50%);
}

.heading-pattern::before {
  content: "";
  position: absolute;
  top: 200px;
  right: -250px;
  width: 840px;
  height: 620px;
  background: url("./assets/patren/code_03.png") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-50%);
}

.zakat-hero-split {
  display: block;
  min-height: 500px;
  margin: 0 calc(-1 * 4vw);
  width: calc(100% + 8vw);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.zakat-hero-left {
  background: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4vw;
  color: #fff;
  overflow: hidden;
}

.zakat-hero-left::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: url("./assets/patren/code_04.png") no-repeat center / contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.zakat-hero-content {
  position: relative;
  z-index: 1;
}

.zakat-hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #fff;
}

.zakat-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.zakat-hero-decorative {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.zakat-pattern-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.3;
  filter: brightness(0) invert(1);
}

.zakat-hero-right {
  background: #f5f5f5;
  padding: 3rem 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.zakat-hero-pattern-left {
  position: absolute;
  left: -250;

  width: 140%;
  height: 150%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.zakat-hero-pattern-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zakat-hero-category,
.zakat-hero-heading,
.zakat-hero-description,
.zakat-hero-actions,
.zakat-hero-count {
  position: relative;
  z-index: 1;
}

.zakat-hero-category {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.zakat-hero-category span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zakat-hero-divider {
  width: 2px;
  height: 20px;
  background: var(--primary);
}

.zakat-hero-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  line-height: 1.3;
}

.zakat-hero-description {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

.zakat-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.zakat-hero-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

a.zakat-hero-btn {
  text-decoration: none;
}

.zakat-hero-btn:hover {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}

.zakat-hero-btn svg {
  width: 16px;
  height: 16px;
}

.zakat-hero-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  margin-top: 0.5rem;
}

@media (max-width: 968px) {
  .zakat-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .zakat-hero-left {
    min-height: 400px;
  }
  
  .zakat-hero-right {
    padding: 2.5rem 4vw;
  }
}

/* Hero Slideshow Styles */
.zakat-hero-slideshow {
  position: relative;
  width: 100%;
  min-height: 600px;
  margin: 0 calc(-1 * 4vw);
  width: calc(100% + 8vw);
  overflow: hidden;
}

.hero-slideshow-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4vw;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 58, 87, 0.85), rgba(10, 124, 102, 0.75));
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: right;
  color: #fff;
  padding: 2rem;
}

.hero-slide-label {
  display: inline-block;
  background: rgba(255, 184, 1, 0.9);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-slide-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #0a7c66;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.hero-slide-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #fff;
  line-height: 1.8;
  margin: 0 0 2rem 0;
  max-width: 500px;
}

.hero-slide-btn {
  display: inline-block;
  background: #fff;
  color: #0a7c66;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-slide-btn:hover {
  background: #0a7c66;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Removed duplicate rule - using .hero-slideshow-section .hero-slideshow-controls instead */

.hero-slide-prev,
.hero-slide-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slide-prev:hover,
.hero-slide-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.hero-slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.hero-slide-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slide-indicator.active {
  background: #fff;
  border-color: #fff;
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 968px) {
  .zakat-hero-slideshow {
    min-height: 500px;
  }
  
  .hero-slideshow-container {
    height: 500px;
  }
  
  .hero-slide-content {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .hero-slide-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* About Zakat Section */
.about-zakat-section {
  background: #f9f9f9;
  border-radius: 16px;
  margin: 3rem 0;
}

.about-zakat-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.about-zakat-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
}

.about-zakat-text h4:first-child {
  margin-top: 0;
}

.about-zakat-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-zakat-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-zakat-text ul li {
  padding: 0.75rem 0;
  padding-right: 1.5rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-zakat-text ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: bold;
}

.about-zakat-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.about-zakat-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
}

.about-zakat-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 968px) {
  .about-zakat-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-zakat-visual {
    min-height: 300px;
  }
}



.tracks .section-heading {
  position: relative;
  z-index: 1;
}

.tracks .card-grid,
.updates .card-grid,
.team .card-grid,
.videos .card-grid {
  margin-top: 2.5rem;
}

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tracks .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* Track Tabs Styles */
.track-tabs-container {
  margin: 2rem 0 3rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.track-tabs-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.track-tabs {
  display: flex;
  gap: 3rem;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  min-width: max-content;
  width: 100%;
  margin: 0 auto;
}

.track-tabs-tab {
  position: relative;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.track-tabs-tab-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.track-tabs-tab-text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  transition: color 0.3s ease;
}

.track-tabs-arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  display: none; /* Hidden on desktop */
}

.track-tabs-tab.active .track-tabs-tab-text,
.track-tabs-tab.active .track-tabs-arrow {
  color: var(--secondary);
}

.track-tabs-tab:hover .track-tabs-tab-text,
.track-tabs-tab:hover .track-tabs-arrow {
  color: var(--secondary);
}

.track-tabs__progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
}

.track-tabs__progress-bar svg {
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.track-tabs__progress-bar svg path {
  transition: stroke-dashoffset 0.5s ease;
}

.track-tabs-tab.active .track-tabs__progress-bar svg path {
  stroke-dashoffset: 0 !important;
}

.track-content-wrapper {
  max-width: 1400px;
  margin: 1.0rem auto 0;
  width: 100%;
  padding: 0 3vw;
  box-sizing: border-box;
}

.track-content {
  margin-top: 0;
  width: 100%;
}

.track-content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.track-content-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.track-content-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Horizontal Panels Container - Expanding Panels Style */
.track-content-panels-container {
  display: flex;
  flex-direction: row;
  height: auto;
  width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  align-items: stretch;
}

/* Ensure horizontal layout on desktop/web */
@media (min-width: 969px) {
  .track-content-panels-container {
    flex-direction: row !important;
    display: flex !important;
    height: 600px;
  }
}


/* Individual Panel - Base Styles */
.track-content-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease,
              transform 0.3s ease;
  overflow: hidden;
  position: relative;
  opacity: 1;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
}

/* Diagonal stripe pattern effect at top-left only - Mobile only */
.track-content-panel::before {
  display: none;
}

@media (max-width: 968px) {
  .track-content-panel::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
      135deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.1) 8px,
      rgba(255, 255, 255, 0.1) 16px
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
  }
  
  .track-content-panel.active::before {
    opacity: 0.9;
    width: 180px;
    height: 180px;
  }
}

/* Hover effect on panels */
.track-content-panel:not(.active):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Desktop hover: slight movement for vertical text */
@media (min-width: 969px) {
  .track-content-panel:not(.active):hover .panel-title {
    transform: translateY(-3px);
  }
}

/* Mobile hover: horizontal movement */
@media (max-width: 968px) {
  .track-content-panel:not(.active):hover .panel-title {
    transform: translateX(-5px);
  }
}


/* Border color transitions on hover and active - handled in media queries */

/* Removed diagonal stripe pattern - using solid colors */

/* Desktop: Horizontal layout with expanding panels */
@media (min-width: 969px) {
  .track-content-panel {
    min-width: 80px;
    flex: 1;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    border-right: none;
    border-bottom: none;
  }

  .track-content-panel:last-child {
    border-right: none;
  }

  .track-content-panel.active {
    flex: 4;
    opacity: 1;
    cursor: default;
    justify-content: flex-start;
    padding-top: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateY(0);
  }

  .track-content-panel:not(.active) {
    flex: 1;
    overflow: hidden;
  }

}

/* Vertical layout for mobile */
@media (max-width: 968px) {
  .track-content-panel {
    width: 100%;
    min-height: 80px;
    max-height: 80px;
    border-right: none;
    border-bottom: none;
  }

  .track-content-panel:last-child {
    border-bottom: none;
  }

  .track-content-panel.active {
    flex: 0 0 auto;
    max-height: 2000px;
  }
}

/* Panel Title - Base Styles */
.panel-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, 
              font-size 0.4s ease,
              padding 0.4s ease,
              writing-mode 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Desktop: All titles horizontal */
@media (min-width: 969px) {
  .panel-title {
    text-align: right;
    transform: translateX(0);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Collapsed panels: Horizontal text at top */
  .track-content-panel:not(.active) .panel-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: rotate(0deg);
    width: 100%;
    height: auto;
    padding: 1.5rem 2rem;
    display: block;
    text-align: right;
    white-space: nowrap;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  /* Active panel: Horizontal text at top */
  .track-content-panel.active .panel-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: rotate(0deg);
    width: 100%;
    height: auto;
    min-width: auto;
    padding: 1.5rem 2rem 1rem 2rem;
    text-align: right;
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }
}

/* Mobile: Title is always horizontal */
@media (max-width: 968px) {
  .panel-title {
    text-align: right;
    width: 100%;
    padding: 1.5rem 2rem;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}

/* Active panel title stays right aligned at top */
.track-content-panel.active .panel-title {
  padding: 1.5rem 2rem 1rem 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-align: right;
}

/* Panel Description - Only visible when panel is active */
.panel-description {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: right;
  line-height: 1.8;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  transform: translateY(-10px);
  z-index: 2;
  transition: opacity 0.5s ease 0.2s,
              transform 0.5s ease 0.2s,
              visibility 0s linear 0.5s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 0 2rem 1rem 2rem;
}

/* Hide description in collapsed panels */
.track-content-panel:not(.active) .panel-description {
  opacity: 0;
  visibility: hidden;
}

/* Show description only in active panel */
.track-content-panel.active .panel-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.3s,
              transform 0.5s ease 0.3s,
              visibility 0s linear 0s;
}

/* Panel colors based on category with gradient effect */
.track-content-panel[data-category="community"] {
  background: linear-gradient(to right, #2a5f8f, #104694); /* Navy Blue gradient - lighter to darker */
}

.track-content-panel[data-category="skills"] {
  background: linear-gradient(to right, #1f8a6f, #167764); /* Green gradient - lighter to darker */
}

.track-content-panel[data-category="leadership"] {
  background: linear-gradient(to right, #f9c82a, #F8BA01); /* Yellow/Orange gradient - lighter to darker */
}

/* Ensure card-grid inside panels displays correctly */
.track-content-panel .card-grid {
  display: grid;
  width: 100%;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease 0.4s, 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  max-width: 100%;
  margin-top: 0;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Smaller cards for leadership and skills panels */
.track-content-panel[data-category="leadership"] .card-grid,
.track-content-panel[data-category="skills"] .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

/* Make card images take full width in track-content panels */
.track-content-panel .card__visual {
  width: calc(100% + 2px);
  margin: 0 -1px;
  padding: 0;
}

.track-content-panel .card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Show cards in active panel */
.track-content-panel.active .card-grid {
  opacity: 1;
  transform: translateY(0) scale(1);
  display: grid;
}


/* Hide cards in inactive panels */
.track-content-panel:not(.active) .card-grid {
  opacity: 0;
  visibility: hidden;
  display: grid;
}

/* Override old track-category styles for panels - desktop */
.track-content-panel.track-category {
  display: flex !important;
  position: relative;
}

/* Ensure panels are always in the layout flow */
@media (max-width: 968px) {
  .track-content-panel {
    min-height: 80px;
    overflow-x: hidden;
  }
}

/* Custom scrollbar for panels */
.track-content-panel::-webkit-scrollbar {
  width: 6px;
}

.track-content-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.track-content-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.track-content-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
.track-content-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Mobile/Tablet: accordion behavior */
@media (max-width: 968px) {
  .track-tabs-container {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .track-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
    padding-bottom: 0;
    min-width: unset;
    width: 100%;
  }

  .track-tabs-tab {
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }

  .track-tabs-tab:last-child {
    border-bottom: none;
  }

  .track-tabs-tab-content {
    padding-bottom: 0;
  }

  .track-tabs-tab-text {
    font-size: 1rem;
  }

  .track-tabs-arrow {
    display: block; /* Show arrows on mobile/tablet */
  }

  .track-tabs__progress-bar {
    display: none; /* Hide progress bar on mobile */
  }

  .track-content-wrapper {
    padding: 0 2vw;
    margin-top: 1rem;
  }

  .track-content {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
  }

  /* Mobile: Use vertical stacked panels like the photo */
  .track-content-panels-container {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .track-content-panel {
    flex: 0 0 auto !important;
    width: 100%;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: max-height 0.6s ease, opacity 0.3s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    border-bottom: none;
  }

  .track-content-panel:last-child {
    border-bottom: none;
  }

  .track-content-panel.active {
    flex: 0 0 auto !important;
    max-height: 5000px;
    overflow-y: auto;
    opacity: 1;
    padding: 0;
    align-items: stretch;
  }

  /* Panel title on mobile - positioned at right with line below*/
  .track-content-panel .panel-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 2rem;
    padding-right: 2rem;
    padding-bottom: 1.0rem;
    text-align: right;
    width: 100%;
    border-bottom: none;
    display: block;
    box-sizing: border-box;
    line-height: 1.2;
  }

  /* Divider with padding on left and right */
  .track-content-panel .panel-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
  }

  .track-content-panel.active .panel-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
  }

  /* Panel description on mobile - show below divider line when active */
  .track-content-panel .panel-description {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    padding: 1.5rem 2rem;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    margin: 0;
    margin-top: 0.5rem;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    border-bottom: none;
  }

  .track-content-panel.active .panel-description {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .track-content-panel .card-grid {
    opacity: 1;
    transform: none;
    margin-top: 1rem;
    padding: .5rem 1.5rem 1.5rem 1.5rem;
  }

  /* Hide cards in inactive panels on mobile */
  .track-content-panel:not(.active) .card-grid {
    display: none;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(18, 58, 87, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(18, 58, 87, 0.15);
  border-color: var(--secondary);
}

.card:hover::before {
  opacity: 1;
}

.card__visual {
  height: 140px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}

/* Smaller card visual for leadership and skills panels */
.track-content-panel[data-category="leadership"] .card__visual,
.track-content-panel[data-category="skills"] .card__visual {
  height: 110px;
}

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

.card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 124, 102, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card__visual::after {
  opacity: 1;
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Smaller card body for leadership and skills panels */
.track-content-panel[data-category="leadership"] .card__body,
.track-content-panel[data-category="skills"] .card__body {
  padding: 0.75rem;
}

.card__body h4 {
  margin: 0.25rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.soon-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(10, 124, 102, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
}

.card:hover .card__body h4 {
  color: var(--secondary);
}

.card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.1), rgba(10, 124, 102, 0.05));
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.tracks .card .eyebrow {
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.12), rgba(168, 211, 197, 0.08));
  border: 1px solid rgba(10, 124, 102, 0.15);
}

.hero__text h1,
.hero-full__text h2 {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.hero-slider .hero__text {
  max-width: 600px;
  text-align: right;
}

.hero-slider .hero__text h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: #0a7c66;
  text-align: right;
}

.hero-slider .lede {
  color: #e7f4ef;
}

.hero-slider .eyebrow {
  color: #ffc817;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.hero__text .lede,
.hero-full__text .lede {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 1.5rem 0;
}

.actions .ghost {
  border-width: 2px;
}

main > section:not(:first-child) {
  margin-top: 3rem;
}

.hero-cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
  border: 2px solid rgba(255, 255, 255, 0.95);
  font-weight: 700;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-cta:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.outline:hover {
  background: var(--secondary);
  color: #fff;
}

.tracks .card-grid,
.updates .card-grid,
.team .card-grid,
.videos .card-grid {
  margin-top: 2.5rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  font-weight: 700;
  color: var(--mid);
}

.tab:first-child {
  border: none;
}

.tab.active {
  background: var(--light);
  color: var(--primary);
}

.feature__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
}

.feature__visual {
  min-height: 280px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}

.pillar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-full {
  position: relative;
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(168, 211, 197, 0.4), rgba(18, 58, 87, 0.08));
  overflow: hidden;
}

.hero-full__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

.hero-full__text {
  position: relative;
  z-index: 1;
}

.hero-full__text .en {
  color: var(--muted);
}

.updates .card {
  min-height: 160px;
}

.courses .course-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  gap: 1rem;
}

.course-row h4 {
  margin: 0 0 0.2rem 0;
}

.course-row p {
  margin: 0;
  color: var(--muted);
}

.team .profile {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.team .profile > div:last-child {
  flex: 1;
}

/* Profile cards without avatar - centered text */
.card.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
}

.card.profile > div {
  width: 100%;
  text-align: center;
}

.card.profile h4 {
  text-align: center;
}

.card.profile p {
  text-align: center;
}

.join-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(18, 58, 87, 0.1);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}

.join-content {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.join-content h3 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
}

.join-content .muted {
  margin: 0.2rem 0 0;
}

.join-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.join-actions .ghost {
  border-width: 2px;
}
.avatar {
  width: 72px;
  height: 72px;
}

.videos {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 280px 1fr;
}

.filters {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  align-self: flex-start;
}

.filters label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-weight: 600;
}

select {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

.video-content {
  display: grid;
  gap: 1rem;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.search-box input {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.video .inline-actions {
  display: flex;
  gap: 0.5rem;
}

.caption {
  color: var(--muted);
}

.footer {
  background: var(--primary);
  color: #fff;
  padding: 4rem 4vw;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: start;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  min-width: fit-content;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-question {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.footer-contact-btn {
  background: #fff;
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.footer-contact-info a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info a:hover {
  color: #fff;
}

.section-divider {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
  margin: 0 calc(-1 * 4vw);
  width: calc(100% + 8vw);
}

.section-divider img {
  width: 50%;
  height: auto;
  opacity: 0.9;
  object-fit: cover;
}

@media (max-width: 968px) {
  .footer {
    padding: 3rem 4vw;
  }

  .footer-container {
    grid-template-columns: 1fr auto auto;
    gap: 3rem;
  }

  .footer-contact-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Ensure footer placeholder is visible */
#footer-placeholder {
  display: block !important;
  width: 100%;
  min-height: 1px;
  visibility: visible;
  opacity: 1;
}

#footer-placeholder .footer {
  display: block !important;
  width: 100%;
  position: relative;
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

/* Ensure footer is visible on mobile and tablet */
@media (max-width: 968px) {
  #footer-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #footer-placeholder .footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 968px) {
  .tracks {
    padding: 2rem 2vw;
  }

  .tracks-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .tracks-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tracks-categories-panel {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tracks-categories-panel::-webkit-scrollbar {
    display: none;
  }

  .category-block {
    min-width: 150px;
    min-height: 100px;
    flex-shrink: 0;
  }

  .category-block.active {
    transform: translateY(-5px);
  }

  .tracks-programs-panel {
    padding: 1.5rem;
    min-height: auto;
  }
}

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

  .topbar {
    grid-template-columns: auto 1fr;
    padding: 16px 20px 16px 20px;
    overflow: visible;
  }

  .menu-toggle {
    display: flex;
    grid-column: 1;
    overflow: visible;
    padding: 14px 12px;
    margin-left: -12px;
    margin-right: 0;
    min-width: 48px;
    min-height: 48px;
  }

  .logo {
    grid-column: 2;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 120px 2rem 2rem;
    margin-top: 0;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    grid-column: unset;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
  }

  .nav-links a:first-child {
    margin-top: 0;
  }

  .topbar:not(.scrolled) .nav-links a {
    color: var(--primary);
  }

  .nav-links a:hover {
    background: rgba(10, 124, 102, 0.1);
    color: var(--secondary);
  }

  .auth-actions {
    position: fixed;
    bottom: 2rem;
    right: -100%;
    width: 280px;
    flex-direction: column;
    padding: 0 2rem;
    gap: 0.75rem;
    transition: right 0.3s ease;
    z-index: 1001;
    grid-column: unset;
  }

  .auth-actions.active {
    right: 0;
  }

  .auth-actions button {
    width: 100%;
  }

  /* Logo text in topbar - hidden on mobile (already handled by existing .logo-text rule) */
  .topbar > .logo-text {
    grid-column: unset;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }

  main {
    padding: 1rem 1rem 3rem;
  }

  .hero,
  .feature__content,
  .course-row {
    padding: 1.25rem;
  }

  .course-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    grid-template-columns: 1fr;
  }
}

/* About Page Styles */
.about-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 4vw 4rem;
  background: #fff;
  overflow: hidden;
  margin-top: 100px;
}

.about-hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
}

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

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--primary);
}

.about-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

.about-hero-subtitle {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  opacity: 0.95;
  margin: 0;
}

.about-story-section {
  padding: 6rem 4vw;
  position: relative;
}

.about-story-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-story-reverse .about-story-content {
  direction: ltr;
  grid-template-columns: 1fr;
  justify-items: center;
}

.about-story-reverse .about-story-text {
  direction: rtl;
  width: 100%;
  max-width: 900px;
}

.about-story-text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.about-story-text-center h2 {
  text-align: center;
}

.about-story-text-center p {
  text-align: center;
  max-width: 100%;
  width: 100%;
}

.about-story-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2rem 0;
}

.about-story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.about-story-visual {
  position: relative;
  min-height: 400px;
}

.about-story-pattern {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  opacity: 0.2;
  z-index: 0;
}

.about-story-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-story-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

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

.about-story-image .itqan-image {
  max-width: 100%;
  width: 100%;
  max-height: 50%;
}

.about-story-image .logo-image {
  max-width: 80%;
  max-height: 60%;
}

/* Logo Rationale Section */
.about-logo-rationale-section {
  padding: 6rem 4vw;
  position: relative;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.03), rgba(168, 211, 197, 0.05));
  overflow: hidden;
}

.about-logo-rationale-pattern {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.about-logo-rationale-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-logo-rationale-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-logo-rationale-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-logo-rationale-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.about-logo-rationale-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 0;
}

.about-logo-rationale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-logo-rationale-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(10, 124, 102, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logo-rationale-card-center {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 252, 251, 1));
  border: 1px solid rgba(10, 124, 102, 0.1);
}

.about-logo-rationale-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.about-logo-rationale-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(10, 124, 102, 0.15);
}

.about-logo-rationale-card:hover::before {
  transform: scaleX(1);
}

.logo-rationale-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.1), rgba(168, 211, 197, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.about-logo-rationale-card:hover .logo-rationale-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: scale(1.1);
}

.logo-rationale-logo {
  width: 450px;
  height: 290px;
  background: transparent !important;
  margin: 0 auto 2rem;
}

.logo-rationale-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-logo-rationale-card:hover .logo-rationale-logo {
  background: transparent !important;
  transform: scale(1.05);
}

.logo-rationale-card-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 252, 251, 1));
  border: 1px solid rgba(10, 124, 102, 0.1);
}

.logo-rationale-card-first {
  max-width: 90%;
  margin: 0 auto 2rem;
  padding: 1.5rem 1rem;
}

.logo-rationale-text-center {
  text-align: center !important;
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  color: var(--muted) !important;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-top: 1rem;
}

.logo-rationale-card-center:hover {
  box-shadow: 0 12px 40px rgba(10, 124, 102, 0.12);
  border-color: rgba(10, 124, 102, 0.2);
}

@media (max-width: 900px) {
  .logo-rationale-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 450/290;
  }

  .logo-rationale-card-center {
    padding: 2rem 1.5rem;
  }

  .logo-rationale-text-center {
    font-size: 1rem !important;
    max-width: 100%;
  }
}

.about-logo-rationale-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.about-logo-rationale-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .about-logo-rationale-section {
    padding: 4rem 4vw;
  }

  .about-logo-rationale-header {
    margin-bottom: 3rem;
  }

  .about-logo-rationale-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-logo-rationale-card {
    padding: 2rem;
  }

  .about-logo-rationale-pattern {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
  }
}

.about-cards-section {
  padding: 6rem 4vw;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.05), rgba(168, 211, 197, 0.05));
}

.about-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.about-card {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-card-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.about-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.5rem 0;
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.about-values-section {
  padding: 6rem 4vw;
  position: relative;
  overflow: hidden;
}

.about-values-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  opacity: 0.1;
  z-index: 0;
}

.about-values-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-values-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.about-values-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 0 3rem 0;
}

.about-values-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-value-panel {
  background: var(--primary);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(10, 124, 102, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-value-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(10, 124, 102, 0.3);
}

.value-icon-circle {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFC817;
  position: relative;
}

.value-icon-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(67%) saturate(1200%) hue-rotate(130deg) brightness(0.9) contrast(0.9);
}

.about-value-panel h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
}

.value-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-connector svg {
  width: 60px;
  height: 60px;
}

@media (max-width: 968px) {
  .about-values-flow {
    flex-direction: column;
    gap: 2rem;
  }

  .value-connector {
    transform: rotate(90deg);
  }

  .value-connector svg {
    width: 50px;
    height: 50px;
  }

  .about-value-panel {
    min-width: 250px;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 968px) {
  .about-hero {
    min-height: 50vh;
    padding: 6rem 4vw 3rem;
  }

  .about-story-section {
    padding: 4rem 4vw;
  }

  .about-story-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-story-reverse .about-story-content {
    direction: rtl;
  }

  .about-story-visual {
    min-height: 300px;
  }

  .about-story-image {
    height: 300px;
    padding: 1.5rem;
  }

  .about-story-pattern {
    width: 200px;
    height: 200px;
    top: -30px;
    right: -30px;
  }

  .about-cards-section {
    padding: 4rem 4vw;
  }

  .about-cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-card {
    padding: 2rem;
  }

  .about-values-section {
    padding: 4rem 4vw;
  }
}

/* Team Section */
.about-team-section {
  padding: 6rem 4vw;
  background: var(--canvas);
  position: relative;
}

.about-team-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.about-team-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 0 4rem 0;
}

.about-team-members-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-team-members-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.about-team-members-wrapper::-webkit-scrollbar {
  height: 8px;
}

.about-team-members-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.about-team-members-wrapper::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

.about-team-members-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.about-team-members {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding-bottom: 1rem;
}

.team-member {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 240px;
  max-width: 280px;
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(10, 124, 102, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(10, 124, 102, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-member-info {
  text-align: center;
  width: 100%;
}

.team-member-name {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.team-member-separator {
  display: none;
}

.team-member-separator img {
  width: 200%;
  height: 200%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(25%) sepia(15%) saturate(2000%) hue-rotate(150deg) brightness(0.9);
}

.team-member-position {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 500;
  color: var(--primary);
  opacity: 0.9;
}

.team-nav-arrow {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-nav-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(10, 124, 102, 0.3);
}

.team-nav-arrow:active {
  transform: scale(0.95);
}

.team-nav-arrow svg {
  width: 24px;
  height: 24px;
}

.team-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.team-nav-arrow:disabled:hover {
  background: #fff;
  color: var(--primary);
  transform: none;
}

@media (max-width: 968px) {
  .about-team-section {
    padding: 4rem 4vw;
  }

  .about-team-title {
    margin-bottom: 3rem;
  }

  .about-team-members-container {
    gap: 0.5rem;
  }

  .team-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .team-nav-arrow svg {
    width: 20px;
    height: 20px;
  }

  .about-team-members {
    gap: 2rem;
  }

  .team-member {
    min-width: 220px;
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .about-team-members-container {
    gap: 0.25rem;
  }

  .team-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .team-nav-arrow svg {
    width: 18px;
    height: 18px;
  }

  .about-team-members {
    gap: 1.5rem;
  }

  .team-member {
    min-width: 220px;
    padding: 1rem;
  }
}

/* Team section - Mobile 2 columns layout */
@media (max-width: 968px) {
  .team .card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
  }

  .team .card-grid .card.profile {
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    padding: 0.75rem 0.5rem;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .team .card-grid .card.profile:first-child {
    margin-right: 0;
  }

  .team .card-grid .card.profile:last-child {
    margin-left: 0;
    padding-left: 0.5rem;
  }

  .team .card-grid .card.profile h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .team .card-grid .card.profile p.muted {
    font-size: 0.8rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Board Members Section */
.about-board-section {
  padding: 6rem 4vw;
  position: relative;
  background: linear-gradient(135deg, rgba(10, 124, 102, 0.03), rgba(168, 211, 197, 0.05));
  overflow: hidden;
}

.about-board-pattern {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.about-board-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-board-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-board-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-board-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.about-board-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3rem 2rem;
  position: relative;
  padding-right: 60px;
}

.board-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.board-member-featured {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.board-member-2 {
  grid-column: 1;
  grid-row: 2;
}

.board-member-3 {
  grid-column: 2;
  grid-row: 2;
}

.board-member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.board-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-member-info {
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.board-member-name {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.board-member-separator {
  width: 100%;
  height: 20px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.board-member-separator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(25%) sepia(15%) saturate(2000%) hue-rotate(150deg) brightness(0.9);
}

.board-member-featured .board-member-separator img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(15%) saturate(2000%) hue-rotate(150deg) brightness(0.8);
}

.board-member-position {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 500;
  color: var(--primary);
  opacity: 0.9;
}

.board-nav-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
  z-index: 10;
}

.board-nav-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.board-nav-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 968px) {
  .about-board-section {
    padding: 4rem 4vw;
  }

  .about-board-pattern {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
  }

  .about-board-header {
    margin-bottom: 2.5rem;
  }

  .about-board-members {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3rem;
    padding-right: 0;
    padding-bottom: 60px;
  }

  .board-member-featured {
    grid-column: 1;
    grid-row: 1;
  }

  .board-member-image {
    width: 180px;
    height: 180px;
  }

  .board-nav-arrow {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%);
  }

  .board-nav-arrow:hover {
    transform: translateX(50%) scale(1.1);
  }
}

@media (max-width: 640px) {
  .board-member-image {
    width: 150px;
    height: 150px;
  }

  .board-member-info {
    max-width: 100%;
  }
}

