@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid red !important; */
}

:root {
  --primary-color: #ff6b00;
  --secondary-color: #00a98f;
  --accent-color: #f39c12; /* Keep for backward compatibility */
  --text-dark: #343a40;
  --text-gray: #495057;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition-speed: 0.3s;
}

body {
  font-family: "Almarai", sans-serif;
  background-color: var(--bg-light);
  direction: rtl;
  padding-top: 80px;
  transition: background-color var(--transition-speed);
}

/* Add transitions for elements that change with theme */
.payment-tab,
.footer-section,
.course-title.orange,
.course-price.orange,
.highlight,
.payment-link,
.payment-steps-title,
.payment-note-footer-highlight .highlight,
.theme-font,
.theme-font-accent {
  transition: color var(--transition-speed),
    background-color var(--transition-speed);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding: 2rem 0;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90vw;
  max-width: 1400px;
}

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

.text-content {
  position: relative;
  max-width: 600px;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .text-content {
    max-width: 90%;
    text-align: center;
  }
}

@keyframes drawLine {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.text-content .underline-image {
  animation: drawLine 1.5s ease-out forwards;
}

@media (max-width: 768px) {
  .text-content .underline-image {
    width: 80%;
    height: auto;
  }
}

.text-content .arrow-decor {
  position: absolute;
  top: 64px;
  left: -38px;
  display: none; /* Hide by default */
}

@media (min-width: 992px) {
  .text-content .arrow-decor {
    display: block; /* Show only on large screens */
  }
}

.headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  line-height: 1.2;
}

.headline .highlighted-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

@media (max-width: 1200px) {
  .headline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 992px) {
  .headline {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
}

@media (max-width: 768px) {
  .headline {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .headline {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    gap: 0.3rem;
  }
}

.headline .regular {
  color: var(--text-dark);
  font-weight: 400;
}

.headline .highlight {
  color: var(
    --primary-color
  ); /* Changed from hardcoded color to theme variable */
  font-weight: 700;
  margin-right: 0.5rem;
  position: relative;
}

.logo {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 120px;
  z-index: 3;
}

.arrow-decor {
  margin: 1rem 0;
  width: 80px;
}

.subheadline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-gray);
  margin-bottom: clamp(1rem, 5vh, 2rem);
  width: 100%;
  max-width: 600px;
  line-height: 1.6;
  margin-top: clamp(0.5rem, 2vh, 1rem);
}

@media (max-width: 1200px) {
  .subheadline {
    max-width: 90%;
  }
}

@media (max-width: 992px) {
  .subheadline {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  }
}

@media (max-width: 768px) {
  .subheadline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.9rem, 2.3vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .subheadline {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    line-height: 1.5;
  }
}

.cta-button {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #d94a06;
}

.image-container {
  position: relative;
  width: 500px;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (max-width: 768px) {
  .image-container {
    width: 80%;
    height: auto;
    margin-top: 2rem;
  }
}

.blob-shape {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 83%;
  height: 84%;
  z-index: 1;
  margin: auto;
  transform: translate(-46px, 5px);
}

.blob-image {
  width: 100%;
  height: auto;
}
.instructor-container {
  width: 100%;
}
.instructor-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}
.main-nav a {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ff6b00;
}
.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff6b00;
}

.header-logo {
  width: 48px;
  height: 48px;
}

.header-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Almarai", sans-serif;
}

/* Mobile menu styling */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #f45a0a;
  transition: all 0.3s ease;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0.5rem 1rem;
  }
  .header-title {
    font-size: 1.1rem;
  }
  .header-logo {
    width: 36px;
    height: 36px;
  }

  /* Show hamburger menu on mobile */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide the regular nav items */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    padding-top: 80px;
    flex-direction: column;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    margin: 1rem 0;
    font-size: 1.3rem;
  }

  /* Hamburger menu animation */
  .mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==================== Courses Section ==================== */
.courses {
  padding: 4rem 0 2rem 0;
  background: #fff;
}
.courses-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.courses-title {
  color: #fff !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: url("./images/courses-title-bg.svg") no-repeat center center;
}
.courses-subtitle {
  color: #aaa;
  font-size: 1.2rem;
}
.courses-list {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.course-card-wrapper {
  position: relative;
  overflow: hidden;
}

@media (max-width: 700px) {
  .course-card-wrapper {
    margin-bottom: 2rem;
  }

  .course-info-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
}
.course-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  width: 95%;
  margin: 0 auto;
  gap: 2rem;
}

.course-card-wrapper .course-decor {
  position: absolute;
  top: 92px;
  width: 100%;
  height: 100%;
  z-index: 0;
  right: -441px;
}

