/* =========================================================
   Base typography
   ========================================================= */

@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  direction: rtl;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0px;
  color: #444;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}
h1 {
  font-size: 24px;
  font-weight: 500;
}
h2 {
  font-size: 22px;
  font-weight: 500;
}

h3 {
  font-size: 22px;
  font-weight: 500;
}

a {
  color: #005d46;
  text-decoration: none;
}

p a,
li a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

p {
  margin-bottom: 22px;
  color: #444;
  font-size: 18px;
}

/* =========================================================
   Ads
   ========================================================= */

.adsbygoogle {
  text-align: center;
  display:block;
}

.ad1 {
  width: 100%;
  min-height: 280px;
  margin: auto;
  margin-top: 20px;
}

@media (max-width: 767.98px) {
  .ad1 {
    min-height: 360px;
  }
}

/* =========================================================
   Main container
   ========================================================= */

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .container {
    max-width: 700px;
  }
}

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

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

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

.top-for-con {
  margin-top: 1.5rem
}

.top-for-cal-con {
  padding: 20px;
  padding-bottom: 5px;
  padding-top: 1px;
}
/* =========================================================
   Utility classes
   ========================================================= */

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* =========================================================
   Header layout
   ========================================================= */

.header {
  padding: 0.5rem;
  padding-top: 5px;
}

.herp-p {
  font-size: 22px;
}
.hijri-title-p {
  margin-top: 15px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 86px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 60px;
  margin-top: 12px;
}

/* =========================================================
   Desktop menu
   ========================================================= */

.menu {
  flex: 0 0 auto;
}

.menu a {
  text-decoration: none;
  color: #333;
}

.hd-menu,
.hd-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

.hd-menu {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.hd-menu > li {
  position: relative;
}

.hd-menu > li > a {
  display: block;
  padding: 0.75rem 1rem;
  padding-right: 16px;
  text-decoration: none;
  line-height: 1.2;
  color: #111;
  font-size: 16px;
  font-weight: 500;
}

.hd-menu > li > a:hover {
  background: #f2f2f2;
}

/* Dropdown menus */
.hd-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1000;
  padding: 0.25rem 0;
  overflow: visible;
}

.hd-submenu > li {
  position: relative;
}

.hd-submenu a {
  display: block;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
}

.hd-submenu a:hover {
  background: #f5f5f5;
}

/* Third-level dropdown opens to the left in RTL layout */
.hd-submenu .hd-submenu {
  top: 0;
  right: 100%;
}

/* Show dropdown on hover */
.hd-has-sub:hover > .hd-submenu {
  display: block;
}

/* Prevent dropdown clipping */
.hd-menu,
.hd-menu > li,
.hd-submenu {
  overflow: visible;
}

/* =========================================================
   Language button
   ========================================================= */

.lang {
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 90px;
  margin-top: 1px;
  border-radius: 5px;
  background: #03af85;
  color: #fff;
  font-weight: 700;
  line-height: 45px;
  text-decoration: none;
}

.lang-m {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 90px;
  border-radius: 5px;
  background: #03af85;
  color: #fff;
  font-weight: 700;
  line-height: 45px;
  text-decoration: none;
  margin-top: 20px !important;
}
.lang-m a {
  color: #fff !important;
  text-decoration: none;
}

/* =========================================================
   Mobile toggle button
   ========================================================= */

.menu-check {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #9cd7c9;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: #f1fffc;
}

.burger span {
  width: 22px;
  height: 1px;
  background: #5d9789;
}



/* =========================================================
   Mobile overlay and drawer
   ========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
    right: -342px;
    z-index: 1001;
    width: 340px;
    max-width: 340px;
  height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -5px 0 10px rgba(15, 23, 42, 0.12);
  transition: right 0.3s ease;
}

#menuToggle:checked ~ .menu-overlay {
  display: block;
}

#menuToggle:checked ~ .mobile-menu {
  right: 0;
}

.mobile-inner {
  padding: 20px;
}

.mobile-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eeeeee;
  font-size: 18px;
  font-weight: 700;
}

.close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9cd7c9;
  border-radius: 10px;
  color: #5d9789;
  background: #f1fffc;
  font-size: 20px;
  cursor: pointer;
  font-weight: 400;
}

.mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-list li {
  margin: 0;
}

.mobile-list a {
  display: block;
  padding: 10px 0;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-list a:hover,
.mobile-list a:focus {
  color: #03af85;
}

.mobile-title {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #eeeeee;
}


.mobile-submenu{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
    padding-right:0;
    margin:0;
    list-style:none;
}

.mobile-drop-check{
    display:none;
}

.mobile-drop-check:checked + .mobile-drop-title + .mobile-submenu{
    max-height:700px;
}

.label-menu {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-submenu li{
    margin:0;
}

.mobile-drop-title::after{
    content:'◂';
    font-size:16px;
    transition:.2s;
}

.mobile-drop-check:checked + .mobile-drop-title::after{
    content:'▾';
}

.mobile-submenu li a{
    display:block;
    padding:12px 18px;
    font-size:16px;
    font-weight:600;
    color:#1f2937;
}

.mobile-submenu li a::before{
    content:'›';
    display:inline-block;
    margin-left:8px;
    font-weight:700;
}

/* =========================================================
   Responsive rules
   ========================================================= */

@media (max-width: 999px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .menu,
  .lang {
    display: none;
  }

  .burger {
    margin-right: auto;
    margin-left: 15px;
  }
  .center {
    text-align: center;
  }
  .rounded-center {
    margin: auto;
  }
  .auto-m {
    margin: auto;
  }
}

