/* =========================================================
   Hillendell - Programs Page Styles
   ========================================================= */

/* ---------- Global ---------- */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: #2e588e;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #033d7c;
}

/* ---------- Header ---------- */
.header-section {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-section .main-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-section .main-menu-list > li {
  display: inline-block;
  margin: 0 18px;
}

.header-section .main-menu-list > li > a {
  font-weight: 500;
  color: #033d7c;
}

.header-section .main-menu-list > li > a:hover,
.header-section .main-menu-list > li > a.active {
  color: #2e588e;
}

/* ---------- Hero Section ---------- */
.hero-programs {
  background: linear-gradient(120deg, #2e588e, #033d7c);
  padding: 120px 0 80px;
}

.hero-programs h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-programs p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-container {
  background: #f8f9fb;
  padding: 15px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #e4e9f2;
}

.breadcrumb-container a {
  color: #2e588e;
  font-weight: 500;
}

.breadcrumb-container span {
  color: #666;
}

/* ---------- Program Categories ---------- */
.program-category {
  padding: 80px 0;
}

.category-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #2e588e, #033d7c, #2e588e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -200px center;
  }
  100% {
    background-position: 200px center;
  }
}

.category-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2e588e, #033d7c);
  margin: 10px auto 0;
}

/* ---------- Program Grid ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background: #fff;
  border: 1px solid #e3e9f0;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #033d7c;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.program-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.btn-view {
  display: inline-block;
  background: linear-gradient(45deg, #2e588e, #033d7c);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.btn-view:hover {
  background: linear-gradient(45deg, #033d7c, #2e588e);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer-section {
  background: linear-gradient(45deg, #2e588e, #033d7c);
  color: #fff;
  padding: 50px 0;
  font-size: 0.95rem;
}

.footer-section p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-programs {
    padding: 90px 0 60px;
  }

  .hero-programs h1 {
    font-size: 2.2rem;
  }

  .hero-programs p {
    font-size: 1rem;
  }

  .program-category {
    padding: 60px 0;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .program-card h3 {
    font-size: 1.15rem;
  }
}
/* =========================================================
   Tooltip – Final Reliable Version
   ========================================================= */
.info-icon {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  font-size: 1rem;
  color: #2e588e;
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.3s ease, transform 0.2s ease;
}

.info-icon:hover {
  color: #033d7c;
  transform: scale(1.15);
}

/* Tooltip bubble */
.tooltip-text {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #033d7c;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  width: 260px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  pointer-events: none;
  white-space: normal;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #033d7c transparent transparent transparent;
}

/* Show on hover */
.info-icon:hover .tooltip-text {
  display: block;
  animation: fadeInUp 0.25s ease forwards;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 5px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Prevent clipping */
section, .container, .program-category {
  overflow: visible !important;
}
.category-subtext {
  background: #f3f7fb;
  border-left: 4px solid #2e588e;
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 850px;
  margin: -15px 0 40px 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-subtext em {
  color: #033d7c;
  font-style: normal;
  font-weight: 500;
}

