*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --primary-color: #5d0000;
  --header-bg-color: #5d0000;
  --footer-color: #5d0000;
  --heading-h1-color: #5d0000;
  --heading-h2-color: #5d0000;
  --heading-h3-color: #5d0000;
  --paragraph-color: #000;
  --read-more: #7c93c3;
  --white: #ffffff;
  --head-teacher-section: #fcfaee;
  --news-container: #ffffff;
  --news-card: #5d0000;
  --why-choose-us: #fcfaee;
  --container: #fcfaee;
  --news-card-p: #fcfaee;
  --contact-form: #ffffff;
  --image-background-color-about: rgba(0, 0, 0, 0.5);
  --main--content--background: #fcfaee;
  --footer-section-h: #fcfaee;
  --accent-color: #349ad5;
}
.main-content {
  flex: 1;
  padding: 40px 20px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

body {
  background-color: var(--background-color);
  color: var(--heading-h1-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
}

h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-top: 80px;
}

h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

p {
  font-size: 1.1em;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 20px;
}

.socialform p img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
  color: white;
}
.socialform p {
  color: white;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--header-bg-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 25.25rem;
  margin-top: 3.75rem;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .hero-section {
      height: 15.625rem;
  }
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1;
}

.hero-section h1 {
  font-size: 3em;
  margin: 0;
  color: var(--heading-h1-color);
}
.hero-section p {
  font-size: 1.2em;
  color: var(--text-color);
  margin-top: 10px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-section:hover .hero-image {
  transform: scale(1.05);
}
.h1 {
  color: var(--heading-h1-color);
}
p {
  font-size: 1em;
  margin: 10px 0;
  color: #666666;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2em;
    padding-top: 80px;
  }
  .hamburger-icon {
    display: block;
  }
  .socialform p {
    display: none;
  }
  nav ul#nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
  }

  nav ul#nav-links.active {
    display: flex;
    transform: translateX(0);
  }
  .dropdown-content {
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .social-icons {
    justify-content: center;
  }
  .hero-section {
    height: 250px;
  }
  .hero-section h1 {
    font-size: 2.5em;
  }

  .about {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .about h2 {
    font-size: 1.75rem;
    padding-top: 3rem;
  }

  .about p {
    font-size: 1rem;
  }

  .about-image-wrapper {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }

  .donate-button {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .donate-button i {
    font-size: 24px;
  }
  .hero-image {
    height: 200px;
  }
  .ahidden {
    display: none;
  }

  .about-image-wrapper.left {
    float: left;
    margin: 0 20px 20px 0;
  }
  
}
.donate-button {
  position: fixed;
  bottom: 60px;
  right: 20px;
  /* background-color: #4CAF50; */
  /* border-radius: 50%; */
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  color: white;
  text-decoration: none;
}

.donate-button i {
  font-size: 24px;
}

.donate-button:hover {
  background-color: #0d1830;
}
.about {
  margin-bottom: 3rem;
  padding: 0px 30px;
  background: var(--white);
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.about-image-wrapper {
  float: right;
  width: 45%;
  margin: 0 0 1.5rem 1.5rem;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: cover;
}

.about h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  padding-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.about h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--paragraph-color);
}
.about a:hover {
  color: var(--secondary-color);
}

.about::after {
  content: "";
  display: table;
  clear: both;
}

h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--heading-h3-color);
  text-align: center;
}

.payment-method {
  margin: 30px 0;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.payment-title {
  color: var(--primary-color);
  font-size: 1.2em;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

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

.payment-option {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-label {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  width: 100%;
}

.payment-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-label::before {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
}

.payment-option input[type="radio"]:checked + .payment-label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
}

.payment-type {
  display: block;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  margin-top: 10px;
}

.detail {
  color: var(--text-color);
  font-size: 0.95em;
}

.detail strong {
  color: var(--primary-color);
  margin-right: 5px;
}

.payment-option:hover .payment-label::before {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 154, 213, 0.1);
}

.payment-option input[type="radio"]:focus + .payment-label::before {
  box-shadow: 0 0 0 3px rgba(52, 154, 213, 0.2);
}

.radio-group {
  margin: 15px 0;
}

#adultArabicForm button[type="submit"] {
  background-color: var(--read-more);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

#adultArabicForm button[type="submit"]:hover {
  background-color: #2980b9;
}

@media (max-width: 768px) {
  .social-media h2 {
    margin-bottom: 20px;
  }
  .contact-form,
  .social-media {
    max-width: 80%;
    text-align: center;
  }
  #adultArabicForm {
    margin: 20px;
    padding: 20px;
  }

  #adultArabicForm h1 {
    font-size: 1.8em;
  }

  #adultArabicForm h2 {
    font-size: 1.3em;
  }

  .language-proficiency {
    overflow-x: auto;
  }

  .language-proficiency table {
    min-width: 500px;
  }

  .course-details {
    padding: 15px;
  }

  .course-details ul {
    padding-left: 15px;
  }
  .payment-method {
    padding: 20px;
  }

  .bank-details {
    padding: 12px;
  }

  .payment-type {
    font-size: 1em;
  }

  .detail {
    font-size: 0.9em;
  }
}

.required::after {
  content: " *";
  color: #dc3545;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--main--content--background);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.social-media {
  background-color: #0d1830;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 30%;
  min-width: 300px;
  margin: 10px;
  text-align: center;
}

.social-media h2 {
  font-size: 1.5em;
  color: #cccccc;
  margin-bottom: 120px;
}

.social-media .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-media .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #acc737;
  border-radius: 20%;
  color: #ffffff;

  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.social-media .social-icons a:hover {
  background-color: #6a9e37;
  color: #0d1830;
}


.contact-form button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.contact-form button.loading {
  position: relative;
  pointer-events: none;
}

.contact-form button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
      transform: rotate(0turn);
  }
  to {
      transform: rotate(1turn);
  }
}


.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.popup-content {
  background-color: var(--white);
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  transform: scale(0.7);
  transition: transform 0.3s;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.5em;
}

.close-popup {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.popup-body {
  padding: 30px;
  text-align: center;
}

.popup-body i {
  color: var(--read-more);
  font-size: 3em;
  margin-bottom: 20px;
}

.popup-body p {
  margin: 10px 0;
  color: var(--paragraph-color);
  font-size: 1.1em;
  line-height: 1.4;
}