*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
}
html{
    scroll-behavior: smooth;
    
}
#main_real{
    width: 100%;
    height: 100%;
    position: relative;
}
#main{
    padding-top: 60px;
    display: none;
}

#firstpage{
    width: 100%;
    height: 100vh;
    background-color: #fdf7f2;
}

#main-content{
    width: 50%;
    height: 45%;
    color: #83522F;
    padding: 30px;
    font-size:2.5vw ;
   
}
#sub{
    width: auto;
    padding: 30px;
    padding-bottom: 10px;
    font-size: 18px;
    color: hsl(25, 47%, 15%);
    font-family: "poppins", sans-serif;
    font-weight: 400;
    
}
#sub-content{
    width:36%;
    font-size: x-large;
    padding-left: 30px;
    font-family: "Nata Sans", sans-serif;
    color: #B8956A;   
}
#Quran_image{
    width: 700px;
    height: 500px;
    position: absolute;
    top: 25%;
    right: 10%;
    border-radius: 20px;
    

    
}
#Quran_image img{
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 7%;
    position: absolute;
    overflow: hidden;
    
    

}
#middle{
    width: 35%;
    height: 9vw;
    background-color: white;
    display: flex;
    justify-content: space-between;   
    align-items: column;
    gap: 10px;
    position: relative;
    margin-top: 55%;
    padding: 30px;
    border-radius: 10%;
    font-size: 30px;
    font-weight: 1200;
    transform: translate(-20%,0);  
}
#box2{
    font-size: 25px;
}
#box3{
    font-size: 25px;
}
#second{
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF;
    overflow: hidden;
}
#course{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

#course h1{
    font-size: 50px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 600;
}
#course h2{
    font-size: 30px;
    color: #9B9189;
    font-family: "poppins", sans-serif;
    font-weight: 400;
}
#coursepar{
    width: 100%;
    height: 600px;
    position: absolute; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    
    
   
}
.course1{
    position: relative;
    margin-top: 60px;
    background-color: #FCF9F3;
    width: 270px;
    height: 550px;
    border: #83522F 2px solid;
    margin-left: 30px;
    border-radius: 5%;
    padding: 35px;
    
    
}
.course1 img{
    border-radius: 10%;
}
.course1 img{
    transition: transform 0.2s ease;
}
.course1{
    transition: transform 0.4s ease;
}
.course1:hover{
    transition: transform 0.3s ease;
    transform: scale(1.05);
}
.course1 img:hover{
    transform: scale(1.09);
    transition: transform 0.3s ease;
}
.course1 h2{
    font-size: 35px;
    color:  #83522F;
    margin-top: 10px;
}
.course1 p{
    font-size: 18px;
    color: #695A4D;
    font-family: "poppins", sans-serif;
    font-weight: 400;
}


#noorani h4{
    font-size: 20px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 600;
} 
#noorani button{
    background-color: #975831;
    width: 90px;
    height: 40px;
    margin-left: 3vw;
    border-radius: 10%;
    border-color: #83522F 1px solid;
    color: white;
    font: 20px;
    font-weight: 600;
}
#noorani li{
    list-style: none;
}

#nazra{
    margin-top: 10px;
    
}
#nazra li{
    list-style: none;
}
#nazra h4{
    font-size: 20px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 600;
    
}
#nazra button{
    background-color: #975831;
    width: 90px;
    height: 40px;
    margin-left: 3vw;
    border-radius: 10%;
    border-color: #83522F 2px solid;
    color: white;
    font: 20px;
    font-weight: 600;
    text-decoration: none;
}

#hifz ul{
    list-style: none;
}
#hifz{
    margin-top: 12px;
}
#hifz h4{
    font-size: 20px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 600;
}
#hifz button{
    background-color: #975831;
    width: 90px;
    height: 40px;
    margin-left: 3vw;
    border-radius: 10%;
    border-color: #83522F 2px solid;
    color: white;
    font: 20px;
    font-weight: 600;
    text-decoration: none;
}
#tarbiyat{
     margin-top: 25px;
}
#tarbiyat h4{
    font-size: 20px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 600;
}
#tarbiyat ul{
    list-style: none;
   
}
#tarbiyat button{
    background-color: #975831;
    width: 90px;
    height: 40px;
    margin-left: 3vw;
    margin-top: 5px;
    border-radius: 10%;
    border-color: #83522F 2px solid;
    color: white;
    font: 20px;
    font-weight: 600;
    text-decoration: none;
}
#third{
    width: 100%;
    height: 100vh;
   background: linear-gradient(135deg, #e6f0ff, #ffffff);

  /* Diamond pattern overlay */
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.03) 75%);
   
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;

  /* Make it cover the entire viewport */
  min-height: 100vh;
  
    
}
#third1{
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B1C32;
    font-size: 30px;
    padding-top: 30px;
    margin-top: 50px;
    font-family: "didot", serif;
}
#third2{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 40px;
}
#video_1 video{
    width: 600px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
    background-color:black;
    margin-top: 3vh;
    margin-left: 11.5vw;
    
}

