/* التنسيقات العامة */
:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --accent-color: #ff7e5f;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --whatsapp-color: #25d366;
}

body {
  font-family: "Tajawal", sans-serif;
  color: var(--text-color);
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* تخصيص شريط التمرير */
body::-webkit-scrollbar {
  width: 10px !important;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(59, 59, 59, 0.58) !important;
  border-radius: 50px !important;
}

body::-webkit-scrollbar-track {
  background-color: rgb(209, 208, 208) !important;
  border-radius: 50px !important;
}

/* الهيدر المعدل */
.header-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.navbar {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(5px);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8) !important;
  transition: background 0.3s ease;
}

.navbar-brand.logo {
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-text {
  position: relative;
  color: white !important;
  padding: 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text::before,
.logo-text::after {
  content: "✧";
  position: absolute;
  color: var(--accent-color);
  font-size: 1.2rem;
  animation: spin 4s linear infinite;
}

.logo-text::before {
  left: -5px;
  top: -10px;
}

.logo-text::after {
  right: -5px;
  bottom: -10px;
  animation-delay: 1s;
}

.logo-decoration {
  margin-right: 10px;
  animation: bounce 2s infinite;
}

.navbar-toggler {
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link.active {
  color: white !important;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-content {
  padding: 3rem 0;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.header-text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.header-img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  transform: rotate(180deg);
}

/* قسم المدرس */
.teacher-section {
  background-color: white;
  padding: 4rem 0;
  position: relative;
}

.teacher-container {
  max-width: 1200px;
  margin: 0 auto;
}

.teacher-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.teacher-img-container {
  position: relative;
  padding: 20px;
  text-align: center;
}

.teacher-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.teacher-img:hover {
  transform: scale(1.05);
}

.teacher-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-name {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.teacher-subject {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.teacher-details {
  margin-bottom: 20px;
}

.teacher-details p {
  margin-bottom: 10px;
  padding-right: 25px;
  position: relative;
}

.teacher-details i {
  position: absolute;
  right: 0;
  top: 5px;
  color: var(--primary-color);
}

.teacher-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.teacher-contact .btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.teacher-contact .btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: white;
}

.teacher-contact .btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.teacher-contact .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.teacher-contact .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

/* المحتوى الرئيسي */
.main-content {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.highlight {
  /* color: var(--primary-color); */
  color: white;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  bottom: 5px;
  left: 0;
  /* background-color: rgba(78, 84, 200, 0.2); */
  background-color: rgba(255, 255, 255, 0.3);
  z-index: -1;
  border-radius: 5px;
}

.buttons-row {
  margin-top: 3rem;
}

.button-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  background-color: white;
  overflow: hidden;
  position: relative;
}

.button-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.button-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
  transition: all 0.3s ease;
}

.button-card:hover .icon-circle {
  transform: rotate(360deg);
  box-shadow: 0 8px 25px rgba(78, 84, 200, 0.4);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
}

/* الفوتر */
.footer-section {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 0;
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-logo::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -5px;
  right: 0;
  background: var(--accent-color);
  border-radius: 3px;
}

.footer-about {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 15px;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-right: 25px;
}

.footer-links a:hover::before {
  opacity: 1;
  right: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

.whatsapp-icon {
  background-color: var(--whatsapp-color) !important;
}

.whatsapp-icon:hover {
  background-color: #128c7e !important;
}

.facebook-icon {
  background-color: #3b5998 !important;
}

.youtube-icon {
  background-color: #ff0000 !important;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

/* تأثيرات الحركة */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* التجاوب مع أحجام الشاشات */
@media (max-width: 1200px) {
  .teacher-container,
  .footer-container {
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  .header-title {
    font-size: 2rem;
  }

  .header-text {
    font-size: 1rem;
  }

  .teacher-card {
    flex-direction: column;
  }

  .teacher-img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar-brand.logo {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 2rem 0;
    text-align: center;
  }

  .header-title {
    font-size: 1.8rem;
  }

  .main-content {
    padding: 3rem 0;
  }

  .teacher-section {
    padding: 3rem 0;
  }

  .teacher-img {
    width: 300px;
    height: 300px;
  }

  .teacher-name {
    font-size: 1.5rem;
  }

  .teacher-subject {
    font-size: 1.1rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-heading::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-logo::after {
    right: 50%;
    transform: translateX(50%);
  }

  .social-icons {
    justify-content: center;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
  }
}

@media (max-width: 576px) {
  .header-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .teacher-contact {
    flex-direction: column;
    align-items: center;
  }

  .teacher-contact .btn {
    width: 100%;
    max-width: 250px;
  }
}
/* تنسيقات البطاقات الديناميكية */
.card.button-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.card.button-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* التأثيرات عند التحويم */
.btn-primary.rounded-pill {
  transition: all 0.3s;
  padding: 8px 25px;
}

.btn-primary.rounded-pill:hover {
  background-color: #0d6efd;
  transform: scale(1.05);
}

/* أنماط قسم الفيديوهات */
.videos-section {
  background-color: #f8f9fa;
  min-height: 60vh;
}

.video-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-title {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.video-description {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* أنماط التنبيه عند عدم وجود فيديوهات */
.alert-info {
  background-color: #e8f4fd;
  border-color: #b8dff8;
  color: #0c5460;
  border-radius: 8px;
}
