:root {
  --primary: #1b61ff;
  --primary-dark: #103a78;
  --dark: #0f1c2e;
  --light: #f8f9fa;
  --text-muted: #64748b;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  height: 100%
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #1c1f23;
  background: #ffffff;
  padding-top: 80px
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--dark) !important
}

.brand-logo-container {
  background: var(--primary);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.brand-title-img {
    height: 65px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    transform: none;
    margin-right: 0;
}

.footer-title-img {
  height: 60px;
  max-height: 65px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  transform: scale(1.4);
  transform-origin: left center
}

.brand-name {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dark);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.btn-donate-nav {
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-donate-nav:hover {
  background: #1555ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 97, 255, 0.3);
}

.navbar {
  background: #fff !important;
  border-bottom: 1px solid #edf2f7;
  padding: .75rem 0
}

.navbar .nav-link {
  font-weight: 600;
  color: #4a5568 !important;
  padding: .4rem .75rem !important;
  transition: all .2s ease;
  font-size: 0.9rem;
}

.navbar .nav-link:hover {
  color: #2d3748 !important
}

.navbar .nav-link.active {
  color: var(--primary) !important;
  background: #eff6ff;
  border-radius: 10px;
}

.navbar .dropdown-toggle::after {
  display: none
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: .5rem;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin-top: 0;
  }

  .navbar .nav-item.dropdown:hover .dropdown-menu,
  .navbar .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(5px);
    pointer-events: auto;
  }
}

.navbar .dropdown-item {
  border-radius: .5rem;
  padding: .5rem 1rem;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background: #eff6ff;
  color: var(--primary);
  padding-left: 1.25rem;
}

.hero-carousel,
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 90vh;
  min-height: 600px;
  color: #fff;
}

.hero-carousel .carousel-item {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

.carousel-item .hero-title,
.carousel-item .hero-subtitle,
.carousel-item .hero-label,
.carousel-item .btn-hero-cta {
  opacity: 0;
}

.carousel-item.active .hero-title {
  animation: heroFadeInUp 1s ease 0.3s forwards;
}

.carousel-item.active .hero-subtitle {
  animation: heroFadeInUp 1s ease 0.5s forwards;
}

.carousel-item.active .hero-label {
  animation: heroFadeInUp 1s ease 0.1s forwards;
}

.carousel-item.active .btn-hero-cta {
  animation: heroFadeInUp 1s ease 0.7s forwards;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: heroFadeInUp 0.6s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 46, 0.7) 0%, rgba(27, 97, 255, 0.4) 100%);
  pointer-events: none;
}

.hero-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 750px;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta {
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-hero-cta.btn-light {
  background: #fff;
  color: var(--primary);
  border: none;
}

.btn-hero-cta.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-pill {
  border-radius: 999px !important;
  padding: .6rem 1.25rem !important;
  font-weight: 600;
}

.stats-bar {
  box-shadow: 0 4px 20px rgba(27, 97, 255, 0.15);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
}

.focus-card {
  transition: all 0.3s ease;
  border: 1px solid #f0f4f8 !important;
}

.focus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1) !important;
}

.focus-icon-container {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon-container i,
.program-icon-classic i {
  font-size: 1.35rem;
  line-height: 1;
}

.program-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.focus-link {
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.focus-link:hover {
  gap: 10px !important;
}

.section-title {
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f1ff;
  color: var(--primary)
}

.card-gradient {
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border: 1px solid #e9eef7
}

.quote {
  font-size: 1.15rem;
  line-height: 1.7
}

.counter {
  font-weight: 800
}

.btn-cta {
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600
}

.management-avatar {
  width: 80px;
  height: 80px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
}

/* ==========================================================================
   Modern Dynamic Member / Leadership / Management Cards Design & Animations
   ========================================================================== */
.management-card,
.leadership-card,
.team-member-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.08) !important;
  border-radius: 1.5rem !important;
  padding: 1.75rem 1.25rem !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(13, 110, 253, 0.03) !important;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

/* Pointer Glance / Shimmer Overlay Animation */
.management-card::after,
.leadership-card::after,
.team-member-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 3;
}

.management-card:hover::after,
.leadership-card:hover::after,
.team-member-card:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* 3D Floating Lift & Border Glow on Glance / Hover */
.management-card:hover,
.leadership-card:hover,
.team-member-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  border-color: rgba(13, 110, 253, 0.35) !important;
  box-shadow: 0 22px 45px -10px rgba(13, 110, 253, 0.22), 0 10px 20px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Avatar Wrapper & Zoom Animation */
