/*hero slider ==================================*/


    .slider {
      position: relative;
      width: 100%;
      height: 80vh;
      overflow: hidden;
      perspective: 1000px;
    }

    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 100%;
      left: 0;
      opacity: 0;
      transform: rotateX(70deg);
      transform-origin: center top;
      transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .slide::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.45);
      z-index: 1;
    }

    .slide .content {
      position: relative;
      z-index: 2;
    }

    .slide.active {
      top: 0;
      opacity: 1;
      transform: rotateX(0deg);
      z-index: 2;
    }

    .slide.up {
      top: -100%;
      opacity: 0;
      transform: rotateX(-70deg);
      z-index: 1;
    }

    .slide.down {
      top: 100%;
      opacity: 0;
      transform: rotateX(70deg);
      z-index: 1;
    }

    /* Content animation */
    .content {
      text-align: center;
      color: white;
      padding: 40px 60px;
      border-radius: 20px;
      animation: fadeUp 1s ease forwards;
    }

    .content h1 {
      font-size: 2rem;
      margin-bottom: 12px;
      animation: slideUp 1s ease forwards;
    }

    .content p {
      font-size: 1.1rem;
      margin-bottom: 30px!important;
      animation: fadeIn 1.2s ease forwards;
    }

    @keyframes fadeUp {
      0% {
        opacity: 0;
        transform: translateY(40px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideUp {
      0% {
        opacity: 0;
        transform: translateY(60px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      0% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    /* Navigation Buttons */
    .nav-btn {
      position: absolute;
      right: 30px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 5;

    }

    .nav-btn button {
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      font-size: 22px;
      padding: 10px;
      border-radius: 50%;
      cursor: pointer;
      transition: 0.3s;
    }

    .nav-btn i {
      font-size: 15px;
      padding: 0 8px;
    }

    .nav button:hover {
      background: #00bcd4;
    }

    /* Dots */
    .dots {
      position: absolute;
      left: 30px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 5;
    }

    .dots button {
      width: 12px;
      height: 12px;
      border: none;
      border-radius: 50%;
      background: white;
      opacity: 0.5;
      cursor: pointer;
      transition: 0.3s;
    }

    .dots button.active {
      background: #144420;
      opacity: 1;
      transform: scale(1.3);
    }

    /* Heading */
    .section-title {
      position: absolute;
      top: 20px;
      width: 100%;
      text-align: center;
      color: white;
      font-size: 2rem;
      font-weight: 600;
      z-index: 10;
      text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    }


    .secondary-btn {
      background: #144420;
      color: #fff;
      padding: 12px 28px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s ease;
      border: none;
    }

    .secondary-btn:hover {
      background-color: #01250a;
      color: white;
    }

    .count-section {
      position: relative;
    }

    .countdown-container {
      background: linear-gradient(135deg, #d6d6d68a, #f8f1f1);
      color: black;
      text-align: center;
      padding: 30px 0;
      border-radius: 8px;
      max-width: 800px;

      margin: -75px auto 25px auto;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.486);
    }

    .countdown {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 40px;
      font-size: 2.5rem;
      font-weight: 600;
    }

    .countdown div {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .countdown span.label {
      font-size: 0.9rem;
      font-weight: 400;
      color: #000000;
      margin-top: 5px;
    }

    .colon {
      font-size: 2.5rem;
      font-weight: 500;
      margin-top: -10px;
    }

    @media (max-width:576px) {
      .countdown {
        gap: 20px;
        font-size: 1.6rem;
      }
    }




    /*categories section ==================================*/

    .categories-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      padding: 30px 20px;
      min-height: 450px;
    }

    .categories .card {
      position: relative;
      width: 100%;
      max-width: 280px;
      height: 240px;
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
      transition: 0.3s ease-in-out;
      overflow: hidden;
    }

    .categories .card:hover {
      height: 320px;
    }

    .categories .card .image {
      position: absolute;
      top: 15px;
      left: 50%;
      transform: translateX(-50%);
      width: 85%;
      height: 160px;
      z-index: 1;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .categories .card .image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 15px;
    }

    /* Default heading (before hover) */
    .categories .card .default-title {
      position: absolute;
      bottom: 20px;
      width: 100%;
      text-align: center;
      font-weight: 600;
      color: #111;
      font-size: 1.1rem;
      transition: 0.3s ease-in-out;
      opacity: 1;
      visibility: visible;
    }

    /* Hide default title when hover */
    .categories .card:hover .default-title {
      opacity: 0;
      visibility: hidden;
    }

    /* Hidden content (appears on hover) */
    .categories .card .content {
      position: absolute;
      top: 5%;
      transform: translate(-50%, -50%);
      width: 100%;
      padding: 15px;
      text-align: center;
      visibility: hidden;
      opacity: 0;
      transition: 0.3s ease-in-out;
    }

    .categories .card:hover .content {
      top: 60%;
      visibility: visible;
      opacity: 1;
      transition-delay: 0.2s;
    }

    .categories .card h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 5px;
    }

    .categories .card p {
      color: #555;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .categories .card button {
      border-radius: 8px;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .categories .card button:hover {
      background-color: #ffb100;
      border-color: #ffb100;
    }

    @media (max-width: 1399px) {
      .categories {
        min-height: 700px;
      }
    }

    @media (max-width: 992px) {
      .categories {
        gap: 40px;
        padding: 40px 15px;
      }

      .categories .card {
        max-width: 300px;
      }
    }

    @media (max-width: 768px) {
      .categories {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 40px 15px;
      }

      .categories .card {
        max-width: 360px;
        height: 240px;
      }

      .categories .card:hover {
        height: 320px;
      }
    }

    @media (max-width: 480px) {
      .categories {
        padding: 30px 10px;
      }

      .categories .card {
        max-width: 95%;
      }
    }







    /*how it works section ==================================*/

    .tab-container {
      display: flex;
      flex-wrap: wrap;
      background-color: white;
      padding: 20px;
      border-radius: 15px;
    }

    .tab-section {
      margin-top: 120px;
      height: max-content;
      margin-bottom: 80px;
    }

    .nav-tabs {
      border: none;
      flex-direction: column;
      background: #dba71c6b;
      padding: 20px 10px;
      border: none;
      width: 15%;
      border-radius: 15px 0 0 15px;
      border-right: 2px solid rgba(255, 255, 255, 0.1);
    }

    .nav-tabs .nav-link {
      border: none;
      background: transparent;
      color: #000000;
      text-align: left;
      font-weight: 500;
      padding: 12px 20px;
      border-left: 3px solid transparent;
      transition: all 0.3s ease;
    }

    .nav-tabs .nav-link.active {
      color: #805e00;
      border-left: 3px solid #805e00;
      background: rgba(255, 255, 255, 0.05);
      font-weight: bold;
    }

    .tab-content {
      padding: 30px;
      flex-grow: 1;
      width: 75%;
      background-color: white;
    }

    .tab-content img {
      width: 400px;
      height: 300px;
    }







    @media (max-width: 768px) {
      .tab-container {
        flex-direction: column;
      }

      .nav-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px solid #4c4a4a;
      }

      .tab-content {
        width: 100%;
      }
    }




    /*islamic assurance ==================================*/


    .islamic-section {
      background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
      background-size: cover;
      background-position: center;
      padding: 100px 0;
      position: relative;
    }

    .islamic-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0.08;
    }

    .islamic-title {
      position: relative;
      font-size: 2.4rem;
      font-weight: 700;
      color: #198754;
      text-align: center;
      margin-bottom: 15px;
      letter-spacing: 1px;
    }

    .islamic-subtitle {
      text-align: center;
      color: #555;
      max-width: 600px;
      margin: 0 auto 50px;
    }

    .verse-card {
      background: linear-gradient(145deg, #e8f5e9, #ffffff);
      border-left: 5px solid #154421;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      text-align: center;
      margin-bottom: 60px;
      transition: all 0.3s ease;
    }

    .verse-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 30px rgba(0, 128, 0, 0.25);
    }

    .verse-card h5 {
      font-size: 1.2rem;
      color: #154421;
      font-weight: 600;
    }

    .verse-card p {
      font-style: italic;
      color: #333;
      margin-top: 10px;
    }

    .compliance-card {
      background: rgba(255, 255, 255, 0.85);
      border-radius: 15px;
      padding: 30px;
      text-align: center;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
      transition: all 0.4s ease;
      backdrop-filter: blur(10px);
    }

    .compliance-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0, 128, 0, 0.25);
    }

    .compliance-card i {
      font-size: 40px;
      color: #154421;
      margin-bottom: 15px;
    }

    .compliance-card h5 {
      color: #154421;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .compliance-card p {
      color: #555;
      font-size: 0.95rem;
    }

    @media (max-width: 768px) {
      .islamic-title {
        font-size: 1.8rem;
      }

      .verse-card {
        margin: 30px 10px;
      }
    }



    /*gallery section ==========================================*/


    .gallery-card {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      height: 320px;
      z-index: 0;
    }

    .gallery-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 16px;
      transition: none;
      position: relative;
      z-index: 1;
    }

    .gallery-card:hover img {
      transform: none;
      border-radius: 16px;
    }

    .gallery-info {
      width: 75%;
      background-color: rgba(230, 230, 230, 0.95);
      padding: 1.5rem 2rem;
      box-shadow: 0 8px 24px black;
      border-radius: 1rem;
      position: absolute;
      bottom: -9rem;
      left: 50%;
      transform: translate(-50%, 0);
      margin-inline: auto;
      color: rgb(26, 26, 26);
      opacity: 0;
      transition: opacity 1s 1s;
      z-index: 2;
    }

    .gallery-card:hover .gallery-info {
      animation: show-data 1s forwards;
      opacity: 1;
      transition: opacity 0.3s;
    }

    .gallery-card:hover {
      animation: remove-overflow 2s forwards;
    }

    .gallery-card:not(:hover) {
      animation: show-overflow 2s forwards;
    }

    .gallery-card:not(:hover) .gallery-info {
      animation: remove-data 1s forwards;
    }

    /* === ANIMATIONS === */
    @keyframes show-data {
      50% {
        transform: translate(-50%, -10rem);
      }

      100% {
        transform: translate(-50%, -7rem);
      }
    }

    @keyframes remove-overflow {
      to {
        overflow: initial;
      }
    }

    @keyframes remove-data {
      0% {
        transform: translate(-50%, -7rem);
      }

      50% {
        transform: translate(-50%, -10rem);
      }

      100% {
        transform: translate(-50%, 0.5rem);
      }
    }

    @keyframes show-overflow {
      0% {
        overflow: initial;
        pointer-events: none;
      }

      50% {
        overflow: hidden;
      }
    }

    /* === TEXT STYLING === */
    .gallery-info small {
      font-weight: 500;
    }

    .gallery-info h5 {
      margin: 5px 0;
      font-weight: 600;
    }

    .gallery-info a {
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      .gallery-card {
        height: 250px;
      }

      .gallery-info {
        width: 85%;
      }
    }








    /*testimonial section ==================================*/



    .testimonialWrapper {
      max-width: 1300px;
      margin: 0 auto;
      text-align: center;
      padding: 2rem;
    }

    .testimonialHeader h1 {
      margin-bottom: 2rem;
    }

    .sliderTestimonial {
      overflow: hidden;
      position: relative;
    }

    .slidesWrapper {
      display: flex;
      transition: transform 0.5s ease;
      align-items: center;
    }

    .testimonialSlide {
      flex: 0 0 33.333%;
      opacity: 0.3;
      transform: scale(0.85);
      transition: all 0.5s ease;
      padding: 1rem;
      box-sizing: border-box;

    }

    .testimonialSlide.active {
      opacity: 1;
      transform: scale(1.1);
      z-index: 2;

    }

    .contentTestimonial {
      background: rgb(223 223 223 / 90%);
      border-radius: 10px;
      padding: 2rem;
      text-align: center;
      background: linear-gradient(rgb(223 223 223 / 90%));
    }

    .avatarImg img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 1rem;
    }

    .citeText {
      font-weight: bold;
      margin-top: 1rem;
      display: block;
    }

    .sliderNav {
      margin-top: 2rem;
      display: flex;
      justify-content: center;
      gap: 1rem;
    }

    .sliderNav button {
      background: #13411f5c;
      color: #18181b;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-weight: bold;
      cursor: pointer;
    }

    .paginationDots {
      margin-top: 1rem;
      display: flex;
      justify-content: center;
      gap: 0.5rem;
    }

    .paginationDots .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #144420;
      opacity: 0.5;
      cursor: pointer;
      transition: all 0.2s;
    }

    .paginationDots .dot.active {
      transform: scale(1.5);
      opacity: 1;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .testimonialSlide {
        flex: 0 0 50%;
      }

      .testimonialSlide {
        transform: scale(0.85);
      }

      .testimonialSlide.active {
        opacity: 0.5;
        transform: scale(0.85);
        z-index: 2;
      }
    }

    @media (max-width: 768px) {
      .testimonialSlide {
        flex: 0 0 80%;

      }

      .testimonialSlide.active {
        opacity: 0.9;
        transform: scale(0.85);
        z-index: 2;
      }
    }

    @media (max-width: 480px) {
      .testimonialSlide {
        flex: 0 0 100%;
      }
    }





    /*contact us section =======================================*/

    .contact-section {
      padding: 80px 0;
    }

    .contact-heading h2 {
      font-weight: 700;
    }

    .contact-heading p {
      color: #555;
    }

    .info-box {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
      padding: 40px 30px;
      transition: all 0.3s ease;
    }

    .info-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 40px rgba(108, 99, 255, 0.2);
    }

    .info-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 25px;
    }

    .info-item i {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 30px;
      color: #01250a;
      height: 50px;
      width: 50px;
      margin-right: 15px;
      background: #eef1ff;
      padding: 10px;
      border-radius: 50%;
    }

    .info-item h5 {
      margin: 0;
      font-weight: 600;
      color: #333;
    }

    .info-item p {
      margin: 3px 0 0;
      color: #555;
      font-size: 15px;
    }

    iframe {
      width: 100%;
      height: 450px;
      border: none;
      border-radius: 20px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .map-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
    }

    @media (max-width: 768px) {
      .info-box {
        margin-top: 30px;
      }
    }