.course-card-wrapper .course-decor2 {
  position: absolute;
  top: 92px;
  width: 100%;
  height: 100%;
  z-index: 0;
  left: -441px;
}
.course-info {
  flex: 1 1 0;
  padding: 2.2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-info .course-desc {
  text-align: right;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 36px */
}
.course-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.orange {
  color: var(--primary-color) !important;
}
.course-details {
  color: #595c5e;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  padding-right: 1.2rem;
  list-style: disc inside;
  line-height: 2.1;
}
.course-price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.course-note {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.course-btn {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: none;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  align-self: flex-start;
  transition: background 0.2s;
}
.course-btn:hover {
  background: #d94a06;
}
.course-image-container {
  position: relative;
  min-width: 603.76px;
  max-width: 320px;
  background: none;
  z-index: 1;
  min-height: 440px;
}

.image-border {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  top: calc(100px + 5%);
  left: -5%;
}

@media (max-width: 1200px) {
  .image-border {
    top: calc(140px + 4%);
    left: -4%;
  }
}

@media (max-width: 1100px) {
  .image-border {
    top: calc(50px + 3%);
    left: -3%;
  }
}

@media (max-width: 992px) {
  .image-border {
    top: calc(11px + 3%);
    left: -3%;
  }
}

@media (max-width: 768px) {
  .image-border {
    top: calc(40px + 2%);
    left: -2%;
  }
}

@media (max-width: 576px) {
  .image-border {
    top: 30px;
    left: 0;
    width: 95%;
  }
}

/* .course-image-container .course-decor {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100%;
  height: 100%;
  z-index: 0;
} */
.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .course-image {
    width: 90%;
  }
}

.course-shape-container {
  width: 100%;
  height: 100%;
}

.course-shape-container .course-shape {
  width: 100%;
  height: 100%;
}
.decor-lines {
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 120%;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .courses-list {
    flex-direction: column;
    align-items: center;
  }
  .course-card {
    max-width: 95vw;
    flex-direction: column;
    align-items: stretch;
  }
  .course-image-container {
    margin: 0 auto 1.5rem auto;
    max-width: 90vw;
    min-width: 100%;
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .courses {
    padding: 2rem 0 1rem 0;
  }
  .course-info {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .course-title {
    font-size: 1.1rem;
  }
  .course-details {
    font-size: 0.95rem;
    padding-right: 0.5rem;
  }
  .course-image-container {
    min-width: 160px;
    max-width: 98vw;
  }
  .image-border {
    width: 100vw;
    border-width: 3px;
    top: 23px;
    left: 0px;
  }
  .decor-lines {
    width: 100vw;
    left: 0;
    bottom: -10px;
  }
}

/* ==================== Payment Section Custom ==================== */
.payment-section {
  background: #fff;
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
}
.payment-container {
  width: 95%;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
}
.payment-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.payment-title-badge {
  color: #fff;
  font-size: 32px;
}
.payment-desc {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.payment-tabs {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
  padding-bottom: 0.7rem;
}
.payment-tab {
  color: #343a40;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.7rem;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border 0.2s;
}
.payment-tab.active {
  color: var(--primary-color) !important;
  border-bottom: 2.5px solid var(--primary-color) !important;
  font-weight: 700;
}

/* Payment Content Styles */
.payment-content {
  display: none;
}

.payment-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.payment-steps-block {
  margin: 2.2rem 0 1.5rem 0;
}

/* Styling for payment arrow if needed in the future 
.payment-steps-block .payment-arrow {
  position: absolute;
  right: 306px;
  top: 0;
} */
.payment-steps-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.1rem;
}
.payment-steps-list {
  color: #343a40;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  padding-right: 1.2rem;
  line-height: 2.1;
}
.payment-link {
  color: #f45a0a;
  text-decoration: underline;
  font-weight: 600;
}
.payment-note {
  color: #060d11;
  font-size: 1rem;
  margin-top: 0.7rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  /* position: relative; */
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
}

@media (max-width: 500px) {
  .payment-note {
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .payment-note span {
    margin-bottom: 0.5rem;
  }
  .payment-note img {
    margin-right: 58%;
  }
}

.payment-note span {
  position: relative;
}

.payment-image-block {
  display: flex;
  justify-content: center;
}
.payment-sample-img {
  max-width: 100%;
}
@media (max-width: 700px) {
  .payment-container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .payment-title-badge {
    font-size: 1.1rem;
    padding: 0.3rem 1.2rem;
  }
  .payment-tabs {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .payment-steps-title {
    font-size: 1rem;
  }
  .payment-steps-list {
    font-size: 0.95rem;
    padding-right: 0.5rem;
  }
}

.payment-note-footer,
.payment-note-footer-highlight {
  font-size: 24px;
  color: #060d11;
  line-height: 41px;
  font-weight: 700;
}

@media (max-width: 500px) {
  .payment-note-footer,
  .payment-note-footer-highlight {
    font-size: 1rem;
    line-height: 1.5;
  }
}

.payment-note-footer-highlight {
  margin-top: 75px;
}
.payment-note-footer-highlight > span {
  color: #f45a0a;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Almarai", sans-serif;
}

@media (max-width: 500px) {
  .payment-note-footer-highlight > span {
    font-size: 1.2rem;
  }
}

/* ==================== Footer Section ==================== */
.footer-section {
  background: #f5f5f5;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  gap: 2rem;
}
.footer-col {
  flex: 1 1 0;
  min-width: 220px;
}
.logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}
.footer-logo {
  width: 110px;
  height: 110px;
  margin-bottom: 0.5rem;
}
.footer-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}
.footer-col-title {
  color: #343a40;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.7rem;
}
.footer-links a {
  color: #595c5e;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #f45a0a;
}
.footer-contact li {
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
  color: #595c5e;
}
.footer-contact a {
  color: #595c5e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.97rem;
  margin-right: 0.3rem;
}
.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.footer-bottom {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0 0.3rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-col {
    min-width: 0;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}