.hijri-title {
  font-size: 22px !important;
  font-weight: 500;
}
.teal-font-bold {
    color: #0a9876;
    font-weight: 700;
}
.rounded {
    border-radius: 1rem;
}
.border {
    border: 1px solid #e5e7eb;
}
.pd {
    padding-right: 2rem;
    padding-left: 2rem;
}
.tb {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.rounded-title {
    border-radius: 50px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
    width: fit-content;
    padding-left: 15px;
    padding-right: 15px;
}
.teal-bg {
    background: linear-gradient(90deg, #03af85 0%, #8c71ff 100%);
    color: white;
}
.teal-font {
    color: white !important;
    font-weight: 400 !important;
    font-size: 14px;
}

.intro-text {
    color: #444;
    font-size: 18px;
    padding: 10px;
    line-height: 30px;
    text-align: justify;
    font-weight: 500;
}
.text-primary {
    color: #03af85 !important;
    text-align: center;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.calculators-grid-section {
    margin-top: 30px;
}

.calculator-card {
    display: block;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.calculator-card:hover {
    border-color: #03af85;
    transform: translateY(-2px);
}

.calculator-card h3 {
    margin: 0 0 12px;
    color: #0a9876;
    font-size: 20px;
    font-weight: 700;
}

.calculator-card p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
}

.table-1 {
	width: 100%;
    border-spacing: 5px;
    border-collapse: separate;
	margin-bottom: 1px;
}
.table-1 th,
.table-1 td {
    width: 33.33%;
	padding: 10px;
	text-align: center;
	border-radius: 5px;
    font-size: 18px;
	border: solid 1px #e7e1ff;
}
.table-1 th {
    background: #e0f2ee;
    color: #304c45;
	
}
.table-1 tbody tr:nth-child(odd) {
    background-color: #ecfbf8;
}

.table-1 tbody tr:nth-child(even) {
    background-color: #e0f2ee;
}
.table-2 {
    width: 100%;
    min-width: 750px;
    border-spacing: 5px;
    border-collapse: separate;
    margin-bottom: 1px;
}
.table-2 th,
.table-2 td {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 18px;
    border: solid 1px #e7e1ff;
}
.table-2 th {
    background: #e0f2ee;
    color: #304c45;
	
}
.table-2 tbody tr:nth-child(odd) {
    background-color: #ecfbf8;
}

.table-2 tbody tr:nth-child(even) {
    background-color: #e0f2ee;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.cal-mon-title {
  margin-top: 3.5rem !important;
}
.ft1 {
    float: right;
    min-width: 95px;
}
.ft1 a {
    text-decoration: none !important;
}
.ft2 {
    float: left;
    min-width: 95px;
}
.ft2 a {
    text-decoration: none !important;
}
.date2 {
    margin-top: 15px;
}
.bg-primary-soft {
    background-color: #f0fffb !important;
}
.div-footer {
  margin-top:30px;
  background: #e0f9f3;
}
.footer-div-t {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.footer-text {
  font-size: 14px;
  text-align: center;
}
.related-pages-section {
  line-height: 2;
  font-size: 18px;
}
.content-section {
    margin: 50px 0;
    line-height: 2.1;
    font-size: 18px;
}

.content-section p {
    margin-bottom: 22px;
    color: #444;
    font-size: 18px;
    font-weight: 500;
}

.content-section h3 {
    margin-top: 30px;
    margin-bottom: 14px;
}
.fin-list {
  line-height: 40px;
  font-size: 18px;
  list-style: none;
  padding-right: 30px;
}

.fin-list li::before {
  content: "▪";
  color: #8c8c8c;
  margin-left: 10px;
}

.common-list {
  font-size: 18px;
  list-style: none;
  padding-right: 30px;
  margin-bottom: 40px;
}

.common-list a {
  font-size: 18px;
  font-weight: 500;
}

.common-list li::before {
    content: "✓";
    margin-left: 10px;
}

.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    font-size: 16px;
}

.footer-brand h3,
.footer-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00795c;
}

.footer-brand p {
    color: #555;
    line-height: 2;
    margin: 0;
}

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

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

.footer-links a {
    color: #444;
    text-decoration: none;
}

.footer-links a:hover {
    color: #03af85;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {

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

    .footer-brand,
    .footer-links {
        text-align: center;
    }

}
.calc-form-grid,
.calc-form-grid * {
  box-sizing: border-box;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.calc-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field label {
  font-weight: 700;
  color: #123;
}

.calc-field input {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9e2e7;
  border-radius: 12px;
  font-size: 16px;
  direction: rtl;
  background: #fff;
}

.calc-field input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.calc-submit {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.calc-submit button {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Tajawal';
}

.calc-submit button:hover {
  background: #0b5f59;
}

.breadcrumbs {
  margin: 20px 0 10px;
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs a {
  color: #0f766e;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: none;
  color: #000;
}

.breadcrumbs .sep {
  color: #999;
}

.breadcrumbs .current {
  color: #444;
  font-weight: 700;
}

.fin-list li {
  margin-bottom: 8px;
}

.related-calc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-calc-links a {
  display: block;
  padding: 16px;
  border: 1px solid #d9e2e7;
  border-radius: 14px;
  text-align: center;
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}

.related-calc-links a:hover {
  border-color: #0f766e;
  color: #000;
}

@media (max-width: 900px) {
  .calc-form-grid,
  .related-calc-links {
    grid-template-columns: 1fr;
    max-width: 90%;
    text-align: center;
    margin: auto;
  }

  .calc-field input {
    text-align: center;
  }
}
.form-select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9e2e7;
    border-radius: 12px;
    font-size: 16px;
    direction: rtl;
    background: #fff;
    font-family: 'Tajawal';
}