/*
Project         :  Quran
Version         :  0.1
Author          :  
Developer       :  Kareem Sultan (HTML-CSS)
Framework       :  Bootstrap 5
Date            :  8/10/2025   
*/

/* ============================================ *
 * Contents
 1- ROOT
 2- FONT
 3- BODY
 4- CONTAINER
 5- NAVBAR
 6- BTN - FORMS
 7- ALIGNING  
 8- DROPDOWN
 9- CIRCLE - SQUARE
 10- SCROLLBAR
 11- RADIO INPUT
 12- SECTION
 13- HERO
 14- FEATURES
 15- ABOUT
 16- HOW IT WORKS
 17- FOOTER
 18- STEPS PAGE
 19- RESPONSIVE


 * ============================================ */

/* ============================================ *
 * ROOT
 * ============================================ */

:root {
  --primary: #8B3D25;
  --secondary: #4B5563;
  --gray-25: #F9FAFB;
  --gray-500: #A0A3BD;
  --gray-200: #E5E7EB;
  --yellow-50: #F8F3EC;
  --white: #FFFFFF;
  --dark: #111827;
  --dark-2: #374151;
  --dark-3: #1F2937;
  --light-primary: rgba(139, 61, 37, 0.04);
}

/* ============================================ *
 * FONT
 * ============================================ */

@font-face {
  font-family: 'DinNextLTArabic';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/DINNextLTArabic-Regular-3.woff') format('woff'),
    url('../fonts/DINNextLTArabic-Regular-3.woff2') format('truetype');
  font-display: swap;
}

/* ============================================ *
 * BODY
 * ============================================ */

body {
  font: 400 1rem/1.35 "DinNextLTArabic", sans-serif;
  color: var(--dark);
}

/* ============================================ *
 * CONTAINER
 * ============================================ */

@media (min-width: 1400px) {
  .container-lg {
    max-width: 1244px;
  }
}

/* ============================================ *
 * NAVBAR
 * ============================================ */

.navbar {
  padding: 3.5rem 3.5rem 2.5rem;
}

/* ============================================ *
 * BTN - FORMS
 * ============================================ */

.btn,
.btn-check:active+.btn:focus,
.btn-check:checked+.btn:focus,
.btn.active:focus,
.btn:active:focus,
.btn-check:focus+.btn,
.btn:focus,
.btn:hover,
.btn:active,
.btn:active:focus,
.form-control,
.form-control:focus,
.form-check-input:focus,
.form-control.is-valid,
.form-control.is-valid:focus,
.form-select,
.form-select:focus {
  box-shadow: none !important;
}

.form-control,
.form-control:focus,
.form-select,
.form-select:focus,
.form-check-input:focus {
  border-color: #E3E3E3;
  background-color: var(--white);
  border-radius: .375rem;
  padding: .8125rem 1rem 1.0625rem;
  font-size: 1rem;
}

.form-select {
  background-position: left 0.75rem center;
}

.btn {
  border-radius: .5rem;
  border: none;
  font-weight: bold;
}

.btn-primary {
  background-color: var(--primary);
  border: none;
  color: var(--white);
  padding: .875rem 1.25rem;
  font-size: 1.25rem;
  gap: .75rem;
}

.prev_btn {
  background-color: var(--yellow-50);
  color: var(--primary);
}

.get_started_btn {
  padding: 1.25rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #be8830;
}

.lang_btn {
  border: 1px solid var(--gray-200);
  padding: .875rem 1.25rem;
  gap: .5rem;
}

.lang_btn:hover,
.lang_btn:focus,
.lang_btn.show {
  border-color: var(--primary);
}

.btns_wrapper {
  gap: 2.5rem;
}

.btns_wrapper .get_started_btn {
  font-size: 1.125rem;
  padding: 1rem 1.125rem;
}

.btn_text {
  display: block;
  line-height: 16px;
  height: 22px;
}

/* ============================================ *
 * ALIGNING
 * ============================================ */

.flex_center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.space_lg {
  padding-top: 4.5rem;
}

.space_md {
  padding-top: 2.5rem;
}

