/* ========================== */
/* RESET و پایه */
/* ========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0c2461;
    line-height: 1.5;
}

/* ========================== */
/* لوگو */
/* ========================== */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 21.5vh;
}

.logo-section img {
    max-width: 900px;
    width: 100%;
    height: auto;
}

/* ========================== */
/* منو و Dropdown */
/* ========================== */
.menu-section {
    background-color: #ecf0f1;
    padding: 15px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}

.menu {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    flex-wrap: wrap; /* اضافه شد برای ریسپانسیو */
    margin-right: 4.5rem;
    margin-bottom: 1rem;
}

.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    transition: color 0.3s;
}

.menu li a:hover {
    color: #007bff;
}

/* Dropdown */
.menu li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ecf0f1;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    z-index: 999;
}

.menu li .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: normal;
    text-align: right;
    transition: background 0.3s, color 0.3s;
}

.menu li .dropdown-menu li a:hover {
    background-color: #007bff;
    color: #fff;
}

.menu li.dropdown:hover .dropdown-menu {
    display: block;
}

/* دکمه همبرگر */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-content:right;
    align-items:flex-start;
    margin-right: 1rem;
    margin-bottom: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* ========================== */
/* باکس‌ها */
/* ========================== */
.box, .box-main2 {
    display: flex;
    justify-content: right;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.box-main2 {
  display: flex;
  flex-wrap: wrap;       /* اجازه میده در موبایل به خط بعدی بره */
  gap: 20px;
  justify-content: center; /* وسط چین شدن کل باکس‌ها */
  padding-bottom: 10px;
  overflow-x: visible;     /* اسکرول افقی برداشته شد */
}

.box-main2 a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex: 1 1 calc(20% - 20px); /* هر باکس تقریبا 20% عرض، 5 تا کنار هم */
}

