.course-main-content {
  min-height: 60vh;
  padding: 60px 24px 40px;
  background: var(--learnsimply-dark-bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 80px;
}

.course-main-content .container{
      gap: 20px;
    display: flex;
    flex-direction: column;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.course-page {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  align-items: flex-start;
}

/* Course content */
.course-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

/* First row - rating and students */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.info-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Course badge */
.course-badge {
  background: rgba(64, 119, 243, 0.05);
  color: #4077f3;
  padding: 10px 15px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  height: fit-content;
}

/* Students count */
.students-count {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #303338;
  padding: 5px 10px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: fit-content;
}

.students-count-text {
  color: #999eb2;
  font-size: 16px;
}

/* Students avatars */
.students-avatars {
  display: flex;
  align-items: center;
  position: relative;
  direction: ltr;
}

.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2px solid #1a1d24;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-badge {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #ffce31;
  border: 2px solid #26292e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: white;
  margin-left: -10px;
}

/* Rating */
.rating-badge {
  background: rgba(255, 187, 84, 0.05);
  padding: 5px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: fit-content;
}

.rating-text {
  color: #ffbb54;
  font-size: 14px;
  line-height: 2;
}

.star-icon {
  width: 24px;
  height: 24px;
}

/* Course title */
.course-title {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
  width: 100%;
}

/* Course description */
.course-description {
  font-size: 18px;
  line-height: 2;
  text-align: right;
  width: 100%;
  color: #ffffff;
  font-weight: 400;
}

/* ===== Add Review Section (global styles) ===== */
.add-review-section {
  margin-top: 40px;
  margin-bottom: 32px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.add-review-section .card-content {
  padding: 20px;
}

.add-review-section .section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.add-review-section .section-title {
  color: #ffffff;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.add-review-section .add-review-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

.add-review-section .comment-form-rating label,
.add-review-section .comment-form-comment label {
  color: #e5e7eb;
  font-family: "Graphik Arabic";
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.add-review-section .comment-form-rating {
  margin-bottom: 14px;
}

.add-review-section p.stars {
  display: inline-flex;
  gap: 6px;
}

.add-review-section p.stars a {
  position: relative;
  width: 1.6em;
  height: 1.6em;
  text-indent: -9999px;
  display: inline-block;
  cursor: pointer;
}

.add-review-section p.stars a::before {
  content: "☆";
  position: absolute;
  inset: 0;
  text-indent: 0;
  text-align: center;
  line-height: 1.6em;
  font-size: 22px;
  color: #9ca3af;
}

.add-review-section p.stars a.is-active::before,
.add-review-section p.stars a:hover::before {
  content: "★";
  color: #fbbf24;
}

.add-review-section input[type="text"],
.add-review-section input[type="email"],
.add-review-section textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  color: #f9fafb;
  font-family: "Graphik Arabic";
  font-size: 14px;
}

.add-review-section textarea {
  min-height: 90px;
}

.add-review-section input[type="submit"],
.add-review-section .submit {
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4077f3, #60a5fa);
  border: none;
  padding: 10px 26px;
  color: #fff;
  font-family: "Graphik Arabic";
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-review-section input[type="submit"]:hover,
.add-review-section .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

/* Loading state for review submit button */
.add-review-section .submit.is-loading,
.add-review-section input[type="submit"].is-loading {
  position: relative;
  opacity: 0.85;
}

.add-review-section .submit.is-loading::after,
.add-review-section input[type="submit"].is-loading::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  transform: translateY(-50%);
  animation: learnsimply-spin 0.8s linear infinite;
}

@keyframes learnsimply-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Responsive for small screens */
@media (max-width: 768px) {
  /* .course-image {
    height: 300px;
  } */

  .course-title {
    font-size: 24px;
  }

  .course-description {
    font-size: 16px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-end;
  }

  .info-left {
 
    align-items: flex-end;
    width: 100%;
  }

  .students-count {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===================================
   Course Page Responsive Styles
   =================================== */

/* Container responsive */
@media (max-width: 1500px) {
  .container {
    max-width: 100%;
    padding: 0 40px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .course-page {
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .course-page {
    flex-direction: column;
    gap: 30px;
  }

  .course-details-card {
    max-width: 100% !important;
    order: 2;
  }

  .course-info-section {
    order: 1;
    width: 100%;
  }

  .single-course-image img {
    /* height: 450px; */
  }

  .instructor-card {
   
    max-width: 100%;
  }

  .description-card {

    max-width: 100%;
  }

  .learning-card {
 
    max-width: 100%;
  }

  .course-content-card {
   
    max-width: 100%;
  }

  .reviews-section {
    margin-left: 0;
    max-width: 100%;
  }

/* ===== Add Review Section (above reviews-section) ===== */
.add-review-section {
  margin-top: 40px;
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
      135deg,
      rgba(64, 119, 243, 0.06),
      rgba(18, 24, 40, 0.95)
    );
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.add-review-section .card-content {
  padding: 0;
}

.add-review-section .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.add-review-section .section-title {
  color: #e5e7eb;
  font-family: "Graphik Arabic";
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
}

.add-review-section .add-review-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 20px 20px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.add-review-section .comment-form-rating label,
.add-review-section .comment-form-comment label {
  color: #e5e7eb;
  font-family: "Graphik Arabic";
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.add-review-section .stars a {
  color: #fbbf24;
}

.add-review-section input[type="text"],
.add-review-section input[type="email"],
.add-review-section textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  color: #f9fafb;
  font-family: "Graphik Arabic";
  font-size: 14px;
}

.add-review-section textarea {
  min-height: 90px;
}

.add-review-section input[type="submit"],
.add-review-section .submit {
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4077f3, #60a5fa);
  border: none;
  padding: 10px 26px;
  color: #fff;
  font-family: "Graphik Arabic";
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-review-section input[type="submit"]:hover,
.add-review-section .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .course-main-content {
    margin-top: 70px;
    padding: 60px 0 30px !important;
  }

  .course-page {
    gap: 25px;
  }

  .single-course-image img {
    /* height: 350px; */
    border-radius: 15px;
  }

  .course-title {
    font-size: 24px;
  }

  .course-description {
    font-size: 16px;
    line-height: 1.8;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
  }

  .info-left {
 
    align-items: flex-end;
    width: 100%;
    gap: 10px;
  }

  .students-count {
    width: 100%;
    justify-content: space-between;
  }

  .course-badge {
    /* width: 100%; */
    justify-content: center;
  }

  .rating-badge {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .course-main-content {
    margin-top: 65px;
  }

  .single-course-image img {
    /* height: 280px; */
    border-radius: 12px;
  }

  .course-content {
    gap: 15px;
  }

  .course-title {
    font-size: 22px;
  }

  .course-description {
    font-size: 15px;
  }

  .students-count-text {
    font-size: 14px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .avatar-badge {
    width: 32px;
    height: 32px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .course-main-content {
    margin-top: 60px;
  }

  .single-course-image img {
    /* height: 220px; */
    border-radius: 10px;
  }

  .course-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .course-description {
    font-size: 14px;
    line-height: 1.7;
  }

  .course-badge {
    font-size: 16px;
    padding: 8px 12px;
  }

  .rating-text {
    font-size: 13px;
  }

  .star-icon {
    width: 20px;
    height: 20px;
  }
}

/* ===================================
   Course Details Card Styles
   =================================== */

/* Course details card */
.course-details-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #303338;
  border-radius: 20px;
  padding: 15px;
  max-width: 430px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
}

/* Top discount ribbon */
.discount-banner {
  background: rgba(255, 76, 81, 0.1);
  padding: 8px 10px;
  border-radius: 58px 58px 0 0;
  text-align: center;
  width: 90%;
  margin: 0 auto;
}

.discount-banner-text {
  color: #f9464b;
  font-size: 14px;
  font-weight: 500;
}

/* Stats box */
.stats-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  margin-top: -18px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-icon {
  width: 24px;
  height: 24px;
}

.stat-text {
  color: #999eb2;
  font-size: 16px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: #3a3d42;
}

/* Details box */
.details-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.detail-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.detail-label {
  color: #999eb2;
  font-size: 16px;
  font-weight: 500;
}

.detail-value {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 10px;
  color: #999eb2;
  font-size: 16px;
}

.detail-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Price box */
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 5px;
}

.current-price {
  color: #4077f3;
  font-size: 16px;
  font-weight: 600;
}

.old-price {
  color: #999eb2;
  font-size: 14px;
  text-decoration: line-through;
}

.discount-badge {
  background: rgba(254, 184, 114, 0.1);
  color: #feb872;
  padding: 5px 10px;
  border-radius: 58px;
  font-size: 14px;
  font-weight: 500;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 10px;
}

.buy-button {
  background: #4077f3;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  flex: 1;
  cursor: pointer;
  height: 48px;
  transition: background 0.3s;
}

.buy-button:hover {
  background: #3567e0;
}

.share-button {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  padding: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Features list */
.features-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-text {
  color: #999eb2;
  font-size: 16px;
  line-height: 2;
  flex: 1;
  text-align: right;
}

/* Right-hand section */
.course-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive - Course Details Card */
@media (max-width: 768px) {
  .course-details-card {
    padding: 12px;
    gap: 15px;
    border-radius: 16px;
    max-width: 100% !important;
  }

  .discount-banner {
    width: 95%;
    padding: 6px 8px;
  }

  .discount-banner-text {
    font-size: 13px;
  }

  .stats-box {
    padding: 8px 15px;
    gap: 20px;
  }

  .stat-text {
    font-size: 14px;
  }

  .detail-label,
  .detail-value {
    font-size: 14px;
  }

  .detail-value {
    padding: 8px 12px;
  }

  .current-price {
    font-size: 15px;
  }

  .old-price {
    font-size: 13px;
  }

  .feature-text {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .course-details-card {
    padding: 10px;
    gap: 12px;
    border-radius: 14px;
  }

  .stats-box {
    /* flex-direction: column; */
    gap: 15px;
    padding: 12px 15px;
  }

  .stat-divider {
    /* width: 100%; */
    /* height: 1px; */
  }

  .stat-item {
    /* flex-direction: row; */
    /* width: 100%; */
    justify-content: space-between;
  }

  .detail-content {

    gap: 8px;
  }

  .detail-value {
    /* width: 100%; */
    text-align: right;
  }

  .price-section {
   
    gap: 5px;
  }

  .course-page {
    flex-direction: column;
    gap: 30px;
  }

  .course-details-card {
    max-width: 100%;
  }

  .action-buttons {
    /* flex-direction: row; */
  }

  .buy-button {
    font-size: 14px;
    height: 44px;
  }

  .share-button {
    width: 44px;
    height: 44px;
  }
}

/* ===== END: Course Details Card Styles ===== */

.contact-section {
  background: var(--learnsimply-dark-bg);
  padding: 60px 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  width: 100%;
  max-width: 1474px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Header Section */
.contact-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.contact-title-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-icon-wrapper {
  width: 63px;
  height: 63px;
  flex-shrink: 0;
}

.contact-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-main-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 68px;
  color: white;
  text-align: center;
  letter-spacing: -1.2px;
  margin: 0;
}

.contact-subtitle {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 18px;
  line-height: 1.47;
  color: #999eb2;
  text-align: center;
  letter-spacing: -0.6px;
  max-width: 723px;
  padding: 0 16px;
  margin: 0;
}

/* Contact Cards */
.contact-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.contact-card {
  background: var(--learnsimply-card-bg);
  border: 1px solid var(--learnsimply-card-border);
  border-radius: 15px;
  position: relative;
  flex: 1;
  min-width: 0;
}

.contact-card-full {
  width: 100%;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  pointer-events: none;
}

.contact-card-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  width: 100%;
  height: 100%;
}

.contact-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;

}

.contact-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;

  min-width: 0;
}

.contact-card-title {
  font-family: "Graphik Arabic", "IBM Plex Sans Arabic", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  color: white;
  margin: 0;
}

.contact-card-description {
  font-family: "Graphik Arabic", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #999eb2;
  margin: 0;
}

.contact-card-icon-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;

border: 1px solid rgba(255, 255, 255, 0.10);
background: linear-gradient(131deg, rgba(100, 84, 213, 0.20) -66.81%, rgba(100, 84, 213, 0.00) 37.19%);
  border-radius: 15px;
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.contact-card-icon-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  pointer-events: none;
}

.contact-card-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-card-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-card-button {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-family: "Graphik Arabic", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content !important;
      background: #ffffff12;
}

.contact-card-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-cards-row {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-direction: column;
}

/* Responsive Design */
@media (min-width: 640px) {
  .contact-main-title {
    font-size: 50px;
  }

  .contact-card-header {
    flex-direction: row-reverse;
  }

 
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 80px 48px;
  }

  .contact-main-title {
    font-size: 60px;
  }

  .contact-subtitle {
    font-size: 20px;
  }

  .contact-cards-row {
    flex-direction: row;
  }

  .contact-card-button {
    padding: 12px 20px;
  }
}

/* ===================================
   Instructor Card Styles
   =================================== */

.instructor-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #303338;
  border-radius: 20px;
  padding: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1030px;
  gap: 20px;
  direction: rtl;
}

/* Right side - instructor info */
.instructor-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Instructor image */
.instructor-avatar {
  width: 50.25px;
  height: 50.25px;
  border-radius: 57.07px;
  background: linear-gradient(to bottom, #fdf6f0, white);
  border: 1px solid white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.instructor-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

/* Background effect circles */
.blur-circle {
  position: absolute;
  width: 33.34px;
  height: 33.34px;
  pointer-events: none;
}

.blur-circle-1 {
  left: -8.86px;
  top: 4.07px;
}

.blur-circle-2 {
  right: -6px;
  top: 16.73px;
}

/* Image */
.instructor-avatar img {
  position: relative;
  width: 58px;
  height: 51px;
  object-fit: cover;
  z-index: 1;
}

.instructor-name {
  font-size: 16px;
  color: white;
  line-height: 1.5;
  font-weight: 400;
}

.instructor-title {
  font-size: 14px;
  color: #9c9ca4;
  line-height: 1.5;
}

/* Experience badge */
.experience-badge {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.experience-text {
  font-size: 16px;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .instructor-card {
    
    gap: 15px;
    margin: 30px auto 0;
  }

  .experience-badge {
    
    text-align: center;
  }

  .instructor-info {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .instructor-info {
    flex-direction: row;
    gap: 8px;
  }

  .instructor-name {
    font-size: 14px;
  }

  .instructor-title {
    font-size: 12px;
  }

  .experience-text {
    font-size: 14px;
  }
}

/* ===== END: Instructor Card Styles ===== */

/* ===================================
   Course Description Card Styles
   =================================== */

.description-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 19px;
  max-width: 1030px;
  width: 100%;
  position: relative;
  height: 466px;
  overflow: hidden;
  direction: rtl;
}

/* Expanded state: allow full height and reveal content */
.description-card.expanded {
  height: auto;
  overflow: visible;
}

/* Keep the overlay visible when expanded but as a small transparent bar with the button */
.description-card.expanded .gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 80px; /* shrink the overlay to a small bar */
  background: linear-gradient(to bottom, rgba(22, 27, 38, 0) 0%, rgba(22, 27, 38, 0) 100%);
  border-radius: 0 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  pointer-events: all; /* allow clicks on the button */
}

/* Make the show-more button appear as a pill when expanded */
.description-card.expanded .show-more-btn {
  margin-top: 0;
  background: rgba(255,255,255,0.03);
  padding: 8px 14px;
  border-radius: 8px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

/* Section title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.section-icon-box {
  background: rgba(255, 255, 255, 0.05);
  width: 62px;
  height: 62px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: white;
}

/* Description text */
.description-text {
  font-size: 18px;
  line-height: 2;
  text-align: right;
  color: white;
  font-weight: 400;
}

.description-text p {
  margin-bottom: 1em;
}

.description-text p:last-child {
  margin-bottom: 0;
}

/* Bottom gradient */
.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 304px;
  background: linear-gradient(
    to bottom,
    rgba(22, 27, 38, 0) 0%,
    #161b26 55.858%
  );
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.show-more-btn {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: white;
  cursor: pointer;
  pointer-events: all;
  transition: opacity 0.3s;
  margin-top: 25%;
  text-align: right;
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  background: transparent;
}

.show-more-btn:hover {
  opacity: 0.8;
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .description-card {
    height: auto;
    min-height: 466px;
    margin: 20px 0 0 0;
  }

  .section-title {
    font-size: 20px;
  }

  .description-text {
    font-size: 16px;
  }

  .section-icon-box {
    width: 50px;
    height: 50px;
  }

  .show-more-btn {
    font-size: 18px;
  }

  .gradient-overlay {
    height: 250px;
  }

  .contact-card-text {
    
    align-items: start !important;
  }

  .learnsimply-homepage-body button {
    text-align: center !important;
  }
}

/* ===== END: Course Description Card Styles ===== */

/* ===== COURSE LEARNING CARD STYLES ===== */
.learning-card {
  max-width: 1030px;
  background: var(--learnsimply-card-bg);
  border: 1px solid var(--learnsimply-card-border);
  border-radius: var(--learnsimply-border-radius-md);
  padding: 32px;
  direction: rtl;
}

.learning-card .section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.learning-card .section-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--learnsimply-border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learning-card .section-icon-box svg {
  width: 33px;
  height: 33px;
}

.learning-card .section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--learnsimply-text-white);
  margin: 0;
  line-height: 1.2;
}

.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.learning-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.learning-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--learnsimply-border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--learnsimply-transition);
}

.learning-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.learning-text {
  font-size: 16px;
  color: var(--learnsimply-text-white);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== RESPONSIVE: Course Learning Card ===== */
@media (max-width: 1024px) {
  .learning-card {
    margin: 40px 0 0 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .learning-card {
    margin: 40px 0 0 0;
    padding: 24px;
  }

  .learning-card .section-title {
    font-size: 20px;
  }

  .learning-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .learning-item {
    padding: 12px;
    gap: 12px;
  }

  .learning-text {
    font-size: 14px;
  }

  .check-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .learning-card {
    margin: 30px 0 0 0;
    padding: 20px;
  }

  .learning-card .section-header {
    gap: 12px;
    margin-bottom: 24px;
  }

  .learning-card .section-icon-box {
    width: 48px;
    height: 48px;
  }

  .learning-card .section-icon-box svg {
    width: 28px;
    height: 28px;
  }

  .learning-card .section-title {
    font-size: 18px;
  }

  .learning-column {
    gap: 16px;
  }

  .learning-item {
    padding: 10px;
    gap: 10px;
  }

  .learning-text {
    font-size: 13px;
  }
}

/* ===== END: Course Learning Card Styles ===== */

/* ===== COURSE CONTENT CARD STYLES ===== */
.course-content-card {
  max-width: 1030px;
  background: var(--learnsimply-card-bg);
  border: 1px solid var(--learnsimply-card-border);
  border-radius: var(--learnsimply-border-radius-md);
  padding: 32px;
  direction: rtl;
}

.course-content-card .section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.course-content-card .section-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--learnsimply-border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-content-card .section-icon-box svg {
  width: 33px;
  height: 33px;
}

.course-content-card .section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--learnsimply-text-white);
  margin: 0;
  line-height: 1.2;
}

/* Weeks list */
.weeks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Single week */
.week-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.week-container.open {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px 20px 20px 20px;
}

.week-container:not(.open) {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.week-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.week-container.open .week-header {
  border-radius: 10px 10px 0 0;
}

.week-container:not(.open) .week-header {
  border-radius: 10px;
}

.week-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.week-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--learnsimply-text-white);
}

.week-meta {
  font-size: 14px;
  color: var(--learnsimply-text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 24px;
}

.week-meta span:nth-child(2) {
  font-size: 16px;
  line-height: 19px;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.week-container.open .arrow-icon {
  transform: rotate(180deg);
}

/* Hide lessons when week is collapsed */
.week-container:not(.open) .lectures-list {
  display: none;
}

/* Lessons */
.lectures-list {
  padding: 20px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lecture-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.lecture-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.lecture-title {
  font-size: 18px;
  line-height: 30px;
  text-align: right;
  color: var(--learnsimply-text-white);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lecture-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.lecture-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lecture-duration {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--learnsimply-text-gray);
  line-height: 24px;
}

.lock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE: Course Content Card ===== */
@media (max-width: 1024px) {
  .course-content-card {
    margin: 40px 0 0 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .course-content-card {
    margin: 40px 0 0 0;
    padding: 24px;
  }

  .course-content-card .section-title {
    font-size: 20px;
  }

  .course-content-card .section-icon-box {
    width: 50px;
    height: 50px;
  }

  .course-content-card .section-icon-box svg {
    width: 28px;
    height: 28px;
  }

  .lecture-item {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .lecture-content {
    width: 100%;
  }

  .lecture-right {
    width: 100%;
    justify-content: flex-end;
  }

  .lecture-title {
    font-size: 16px;
  }

  .week-title {
    font-size: 16px;
  }

  .week-meta {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .course-content-card {
    margin: 30px 0 0 0;
    padding: 20px;
  }

  .course-content-card .section-header {
    gap: 12px;
    margin-bottom: 24px;
  }

  .course-content-card .section-icon-box {
    width: 48px;
    height: 48px;
  }

  .course-content-card .section-icon-box svg {
    width: 26px;
    height: 26px;
  }

  .course-content-card .section-title {
    font-size: 18px;
  }

  .weeks-list {
    gap: 16px;
  }

  .week-header {
    padding: 16px;
  }

  .lecture-item {
    padding: 16px;
    gap: 12px;
  }

  .lecture-title {
    font-size: 14px;
    line-height: 24px;
  }

  .lecture-duration {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* ===== END: Course Content Card Styles ===== */

/* ===== START: Reviews Section Styles ===== */

/* Reviews Section Container */

@media (max-width: 1600px) {

.instructor-card {
  width: 100% !important;
  max-width: none;
}
.description-card {
  width: 100% !important;
  max-width: none;
}
.learning-card {
  width: 100% !important;
  max-width: none;
}
.course-content-card {
  width: 100% !important;
  max-width: none;
}
.reviews-section {
  width: 100% !important;
  max-width: none;
}
.instructor-card {
  width: 100% !important;
  max-width: none;
}
.package-content-card{
  width: 100% !important;
  max-width: none;
}

}

.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1030px;
  width: 100%;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

/* Ratings Overview */
.ratings-overview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ratings-overview-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  width: 100%;
}

.ratings-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.ratings-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  margin: 0;
  text-align: right;
}

.stars-icon {
  /* background: rgba(255, 255, 255, 0.05); */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
}

.stars-icon svg {
  width: 33px;
  height: 33px;
}

/* Ratings Content */
.ratings-content {
  display: flex;
  gap: 27px;
  align-items: center;
  padding: 0 20px 20px;
  position: relative;
  width: 100%;
  flex-direction: row-reverse;
}

.ratings-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 0;
  min-width: 0;
  position: relative;
}

.ratings-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  position: relative;
  width: 100%;
}

/* Rating Row */
.rating-row {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.stars-group {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
}

.star-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.star-icon.filled path {
  fill: #ffbb54;
}

.star-icon.empty path {
  fill: rgba(255, 255, 255, 0.05);
}

.progress-container {
  height: 6px;
  position: relative;
  width: 100%;
  flex: 1;
}

.progress-bg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2.5px;
  position: absolute;
  inset: 0;
}

.progress-fill {
  background: #ffbb54;
  border-radius: 2.5px;
  position: absolute;
  inset: 0 0 16.67% auto;
  right: 0;
}

.percentage {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: #999eb2;
  text-align: left;
  flex-shrink: 0;
}

/* Rating Summary */
.rating-summary {
  background: rgba(255, 255, 255, 0.05);
  height: 142px;
  position: relative;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-summary-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: inherit;
  position: relative;
}

.summary-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: white;
  margin: 0;
  text-align: center;
}

.summary-stars {
  display: flex;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  margin: 10px 0;
}

.summary-rating {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 34px;
  color: white;
  margin: 0;
  text-align: center;
}

/* Review Cards Container */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Review Card */
.review-card {
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  border-radius: 20px;
  border: 1px solid #3a3d42;
  overflow: hidden;
}

.review-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.review-header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  width: 100%;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.review-header-inner {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  min-width: 0;
  position: relative;
}

.review-info-group {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.review-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  flex-shrink: 0;
}

.review-badge {
  background: rgba(64, 119, 243, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  position: relative;
  border-radius: 5px;
  flex-shrink: 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #4077f3;
  text-align: center;
}

.review-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  gap: 0;
}

.review-stars .star-icon {
  width: 16px;
  height: 16px;
}

.user-details {
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  align-items: flex-start;
  justify-content: center;
  line-height: normal;
  position: relative;
  flex-shrink: 0;
  text-align: right;
  gap: 0;
}

.user-name {
  font-size: 18px;
  font-weight: 400;
  color: white;
  margin: 0;
  flex-shrink: 0;
}

.review-date {
  font-size: 14px;
  font-weight: 400;
  color: #999eb2;
  margin: 0;
  flex-shrink: 0;
}

.review-pending-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #b8860b;
  background: rgba(184, 134, 11, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.avatar {
  overflow: hidden;
  position: relative;
  border-radius: 56px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Review Text */
.review-text {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: white;
  text-align: justify;
  position: relative;
  width: 100%;
  padding: 0 20px 20px;
  margin: 0;
}

.review-text p {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: white;
  margin: 0 0 1rem 0;
  text-align: justify;
  direction: rtl;
}

.review-text p:last-child {
  margin-bottom: 0;
}

.show-more {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: #4077f3;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.show-more:hover {
  color: #5a8eff;
}

/* ===== RESPONSIVE: Reviews Section ===== */
@media (max-width: 1024px) {
  .reviews-section {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .reviews-section {
    margin-left: 0;
    margin-right: 0;
    gap: 20px;
  }

  .ratings-overview-content {
    flex-direction: column;
    gap: 18px;
  }

  .ratings-header {
    padding: 20px;
    gap: 20px;
    justify-content: flex-start;
  }

  .ratings-title {
    font-size: 20px;
  }

  .stars-icon {
    width: 50px;
    height: 50px;
  }

  .stars-icon svg {
    width: 28px;
    height: 28px;
  }

  .ratings-content {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 0 20px 20px;
  }

  .ratings-list-container {
    width: 100%;
  }

  .rating-row {
    gap: 15px;
    flex-direction: row-reverse;
  }

  .stars-group {
    gap: 6px;
  }

  .star-icon {
    width: 20px;
    height: 20px;
  }

  .percentage {
    font-size: 12px;
    min-width: 40px;
    text-align: left;
  }

  .rating-summary {
    width: 100%;
    height: auto;
    min-height: 120px;
  }

  .rating-summary-content {
    padding: 20px;
  }

  .summary-title {
    font-size: 14px;
  }

  .summary-stars {
    margin: 8px 0;
  }

  .summary-rating {
    font-size: 18px;
    line-height: 28px;
  }

  .review-cards {
    gap: 12px;
  }

  .review-card-content {
    align-items: flex-start;
  }

  .review-header {
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    justify-content: flex-start;
  }

  .review-header-inner {
    width: 100%;
  }

  .review-info-group {
    width: 100%;
    justify-content: space-between;
  }

  .review-user-info {
    flex: 1;
  }

  .avatar {
    order: 1;
  }

  .review-text {
    padding: 0 16px 16px;
    font-size: 15px;
  }

  .review-text p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .reviews-section {
    margin-left: 0;
    margin-right: 0;
    gap: 16px;
  }

  .ratings-header {
    padding: 16px;
    gap: 16px;
    justify-content: flex-start;
  }

  .ratings-title {
    font-size: 18px;
    line-height: 27px;
  }

  .stars-icon {
    width: 48px;
    height: 48px;
  }

  .stars-icon svg {
    width: 26px;
    height: 26px;
  }

  .ratings-content {
    padding: 0 16px 16px;
    gap: 16px;
    flex-direction: column-reverse;
  }

  .rating-row {
    gap: 12px;
    flex-direction: row-reverse;
  }

  .stars-group {
    gap: 4px;
  }

  .star-icon {
    width: 18px;
    height: 18px;
  }

  .progress-container {
    height: 5px;
  }

  .percentage {
    font-size: 12px;
    min-width: 35px;
    text-align: left;
  }

  .rating-summary {
    min-height: 100px;
  }

  .rating-summary-content {
    padding: 16px;
  }

  .summary-title {
    font-size: 13px;
  }

  .summary-stars {
    margin: 6px 0;
  }

  .summary-rating {
    font-size: 16px;
    line-height: 24px;
  }

  .review-card-content {
    align-items: flex-start;
  }

  .review-header {
    padding: 14px;
    gap: 15px;
    justify-content: flex-start;
    /* flex-direction: column; */
    align-items: flex-start;
  }

  .review-header-inner {
    width: 100%;
  }

  .review-info-group {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .review-badge p {
    font-size: 13px;
  }

  .review-stars .star-icon {
    width: 14px;
    height: 14px;
  }

  .user-name {
    font-size: 16px;
  }

  .review-date {
    font-size: 13px;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }

  .review-text {
    padding: 0 14px 14px;
    font-size: 14px;
  }

  .review-text p {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ===== END: Reviews Section Styles ===== */

/* ===== START: Package Content Card Styles ===== */
.package-content-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 19px;
  max-width: 1030px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;

  direction: rtl;
}

.package-content-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* move header items to start (right side in RTL) */
  gap: 20px;
  width: 100%;
  /* Force icon to appear before title and keep block on the right */
  padding-right: 0; /* ensure flush with card's right edge */
}

/* Reverse visual order: icon first on the right, title after it */
.package-content-icon-box {
  order: 1;
}

.package-content-title {
  order: 2;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  color: white;
  text-align: right;
}

.package-content-icon-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.package-content-icon {
  width: 33px;
  height: 33px;
  object-fit: contain;
} 

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.course-item-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 100%;
}

.course-item {
  width: 100%;
}

.course-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  width: 100%;
  flex-direction: row-reverse;
}

.course-details-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.course-details-btn {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 5px 12px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #999eb2;
  text-align: right;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-details-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.course-info-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.course-text-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.course-item-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: white;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: #999eb2;
}

.course-duration {
  font-size: 14px;
  line-height: 24px;
}

.course-separator {
  font-size: 16px;
  line-height: 19px;
}

.course-topics {
  font-size: 14px;
  line-height: 24px;
}

.course-item-image {
  width: 185px;
  height: 104px;
  border-radius: 15px;
  flex-shrink: 0;
  overflow: hidden;
}

.course-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design for Package Content Card */
@media (max-width: 768px) {
  .package-content-card {
    padding: 15px;
    gap: 20px;
    margin: 20px 0 0 0;
  }

  .package-content-header {
    gap: 15px;
  }

  .package-content-title {
    font-size: 20px;
  }

  .package-content-icon-box {
    width: 50px;
    height: 50px;
  }

  .package-content-icon, .package-content-icon-box svg {
    width: 28px;
    height: 28px;
  }

  .courses-list {
    gap: 15px;
  }

  .course-item-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .course-info-wrapper {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .course-text-info {
    width: 100%;
    align-items: center;
  }

  .course-item-title {
    font-size: 16px;
    text-align: center;
  }

  .course-meta {
    justify-content: center;
  }

  .course-item-image {
    width: 100%;
    height: 180px;
  }

  .course-details-btn-wrapper {
    width: 100%;
    justify-content: center;
  }

  .course-details-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .package-content-title {
    font-size: 18px;
  }

  .package-content-icon-box {
    width: 45px;
    height: 45px;
  }

  .package-content-icon, .package-content-icon-box svg {
    width: 25px;
    height: 25px;
  }

  .course-item-title {
    font-size: 15px;
  }

  .course-duration,
  .course-topics {
    font-size: 13px;
  }

  .course-details-btn {
    font-size: 13px;
  }
}

/* ===== END: Package Content Card Styles ===== */

/* ===== START: Product Page Styles ===== */
.product-main-content {
  width: 100%;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 110px 40px 40px;
}

.product-main-content .container {
  width: 100%;
  max-width: 1474px;
}

/* Responsive Design for Product Page */
@media (max-width: 768px) {
  .product-main-content {
    padding: 80px 20px 40px;
  }
}

@media (max-width: 480px) {
  .product-main-content {
    padding: 70px 15px 30px;
  }
}

/* ===== END: Product Page Styles ===== */

/* ===== START: 404 Error Page Styles ===== */
.error-404-main {
  width: 100%;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 40px 40px;
}

.error-404-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-section {
  background: #141924;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  width: 100%;
  max-width: 1474px;
  overflow: hidden;
}

.error-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 60px 0;
}

.error-404-content {
  display: flex;
  flex-direction: column;
  gap: 42px;
  align-items: flex-end;
  max-width: 880px;
  width: 100%;
}

/* Hero Section with 404 */
.error-404-hero {
  height: 352px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Badge 1 - Not Found (Top Left) */
.error-badge-1 {
  position: absolute;
  left: 134px;
  top: 102px;
  width: 108.983px;
  height: 104.437px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
}

.error-badge-card {
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(243, 244, 246, 0.1);
  box-shadow: 0px 2px 8px 0px rgba(196, 202, 212, 0.24);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.error-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.error-badge-text {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: white;
  text-align: center;
}

/* Badge 2 - Error (Top Right) */
.error-badge-2 {
  position: absolute;
  left: 672.14px;
  top: 143.67px;
  width: 88.716px;
  height: 48.666px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
}

.error-badge-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(243, 244, 246, 0.1);
  box-shadow: 0px 2px 8px 0px rgba(196, 202, 212, 0.24);
  border-radius: 99px;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.emoji {
  font-size: 12px;
  line-height: 16px;
  color: #454f5f;
}

.error-badge-text-2 {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: white;
}

/* 404 Number */
.error-404-number {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  font-family: "Graphik Arabic", sans-serif;
  font-size: 236px;
  line-height: 256px;
  color: #4077f3;
  letter-spacing: -4.72px;
  text-align: center;
  margin: 0;
}

/* Content Section */
.error-404-text-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.error-404-title {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 56px;
  line-height: 64px;
  color: white;
  text-align: center;
  letter-spacing: -1.12px;
  width: 100%;
  margin: 0;
}

.error-404-description {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 20px;
  line-height: normal;
  color: white;
  text-align: center;
  max-width: 620px;
  margin: 0;
}

.error-404-button {
  background: #ffffff0d;
  color: var(--colro-text-dark, #132346);
  padding: 12px 24px;
  border-radius: 16px;
  font-family: "Graphik Arabic";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.4px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.error-404-button:hover {
  opacity: 0.9;
}

/* Contact Section on 404 Page */
.error-contact-section {
  width: 100%;
  padding: 20px 10px;
  background: var(--learnsimply-dark-bg);
}

.error-contact-container {
  display: flex;
  gap: 42px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.error-contact-container .learnsimply-contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.error-contact-container .learnsimply-contact-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-contact-container .learnsimply-contact-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.error-contact-container .learnsimply-contact-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  color: white;
  letter-spacing: -0.32px;
}

.error-contact-container .learnsimply-contact-value {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  color: #999eb2;
  letter-spacing: -0.32px;
}

/* Responsive Design for 404 Page */
@media (max-width: 1024px) {
  .error-404-number {
    font-size: 180px;
    line-height: 200px;
  }

  .error-badge-1 {
    left: 80px;
    top: 120px;
  }

  .error-badge-2 {
    left: auto;
    right: 80px;
    top: 140px;
  }

  .error-404-hero {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .error-404-main {
    padding: 80px 20px 40px;
  }

  .error-404-section {
    border-radius: 30px;
  }

  .error-404-inner {
    padding: 40px 20px;
  }

  .error-404-content {
    gap: 30px;
  }

  .error-404-hero {
    height: 250px;
  }

  .error-404-number {
    font-size: 120px;
    line-height: 140px;
  }

  .error-badge-1 {
    left: 20px;
    top: 100px;
    transform: rotate(-5deg) scale(0.8);
  }

  .error-badge-2 {
    right: 20px;
    top: 120px;
    transform: rotate(6deg) scale(0.8);
  }

  .error-404-title {
    font-size: 36px;
    line-height: 44px;
  }

  .error-404-description {
    font-size: 16px;
    padding: 0 20px;
  }

  .error-404-button {
    font-size: 18px;
    padding: 10px 20px;
  }

  .error-contact-container {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .error-404-main {
    padding: 70px 15px 30px;
  }

  .error-404-section {
    border-radius: 20px;
  }

  .error-404-inner {
    padding: 30px 15px;
  }

  .error-404-hero {
    height: 200px;
  }

  .error-404-number {
    font-size: 80px;
    line-height: 100px;
  }

  .error-badge-1 {
    left: 10px;
    top: 80px;
    transform: rotate(-5deg) scale(0.7);
  }

  .error-badge-2 {
    right: 10px;
    top: 100px;
    transform: rotate(6deg) scale(0.7);
  }

  .error-404-title {
    font-size: 28px;
    line-height: 36px;
  }

  .error-404-description {
    font-size: 14px;
  }

  .error-404-button {
    font-size: 16px;
    padding: 8px 16px;
  }

  .learnsimply-footer-links-wrapper {
    padding: 25px 15px 25px 25px; /* keep content aligned to right */
    border-radius: 20px;
    gap: 30px;
  }

  .learnsimply-footer-section {
    padding: 25px 15px;
  }

  .learnsimply-footer-column-title {
    font-size: 20px;
  }

  .learnsimply-footer-link {
    font-size: 15px;
  }

  .learnsimply-footer-description {
    font-size: 14px;
    line-height: 20px;
  }

  .learnsimply-social-title {
    font-size: 18px;
  }

  .learnsimply-contact-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .learnsimply-contact-icon {
    width: 28px;
    height: 28px;
  }

  .learnsimply-contact-title,
  .learnsimply-contact-value {
    font-size: 14px;
  }

  .learnsimply-footer-copyright {
    font-size: 14px;
  }

  .learnsimply-footer-legal {
    font-size: 13px;
  }
}

/* ===== END: 404 Error Page Styles ===== */
 
/* Product Page Specific Styles */
.main-product-image {
  height: 402px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  max-width: 340px;
  width: 100%;
}

.main-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-images {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  margin-bottom: 20px;
}

.gallery-image-item {
  position: relative;
  border-radius: 10px;
  width: 136px;
  height: 136px;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-image-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-image-item img:hover {
  opacity: 0.8;
}

.product-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.students-badge {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
}

.students-badge .badge-text {
  color: #999eb2;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
}

.students-badge .students-avatars {
  display: flex;
  align-items: center;
}

.students-badge .avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2px solid #23272e;
}

.students-badge .avatar-badge {
  background: #ffce31;
  color: #fff;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 9px;
  font-weight: bold;
  border-radius: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  border: 2px solid #23272e;
}

.product-type-badge {
  background: rgba(64, 119, 243, 0.05);
  border-radius: 30px;
  padding: 10px 15px;
  color: #4077f3;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .main-product-image {
    max-width: 100%;
  }
  
  .gallery-images {
    gap: 8px;
  }
  
  .gallery-image-item {
    width: 100px;
    height: 100px;
  }
  
  .product-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}
