/* ===================================================================
//
//  Main Stylesheet
//
// =================================================================== */

body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal','Kanun AR',  'Cairo', 'Montserrat', Arial, sans-serif;
  }

  :root {
    --primary-color: #17408B; /* Dark Blue */
    --secondary-color: #0B2545; /* Even Darker Blue/Almost Black for text */
    --accent-color: #4ea1d3; /* A lighter blue for highlights */
    --light-color: #f7f9fc; /* A very light gray for section backgrounds */
    --white-color: #ffffff;
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 23, 64, 139;
  }

  body {
    color: var(--secondary-color);
    background-color: var(--white-color);
  }

  /* --- Helper Classes --- */
  .section-padding {
    padding: 100px 0;
  }

  .section-bg-gray {
    background-color: var(--light-color);
  }

  /* --- Section Title --- */
  .section-title-new {
      text-align: center;
      margin-bottom: 4rem;
  }
  .section-title-new h2 {
      font-size: 2.8rem;
      font-weight: 700;
      position: relative;
      padding-bottom: 1rem;
      display: inline-block;
  }
  .section-title-new h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: var(--accent-color);
      border-radius: 2px;
  }

  /* --- New Hero Section (v2) --- */
  .hero-v2 {
      position: relative;
      height: 100vh;
      min-height: 700px;
      background-size: cover;
      background-position: center;
      background-color: var(--secondary-color);
      display: flex;
      align-items: center;
      overflow: hidden;
  }
  .hero-v2::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(11, 37, 69, 0.8) 0%, rgba(11, 37, 69, 0.5) 50%, rgba(11, 37, 69, 0.1) 100%);
      z-index: 1;
  }
  .hero-v2 > .container {
      position: relative;
      z-index: 2;
  }
  .hero-v2-content h1 {
    font-weight: 800;
    font-size: 4rem;
  }
  .hero-v2-banner {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(23, 64, 139, 0.85);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      color: var(--white-color);
      padding: 2rem;
      width: 200px;
      z-index: 2;
      text-align: center;
      font-size: 0.9rem;
      border-radius: 8px;
  }
  .hero-v2-banner.left { left: 5%; }
  .hero-v2-banner.right { right: 5%; }

  /* Section Divider SVG */
  .section-divider-wave {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      overflow: hidden;
      line-height: 0;
      transform: rotate(180deg);
      z-index: 2;
  }
  .section-divider-wave svg {
      position: relative;
      display: block;
      width: calc(100% + 1.3px);
      height: 120px;
  }
  .section-divider-wave .shape-fill {
      fill: var(--white-color);
  }

  /* --- "Who Are We" Section (About) --- */
  #about-new .content {
    border: 1px solid #e0e0e0;
  }

  /* --- Vision, Mission, Task Cards --- */
  .vmt-card {
      background: var(--white-color);
      padding: 2.5rem;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.05);
      transition: transform 0.3s, box-shadow 0.3s;
      border: 1px solid #e9ecef;
  }
  .vmt-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  .vmt-card .icon {
      font-size: 2.5rem;
      color: var(--primary-color);
      margin-bottom: 1.5rem;
      display: block;
  }
  .vmt-card h3 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
  }

  /* --- What We Offer Section --- */
  #offer-new .offer-item {
      background: var(--light-color);
      padding: 30px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      text-align: start;
      transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
      border: 1px solid #e9ecef;
  }
  #offer-new .offer-item:hover {
      transform: translateY(-8px);
      background-color: var(--primary-color);
      color: var(--white-color);
      box-shadow: 0 10px 30px rgba(23, 64, 139, 0.2);
  }
  #offer-new .offer-item .icon {
      font-size: 2.5rem;
      color: var(--primary-color);
      margin-inline-end: 1.5rem;
      transition: color 0.3s;
  }
  #offer-new .offer-item:hover .icon {
    color: var(--white-color);
  }
  #offer-new .offer-item h4 {
    margin-bottom: 0;
    font-weight: 600;
  }

  /* --- Islamic Values Section --- */
  #values-new .value-card {
      background: var(--white-color);
      padding: 2rem;
      border-radius: 8px;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
      border: 1px solid #e9ecef;
  }
  #values-new .value-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  #values-new .value-card .icon {
      font-size: 2.5rem;
      color: var(--primary-color);
      margin-bottom: 1rem;
  }
  #values-new .value-card h4 {
      font-weight: 600;
      color: var(--secondary-color);
  }

  /* --- Conclusion Section --- */
  #conclusion-new {
      padding: 60px 0;
      background-color: var(--primary-color);
  }
  #conclusion-new h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  #conclusion-new .slogan-conclusion {
      font-size: 1.5rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
  }

  /* --- Footer --- */
  footer {
    background-color: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px 0;
  }
  footer h5 {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  footer p, footer a {
    font-size: 0.9rem;
  }
  footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
  }
  footer a:hover {
    color: var(--white-color);
  }
  footer .list-unstyled li {
    margin-bottom: 0.75rem;
  }
  footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    margin-inline-end: 0.5rem;
    transition: background-color 0.3s;
  }
  footer .social-links a:hover {
    background-color: var(--primary-color);
  }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 30px;
  }

  /* --- Responsive --- */
  @media (max-width: 992px) {
    .hero-v2 {
      height: auto;
      min-height: 0;
      padding: 150px 0;
    }
    .hero-v2-content h1 {
      font-size: 3rem;
    }
    .section-padding { padding: 80px 0; }
  }

  @media (max-width: 768px) {
    .hero-v2-content h1 {
      font-size: 2.5rem;
    }
    .section-title-new h2 { font-size: 2.2rem; }
    #conclusion-new .slogan-conclusion {
      flex-direction: column;
      font-size: 1.2rem;
      gap: 0.5rem;
    }
    footer { text-align: center; }
    footer .social-links {
      justify-content: center;
    }
  }

  [dir="rtl"] body {
    text-align: right;
  }
  [dir="rtl"] .hero-v2::before {
    background: linear-gradient(-90deg, rgba(11, 37, 69, 0.8) 0%, rgba(11, 37, 69, 0.5) 50%, rgba(11, 37, 69, 0.1) 100%);
  }
  [dir="rtl"] .hero-v2-banner.left { left: auto; right: 5%; }
  [dir="rtl"] .hero-v2-banner.right { right: auto; left: 5%; }
  [dir="rtl"] #offer-new .offer-item {
    text-align: right;
  }
  [dir="rtl"] #offer-new .offer-item .icon {
    margin-inline-end: 0;
    margin-inline-start: 1.5rem;
  }
  [dir="rtl"] footer .social-links a {
    margin-inline-end: 0;
    margin-inline-start: 0.5rem;
  }
  [dir="rtl"] footer {
      text-align: right;
  }
  @media (max-width: 768px) {
    [dir="rtl"] footer { text-align: center; }
  }

  /* --- Fees Section Modern Cards --- */
  .fees-section-bg {
      background: linear-gradient(135deg, #f8f9fa 60%, #e3ecfa 100%);
      position: relative;
      z-index: 1;
  }
  .fees-card-wrapper {
      position: relative;
      margin-top: 32px;
  }
  .fees-card {
      background: #fff;
      border: none;
      border-radius: 1rem;
      box-shadow: 0 4px 24px 0 rgba(26,58,125,0.07), 0 1.5px 4px 0 rgba(26,58,125,0.03);
      padding: 2.5rem 1.5rem 2rem 1.5rem;
      margin-top: -32px; /* pull card up so it starts from the middle of the badge */
      position: relative;
      transition: box-shadow 0.3s, transform 0.3s;
      overflow: hidden;
  }
  .fees-card .fees-badge, .fees-card-wrapper .fees-badge {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff !important;
      color: #17408B !important;
      border-radius: 50%;
      width: 80px !important;
      height: 80px !important;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.6rem !important;
      box-shadow: 0 2px 8px rgba(26,58,125,0.10);
      border: 3px solid #17408B !important;
      z-index: 2;
  }
  .fees-card:hover {
      box-shadow: 0 8px 32px 0 rgba(26,58,125,0.13), 0 3px 8px 0 rgba(26,58,125,0.07);
      transform: translateY(-6px) scale(1.03);
  }
  .fees-card h4 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      margin-top: 1.5rem;
      margin-bottom: 1.2rem;
  }
  .fees-details {
      text-align: center;
  }
  .fees-details p {
      margin-bottom: 0.5rem;
      font-size: 1.05rem;
      color: var(--text-color);
  }
  .fees-details hr {
      margin: 1.2rem 0;
      border-color: var(--border-color);
  }
  .fees-details .fees-total {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--primary-color);
      margin-bottom: 0;
      letter-spacing: 1px;
  }
  @media (max-width: 991px) {
      .fees-card { margin-bottom: 2.5rem; }
  }
  @media (max-width: 768px) {
    .fees-card .fees-badge, .fees-card-wrapper .fees-badge {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.7rem !important;
    }
  }

  .floating-whatsapp {
    position: fixed;
    z-index: 1200;
    bottom: max(1.2rem, env(safe-area-inset-bottom, 0));
    right: 1.2rem;
    width: 64px;
    height: 64px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    pointer-events: auto;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none !important;
  }
  .floating-whatsapp:hover, .floating-whatsapp:focus {
    background: #128c7e;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateY(-2px) scale(1.09);
    text-decoration: none !important;
  }
  @media (max-width: 768px) {
    .floating-whatsapp {
        right: 0.7rem;
        left: auto;
        bottom: max(0.7rem, env(safe-area-inset-bottom, 0));
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
  }
  [dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 1.2rem;
  }
  @media (max-width: 768px) {
    [dir="rtl"] .floating-whatsapp {
        left: 0.7rem;
    }
  }
