/* ========== Regulations & Curriculum Cards ========== */



/* dotted background section */
.regulation-curriculum-section {
  background: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 30px 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.section-heading {
  color: var(--primary-blue);
  font-size: 22px;
  margin: 0 0 18px 4%;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  width: 92%;
  margin: 0 auto;
}

/* Common base for both regulation and curriculum cards */
.regulation,
.curriculum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border:2px solid orangered; 
  border-radius: var(--card-radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  min-height: 84px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

/* left section */
.card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* icon background */
.icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--primary-blue);
  font-size: 18px;
}

/* text content */
.card-title {
  font-weight: 700;
  font-size: 16px;
  color: #222;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* right arrow */
.card-action {
  color: rgba(0, 0, 0, 0.5);
  font-size: 18px;
}

/* active card style */
.curriculum.active {
  background: var(--active-bg);
  color: var(--active-color);
  border-color: var(--active-bg);
}

.curriculum.active .icon-wrap,
.curriculum.active .card-action {
  color: var(--active-color);
}

.curriculum.active .card-sub {
  color: rgba(255, 255, 255, 0.9);
}

/* hover: background changes to blue */
/* --- FIXED HOVER EFFECT (No underline, icons visible, white text) --- */

.regulation:hover,
.curriculum:hover {
  background: var(--primary-blue);
  color: #fff !important;
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none !important; /* no underline */
}

/* Make sure all text inside turns white */
.regulation:hover .card-title,
.regulation:hover .card-sub,
.curriculum:hover .card-title,
.curriculum:hover .card-sub {
  color: #fff !important;
  text-decoration: none !important;
}

/* Keep icons visible and white */
.regulation:hover .icon-wrap,
.curriculum:hover .icon-wrap {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  text-decoration: none !important;
}

/* Right arrow stays white */
.regulation:hover .card-action,
.curriculum:hover .card-action {
  color: #fff !important;
  text-decoration: none !important;
}

/* Prevent link underline globally for cards */
.regulation,
.curriculum {
  text-decoration: none !important;
}


/* responsive layout */
@media screen and (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .regulation,
  .curriculum {
    padding: 14px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-sub {
    font-size: 12px;
  }
}