/* ============================================ *
 * DROPDOWN
 * ============================================ */

.dropdown-menu {
  margin-top: 0.5rem !important;
  padding: 1rem;
  box-shadow: 6px 6px 32px 0px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  min-width: 312px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  text-align: start;
}

/* ============================================ *
 * CIRCLE - SQUARE
 * ============================================ */

.circle,
.square {
  min-width: 2.5rem;
  width: 2.5rem;
  max-width: 2.5rem;
  min-height: 2.5rem;
  height: 2.5rem;
  max-height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
  font-weight: 700;
}

.square_lg,
.circle_lg {
  min-width: 3.5rem;
  width: 3.5rem;
  max-width: 3.5rem;
  min-height: 3.5rem;
  height: 3.5rem;
  max-height: 3.5rem;
}

.square_md,
.circle_md {
  min-width: 2rem;
  width: 2rem;
  max-width: 2rem;
  min-height: 2rem;
  height: 2rem;
  max-height: 2rem;
}

/* ============================================ *
 * SCROLLBAR
 * ============================================ */

.scroll {
  direction: ltr;
  overflow: auto;
}

.scroll>* {
  direction: rtl;
}

.scroll_left {
  direction: rtl;
}

.scroll_left>* {
  direction: ltr;
}

.scroll::-webkit-scrollbar {
  width: 6px;
}

.scroll::-webkit-scrollbar-thumb {
  background-color: #9CA3AF;
  -webkit-border-radius: 0.5rem;
  border-radius: 0.5rem;
}

.scroll::-webkit-scrollbar-track {
  background-color: var(--white);
}

/* ============================================ *
 * RADIO INPUT
 * ============================================ */

.radio_card_wrapper,
.radio_card,
.radio_card label {
  display: flex;
}

.radio_card_wrapper {
  flex-direction: column;
  max-height: 388px;
  gap: 0.75rem;
  padding-inline: 0 0.5rem;
  margin-block-start: 1rem;
  margin-inline-end: -0.75rem;
}

.search_input_container {
  background-color: var(--gray-25);
  padding-block: 0.312rem;
  padding-inline: 1rem 0;
  border-radius: 0.5rem;
  height: 3rem;
}

.search_input_container input,
.search_input_container input:focus {
  background-color: transparent;
  border: none;
  padding: 0;
  height: 100%;
}

