/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
    /* مقدار برابر یا کمی بیشتر از ارتفاع منو */
}

@font-face {
    font-family: 'IRANSans';
    src: url(fonts/IRANSans.woff2) format('woff2'),
        url(fonts/IRANSans.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: yekan;
    src: url(fonts/IRENYekan.ttf);
}

@font-face {
    font-family: Chronicle;
    src: url(fonts/ChronicleDisplaySemibold.otf);
}

body {
    line-height: 1.6;
    direction: rtl;
    background-color: #f4f6f9;
}

.dark-back {
    background-color: #062847;
}

.light-back {
    background-color: #ffffff;
}

.shadow-box {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.shadow-box-light {
    border: 1px solid rgb(255, 255, 255, 0.2);
}

.dark-text {
    color: #5e5c5c;
}

.light-text {
    color: aliceblue;
}

.red-text {
    color: #da2f00;
}

.center {
    text-align: center;
}

.justify {
    text-align: justify;
    text-justify: inter-word;
}

.text-left {
    text-align: left;
}

.bottom-space {
    margin-bottom: 1rem;
}

.bottom-space2 {
    margin-bottom: 2rem;
}

.bottom-space3 {
    margin-bottom: 3rem;
}

.border-left-white {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.border-left-red {
    border-left: 1px solid rgba(237, 10, 10, 0.3);
}

.padding {
    padding: 2rem;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f4f6f9;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    font-family: yekan, sans-serif;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    text-align: left;
    margin-left: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #333;
}

.search-box {
    position: relative;
}
.search-box1 {
    display: none;
}

.search-box input {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    padding: 5px;
    width: 150px;
}

.banner {
    padding-right: 5%;
    width: 100%;
    height: 60vh;
    background-image: url('images/sitebanner.jpg');
    background-size: 100%;
    background-position: right;
    position: relative;
    display: flex;
    justify-content: right;
    align-items: center;
    text-align: right;
    background-repeat: no-repeat;
}

.banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 90%;
}
.banner-content1 {
    display: none;
}
.logo {
    width: 300px;
}

.title {
    font-size: 2.1rem;
    font-weight: bold;
    font-family: Chronicle;
}

.subtitle {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: yekan, sans-serif;
}

.section-title {
    font-family: yekan, sans-serif;
    font-weight: bolder;
    font-size: 2rem;
    padding: 3rem;
}
.section-title2 {
    
    display: none;
}
.section-title1 {
    font-family: yekan, sans-serif;
    font-weight: bolder;
    font-size: 2rem;
    padding: 3rem;
}

.icon-box {
    border-radius: 1rem;
    padding: 2rem;
}

.icon-box i {
    font-size: 2rem;
    color: #da2f00;
    margin-bottom: 1rem;
}

.icon-span {
    color: #da2f00;
    margin-bottom: 1rem;
}

.three-boxes {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
    /* فاصله بین باکس‌ها */
    flex-wrap: wrap;
}

.box {
    flex: 1 1 30%;
    /* اجازه تغییر اندازه در رسپانسیو */
    min-width: 250px;
    box-sizing: border-box;
}


/* Scroll animation */
.animated-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animated-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.p-text {
    font-family: yekan, sans-serif;
    font-size: 1.2rem;
    line-height: 2.4;
    margin: 0 auto;
    padding: 20px 16px;
    text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.1);
}

.p-text1 {
    font-family: yekan, sans-serif;
    font-size: 1.2rem;
    line-height: 2.4;
    margin: 0 auto;
    padding: 20px 16px;
    text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.1);
}

.p-copy {
    font-family: yekan, sans-serif;
    font-size: 1.2rem;
    line-height: 2.4;
    margin: 0 auto;
    padding: 20px 16px;
    text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.1);
}

.meta-title {
    font-family: yekan, sans-serif;
    font-size: 2.2rem;
    font-weight: bolder;
    margin: 0 auto;
    padding: 0px 16px;
    text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.1);
}


.map {
    width: 50%;
    height: 40vh;
    background-image: url('images/map.png');
    background-size: 100%;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: right;
    align-items: center;
    text-align: right;
    background-repeat: no-repeat;
}

/* Map section */
.map-container {
    margin: 40px 20px;
    border-radius: 5px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
}


/* Floating button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.floating-btn img {
    width: 100%;
}

/* Modal popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.modal-content {
    background: #fff;
    color: #da2f00;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: #da2f00;
    margin-bottom: 10px;
}

.modal-content a {
    display: block;
    margin: 8px 0;
    padding: 8px;
    text-decoration: none;
    background: #062847;
    border-radius: 4px;
    color: #da2f00;
}

.modal-content .close {
    margin-top: 10px;
    cursor: pointer;
    color: #da2f00;
    ;
}

.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #23b33a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
}

footer {
    padding: 2rem;
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width:768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #f4f6f9;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        width: 200px;
    }

    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-family: 'IRANSans', sans-serif;
        font-size: 1.2rem;
    }

    .section-title1 {
        font-family: 'IRANSans', sans-serif;
        font-size: 0.9rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-right: 0px;
        padding-left: 0px;
    }
    .section-title2 {
        display: block;
        font-family: yekan, sans-serif;
        font-weight: bolder;
        font-size: 1rem;
        padding: 1rem;
    }

    .icon-box {
        border-radius: 1rem;
        padding: 1rem;
    }

    .logo {
        width: 120px;
    }

    .p-text {
        font-family: 'IRANSans', sans-serif;
        font-size: 1rem;

    }

    .p-text1 {
        font-family: 'IRANSans', sans-serif;
        font-size: 1.1rem;
        padding: 0px 0px;
    }

    .banner {
        padding-right: 5%;
        width: 100%;
        height: 100vh;
        background-image: url('images/banner.webp');
        background-size: cover;
        background-position: center;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: right;
        background-repeat: no-repeat;
    }

    .banner-content {
        display: none;
    }
    .banner-content1 {
        display: inline-block;
        vertical-align: middle;
        text-align: center;
        position: relative;
        z-index: 1;
        max-width: 90%;
    }
    .width1{
        display: none;
    }
    /* .banner {
        margin-top: 10px auto;
        background-size: cover;
        height: 30vh;
    }*/

    .hamburger {
        display: flex;
    }

    .search-box {
        display: none;
    }
    .search-box1 {
        display: inline-block;
    }
    
    .search-box1 input {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 5px;
        padding: 5px;
        width: 150px;
    }
    .search-box input {
        width: 100px;
    }

    .small-width {
        width: 30%;
    }

    .three-boxes {
        flex-direction: column;
    }

    .box {
        margin-bottom: 16px;
    }

    .border-left-white {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgb(255, 255, 255, 0.2);
        border-radius: 1rem;
        margin-bottom: 2rem;
    }

    .border-left-red {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(237, 10, 10, 0.3);
        border-radius: 1rem;
        margin-bottom: 2rem;
    }

    .small-border-white {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgb(255, 255, 255, 0.2);
        border-radius: 1rem;
        margin-bottom: 2rem;

    }

    .small-border-red {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(237, 10, 10, 0.3);
        border-radius: 1rem;
        margin-bottom: 2rem;

    }

    .map {
        width: 100%;
        height: 40vh;
    }

    .p-copy {
        font-family: yekan, sans-serif;
        font-size: 0.6rem;
        line-height: 2.4;
        margin: 0 auto;
        padding: 20px 16px;
        text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.1);
    }

    .padding-mobile1 {
        padding: 1.5rem;
    }

    .small-padding1 {
        padding-top: 1rem;
    }

    .floating-btn {
        right: 0px;
    }


    .whatsapp-float {
        left: 5px;
    }

}