* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: 0.3s all;
}

a{
    text-decoration: none;
}

/* nav */
:root {
  --brand-primary: #c42b29;
  --brand-secondary: #f8f9fa;
  --brand-accent: #bfa181;
  --text-dark: #333;
  --text-light: #6c757d;
  --gradient-primary: linear-gradient(
    45deg,
    var(--brand-primary),
    var(--text-dark)
  );
  --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #bfa181 100%);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
  background-color: #fdfdfd;
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
}

/* شريط التنقل */
.navbar {
  background: #343a40;
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
}

nav img {
  width: 200px;
}

.nav-link {
  font-weight: 500;
  color: var(--brand-secondary) !important;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary) !important;
}

nav .d-flex {
  gap: 5px;
}
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px #c42b2966;
}

.btn-outline-danger {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

/* dropdown profile */
.user-dropdown {
  display: flex;
  justify-content: center;
}
.user-dropdown figure {
  overflow: hidden;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  border: solid 3px var(--brand-primary);
}

.user-avatar {
  width: 100%;
  cursor: pointer;
}

/* Hide initially */
.animated-dropdown {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(75px);
  transition: all 0.25s ease-out;
  padding: 8px 0;
}

/* When hover: animate */
.user-dropdown:hover .animated-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(55px);
}
/* Optional: nicer shadow */
.animated-dropdown {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.dropdown-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.logout:hover {
  background-color: var(--brand-primary);
  color: #fff !important;
  opacity: 0.8;
}
.profile:hover {
  background-color: var(--brand-primary);
  color: #fff !important;
}

/* footer */
.main-footer {
  background: #343a40;
  color: white;
  padding: 3rem 0 1.5rem;
}

.main-footer img {
  width: 200px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--brand-primary);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #adb5bd;
}

/* تأثيرات */
.course-card,
.feature-card,
.community-card,
.internship-card,
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  padding: 20px;
}
.form-check {
  margin-top: 20px;
}
.form-section {
  margin-top: 20px;
}
.form-control:focus {
  border-color: var(--brand-primary);
}
.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
