/* ================= Hero Section ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 50px;
  gap: 50px;
  flex-wrap: wrap; /* عشان يكون ريسبونسف */
  background: linear-gradient(to bottom, #ffc0cb 50%, #ffffff 50%); /* يتماشى مع الخلفية */
  margin-top: 50px;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero-left h1 {
  font-size: 48px;
  color: #c2185b; /* dark pink */
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-left p {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.7;
}

.hero-left button{
    background-color: #c2185b;
    color: white;
    font-weight: bold;
    width: 200px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.299);
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.hero-left button:hover{
    background-color:rgba(0, 0, 0, 0.299) ;
    box-shadow: 10px 10px #c2185b;
    transition: 1s;
}

.hero-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-right img {
  max-width: 100%;
  border-radius: 50%;
  border: #c2185b 2px solid;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ================= Responsive Hero ================= */
@media (max-width: 900px) {
  .hero {
    padding: 60px 30px;
    gap: 30px;
  }

  .hero-left h1 {
    font-size: 36px;
  }

  .hero-left p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 28px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-right img {
    width: 90%;
  }
}



/* ================= Features Section ================= */
.features {
  padding: 80px 40px;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #c2185b;
  margin-bottom: 60px;
}

/* Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Feature Box */
.feature-box {
  background: #fff5f7;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.feature-box.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-box img {
  width: 70px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  color: #d81b60;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* مميز */
.feature-box.highlight {
  background: linear-gradient(135deg, #f48fb1, #fce4ec);
}

/* Responsive */
@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }
}



/* ================= About Section ================= */
.about {
  padding: 100px 40px;
  background: linear-gradient(to bottom, #ffffff, #fff0f5);
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* ================= Image & Spinner ================= */
.about-image {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Spinner */
.spinner {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 4px dashed #d81b60;
  animation: spin 10s linear infinite;
  z-index: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= Content ================= */
.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  font-size: 38px;
  color: #c2185b;
  margin-bottom: 25px;
}

.about-content p {
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-content strong {
  color: #d81b60;
}

.highlight-text {
  font-size: 18px;
  font-weight: 600;
  color: #880e4f;
  background: #ffe4ec;
  padding: 15px 20px;
  border-radius: 16px;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .about-container {
    gap: 40px;
  }

  .about-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 240px;
    height: 240px;
  }

  .about-content h2 {
    font-size: 28px;
  }
}


/* ================= Stages Section ================= */
.stages {
  padding: 80px 40px;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #c2185b;
  margin-bottom: 60px;
}

/* Grid */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* Card */
.stage-card {
  background: #fff5f7;
  border-radius: 22px;
  padding: 35px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.stage-card.show {
  opacity: 1;
  transform: translateY(0);
}

.stage-card img {
  width: 70px;
  margin-bottom: 20px;
}

.stage-card h3 {
  font-size: 20px;
  color: #d81b60;
  margin-bottom: 10px;
}

.stage-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* مميز */
.stage-card.highlight {
  background: linear-gradient(135deg, #f48fb1, #fce4ec);
}

/* Responsive */
@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }
}


/* ================= Courses Section ================= */
.courses {
  padding: 90px 40px;
  background: linear-gradient(to bottom, #fff, #fff0f5);
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #c2185b;
  margin-bottom: 60px;
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

/* Card */
.course-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.course-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Image + Frame */
.course-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #f48fb1;
}

.course-image img {
  width: 100%;
  display: block;
}

/* Course title box */
.course-title {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(216, 27, 96, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Button */
.join-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(to left, #d81b60, #f48fb1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.35);
}

/* Highlight card */
.course-card.highlight {
  border: 2px solid #d81b60;
}

/* Responsive */
@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }
}



/* ================= AI Button ================= */
.ai-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d81b60, #f48fb1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(216,27,96,0.4);
  z-index: 200;
  transition: 0.3s ease;

  display: none;
}

.ai-btn:hover {
  transform: scale(1.08);
}

/* ================= AI Chat Box ================= */
.ai-chat {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}

/* Header */
.ai-header {
  background: #d81b60;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.ai-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Body */
.ai-body {
  flex: 1;
  padding: 15px;
  background: #fff5f7;
  overflow-y: auto;
}

.ai-message {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 85%;
}

.ai-message.bot {
  background: #ffe4ec;
  color: #880e4f;
  align-self: flex-start;
}

/* Footer */
.ai-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
}

.ai-footer input {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
}

.ai-footer button {
  background: #d81b60;
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
}

/* ================= Responsive ================= */
@media (max-width: 500px) {
  .ai-chat {
    width: 90%;
    right: 5%;
  }
}