.management-avatar-wrap,
.leadership-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.18);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.management-card:hover .management-avatar-wrap,
.leadership-card:hover .leadership-avatar-wrap {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 25px rgba(13, 110, 253, 0.4);
}

.management-avatar-img,
.leadership-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  transition: transform 0.4s ease;
}

/* Member Name Styling */
.management-member-name,
.leadership-member-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.management-card:hover .management-member-name,
.leadership-card:hover .leadership-member-name {
  color: #0d6efd;
}

/* Role Badge / Pill Styling */
.management-role-pill,
.leadership-role-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 50rem;
  transition: all 0.35s ease;
}

.management-card:hover .management-role-pill,
.leadership-card:hover .leadership-role-pill {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Quote / Bio Styling */
.management-member-quote,
.leadership-member-bio {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.testimonial-quote-icon {
  color: var(--primary);
  opacity: 0.2;
}

.italic {
  font-style: italic;
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.rounded-5 {
  border-radius: 2rem !important;
}

.footer {
  background: #0F1C2E;
  color: #B8C4D6;
}

.footer-logo-text {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-heading {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: #B8C4D6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-cta {
  background: linear-gradient(45deg, #1b61ff, #0d6efd);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 97, 255, 0.4);
}

.social-icon {
  width: 36px;
  height: 36px;
  background: #2d3748;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: #fff;
}

.footer-bottom-link {
  color: #B8C4D6;
  transition: all 0.2s ease;
}

.footer-bottom-link:hover {
  color: #fff;
}

.footer-contact-item a {
  color: #B8C4D6;
  text-decoration: none;
  transition: all .2s ease;
}

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

.shadow-soft {
  box-shadow: 0 10px 30px rgba(13, 110, 253, .15)
}

.rounded-3xl {
  border-radius: 1.25rem
}

.bg-light-blue {
  background: #f8fafd
}

.page-hero {
  position: relative;
  padding: 5rem 0;
  color: #fff;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.page-hero h1 {
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p.lead {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.pill-filter .btn {
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-weight: 500;
  border-color: transparent;
  color: #4a5568;
  background: #f7fafc
}

.pill-filter .btn:hover {
  background: #edf2f7;
  color: #2d3748
}

.pill-filter .btn.active {
  background: #ebf8ff;
  color: #0d6efd;
  font-weight: 600;
  border-color: #bee3f8
}

.metric {
  border: 1px solid #e9eef7;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border-radius: 1.25rem;
}

/* Classic Attractive Timeline */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 45%;
  background: #fff;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 10;
  border: 1px solid #eaecf0;
  padding: 2rem;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  border-color: #d0d5dd;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  z-index: 1;
  border-left: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
}

.timeline-row.left .timeline-content {
  margin-right: auto;
}

.timeline-row.right .timeline-content {
  margin-left: auto;
}

.timeline-row.left .timeline-content::before {
  right: -9px;
  transform: rotate(225deg);
  border: 1px solid #eaecf0;
  border-bottom: none;
  border-left: none;
}

.timeline-row.right .timeline-content::before {
  left: -9px;
  transform: rotate(45deg);
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #fff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-row:hover .timeline-node {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--primary);
  box-shadow: 0 0 0 10px #eff6ff;
}

.timeline-row:hover .timeline-node .timeline-icon {
  color: #fff;
}

.timeline-icon {
  color: var(--primary);
  display: flex;
  transition: color 0.3s ease;
  width: 18px;
  height: 18px;
}

.timeline-icon svg {
  width: 100%;
  height: 100%;
}

.timeline-year {
  font-family: "Playfair Display", serif;
  /* Ensure this font is loaded or fallback to serif */
  font-size: 2.5rem;
  font-weight: 700;
  color: #e2e8f0;
  position: absolute;
  top: -30px;
  line-height: 1;
  z-index: 0;
}

.timeline-row.left .timeline-year {
  right: 20px;
}

.timeline-row.right .timeline-year {
  left: 20px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.timeline-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    margin-bottom: 40px;
  }

  .timeline-node {
    left: 30px;
    top: 0;
    transform: translate(-50%, 0);
    margin-top: 20px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }

  .timeline-content::before {
    left: -9px !important;
    transform: rotate(45deg) !important;
    top: 20px;
    border: 1px solid #eaecf0;
    border-top: none;
    border-right: none;
  }

  .timeline-row:hover .timeline-node {
    transform: translate(-50%, 0) scale(1.15);
  }

  .timeline-year {
    position: static;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 0.5rem;
  }
}


/* Minimal Timeline (for About Page) - Upgraded */
.timeline-minimal-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0 10px 30px;
}

.timeline-minimal-line {
  position: absolute;
  left: 25px;
  top: 15px;
  bottom: 15px;
  width: 3px;
  background: linear-gradient(180deg, #0d6efd 0%, rgba(13, 110, 253, 0.2) 100%);
  border-radius: 3px;
  transform: translateX(-50%);
}

.timeline-minimal-row {
  position: relative;
  margin-bottom: 30px;
  padding-left: 45px;
}

.timeline-minimal-row:last-child {
  margin-bottom: 0;
}

.timeline-minimal-node {
  position: absolute;
  left: 25px;
  top: 32px;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 3px solid #0d6efd;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.1);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-minimal-node .timeline-minimal-icon {
  width: 22px;
  height: 22px;
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.35s ease;
}

.timeline-minimal-row:hover .timeline-minimal-node {
  background: #0d6efd;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.25);
}

.timeline-minimal-row:hover .timeline-minimal-node .timeline-minimal-icon {
  color: #ffffff;
}

.timeline-minimal-content {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(13, 110, 253, 0.08) !important;
  border-radius: 1.25rem !important;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer;
  overflow: hidden;
}

.timeline-minimal-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 32px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
  border-left: 1px solid rgba(13, 110, 253, 0.1);
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
  transition: background 0.35s ease;
}

.timeline-minimal-content:hover {
  transform: translateX(6px) translateY(-2px) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  box-shadow: 0 18px 35px -8px rgba(13, 110, 253, 0.18) !important;
}

.timeline-minimal-year-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  border-radius: 50rem;
  transition: all 0.3s ease;
}

.timeline-minimal-content:hover .timeline-minimal-year-badge {
  background: #0d6efd;
  color: #ffffff;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease-out;
  will-change: opacity, transform
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0)
}

/* Partner Page - Classic Style */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.partner-logo-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  color: #6c757d;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.partner-logo-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.partner-logo-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #eef2ff;
}

.partner-logo-content {
  min-width: 0;
}

.partner-logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}

