@font-face {
    font-family: 'Bader';
    src: url('../font/Bardiya.ttf') format('truetype');
}
@font-face {
    font-family: 'Bader1';
    src: url('../font/Ferdosi.ttf') format('truetype');
}
@font-face {
    font-family: 'Bader2';
    src: url('../font/IranNastaliq.ttf') format('truetype');
}
@font-face {
    font-family: 'Bader3';
    src: url('../font/Davat.ttf') format('truetype');
}
@font-face {
    font-family: 'Bader4';
    src: url('../font/Hamid.ttf') format('truetype');
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Bader1';
}

.header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Image/well.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    font-family: 'Bader';
    
}
#head1{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Image/nama1.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    font-family: 'Bader';
}
#header-pro{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Image/nama.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    font-family: 'Bader';
}
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between; /* Ensures space between logo and nav-links */
    align-items: center;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, black, transparent);
    /* Ensures text flows RTL */
}

nav img {
    width: 100px;
    order: 1; /* Keeps the logo on the left */
    margin-left: auto; /* Adjust spacing for RTL layout */
}

.nav-link {
    flex: 1;
    text-align: right; /* Aligns nav text to the right */
    margin-right: auto; /* Pushes the nav-links to the right side */
}

.nav-link ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-link ul a {
    text-decoration: none;
    color: aliceblue;
    font-size: 20px;
}

.nav-link ul .item-list::after {
    content: '';
    width: 0; 
    height: 2px;
    background-color: #f44336; 
    position: absolute; 
    right: 0; 
    bottom: -5px; 
    transition: width 0.5s; 
}

.nav-link ul li:hover::after {
    width: 100%;
}
.text-box{
    width: 90%;
    color: rgba(247, 243, 243, 0.393);
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50% ,-50%);
    text-align: center;
}
.text-box .title{
    font-size: 55px;
    }
.text-box p{
    margin: 10px 0 40px;
    font-size: 30px ;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 12px 34px ;
    font-size: 16px ;
    color:#fff;
    background: transparent;
    position: relative;
    cursor:pointer;

}
.hero-btn:hover{
    border: 1px solid #1a5c71e9;
    background: #1a5c71e9;
    transition: 1s;
}
nav .fa {
    display: none;
}

/*Asra*/
.Asra{
width: 80%;
margin: 50px auto;
text-align: center;
padding-top: 100px;
background-color: #ffffff; /* White background for the box */
border-radius: 10px; /* Rounded corners */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Shadow effect */
padding: 20px; /* Padding inside the box */


}
.row{
display: flex;
justify-content: center;
align-items: center;
}
.row h1 {
    font-size: 37px;
    font-weight: 600;
    font-family: 'Bader2';

}
.title7{
    font-size: 37px;
    font-weight: 600;
    font-family: 'Bader3';

}
.row  p{
    color:#180a0a;
    font-size: 18px;
    line-height: 20px;
    padding: 5px;
}
#img4{
    width: 450px;
    height: auto;
}
/*Slides*/
.sliders{
    margin: 15px;
}
.slider{
position: relative;
width:80%;
margin: auto;
overflow: hidden;
}
.sliders h1{
    font-size: 37px;
    font-weight: 600;
    text-align: center;
    font-family:'Bader3';
    margin-bottom: 30px;
}
.slider img{
    width: 100%;
    display: none;
    border-radius: 25px;
    height: 650px;
}
img.displaySlide{
display: block;
}
.slider button{
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background-color: #180a0a00;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    
}
.prev{
right:0;
}
.next{
left: 0;
}
/*program*/
.programs {
    width: 80%;
    margin: auto;
    text-align: center;
    font-family: 'Bader3';
    padding: 100px 0; /* Corrected padding syntax */
}

.row1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping of items */
    align-items: flex-start; /* Align items to the start */
}

.programs h1 {
    font-size: 37px;
    font-weight: 600;
}

.programs p {
    color: #180a0a;
    font-size: 18px;
    line-height: 25px;
    font-family: 'Bader1';
}

.program-col {
    flex: 1 1 30%;
    border-radius: 10px;
    margin: 1.5%; 
    text-align: right;
    background-color: #ffffff; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    padding: 20px;
    transition: transform 0.3s; 
}

.program-col:hover {
    transform: translateY(-5px); 
}