.live{
    transition: transform 0.4s ease;
}



.live{
    width: 400px;
    margin-top: 40px;
    padding: 20px;
    margin-left: 40px;
    border-radius: 10px;
    border: #83522F 2px solid;

}
.live ul{
    list-style: none;
    padding: 0;
}
.live h2{
    font-size: 40px;
    font-weight: 600;
    padding-left: 30px;
    text-decoration: none;
    color: #4B1C32;
}
.live h3{
    font-size: 20px;
    color: #83522F;
    font-family: "poppins", sans-serif;
    font-weight: 400;
    padding-left: 10;
}
.live button{
    width: 150px;
    height: 50px;
    background-color:#6a344d;
    color: white;
    border: 2px solid #83522F;
    border-radius: 5px;
    font-size: 20px;
    font-family: "poppins", sans-serif;
    font-weight: 400;
    justify-content: center;
    cursor: pointer;
    margin-left: 80px;
    margin-top: 25px;
}
.live button:hover{
    background-color:#4B1C32 ;
}
.live button:active{
    background-color: #4f2a0c;
}
.live a{
    color: white;
    text-decoration: none;
}
.live:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
     background-color: #fdf8f3;
}
.live:hover{
   
    border-color: black;
    color: #3b2f2f;
}

#fourth{
    width: 100%;
    height: 220vh;
    padding: 60px;
    
}
#fourcont{
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: x-large;
    color: #4B1C32;
}
#fcont h2{
    font-size: 45px;
}
#fcont{
    margin-top: 6vh;
    width: 75vw;
    height: 60vh;
    font-size: 20px;
    background-color: #3b2f2f;
    border-radius: 5%;
    color: white;
    padding: 50px;

}
#fcount p{
    margin-top: 3vh;
}

#mis h2{
    font-size: 45px;
}
#mis{
    margin-top: 12vh;
    width: 75vw;
    height: 60vh;
    font-size: 20px;
    background-color: #314143;
    border-radius: 5%;
    color: white;
    padding: 50px;
    margin-left: 20vw;
}
#mis p{
    margin-top: 3vh;
}