.partner-logo-type {
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.partner-logo-details {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b7280;
  font-style: italic;
}

.partner-logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.partner-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #dee2e6;
  color: var(--primary);
}

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

@media (max-width: 1399.98px) {
  .partner-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .partner-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .partner-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .partner-logo-grid {
    grid-template-columns: 1fr;
  }
}

.partner-stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.partner-stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(27, 97, 255, 0.1);
  border-color: #e0e7ff;
}

.partner-stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.partner-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  font-weight: 700;
}

.testimonial-classic {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 20px;
  position: relative;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.testimonial-classic:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.testimonial-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 800;
  color: var(--dark);
  font-size: 1.1rem;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
}

.bg-pattern-dots {
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}


/* Responsive image cover utility for consistent media sizing */
.image-cover {
  width: 100%;
  object-fit: cover;
  height: 260px;
  /* Mobile default */
}

@media (min-width: 768px) {
  .image-cover {
    height: 360px;
  }
}

@media (min-width: 992px) {
  .image-cover {
    height: 420px;
  }
}

/* Classic Program Card Style */
.program-card-classic {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.program-card-classic:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: #d0d5dd;
}

.program-icon-classic {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.program-title-classic {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.program-desc-classic {
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-link-classic {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.program-link-classic:hover {
  gap: 12px;
}

/* --- New Blog & Media Enhancements --- */

/* Blog Cards */
.blog-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 28, 46, 0.08);
}

.blog-card[role="button"] {
  cursor: pointer;
}

.blog-card[role="button"]:focus {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 3px;
}

.blog-img-wrapper {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.blog-content {
  padding: 1.25rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--dark);
  transition: var(--transition);
}

.blog-title:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.blog-excerpt-10 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  line-clamp: 10;
  overflow: hidden;
}

.blog-open-btn {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title::after {
  content: '';
  flex-grow: 1;
  height: 2px;
  background: #f1f5f9;
}

/* Media Gallery */
.media-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: none;
  background: #f1f5f9;
  /* Fallback background */
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 28, 46, 0.95) 0%, rgba(15, 28, 46, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  transform: translateY(15px);
}

.media-card:hover .media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card:hover img {
  transform: scale(1.1);
}

.media-type-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
}

.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(27, 97, 255, 0.4);
}

.media-card:hover .media-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.media-info h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.media-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Filters */
.filter-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(27, 97, 255, 0.2);
}

/* Card & Image Container Fit Rules */
.card {
  overflow: hidden;
}

.card-img-top,
.card .card-img-top,
.card-img-container img {
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}