* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: url("./assets/waves-background.webp"),
    radial-gradient(circle at center, #012f3d, #013a4b);
  background-blend-mode: multiply;
  background-attachment: fixed;
  background-size: 500px;
  background-repeat: repeat;

  color: #ebfffe;
  padding: 20px 20px 0 20px;
  text-align: center;
  position: relative;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.letter {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: auto;
  order: 1;
}

.ministry {
  width: 250px;
  height: auto;
}

.dots {
  width: 250px;
  height: auto;
}

.hero,
.bigbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  gap: 20px;
}

.hero img {
  width: 445px;
  height: auto;
  margin-bottom: 25px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero span {
  background-color: #ebfffe;
  height: 3px;
  width: 120px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 25px;
  font-weight: 700;
}

.bigbtn img {
  width: 400px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.bigbtn img:hover {
  transform: scale(1.05);
}

/*ribon*/
.social-sidebar {
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 640px;
  background: url("./assets/side.webp");
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
  gap: 70px;
  padding-top: 20px;
}

.logo img {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
}

.icons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  color: #ebfffe;
  font-size: 18px;
  transition: 0.3s;
  text-decoration: none;
}

.social-link:hover {
  color: #4adeca;
}

.subtitle {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 70px 15px 15px 15px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  background: #ebfffe;
  color: #363636;
  font-weight: 600;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab:hover:not(.active) {
  transform: translateY(-2px);
}

.tab.active {
  background: linear-gradient(225deg, #12a8cb 0%, #0bdebe 100%);
  color: #ebfffe;
  box-shadow: 0 0 15px rgba(11, 222, 190, 0.4);
  border: none;
  transition: all 0.3s ease;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 0 auto;
}

.card {
  flex: 0 1 280px;
  min-width: 250px;
  background: #ebfffe33;
  border-radius: 14px;
  padding: 15px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(74, 222, 202, 0.2);
}

.card h3 {
  color: #0bdebe;
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  font-size: 13px;
  color: #ebfffe;
  margin-bottom: 8px;
}

.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4757;
  color: #ebfffe;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  animation: blink 6s infinite;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  margin: 2px;
}

.badge-mode {
  background-color: #ebfffe15;
  color: #0bdebe;
  font-weight: bold;
}

.badge-duration {
  background: rgba(255, 255, 255, 0.1);
  color: #ebfffe;
}

.badge-cert {
  background: rgba(74, 222, 202, 0.1);
  color: #ebfffe;
}

.button-link {
  margin-top: 10px;
  padding: 8px 15px;
  background: #ebfffe;
  color: #363636;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.button-link:hover {
  background: linear-gradient(225deg, #12a8cb 0%, #0bdebe 100%);
  color: #ebfffe;
  box-shadow: 0 0 15px rgba(11, 222, 190, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    /* ADD */
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

footer {
  margin-top: 70px;
  padding: 40px 20px 20px 20px;
  background: #ebfffe;
  border-radius: 20px 20px 0 0;
  text-align: center;
  color: #0d2b2b;
  z-index: 9999;
}

.footer-credits strong {
  color: #1b4d4d;
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.names-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.name-tag {
  background: #f0f4f4;
  color: #1b4d4d;
  padding: 5px 15px;
  border-radius: 50px;
  border: 1px solid #1b4d4d;
  font-size: 13px;
  font-weight: 600;
  min-width: 139px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.name-tag:hover {
  background: #1b4d4d;
  color: #ebfffe;
}

.copyright {
  margin-top: 30px;
  font-size: 16px;
}

/* Hide the mobile footer by default on desktop */
.footer-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-mobile-logo img {
  width: 80px;
  height: auto;
  /* Your existing color filter */
  filter: brightness(0) saturate(100%) invert(24%) sepia(18%) saturate(1453%) hue-rotate(133deg) brightness(93%) contrast(91%);

  /* The Fade settings */
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Added a tiny transform for feel */
  cursor: pointer;
  opacity: 1;
}

.footer-mobile-logo img:hover {
  opacity: 0.7;
  /* This creates the fade effect */
}

.footer-mobile-social {
  display: flex;
  gap: 25px;
  font-size: 24px;
}

.footer-mobile-social a {
  color: #1b4d4d;
  /* Matches your requested color */
  transition: 0.3s;
}

.footer-mobile-social a:hover {
  color: #1b4d4d9f;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #12a8cb, #0bdebe);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0bdebe, #12a8cb);
}

/* --- Responsive Logic --- */

@media (max-width: 1024px) {

  .social-sidebar,
  .letter {
    display: none;
  }

  .footer-mobile {
    display: flex;
  }
}

@media (max-width: 768px) {
  .card {
    flex: 0 1 75%;
    max-width: 400px;
  }

  .card:hover {
    transform: none;
  }

  .hero img {
    width: 80%;
  }

  .bigbtn img {
    width: 80%;
  }
}

@media (max-width: 425px) {
  .ministry {
    width: 180px;
  }

  .dots {
    width: 180px;
  }

  .tabs {
    gap: 5px;
  }

  .tab {
    padding: 8px 12px;
    font-size: 14px;
  }
}