/********** Template CSS **********/
:root {
  --primary: #fed700;
  --secondary: #999999;
  --light: #f2f8fe;
  --dark: #082e44;
  /* --dark: #3030d0; */
  --line: #cccfd4;
  --border: rgba(255, 255, 255, 0.18);
}
@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakwaty-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakwaty-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakwaty-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakwaty-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakwaty-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSHakawty";
  src: url("../fonts/TSHakawty-Black.woff2")  format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;

}


* {
  font-family: "TSHakawty", sans-serif !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 60px;
  z-index: 99;
}
.text-right{
  text-align: right;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-weight: 500 !important;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Noto Sans Arabic", Tahoma, Arial, sans-serif !important;
  /* color: var(--ink); background:#fff;  */
  line-height: 1.65;
}

/* Sparkles (brand yellow) */
.hero-sparkles .sp {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
  animation: twinkle 4s infinite ease-in-out;
}
.hero-sparkles .s1 {
  left: 25%;
  top: 20%;
  animation-delay: 0.2s;
}
.hero-sparkles .s2 {
  right: 12%;
  top: 40%;
  animation-delay: 0.6s;
}
.hero-sparkles .s3 {
  left: 10%;
  bottom: 30%;
  animation-delay: 1s;
}
@keyframes twinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--dark);
  text-decoration: none;
  background: #fff;
  font-weight: 800;
  transition: 0.5s;
}

.primary {
  color: #ffffff;
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.bg-dark {
  background-color: var(--dark) !important;
}
.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(8, 46, 68, 0.1) !important;
}

.text-justify {
  text-align: justify !important;
}
.txt-dark {
  color: var(--dark);
}
/*** Navbar ***/
.title-logo {
  color: var(--dark);
  font-weight: 800;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

.navbar-light {
  border-bottom: 1px solid #e7eef3;
}
.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-brand {
  height: 75px;
}
.nav-link,
.year {
  color: #fed700;
}
.nav-link:hover {
  color: #082e44;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

.navbar .btn:hover {
  color: #ffffff !important;
  background: var(--primary) !important;
}

/*** Header ***/
.hero-header {
  border-bottom: 1px solid #e4e4e4;
}
.hero-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary);
}

.highlight {
  background: linear-gradient(90deg, var(--dark), #334155);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.highlight .container {
  text-align: center;
  color: #eaf2ff;
  font-weight: 600;
}
.highlight p {
  padding: 10px;
}
.date-badge {
  font-weight: 600;
  color: #334155;
  font-size: 16px;
}

.ceo {
  color: var(--dark);
}
/*** Terms***/
/* .terms{background: #fafbfc;} */
.cards {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px !important;
}
.card {
  padding: 20px;
  border: none;
}
.list {
  margin: 0;
  padding-left: 18px;
}
.list li {
  margin: 8px 0;
  font-size: 14px;
  color: #6c7393;
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--secondary);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--secondary);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.footer .btn.btn-square:hover {
  color: #ffffff;
  background: var(--primary);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.footer .copyright a {
  color: var(--primary);
}

.footer .copyright a:hover {
  color: var(--dark);
}

.grades-section {
  background: var(--dark);
  /* background: linear-gradient(180deg, #F2F8FE 0%, #FFFFFF 100%);; */
}

.grade-box {
  width: 100%;
  border-radius: 20px;
  padding-top: 20px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
  margin: 0 auto;
  transition: height 1.2s ease-out;
  height: 0;
  overflow: hidden;
}

.grade-box span {
  font-size: 18px;
  font-weight: 400;
}

/* Colors */

.g8 {
  background: #72b3d9;
}
.g9 {
  background: #0071bd;
}
.g10 {
  background: #3030d0;
}
.g11 {
  background: #fed700;
}

.bar.show {
  height: var(--height);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.criterion {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.ring {
  --p: 0;
  width: 130px;
  height: 130px;
  margin: 6px auto 12px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) calc(var(--p) * 1%),
    rgba(2, 6, 23, 0.06) 0
  );
  display: grid;
  place-items: center;
  position: relative;
  transition: --p 1.5s ease-in-out;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.ring span {
  position: relative;
  z-index: 1;
  color: var(--secondary);
  font-weight: 900;
}
.criterion h3,
.ring span {
  color: var(--dark);
}
.judging {
  background: #f7f7f7 !important;
}
.timeline {
  position: relative;
  margin: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), transparent);
}
.tl-item {
  position: relative;
  padding-left: 60px;
  margin: 22px 0;
}
.tl-dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.25);
  animation: pulse1 2s infinite;
}
@keyframes pulse1 {
  0% {
    box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 212, 0, 0.12);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.25);
  }
}
.tl-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.tl-date {
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}
.step-num {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
}

.science-award-section {
  padding: 120px 0;
  background: #fff;
  text-align: center;
}

.award-wrapper {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}

.award-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

/* Glow */
.glow {
  fill: #fed700;
  filter: blur(20px);
  opacity: 0;
  animation: glow 2s ease forwards;
}

/* Trophy */
.trophy {
  position: relative;
  z-index: 2;
  transform-origin: center;
  transform: scale(0.6) translateY(60px);
  animation: trophy-in 1.4s ease forwards;
}

/* Words */
.word-najm,
.word-oloom {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: text-in 1s ease forwards;
}

.word-najm {
  animation-delay: 0.9s;
}
.word-oloom {
  animation-delay: 1.2s;
}

/* Prevent animation before scroll */
.award-wrapper:not(.show) * {
  animation: none;
}

@keyframes trophy-in {
  to {
    transform: scale(1) translateY(0);
  }
}

@keyframes glow {
  to {
    opacity: 0.9;
  }
}

@keyframes text-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