#freetrial{
   
    margin-top: 6vh;
    width: 70vw;
    height: 70vh;
    font-size: 20px;
    border-radius: 5%;
    color: white;
    padding: 10px;
    background-color:  rgb(162, 88, 194);
    
} 
#freetrial h2{
    color: white;
    font-family:initial;
} 
#freetrial ul{
    font-size: 20px;
    font: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    list-style: none;
    padding: 20px;
    margin-left: 2vw;
    color: #fcfdff;
    

}
#freetrial button{
    width: 200px;
    height: 70px;
    background-color: rgb(178, 40, 35);
    border: 1px solid rgb(205, 177, 186);
    border-radius: 10px;
    cursor: pointer;
    margin-left: 2vw;
    list-style: none;
}
#freetrial a{
     font-size: 20px;
    font-family:"arial", serif;
    font-weight: 600;
    color: white;
    text-decoration: none;
}
#freetrial button:active{
    transform: scale(1.05);
    transform: transition 0.3s ease;
   
}
#fifth{
    width: 100%;
    height: 100vh;
    margin-top: 8vh;
    background-color: #fdf7f2;
}
#adults{
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    padding-top: 60px;
    color: #4B1C32;
    font-size: 30px;
}
#circles{
    width: 90%;
    height: 50vh;
    margin-top: 5vh;
    color: white;
    margin-left: 2vw;
    display: flex;
    align-items: start;
    justify-content: space-around;
}
#flex, #masaail, #doubts{
    width: 20vw;
    height: 20vw;
    background-color: #83522F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
}
#flex:hover, #masaail:hover, #doubts:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: #4B1C32;
}
#flex{
    background-color: #975831;
}
#masaail{
    background-color: #6a344d;
}
#doubts{
    background-color: #314143;
}
#allpara{
    width: 95%;
    height: 15vh;
    color: #4B1C32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 2.5vw;
    font-size: larger;
}
#flexpara, #maspara, #doubtpara{
    width: 30%;
    height: auto;
    padding: 20px;
    text-align: center;
}
#sixth{
    width: 100%;
    height: 95vh;
    background-color: #fdf7f2;
    padding-top: 60px;
}
#contacts{
    width: 50%;
    height: 10vh;
    margin-left: 3vw;
    color:#334a69 ;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    
}
#haadi{
    width: 100%;
    height: 20vh;
    margin-top: 8vh;
    color: #2d4042;
    display: flex;
    align-items: center;
    justify-content: end;
}
#hadi1{
    width: 50%;
    height: auto;
    margin-right: 3vw;
}
#contacourse{
    width: 30%;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1vh;
    padding: 40px;
    
}
#contacourse1{
    width: 40%;
}
#contacourse1 h4{
    color: #334a69;
    text-decoration: none;
}
#contacourse li{
    list-style: none;
    font-size: 18px;
    color: #334a69;
}
#contacourse2{
    margin-top: 3vh;
}
#contacourse2 h4{
    color: #334a69;
}
#contacourse2 ul{
    list-style: none;
    font-size: 18px;
    color: #334a69;
}
#contacourse a{
    text-decoration: none;
  
}
#contacourse a:hover{
    color: #6a344d;
    text-decoration: underline;
    transition: 0.3s;
}
#footer{
    width: 90%;
    height: 6vh;
    margin-top: 10vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 2vw;
    gap: 3vw;
    color: #334a69;
    font-size: 18px;
}
#phone, #mailed{
    display: flex;
    align-items: center;

}
#phone a, #mailed a{
    color: #334a69;
    margin-left: 15px;
    
}
#links{
    width: 25%;
}
#insta{
    font-size: 40px;      /* logo size */
    color: #E1306C; 
          /* Instagram pink */
    transition: 0.3s;
     display: flex;
    align-items: center;
    justify-content: space-between;
    
} 

#insta i:hover {
    color: #C13584;       /* Darker pink on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    cursor: pointer;
}
#instagram i{      /* logo size */
    color: #833AB4;       /* Instagram pink */
}
#facebook{      /* logo size */
    color: #3b5998;       /* Facebook blue */
}
#facebook i:hover {
    color: #2d4373;       /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    cursor: pointer;
}
#youtube{      /* logo size */
    color: #FF0000;       /* YouTube red */
}
#youtube i:hover {
    color: #cc0000;       /* Darker red on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    cursor: pointer;
}
#whatsapp{      /* logo size */
    color: #25D366;       /* WhatsApp green */
}
#whatsapp i:hover {
    color: #128C7E;       /* Darker green on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    cursor: pointer;
}  

