/* =============================================
   Pure CSS Icon System
   Zero-dependency icons using CSS shapes, masks
   and pseudo-elements.
   ============================================= */

/* --- Base icon container --- */
.css-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* --- Size variants --- */
.css-icon--sm  { width: 16px; height: 16px; }
.css-icon--md  { width: 24px; height: 24px; }
.css-icon--lg  { width: 28px; height: 28px; }

/* ============================
   BRAND / GRADUATION CAP
   ============================ */
.css-icon--grad-cap {
  width: 24px;
  height: 24px;
}

.css-icon--grad-cap::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 15%;
  left: 0;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 40%, 80% 50%, 80% 85%, 50% 100%, 20% 85%, 20% 50%, 0% 40%);
}

.css-icon--grad-cap::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 40%;
  background: currentColor;
  right: 10%;
  bottom: 5%;
  border-radius: 0 0 2px 2px;
}

/* ============================
   SEARCH / MAGNIFYING GLASS
   ============================ */
.css-icon--search {
  width: 20px;
  height: 20px;
}

.css-icon--search::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  border: 2.5px solid currentColor;
  border-radius: 999px;
  top: 5%;
  left: 5%;
}

.css-icon--search::after {
  content: "";
  position: absolute;
  width: 2.5px;
  height: 35%;
  background: currentColor;
  border-radius: 2px;
  bottom: 4%;
  right: 14%;
  transform: rotate(-45deg);
  transform-origin: top center;
}

/* ============================
   STAR (award / excellence)
   ============================ */
.css-icon--star {
  width: 20px;
  height: 20px;
}

.css-icon--star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============================
   USERS / PEOPLE GROUP
   ============================ */
.css-icon--users {
  width: 28px;
  height: 28px;
}

.css-icon--users::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 999px;
  background: currentColor;
  top: 8%;
  left: 18%;
}

.css-icon--users::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 32%;
  background: currentColor;
  border-radius: 999px 999px 0 0;
  bottom: 10%;
  left: 5%;
}

/* ============================
   BOOK OPEN
   ============================ */
.css-icon--book {
  width: 28px;
  height: 28px;
}

.css-icon--book::before {
  content: "";
  position: absolute;
  width: 43%;
  height: 68%;
  border: 2.5px solid currentColor;
  border-right: none;
  border-radius: 4px 0 0 4px;
  top: 16%;
  left: 7%;
}

.css-icon--book::after {
  content: "";
  position: absolute;
  width: 43%;
  height: 68%;
  border: 2.5px solid currentColor;
  border-left: none;
  border-radius: 0 4px 4px 0;
  top: 16%;
  right: 7%;
}

/* ============================
   CHECK CIRCLE
   ============================ */
.css-icon--check-circle {
  width: 28px;
  height: 28px;
}

.css-icon--check-circle::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2.5px solid currentColor;
  border-radius: 999px;
}

.css-icon--check-circle::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 18%;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  top: 38%;
  left: 28%;
  transform: rotate(-45deg);
}

/* ============================
   CLOCK (events time)
   ============================ */
.css-icon--clock {
  width: 14px;
  height: 14px;
}

.css-icon--clock::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.css-icon--clock::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 30%;
  background: currentColor;
  top: 22%;
  left: calc(50% - 1px);
  transform-origin: bottom center;
  box-shadow: 3px 4px 0 0 currentColor;
}

/* ============================
   FEATURE ICONS
   ============================ */

/* Expert Faculty - Dollar/person icon */
.css-icon--faculty {
  width: 24px;
  height: 24px;
}

.css-icon--faculty::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 999px;
  background: currentColor;
  top: 5%;
  left: 29%;
}

.css-icon--faculty::after {
  content: "";
  position: absolute;
  width: 72%;
  height: 32%;
  background: currentColor;
  border-radius: 999px 999px 0 0;
  bottom: 8%;
  left: 14%;
}

/* Holistic Learning - Heart/pulse */
.css-icon--pulse {
  width: 24px;
  height: 24px;
}

.css-icon--pulse::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2.5px;
  background: currentColor;
  top: 50%;
  left: 0;
  clip-path: polygon(0% 50%, 25% 50%, 35% 10%, 45% 90%, 55% 30%, 65% 60%, 75% 50%, 100% 50%);
  transform: scaleY(8);
}

/* Modern Facilities - Grid/dashboard */
.css-icon--grid {
  width: 24px;
  height: 24px;
}

.css-icon--grid::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 55%;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  top: 10%;
  left: 10%;
}

.css-icon--grid::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 35%;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  top: 10%;
  right: 10%;
  box-shadow: 0 calc(35% + 8px) 0 0 currentColor;
}

/* Activities - Shield */
.css-icon--shield {
  width: 24px;
  height: 24px;
}

.css-icon--shield::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: currentColor;
  clip-path: polygon(50% 5%, 95% 20%, 95% 55%, 50% 95%, 5% 55%, 5% 20%);
}

/* Safe Environment - Lock */
.css-icon--lock {
  width: 24px;
  height: 24px;
}

.css-icon--lock::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 35%;
  border: 2.5px solid currentColor;
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  top: 10%;
  left: 25%;
}

.css-icon--lock::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 45%;
  background: currentColor;
  border-radius: 4px;
  bottom: 8%;
  left: 17.5%;
}

/* ============================
   SOCIAL ICONS (footer)
   ============================ */

/* Facebook */
.css-icon--facebook {
  width: 20px;
  height: 20px;
}

.css-icon--facebook::before {
  content: "f";
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: currentColor;
  line-height: 1;
}

/* LinkedIn */
.css-icon--linkedin {
  width: 20px;
  height: 20px;
}

.css-icon--linkedin::before {
  content: "in";
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: currentColor;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* Instagram */
.css-icon--instagram {
  width: 20px;
  height: 20px;
}

.css-icon--instagram::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 2.5px solid currentColor;
  border-radius: 5px;
}

.css-icon--instagram::after {
  content: "";
  position: absolute;
  width: 36%;
  height: 36%;
  border: 2.5px solid currentColor;
  border-radius: 999px;
  top: 32%;
  left: 32%;
}

/* YouTube */
.css-icon--youtube {
  width: 20px;
  height: 20px;
}

.css-icon--youtube::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 60%;
  background: currentColor;
  border-radius: 5px;
  top: 20%;
  left: 7.5%;
}

.css-icon--youtube::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid var(--bg-start, #060b18);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  top: calc(50% - 5px);
  left: calc(50% - 2px);
  transition: border-color 0.25s ease;
}

.social-row a:hover .css-icon--youtube::after {
  border-left-color: white;
}

/* ============================
   GRADUATION CAP (stat variant)
   Uses same shape scaled to 28px
   ============================ */
.css-icon--grad-cap-lg {
  width: 28px;
  height: 28px;
}

.css-icon--grad-cap-lg::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 15%;
  left: 0;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 40%, 80% 50%, 80% 85%, 50% 100%, 20% 85%, 20% 50%, 0% 40%);
}

.css-icon--grad-cap-lg::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 40%;
  background: currentColor;
  right: 10%;
  bottom: 5%;
  border-radius: 0 0 2px 2px;
}