.program-col img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}
/*contact*/
.contact{
    width: 80%;
    margin: auto;
    padding-top: 50px;
    text-align: center;
}
.row2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    align-items: flex-start; 
}
.pic-con{
    flex-basis: 30%;
    border-radius: 10px;
    margin:10px 20px 30px;
    position: relative;
    overflow: hidden;

}
.pic-con img{
    width: 100%;
    height: 350px;
}
.layer{
    background:transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(110, 6, 6, 0.7) ;
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    background-color: #180a0ac9;

}
/* Contact Us Section */
#contact-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin: 50px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

form {
    flex-basis: 50%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

form h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.inputsWrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.inputsWrapper input, .inputsWrapper textarea {
    padding: 12px 16px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.inputsWrapper input:focus, .inputsWrapper textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.inputsWrapper textarea {
    resize: none;
}

button.parimary-btn {
    padding: 12px;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.parimary-btn:hover {
    background-color: #0056b3;
}

.detailsWrapper {
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.details h6 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.details p {
    margin: 5px 0 10px;
    font-size: 20px;
    color: #555;
}

.fallowWrapper {
    margin-top: 20px;
}

.fallowWrapper h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.social {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social a {
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.social a:hover {
    color: #007bff;
    font-size:28px;
}


/*Footer*/
.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-color: #042737bf;
    font-family: 'Bader4';
}
.footer h1{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.icon .fa{
color: #000000;
margin: 0 13px;
cursor:pointer;
padding: 18px 0;
font-size: 40px;

}



/* Media Queries for smaller screens */
@media (max-width: 700px) {
    nav {
        flex-direction: row; /* Stacks the elements vertically */
       
    }
    nav img {
        margin-right: auto;
        margin-left: 0; /* Adjust spacing for RTL layout */
    }
    .text-box h1{
        font-size: 1rem;
    }
    .nav-link ul li{
        display: block;
    }
    .nav-link{
        display: flex;
        position: absolute;
        background: #f44336;
        height: 100hv;
        width: 200px;
        top:0;
        right:-200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color: #fff;
        margin: 22px;
        font-size: 18px;
        cursor: pointer;

    }
    .nav-link ul {
        padding: 30px;
    }
    .row {
        flex-direction: row; 
    }

    .row img {
        width: 450px;
    }

    .row h1 {
        font-size: 3rem; 
    }

    .row p {
        font-size: 1.1rem; 
    }
}
@media (max-width: 768px) {
    .program-col {
        flex-basis: 100%; 
        margin-bottom: 20px; 
    }
}
@media (max-width: 768px) {
    .row2 {
        flex-direction: column; 
        align-items: center;
    }

    .pic-con {
        flex-basis: 80%; 
        margin: 10px 0; 
    }

    .pic-con img {
        height: 250px; 
    }

    .layer h3 {
        font-size: 20px; 
    }
}

@media (max-width: 480px) {
    .contact {
        width: 95%; 
    }
    .pic-con img {
        height: 200px;
    }

    .layer h3 {
        font-size: 18px; 
    }
}
@media (max-width: 768px) {
    .row {
        flex-direction: column; 
        align-items: center; 
        text-align: center;
    }

    .row h1 {
        font-size: 30px; 
    }

    .row p {
        font-size: 16px; 
        line-height: 22px; 
    }

    #img4 {
        width: 90%; 
        max-width: 400px; 
    }
}

@media (max-width: 480px) {
    .Asra {
        width: 95%; 
        padding-top: 50px; 
    }

    .row h1 {
        font-size: 24px; 
    }

    .row p {
        font-size: 14px; 
        line-height: 20px;
    }

    #img4 {
        width: 100%; 
        max-width: none;
    }
}
@media (max-width: 768px) {
    #contact-us {
        flex-direction: column;
        gap: 30px;
    }

    form, .detailsWrapper {
        flex-basis: 100%;
    }

    form h1 {
        font-size: 20px;
    }

    button.parimary-btn {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    form h1 {
        font-size: 18px;
    }

    .inputsWrapper input, .inputsWrapper textarea {
        font-size: 12px;
        padding: 10px;
    }

    button.parimary-btn {
        padding: 10px;
        font-size: 14px;
    }

    .social a {
        font-size: 16px;
    }
}