.loading-page  {
    position: fixed;
    top:0;
    left:0;
    background:linear-gradient(to right, #2c5362, #203a43,#0f2027);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding-bottom: 25vh;
}
.loading-page img{
    width: 200px;
    height: 400px;
    display: flex;
    align-items: end;
    stroke: #fff;
    fill-opacity: 0;
    padding-top: 15vh;
    overflow: hidden;
   
}
.name-container{
    height:10vh;
    
}
.logo-name{
    color:#fff;
    font-size: 20px;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:20px;
}


/* ...existing code... */


   @media (max-width: 768px) {
     
    #main {
        padding-top: 80px;
        width: 100%;
        
    }
    #nav, #nav1, nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        width: 100vw;
    }
   
    #logo h1, #acad {
        font-size: 6vw;
        text-align: center;
       
    }
    #nav h2, nav h2 {
        display: flex;
        justify-content: center;
        align-items: center;
        
        font-size: 4vw;
        gap: 20px;
        align-items: center;
    }
    #firstpage {
        width: 100%;
        height: auto;
        padding: 10px;
        font-size: 5vw;
        margin: 0 auto;
    }
    #main-content{
        width: 90vw;
        height: auto;
        font-size: 8vw;
        padding: 10px;
        margin-top: 4vh;
    }
    #Quran_image {
        width: 80vw;
        
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
    }
    #Quran_image img {
        width: 100%;
        margin-left: 5vw;
        margin-top:13vh;
        height: auto;
        border-radius: 7%;
     
    }
    
    #middle {
        width: 40vw;
        margin-left: 9vw;
        margin-top: 42vh;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    #box2, #box4{
        font-size: 15px;
    }
    #sub{
        width: 90vw;
        margin-top: 40vh;
    }
     #sub-content {
        width: 95vw;
        padding: 10px;
        font-size: 16px;
        
    }
    #coursepar {
        flex-direction: column;
        gap: 20px;
        width: 90vw;
        height: auto;
        
        align-items: center;
        }
        .course1 {
            width: 90vw;
            margin-left: 1.5vw;
            padding: 10px;
            margin-left: 12vw;
            height: auto;
            margin-top: 0;
    }
    #course{
        width: 100%;
        height: auto;
        padding: 10px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20vh;

    }
    #course h1{
        font-size: 10vw;
    }   
    #course h2{
        padding-left: 10vw;
        font-size: 6vw;
    }
    #noorani button, #nazra button, #hifz button, #tarbiyat button {
        width: 30vw;
        margin: 10px auto;
        padding: 10px;
        height: auto;

    }
    #second{
        width: 90vw;
        height:320vh
    }
    
    #third1 h1{
        height: 10vh;
        width: fit-content;
        margin-top: 12vh;
        padding: 0;
        font-size: 8vw;
    
    }
    #third2 {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        margin-top: 40vh;
    }   
    #video_1 video{
        
        width: 90%;
        height: 40vh;
        margin: 0;
        margin-left: 3vw;
        
    }
    .live {
        width: 90vw;
        margin: 10px auto;
        padding: 10px;
    }
    #fourth{
        width: 100vw;
        height: auto;
        padding: 20px;
        
    }
    #fourcont h2{
        font-size: 25px;
        
    }
    #mis{
        margin-left: 0;

    }
    #circles{
        flex-direction: column;
        gap: 20px;
        height: auto;
        width: 90vw;
        margin: 0 auto;
    }
    #flex, #masaail, #doubts{
        width: 60vw;

        height: 40vh;
        padding: 20px;
        margin-left: 10vw;
        font-size: 5vw;
    }
    #allpara{
        flex-direction: column;
        gap: 20px;
        height: auto;
        width: 90vw;
        margin: 0 auto;
    }
    #flexpara, #maspara, #doubtpara{
        width: 90%;
        margin: 0 auto;
        font-size: medium;
    }
    #fcont, #mis, #freetrial{
        width: 90vw;
        height: auto;
    }
    #fcont , #mis , #freetrial ul li{
        font-size: medium;
    }

    #fifth{
        width: 100vw;
        height: auto;
        padding: 20px;
    }
    #sixth{
        width: 100vw;
        height: auto;
        padding: 20px;
    }
        #contacts, #contacourse, #footer {
        width: 95vw;
        margin: 0 auto;
        padding: 10px;
    }
    #hadi1{
        width: 80vw;
        margin: 0 auto;
    }
    h1, h2, h3, h4, h5 {
        font-size: 5vw;
    }
    button, a button {
        font-size: 4vw;
        width: 90vw;
        padding: 10px;
    }
    #footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 90vw;
    height: auto;
    margin: 20px 0 0 0;
    font-size: 4vw;
    padding: 10px 0;
}
#links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}
#phone, #mailed {
    justify-content: center;
    width: 100%;
    margin: 5px 0;
}
#phone a, #mailed a {
   
    font-size: 4vw;
}
#mailed h5{
    margin: 0;
    font-size: 4vw;
}
#insta{
    gap: 15px;
}

.loading-page img{
    width: 200px;
    height: 400px;
    display: flex;
    align-items: end;
    stroke: #fff;
    fill-opacity: 0;
    padding-top: 5vh;
    overflow: hidden;
   
}
.name-container{
    height:20vh;
    overflow: hidden;
}
.logo-name{
    color:#fff;
    font-size: 20px;
    height: auto;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin-bottom: 30vh;
    justify-content: center;
    gap:20px;
}


    /* Hide or adjust any large images or backgrounds if needed */
}