*{
    margin: 0;
    padding: 0;
}
/* ====================logo================== */
.logo {
    text-decoration: none;
   
    color: #f0ecec;
    font-family: Arial, sans-serif;
  }
  

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/back.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 150px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    columns: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fas{
    display: none;
}
@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links {
        position: fixed;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -300px;
        background: #f44336;
        text-align: left;
        z-index: 2;  /* Increase z-index */
        transition: 0.5s;
    }
    nav .fas{
        display: block;
        color: #fff;
        margin: 10px;
         font-size: 22px;
         cursor: pointer;
    }
    .nav-links{
        padding: 30px;
    }
}

/* ------- Course --------- */
.course{
    width: 100%;
    background: #e0dfdf;
    margin: auto;
    text-align: center;
    padding-top: 50px;

}
.course h1{
    font-size: 36px;
    font-weight: 600;
}
.course p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 4px rgba(0,0,0,0.2);

}
@media(max-width: 700px) {
    .row{
        flex-direction: column;
    }
}

/* -----------------Teachers------------- */

.teachers{
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.teacher-col{
    flex-basis: 30%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.teacher-col img{
    width: 100%;
    object-fit: cover;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(239, 128, 128, 0.7);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}
@media (max-width: 1024px) {
    .teacher-col {
        flex-basis: 48%; /* Two items per row for iPad & middle screens */
    }
}

@media (max-width: 700px) {
    .teacher-col {
        flex-basis: 100%; /* One item per row for small screens */
    }
    
    .layer {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .layer h3 {
        font-size: 20px;  /* Reduce size for smaller screens */
        bottom: 50%;
        transform: translate(-50%, 50%);
    }
}


/* -------------facilities------------- */

.facilities{
    background: #eceaea;
    width: 100%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.facilities h1{
    font-size: 36px;
    font-weight: 600;
}
.facilities p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row {
    margin: 3%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows better spacing */
    gap: 20px; /* Adds spacing between items */
}
.facilities-col{
    flex-basis: 31%;
    background: #f8f0f0;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.facilities-col:hover{
    box-shadow: 0 0 20px 4px rgba(0,0,0,0.2);

}
@media(max-width: 700px) {
    .row{
        flex-direction: column;
    }
}

/* ----------testimonials css----------- */

.testimonial-slider h4{
    text-align: center;
    font-size: larger;
    font-weight: 800;
    margin: 30px;
}
.testimonial-slider p{
    text-align: center;
}

.testimonial-slider {
    background: #d2cdcd;
    position: relative;
    height: 50vh;
    max-width: 100%;
    margin-top: 10px;
    margin: 0 auto;
    overflow: hidden;
  }

  .testimonial-slider .testimonial-slide {
    display: none;
    text-align: center;
    padding: 20px;
  }

  .testimonial-slider .active {
    display: block;
  }

  .testimonial-slider img {
    border-radius: 60%;
    width: 70px;
    height: 70px;
    object-fit: cover;
  }

  .testimonial-slider .stars i {
    color: gold;
  }

  .testimonial-slider .stars i.fa-regular {
    color: #ccc;
  }

  .testimonial-slider .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }

  .testimonial-slider .controls .prev,
  .testimonial-slider .controls .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    cursor: pointer;
  }

  .testimonial-slider .testimonial-header h4 {
    margin-bottom: 10px;
  }

  .testimonial-slider .testimonial-header p {
    font-size: 16px;
  }

  
       /***********************************************/
/***************** Accordion ********************/
/***********************************************/


.body-c {
    width: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;

}

.faq-header {
    font-size: 30px;
    color: #2d6a4f;
    text-align: center;
    margin-bottom: 40px;
}

.accordion {
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card {
    border-bottom: 1px solid #ddd;
}

.card:last-child {
    border-bottom: none;
}

.card-header {
    padding: 15px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.card-header i {
    margin-right: 10px;
}

.card-body {
    padding: 15px;
    display: none;
    background-color: #f9f9f9;
}

.card-header.active {
    background-color: #e0f7fa;
}

.card-header .icon {
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.card-header.active .icon {
    transform: rotate(0);
}

.accordion .card-header {
    border-bottom: 1px solid #ddd;
}


      /* ----------Call To Action------------ */

.cta{
    margin: 100px auto;
    width: 85%;
    background-image: linear-gradient(rgba(75, 74, 74, 0.7),rgba(81, 80, 80, 0.7)),url(images/backb.jpeg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}
@media(max-width: 700px){
    .cta h1{
        font-size: 22px;
    }
}

/* <!---------Footer-----------> */

.footer{
    width: 100%;
    background-image: linear-gradient(rgba(159, 153, 153, 0.7),rgba(216, 209, 209, 0.7)),url(images/footerb.jpg);
    text-align: center;
    padding: 30px 0;

}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.footer p{
    margin-bottom: 10px;
}
.icon {
    color: #1c0f6a;
    margin: 0 20px;
    cursor: pointer;
    padding: 18px 0;
    gap: 15px; /* Adds space between icons */
}

.heart-icon {
    color: #fa4e37; /* Change the heart icon color */
}


/* -------------About us ------------ */
.sub-header{
    height: 60vh;
    width: 100%;
    background-image: linear-gradient(rgba(75, 74, 74, 0.7),rgba(81, 80, 80, 0.7)),url(images/course.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.sub-header h1{
    margin-top: 80px;
}
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}
.about-col{
    flex-basis: 48%;
    padding: 32px 2px;
}
.about-col img{
    height: 60vh;
    width: 100%;
}
.about-col h1{
    padding-top: 0px;

}
.about-col p{
    padding: 15px 0 25px;
    
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover{
    color: #fff;
}
@media(max-width: 900px){
    .sub-header h1{
        margin-top: 200px;
    }
}

@media(max-width: 700px){
    .sub-header h1{
        margin-top: 100px;
    }
}

/* <!-- -------------Blog Content------------- --> */

.blog-content{
    width: 80%;
    margin: auto;
    padding: 60px 0;

}
.blog-left{
    flex-basis: 65%;
}
.blog-left img{
    width: 100%;
}
.blog-left h2{
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}
.blog-left p{
    color: #999;
    padding: 0;
}
.blog-right{
    flex-basis: 32%;
}
.blog-right h3{
    background: #f44336;
    color: #777;
    padding: 7px 0;
    font-size: 16px;
    margin-bottom: 20px;

}
.blog-right div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    padding: 8px;
    box-sizing: border-box;
}
.comment-box{
    border: 1px solid #ccc;
    margin: 50px 0;
    padding: 10px 20px;
}
.comment-box h3{
    text-align: left;
}
.comment-form input, .comment-form textarea{
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f0f0f0;
}
.comment-form button{
    margin: 10px;
}
@media(max-width: 700px){
    .sub-header h1{
        font-size: 24px;
    }
}

/* -----------------Contact Us---------------------- */

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}
.location iframe{
    width: 100%;
}
.contact-us{
    width: 80%;
    margin: auto;

}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}
.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.contact-col div .fa{
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}
.contact-col div .fab{
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}
.contact-col div p{
   padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
    }
 .contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
 }   

 /* ------------------Teachers ------------------- */

 .heading-two p, h2{
    margin-top: 20px;
    text-align: center;
    font-size: larger;
    font-weight: 500;
    color: #777;
 }
 .heading-two {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center; /* Centers items vertically (if needed) */
    text-align: center;
    margin-top: 70px;
}

.heading-two i {
    font-size: 50px;
    color: #cc7b7b;
    margin-bottom: 10px;
}
 .welcome img {
    width: 100%; /* Makes image responsive */
    height: auto; /* Ensures proportional scaling */
    display: block;
}
.gap{
    width: 90%;
}
.heading {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center; /* Centers items vertically (if needed) */
    text-align: center;
}

.heading i {
    font-size: 40px;
    color: #514949;
    margin-bottom: 10px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Center the Heading */
.heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading i {
    font-size: 40px;
    color: #e63946;
    display: block;
}

.heading h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}

/* Custom Heading Styles */
.custom-heading {
    text-align: center;
    margin-bottom: 30px;
}

.custom-heading i {
    font-size: 40px;
    color: #e63946;
    display: block;
}

.custom-heading h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}

/* Custom Container for Image & Content */
.custom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: auto;
}

/* Custom Image Section */
.custom-image {
    flex: 1;
    text-align: center;
}

.custom-image img {
    width: 100%;
    height: 60vh;
}

/* Custom Content Section */
.custom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom Service Box for Each Point */


/* Title Styling */
.custom-service h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.custom-service i {
    font-size: 24px;
    margin-right: 10px;
    color: #e63946;
}

.custom-service p {
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive for Small Screens */
@media (max-width: 768px) {
    .custom-container {
        flex-direction: column;
        text-align: center;
    }

    .custom-image img {
        max-width: 80%;
    }
}


/* Section Styling */
.gap-c {
    padding: 60px 0;
   
}

/* Container Styling */
.container-c {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* About Scholar Block */
.about-scholar {
    text-align: center;
  
    padding: 30px;
}

/* Title Styling */
.about-scholar h4 {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Border Styling */
.about-scholar .border {
    width: 60px;
    height: 3px;
    background-color: #e63946; /* Red color */
    margin: 10px auto;
}

/* Paragraph Styling */
.about-scholar p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .about-scholar {
        padding: 20px;
    }

    .about-scholar h4 {
        font-size: 24px;
    }

    .about-scholar p {
        font-size: 14px;
    }
}

/* =========================== Fee Css ================================ */
.body-f {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
  }
  
  
  
  .btn {
    background-color: #e4b289;
    padding: 8px 15px;
    border-radius: 6px;
    color: black;
  }
  
  .fee-header {
    text-align: center;
    margin-top: 40px;
  }
  
  .fee-header h2 {
    margin-bottom: 10px;
  }
  
  .fee-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
  }
  
  .fee-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .fee-card:hover {
    transform: translateY(-5px);
  }
  
  .fee-card h4 {
    color: #333;
    margin-bottom: 10px;
  }
  
  .fee-card h5 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 15px;
  }
  
  .fee-card .btn {
    display: inline-block;
    background: #9b5d9b;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: black;
    font-weight: bold;
    text-decoration: none;
  }
  
  .fee-card ul {
    padding: 0;
    list-style: none;
    text-align: left;
  }
  
  .fee-card ul li {
    margin: 8px 0;
    color: #555;
  }
  
  .fee-card i {
    color: green;
    margin-right: 8px;
  }
  
  /* ========================== Yasarnal Quran Css ============================ */

  .cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex: 1 1 30%;
    min-width: 280px;
}

.info-card h3 {
    margin-bottom: 15px;
    color: #2b2b2b;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    color: #444;
}

.info-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #27ae60;
}
