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

:root {
  --isra-primary: #1d4ed8;
  --isra-primary-dark: #1e40af;
  --isra-accent: #3b82f6;
  --isra-dark: #0b1f5e;
  --isra-muted: #f5f8ff;
  --bs-primary: #1d4ed8;
  --bs-primary-rgb: 29, 78, 216;
  --bs-link-color: #1d4ed8;
  --bs-link-hover-color: #1e40af;
}

body {
  font-family: "Blinker", "Century Gothic", CenturyGothic, AppleGothic, "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--isra-muted);
  color: #172554;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, "Blinker", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0.2px;
}

.brand-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.brand-wrap img {
  display: block;
  width: 172px;
  height: auto;
}

.utility-link {
  color: #dbeafe;
  text-decoration: none;
}

.utility-link:hover {
  color: #ffffff;
}

.hero-slide {
  min-height: 62vh;
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y, 0px));
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(11, 31, 94, 0.72), rgba(11, 31, 94, 0.72));
  display: flex;
  align-items: center;
}

.media-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.media-cover-sm {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.page-banner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.hero-stat .card {
  border: 0;
  box-shadow: 0 0.125rem 0.5rem rgba(29, 78, 216, 0.12);
  background: #ffffff;
}

.home-page .home-stats {
  margin-top: -1.35rem;
  position: relative;
  z-index: 2;
  background: transparent;
}

.home-page .stats-panel .card {
  border-radius: 0.9rem;
  border: 1px solid #dbeafe;
}

.home-page .stats-panel h3 {
  color: var(--isra-primary-dark);
  font-weight: 700;
}

.section-title {
  font-weight: 700;
}

.home-page .section-title {
  position: relative;
  padding-bottom: 0.45rem;
}

.home-page .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--isra-primary), #60a5fa);
}

.home-page .section-intro {
  margin-top: -0.3rem;
  margin-bottom: 1.25rem;
  color: #1e3a8a;
  font-size: 1.04rem;
}

.iif-family {
  background: #dbeafe;
}

.program-card,
.campus-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover,
.campus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.45rem 1rem rgba(29, 78, 216, 0.18);
}

.home-page .program-card {
  border: 1px solid #dbeafe;
  border-radius: 0.95rem;
  overflow: hidden;
}

.home-page .program-card .card-body p {
  color: #334155;
}

.home-page .news-highlight {
  border: 1px solid #dbeafe;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.2rem rgba(30, 64, 175, 0.12);
}

.home-page .home-news .media-cover-sm {
  height: 320px;
}

.home-page .fb-news-card {
  border: 1px solid #dbeafe;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 0.35rem 0.9rem rgba(30, 64, 175, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .fb-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.6rem 1.2rem rgba(30, 64, 175, 0.16);
}

.home-page .fb-news-card .card-body p {
  color: #334155;
}

.home-page .event-list {
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1rem rgba(29, 78, 216, 0.1);
}

.home-page .event-list .list-group-item {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: #e2e8f0;
}

.home-page .news-indicators {
  margin-bottom: 0.75rem;
}

.home-page .news-indicators [data-bs-target] {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background-color: #bfdbfe;
  opacity: 1;
}

.home-page .news-indicators .active {
  background-color: var(--isra-primary);
}

.home-page .news-control {
  width: 10%;
}

.home-page .partner-logo {
  border-radius: 999px;
  padding: 0.58rem 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(29, 78, 216, 0.12);
}

.home-page .home-cta {
  position: relative;
  overflow: hidden;
}

.home-page .home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(147, 197, 253, 0.2), transparent 45%);
  pointer-events: none;
}

.home-page .home-cta .container {
  position: relative;
  z-index: 1;
}

.home-page .cta-chip {
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.page-hero {
  min-height: 34vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center calc(50% + var(--parallax-y, 0px));
  background-image: linear-gradient(rgba(30, 64, 175, 0.72), rgba(11, 31, 94, 0.78)),
    url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=1800&q=80");
  color: #fff;
}

.cta-parallax {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center calc(50% + var(--parallax-y, 0px));
  background-image: linear-gradient(rgba(29, 78, 216, 0.68), rgba(11, 31, 94, 0.78)),
    url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1800&q=80");
}

.timeline {
  border-left: 3px solid var(--isra-accent);
  padding-left: 1rem;
}

.timeline li {
  margin-bottom: 1rem;
}

.partner-logo {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 140px;
  font-weight: 600;
}

.partner-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.partner-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partner-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: partner-scroll 28s linear infinite;
}

@keyframes partner-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .home-page .home-stats {
    margin-top: 0;
  }
}

.btn-primary {
  background-color: var(--isra-primary);
  border-color: var(--isra-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--isra-primary-dark);
  border-color: var(--isra-primary-dark);
}

.btn-warning {
  background-color: var(--isra-accent);
  border-color: var(--isra-accent);
  color: #ffffff;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.bg-dark {
  background-color: var(--isra-dark) !important;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: none;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 4.6rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
  z-index: 1050;
}

.whatsapp-float:hover {
  background: #1fb359;
  color: #fff;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.leadership-card .card-body {
  display: flex;
  flex-direction: column;
}

.leadership-card .media-cover-sm {
  height: 480px;
}

.leadership-detail-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.bog-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.8rem rgba(29, 78, 216, 0.08);
}

.bog-group-header {
  grid-column: 1 / -1;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 0.9rem 1rem;
}

.bog-member {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eef2ff;
  border-right: 1px solid #eef2ff;
}

.bog-member:nth-child(2n) {
  border-right: 0;
}

.bog-member:last-child,
.bog-member:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .bog-group {
    grid-template-columns: 1fr;
  }

  .bog-member {
    border-right: 0;
  }
}