.radio_card label,
.radio_card input {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.radio_card label {
  padding: 0.6rem 0.75rem;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.radio_card label .label_text {
  color: var(--black);
  padding-inline-start: 1rem;
  font-weight: bold;
  margin-left: auto;
  font-size: 0.875rem;
}

.radio_card .circle {
  background-color: var(--gray-25);
  color: var(--secondary);
  border: 1px solid var(--gray-200);
}

.radio_card input,
.radio_card input:after,
.radio_card input:checked:after,
.radio_card input:checked:before {
  content: "";
  display: inline-block;
}

.radio_card input {
  position: relative;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  text-align: left;
}

.radio_card:has(input:checked) .primary_label,
.radio_card:hover .primary_label {
  border-color: rgba(139, 61, 37, 0.18) !important;
  background-color: var(--light-primary) !important;
}

.radio_card:hover .primary_label .circle,
.radio_card:has(input:checked) .primary_label .circle {
  background-color: var(--light-primary);
  color: var(--primary);
  border-color: var(--green-100) !important;
}

.radio_card input:after,
.radio_card input:checked:after {
  height: 100%;
  width: 100%;
}

.radio_card input:checked:after {
  background-repeat: no-repeat;
  background-position: center;
}

.radio_card input.radio_circle:checked:after {
  background-image: url(../img/checked.svg);
  background-size: contain;
}

/* square radio */

.radio_card input.radio_square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .5rem;
}

.radio_card input.radio_square:after {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 3px;
}

.radio_card input.radio_square:after {
  border: 2px solid var(--gray-500);
}

.radio_card input.radio_square:checked:after {
  background-image: url(../img/checked-square-primary.png);
  border-color: var(--primary);
}

.radio_card input.radio_square:checked:before {
  height: 1rem;
  width: 1rem;
}

.radio_card input:checked:before {
  margin-left: -1rem;
  margin-bottom: 0;
}


/* ============================================ *
 * SECTION
 * ============================================ */

section {
  margin-bottom: 7.5rem;
}

.main_title {
  font-weight: bold;
  font-size: 2rem;
  line-height: 150%;
  margin-bottom: 0;
}

.secondary_title {
  font-size: 1.75rem;
  margin-bottom: 0;
  color: var(--secondary);
}

/* ============================================ *
 * HERO
 * ============================================ */

.hero {
  margin-top: .5rem;
}

.hero .section_title {
  margin-bottom: 3rem;
}

.hero .main_title {
  font-size: 3.5rem
}

.hero .section_title .get_started_btn {
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ============================================ *
 * FEATURES
 * ============================================ */

.features .section_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.6875rem;
}

.feature_card_container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.feature_card {
  display: flex;
  align-items: center;
  align-self: flex-start;
  max-width: 400px;
  gap: 1.125rem;
}

.feature_card img {
  max-width: 5.5rem;
}

.feature_card h3 {
  font-size: 1.125rem;
  font-weight: bold;
}

.feature_card p {
  color: #343D48;
  margin-bottom: 0;
}

/* ============================================ *
 * ABOUT
 * ============================================ */

.about .section_container {
  padding: 3rem;
  border-radius: 2.5rem;
  background: url(../img/about-bg.svg) no-repeat center/cover;
  border: 1px solid #FFAC33;
}

.about .section_title {
  gap: 2rem;
  max-width: 26.5625rem;
}

.about .main_title {
  color: #040404;
}

.about ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.25rem;
  line-height: 180%;
  color: var(--dark-2);
  margin: 0;
  padding-inline-end: 0;
}

.about .about_img {
  border-radius: 2rem;
  box-shadow: 4px 7px 17px 0px #C4C4C412,
    16px 26px 31px 0px #C4C4C40F,
    37px 59px 42px 0px #C4C4C40A,
    66px 106px 50px 0px #C4C4C403,
    103px 165px 54px 0px #C4C4C400;
  width: 100%;
}

/* ============================================ *
 * HOW IT WORKS
 * ============================================ */

.how_it_works .section_container {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.how_it_works_img {
  border-radius: 1.5rem;
}

.how_it_works .square {
  border-radius: .75rem;
  border: 1.51px solid #F1F2F9;
  font-size: 1.5rem;
  color: var(--gray-500);
  background: linear-gradient(151.44deg, #FFFFFF -62.65%, #FBFBFE 83.01%);
}

.how_it_works .square.square_primary {
  background: var(--primary);
  color: var(--white);
}

.how_it_works_card h3 {
  font-size: 1.25rem;
  color: var(--dark-2);
  margin-bottom: 0;
  font-weight: bold;
}

.how_it_works_card p {
  font-size: 1.125rem;
  color: #6F6C8F;
  margin-bottom: 0;
}

.process_line {
  max-width: 3.5rem;
  text-align: center;
}


/* ============================================ *
 * FOOTER
 * ============================================ */

footer {
  padding: 3.5rem 0;
  background-color: #381A11;
}

@media (min-width: 1400px) {
  footer .container-lg {
    max-width: 1288px;
  }
}

footer,
footer a {
  color: var(--white) !important;
  text-decoration: none;
}

.footer_title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.footer_text {
  margin-bottom: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer_bottom {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text_yellow {
  color: #BE8830;
}

/* ============================================ *
 * STEPS PAGE
 * ============================================ */

.step_navbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid #CDCDCD;
}

.step_navbar a.navbar-brand {
  max-width: 5rem;
}

.step_navbar .main_title {
  font-size: 2.5rem;
  line-height: 60%;
  height: 2.5rem;
}

.step_navbar .circle_lg {
  background-color: #E7E7E7;
}

.step_section {
  padding-top: 5rem;
  padding-bottom: 5.625rem;
  margin-bottom: 0;
}

.step_section .main_title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .step_section .container {
    max-width: 714px;
  }
}

.main_input_form .input_form:not(:first-child) {
  padding-top: 2rem;
}

.step_square {
  background-color: #D9DBE9;
  border-radius: .5rem;
}

.step_title {
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.75rem;
  height: 2rem;
  font-weight: bold;
  color: var(--gray-500);
}

.step.active .step_square {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0px 3px 4px 0px #DFEEFF1A inset,
    0px 1px 1px 0px rgba(255, 255, 255, 0.102) inset,
    0px -2px 2px 0px rgba(0, 66, 137, 0.149) inset,
    0px 2px 5px 0px rgba(23, 21, 43, 0.251);
  border: 0.5px solid #9D6454
}

.step.active .step_title,
.step.done .step_title {
  color: #170F49;
}

.step.done .step_square {
  background-color: var(--white);
  border-color: #F1F2F9;
  box-shadow: 0px -1.17px 1.17px 0px rgba(150, 161, 172, 0.122) inset,
    0px 2px 5px 0px rgba(23, 15, 73, 0.059);
}

.long_text {
  font-size: 1.25rem;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.80);
}

.main_form {
  padding-top: 4.5rem;
}

label {
  color: var(--dark-3);
  font-weight: bold;
  margin-bottom: .75rem;
}

.required {
  filter: brightness(0) saturate(100%) invert(21%) sepia(93%) saturate(2006%) hue-rotate(342deg) brightness(100%) contrast(103%);
}

.custom_file_upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D1D5DB;
  color: var(--dark-3);
  padding: .9375rem 1rem;
  cursor: pointer;
  font-weight: 500;
}

