html[lang="ar"] .hero-text,
html[lang="ar"] .about-text,
html[lang="ar"] .footer-container{
  text-align: right;
}

html[lang="ar"] .hero-text h1,
html[lang="ar"] .about-text h2,
html[lang="ar"] .about-text p {
  text-align: right;
    margin-right: 0;
}

html[lang="ar"] .hero-text {
  padding-right: 0;
  padding-left: 20px;
}

html[lang="ar"] .about-text {
  padding-right: 0;
  padding-left: 20px;
}

html[lang="ar"] .container {
  direction: rtl;
}

html {
    scroll-behavior: smooth;
}

* {
    font-family: "Segoe UI", sans-serif;
    color: #222;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #ffe7088a, #c7c3c317);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 50px 50px;
    height: 600px;
}

.hero .container,
.about-section .container,
.subjects-title .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 85%;
}

.hero-text {
    max-width: 59%;
}

h1 {
    font-size: 53px;
    line-height: 1.4;
    margin-right: 15%;
}

.gradient-text {
    background: linear-gradient(90deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

.get-started {
    margin-top: -2%;
    width: 40%;
}

.get-started img {
    width: 7%;
    margin-left: 5%;
    margin-top: 2%;
}

.get-started a {
    text-decoration: none;
    font-size: 20px;
}

.features {
    margin-top: 27px;
    list-style: none;
    padding: 0;
}

.features li {
    margin: 10px 0;
    font-size: 19px;
}

.hero-image {
    position: relative;
    width: 40%;
    margin-top: 2%;
}

.background-shape {
    width: 110%;
    border-radius: 30px;
}

.features li img {
    width: 3%;
    margin-right: 1%;
}

.foreground-image {
    position: absolute;
    top: -32px;
    left: 95px;
    width: 70%;
    border-radius: 20px;
    transition: opacity 0.5s ease-in-out;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    gap: 40px;
    flex-wrap: wrap;
    background: #ffffff;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 span {
    background-color: #ffd500;
    color: #000000;
    padding: 5px 13px;
    font-size: 31px;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 5px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
    margin-right: 18%;
}

.about-icons {
    width: 100%;
    height: 50px;
}

.about-icons a img {
    width: 3.9%;
    margin-right: 0.9%;
}

.about-image {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.about-image .yellow-bg {
    position: absolute;
    top: 15px;
    left: 54px;
    width: 82%;
    height: 101%;
    background-color: #ffd500;
    z-index: 1;
}

.about-image img {
    position: relative;
    z-index: 2;
    width: 123%;
    height: auto;
    right: 80px;
}

.age-section {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(45deg, #ffffff, transparent);
}

.age-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.age-section h2 {
    font-size: 50px;
    margin-bottom: 3%;
    color: #2b2b2b;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    height: 280px;
}

.card {
    width: 200px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 23%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.img-placeholder {
    width: 100%;
    height: 130px;
}

.img-placeholder img {
    width: 100%;
    margin-top: -8%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card p {
    padding: 15px;
    font-size: 22px;
    font-weight: 500;
    margin-top: 25%;
}

.subjects-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2b2b2b;
}

.subjects {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.subject-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.subject-icon img {
    width: 100px;
    height: 65px;
    object-fit: contain;
}

.subject-icon p {
    font-size: 20px;
    font-weight: 500;
    margin-top: 5%;
}

.how-it-works {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.how-it-works h2 {
    font-size: 48px;
    font-weight: bold;
    margin: 2% 0 3% 0;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step {
    background-color: white;
    border: 1px solid #c1bebe;
    border-radius: 8px;
    width: 350px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-block;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 18px;
    color: #000;
    border-radius: 5px;
    margin-bottom: -8px;
}

.step h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.step-image img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.feedback-section {
  padding: 55px 20px;
    background: linear-gradient(45deg, #ffffff, transparent);
  text-align: center;
  overflow: hidden;
}

.feedback-section h2 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 70px;
}

.feedback-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 450px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feedback-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 40px;
  width: 80%;
  max-width: 700px;
  position: absolute;
  top: 0;
  opacity: 0;
  transform: scale(0.8) rotateY(60deg);
  transform-origin: center;
  transition: all 1s ease;
  border: 3px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px #d5006f solid;
}

.feedback-card.active {
  opacity: 1;
  transform: scale(1) rotateY(0);
  z-index: 3;
}

.feedback-card.left {
  transform: translateX(-50%) scale(0.7) rotateY(-40deg);
  opacity: 0.3;
  z-index: 1;
}

.feedback-card.right {
  transform: translateX(50%) scale(0.7) rotateY(40deg);
  opacity: 0.3;
  z-index: 1;
}

.feedback-card .social-icon img {
  width: 52px;
  height: 50px;
  margin-bottom: 10px;
}

.feedback-card .name {
  font-weight: bold;
  font-size: 30px;
  color: #4b7bec;
  margin-bottom: 8px;
}

.feedback-card .role {
  font-size: 17px;
  color: #888;
  margin-bottom: 20px;
}

.feedback-card .text {
  font-size: 19px;
  color: #333;
  line-height: 1.5;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #999;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #4b7bec;
}

.feedback-card.prev {
  transform: translateX(-50%) scale(0.7) rotateY(-40deg);
  opacity: 0.3;
  z-index: 1;
}

.feedback-card.active {
  transform: translateX(0) scale(1) rotateY(0);
  opacity: 1;
  z-index: 2;
}

.feedback-card.next {
  transform: translateX(50%) scale(0.7) rotateY(40deg);
  opacity: 0.3;
  z-index: 1;
}

.feedback-card.transition {
  transition: all 1s ease;
}

.site-footer {
  background: #fff;
  color: #333;
  padding: 50px 20px 30px;
  font-family: 'Helvetica Neue', sans-serif;
}

.footer-container {
  max-width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 2fr;
  gap: 40px;
  align-items: start;
}

.footer-logo-social {
  display: flex;
  align-items: center;
  gap: 20px;
    flex-direction: column;
}

.footer-logo {
  max-width: 75%;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social img {
  width: 35px;
  height: 32px;
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-description {
  font-size: 18px;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 45px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  
}

.footer-column ul li a {
  text-decoration: none;
    font-size: 17px;
    transition: color 0.3s;
    font-weight: 700;
}

.footer-column ul li a:hover {
  color: #000;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 15px;
  color: #777;
}

/* ============= Large screens (desktops > 1200px) ============= */
@media (min-width: 1200px) {
  h1 {
    font-size: 53px;
  }

  .hero-text {
    max-width: 59%;
  }

  .get-started {
    width: 40%;
  }

  .features li {
    font-size: 19px;
  }
  
  .about-text p {
    font-size: 20px;
    margin-right: 18%;
  }

  .about-image img {
    width: 123%;
    right: 80px;
  }

  .about-icons a img {
    width: 3.9%;
  }
 
  .cards {
    flex-direction: row;
    height: auto;
  }

  .card {
    width: 23%;
  }

  .subjects {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .subject-icon {
    width: calc(33.33% - 40px);
  }
  
  .footer-container {
    grid-template-columns: 1fr 1.5fr 2fr;
    text-align: left;
  }
}

/* ============= Medium screens (tablets) ============= */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 80px 30px;
    text-align: center;
  }

  .hero .container {
    flex-direction: column;
    height: auto;
    width: 90%;
  }

  .hero-text {
    max-width: 100%;
    margin-right: 0;
  }

  h1 {
    font-size: 40px;
    margin: 0 auto;
  }

  .get-started {
    width: 50%;
    margin: 20px auto 0;
  }

  .get-started img {
    width: 10%;
    margin-left: 3%;
  }

  .features {
    margin-top: 20px;
  }

  .features li {
    font-size: 17px;
  }

  .hero-image {
    width: 80%;
    margin-top: 40px;
  }

  .background-shape {
    width: 100%;
  }

  .foreground-image {
    width: 100%;
    position: static;
    margin-top: -100px;
  }

  .about-section {
    flex-direction: column;
    padding: 50px 40px;
    text-align: center;
  }

  .about-text {
    width: 100%;
  }

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

  .about-text p {
    font-size: 18px;
    margin: 0 auto;
    width: 90%;
  }

  .about-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .about-icons a img {
    width: 5%;
    margin-right: 2%;
  }

  .about-image {
    max-width: 90%;
    margin-top: 40px;
  }

  .about-image img {
    width: 100%;
    position: relative;
    right: 0;
  }

  .about-image .yellow-bg {
    width: 90%;
    height: 100%;
    left: 5%;
  }
  
  .cards {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

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

  .card p {
    margin-top: 15px;
  }

  .subjects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .subject-icon {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-logo {
    max-width: 60%;
  }

  .footer-description {
    font-size: 16px;
    margin-top: 20px;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .footer-column ul li a {
    font-size: 16px;
  }

  .footer-social img {
    width: 28px;
    height: 28px;
  }
}

/* ============= Small screens (mobiles) ============= */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .hero .container {
    flex-direction: column;
    height: auto;
    width: 100%;
        margin-top: 16%;
  }

  .hero-text {
    max-width: 100%;
    margin-right: 0;
  }

  h1 {
    font-size: 30px;
    line-height: 1.3;
    margin: 0 auto;
  }

  .get-started {
    width: 70%;
    margin: 20px auto 0;
  }

  .get-started img {
    width: 12%;
    margin-left: 5%;
  }

  .features {
    margin-top: 20px;
  }

  .features li {
    font-size: 16px;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .features li img {
    width: 20px;
    margin-right: 8px;
  }

  .hero-image {
    width: 100%;
    margin-top: 30px;
  }

  .background-shape {
    width: 100%;
            margin-top: 8%;
  }

  .foreground-image {
    width: 100%;
    position: static;
    margin-top: -500px;
  }
  
  .about-section {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    gap: 30px;
  }

  .about-text h2 span {
    font-size: 24px;
    padding: 4px 10px;
  }

  .about-text p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto;
    width: 98%;
  }

  .about-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .about-icons a img {
    width: 28px;
    margin: 0 8px;
  }

  .about-image {
    display: none;
  }
  
  .age-section h2 {
    font-size: 32px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .card {
    width: 90%;
    margin-bottom: 20px;
  }

  .card p {
    font-size: 18px;
    margin-top: 15px;
  }

  .img-placeholder {
    height: auto;
  }

  .img-placeholder img {
    margin-top: 0;
    border-radius: 15px 15px 0 0;
  }

  .subjects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .subject-icon img {
    width: 80px;
    height: auto;
  }

  .subject-icon p {
    font-size: 16px;
  }
  
.how-it-works h2 {
    font-size: 35px;
}

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-left,
  .footer-description,
  .footer-right {
    width: 100%;
  }

  .footer-logo-social {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    max-width: 50%;
    margin-bottom: 20px;
  }

  .footer-social {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer-social img {
    width: 26px;
    height: 26px;
  }

  .footer-description {
    font-size: 15px;
    margin-top: 10px;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-column ul li {
    margin-bottom: 12px;
  }

  .footer-column ul li a {
    font-size: 16px;
    display: block;
    padding: 6px 0;
  }

  .footer-bottom {
    font-size: 14px;
    padding-top: 10px;
    margin-top: 20px;
  }

}