.box-main2 .box5,
.box-main2 .box6,
.box-main2 .box7,
.box-main2 .box-8,
.box-main2 .box9 {
  width: 100%;              /* باکس پرکننده لینک */
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #ecf0f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

/* هاور */
.box-main2 a:hover .box5,
.box-main2 a:hover .box6,
.box-main2 a:hover .box7,
.box-main2 a:hover .box-8,
.box-main2 a:hover .box9 {
  transform: translateY(-5px);
  border-color: #007bff;
}

/* ریسپانسیو موبایل */
@media (max-width: 1200px) {
  .box-main2 a {
    flex: 1 1 calc(33.33% - 20px); /* 3 تا در هر ردیف */
  }
}

@media (max-width: 768px) {
  .box-main2 a {
    flex: 1 1 calc(50% - 20px); /* 2 تا در هر ردیف */
  }
}

@media (max-width: 480px) {
  .box-main2 a {
    flex: 1 1 100%; /* 1 تا در هر ردیف */
  }
}

.box5, .box6, .box7, .box8, .box-8, .box9, .box10 {
    width: 250px;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
    margin:.5rem  1rem 1rem;
}

.box5 span, .box6 span, .box7 span, .box8 span, .box-8 span, .box9 span, .box10 span {
    font-size: 16px;
    margin-top: 8px;
    color: #333;
}

/* ========================== */
/* فرم */
/* ========================== */
.call-me {
    width: 90%;
    max-width: 500px;
    margin: 1rem auto 2rem;
    padding: 50px;
    background-color: #ecf0f1;
    border-radius: .78rem;
}

.text-h1{
    font-size: .6rem;
    font-weight: bold;
    color:#211786 ;

}


.text{
    color: #211786;
    font-weight: 400;
}

.form{
    margin-top: 2rem;
}

.form .form-title{
    font-size: 1.5rem;
    font-weight: bold;
    color: #353b48;
    margin-bottom: 1rem;
}

.form label,
.form input:not([type="checkbox"]) {
    display: block;
    margin-bottom: 0.7rem;
    border-radius: .4rem;
    /* width: 100%; ریسپانسیو */
}

.form input {
    width: 100%;
    padding: .6rem;
    border: 1px solid rgb(134, 119, 226);
    border-radius: 0.4rem;
    color: #211786;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
}

.form input:focus{
    background-color:#ddf1f2;
    outline: none;
    border: 1px solid rgb(134, 119, 226);
}

.form textarea {
    width: 100%;
    height:110px;
    padding: .6rem;
    border: 1px solid rgb(134, 119, 226);
    border-radius: 0.4rem;
    margin-bottom: 0.7rem;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
    color: #211786;
    font-size: 0.9rem;
    resize: vertical;             /* فقط ارتفاع تغییر کند */
    box-sizing: border-box;
    background-color: #fff;
}
/* ========================== */
/* فرم و textarea ریسپانسیو */
/* ========================== */
.call-me {
    width: 90%;
    max-width: 500px;
    margin: 1rem auto 2rem;
    padding: 50px;
    background-color: #ecf0f1;
    border-radius: .78rem;
}

/* فرم ورودی‌ها */
.form label,
.form input:not([type="checkbox"]),
.form textarea {
    display: block;
    width: 100%;
    margin-bottom: 0.7rem;
    border-radius: .4rem;
    box-sizing: border-box;
}

/* textarea */
.form textarea {
    padding: .6rem;
    border: 1px solid rgb(134, 119, 226);
    border-radius: 0.4rem;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    background-color: #fff;
}

.form textarea:focus {
    background-color:#ddf1f2;
    border: 1px solid rgb(134, 119, 226);
}



/* ========================== */
/* ریسپانسیو */
/* ========================== */
@media (max-width: 768px) {
    .call-me {
        width: 95%;
        padding: 30px;
    }

    .form .form-title {
        font-size: 1.2rem;
    }

    .form input,
    .form textarea {
        font-size: 0.85rem;
        padding: .5rem;
    }

    .btn {
        width: 100%;
        padding: .7rem;
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .call-me {
        width: 100%;
        padding: 20px;
        border-radius: .5rem;
    }

    .form .form-title {
        font-size: 1rem;
    }

    .form input,
    .form textarea {
        font-size: 0.8rem;
        padding: .45rem;
    }

    .btn {
        width: 100%;
        font-size: .85rem;
        padding: .6rem;
    }
}





/* Checkbox */
.checkbox{
    position: relative;
    padding-right: 2.1rem;
    padding-top: .4rem;
}

.checkbox input{
    display: none;
}

.checkbox .checkmark{
    height: 25px;
    width: 25px;
    background-color: #eee;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0.5rem;
}

.checkbox:hover .checkmark{
    background-color: #ccc;
}

.checkbox input:checked ~.checkmark{
    background-color: #2196f3;
}

.checkmark::after{
    content: "";
    position:absolute;
    display: none;
    width: 5px;
    height: 10px;
    border:solid white ;
    top: 5px;
    right: 8px;
    border-width:0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox input:checked ~.checkmark::after{
    display: block;
}


.form input.form-control::placeholder{    /*رنگی کردن پلیز هولدر*/
    color: #211786;
    font-size: .83rem;
    font-family: 'Vazirmatn', sans-serif;


}

.btn{
    background-color: #48dbfb;
    color: #211786;
    border: none;
    padding: .5rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    font-size: .83rem;
    font-family: 'Vazirmatn', sans-serif;

}
.number1{
    color:#4b7bec;
}

.number2{
    color: #fa8231;
}

.number3{
    color: #20bf6b;
}
.call-ferst{
    color: #211786;
}

/* ========================== */
/* فوتر */
/* ========================== */
.site-footer {
    background-color: #ecf0f1;
    color: #211786;
    padding: 20px 10px;
    text-align: center;
}

.site-footer .logo-section img {
    max-width: 200px;
    margin-bottom: 15px;
}

.site-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================== */
/* ریسپانسیو */
/* ========================== */
@media (max-width: 768px) {
    /* منو موبایل */
    .menu-section .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
    }
    .menu-section .menu.show {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }

    /* باکس‌ها موبایل */
    .box, .box-main2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    .box > div, .box-main2 > div {
        margin-bottom: 20px;
    }

    /* فرم موبایل */
    .form label,
    .form input:not([type="checkbox"]) {
        width: 100%;
    }

    /* فوتر موبایل */
    .site-footer {
        padding: 15px 10px;
    }
    .site-footer .logo-section {
        justify-content: center;
        margin-bottom: 10px;
    }
    .site-footer .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}
