/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL PARAMETERS */
body {
  font-family: "proxima-nova", sans-serif;
  overflow-x: hidden;
}

/* Global Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fbf89f;
}

/* HEADER STYLES */
header {
  /* background-color: #fbf89f; */
  background-color: transparent;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
}

header ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

.login-btn {
  background-color: transparent;
  border: 1px solid #000;
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-right: 50px;
  margin-top: 40px;
  font-size: 30px;
}

.login-btn:hover {
  background-color: #2e6df6;
  border: none;
}

header .logo {
  cursor: pointer;
  margin-left: 80px;
  margin-top: 40px;
}

/* NAVIGATION LINK STYLES */
nav {
  margin-left: -100px;
}

.nav-link li {
  padding: 0 10px;
}

.nav-link li a {
  transition: color 0.3s ease;
}

.nav-link li a:hover {
  color: #306ff6;
  font-weight: 500;
}

/* NAVIGATION DROP DOWN */
.drop-down {
  position: absolute;
  padding: 0.5rem 0;
  background: white;
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 20px;
  display: none;
  z-index: 100;
  width: max-content;
  text-align: left;
}

.services:hover .drop-down {
  display: block;
}

.services {
  position: relative;
}

.services a,
.drop-down li {
  padding: 10px 20px;
}

.drop-down li:hover {
  background: #fffed5;
  border-radius: 0.5rem;
}

.services:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-icon {
  margin-left: -22px;
}

/* Login Card */
.login-card {
  width: 500px;
  background: rgba(255, 255, 255, 0.5);
  padding: 4rem;
  border-radius: 10px;
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(45, 44, 44, 0.208);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: rotate(-6deg);
  border-radius: 10px;
  z-index: -1;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 20px;
}

/* Grid Layout for Courses */
.courses-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 100px;
}

.group1 {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.group2 {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}
.group3 {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.group4 {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.container h1 {
  font-size: 62px;
  margin-top: 70px;
}

/* Dialog Trigger */
.dialog-trigger {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dialog-trigger:hover {
  transform: scale(1.05);
}

.dialog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dialog-info {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background-color: white;
}

.dialog-title {
  font-size: 1.25rem;
  color: #333;
}

.dialog-subtitle {
  font-size: 0.875rem;
  color: #666;
}

.dialog-button {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dialog-button:hover {
  color: #007bff;
}

/* Dialog Container */
.dialog-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.dialog-content {
  background-color: white;
  padding: 16px;
  border-radius: 25px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: zoomIn 0.3s ease-out;
}

.dialog-text {
  padding: 16px;
}

.dialog-description {
  color: #333;
  margin-top: 8px;
}

.dialog-link {
  display: block;
  margin-top: 8px;
  color: #007bff;
  text-decoration: underline;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}

.dialog-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dialog-content {
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dialog-title {
  font-size: 1.5rem;
}

.dialog-subtitle {
  font-size: 1rem;
}

.dialog-link {
  display: block;
  margin-top: 8px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dialog-link:hover {
  color: #0056b3;
}

.dialog-close {
  position: absolute;
  top: 3px;
  right: 7px;
  font-size: 1.7rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.dialog-close:hover {
  color: #ff0000;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}