input[type="file"] {
  display: none;
}

.file_name,
.note_text,
select:invalid {
  color: #6B7280;
}

.note_text {
  font-size: .875rem;
}

.note_text_md {
  font-size: .9375rem;
  line-height: 1.3rem;
}

.add_btn {
  color: var(--primary) !important;
  margin: auto;
  gap: .5rem;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.add_btn span {
  height: 1.25rem;
  line-height: .9375rem;
}

.add_btn:hover {
  border-bottom-color: var(--primary);
}

.download_btn span {
  color: #be8830;
}

/* ============================================ *
 * RESPONSIVE
 * ============================================ */

@media (max-width: 991px) {
  .navbar {
    padding: 2rem 1.5rem 1rem;
  }

  .navbar-brand {
    max-width: 80px;
  }

  section {
    margin-bottom: 3.5rem;
  }

  .hero .main_title {
    font-size: 2.5rem;
  }

  .secondary_title {
    font-size: 1.25rem;
  }

  .get_started_btn {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
  }

  .hero .section_title .get_started_btn {
    margin-top: 1.5rem;
  }

  .feature_card_container {
    max-width: 25rem;
    gap: 3.5rem;
  }

  .feature_card img {
    max-width: 5rem;
  }

  .about .section_container {
    padding: 1rem 1rem 2rem;
  }

  .footer_bottom {
    text-align: center;
  }

  .navbar.step_navbar {
    padding: 2.5rem 1.5rem 2rem;
  }

  .step_section {
    padding-top: 2.5rem;
    padding-bottom: 3.875rem;
    margin-bottom: 0;
  }

  .step_navbar .circle_lg {
    min-width: 1.5rem;
    width: 1.5rem;
    max-width: 1.5rem;
    min-height: 1.5rem;
    height: 1.5rem;
    max-height: 1.5rem;
    background-color: transparent;
  }

  .step_navbar .main_title {
    font-size: 1.25rem;
    margin: auto;
    line-height: 90%;
    height: 1.5rem;
  }

  .step.active .step_square {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
    font-size: .75rem;
  }

  .step_title {
    font-size: .875rem;
  }
}

@media (max-width: 575px) {
  .features .section_container {
    align-items: stretch;
  }
}

@media (max-width: 400px) {
  .dropdown-menu {
    min-width: 280px;
  }

  .step_title {
    font-size: .6875rem;
  }

  .file_name {
    font-size: 11px;
  }
}