@font-face {
    font-family: iransans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb.woff2') format('woff2'), url('../fonts/IRANSansWeb.woff') format('woff'), url('../fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: iransans-light;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Light.eot');
    src: url('../fonts/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Light.woff2') format('woff2'), url('../fonts/IRANSansWeb_Light.woff') format('woff'), url('../fonts/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: iransans-medium;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Medium.eot');
    src: url('../fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'), url('../fonts/IRANSansWeb_Medium.woff') format('woff'), url('../fonts/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: iransans-bold;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Bold.eot');
    src: url('../fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'), url('../fonts/IRANSansWeb_Bold.woff') format('woff'), url('../fonts/IRANSansWeb_Bold.ttf') format('truetype');
}

html,
body {
    font-family: iransans-light;
    font-weight: 400;
    color: #6f6f6f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: #f7f7f7;
    direction: rtl;
    text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: iransans-bold;
}

.carousel {
    width: 100%;
}

.carousel-item {
    width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 500px;
}

.carousel-item h5,
.carousel-item p {
    color: white;
    text-shadow: 1px 1px 1px #333, -1px -1px 1px #333;
}

.header-logo {
    width: 50px;
    padding: 10px 10px;
}

.header-logo a>img {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    background: #ddd
}
.groupbox {
    border: 2px solid #0078d4; /* رنگ حاشیه */
    border-radius: 5px; /* انحنای گوشهها */
    padding: 15px; /* فاصله داخلی */
    margin: 20px; /* فاصله از عناصر دیگر */
    position: relative; /* برای تنظیم موقعیت legend */
    background: #f9f9f9; /* رنگ پسزمینه */
}

.groupbox-legend {
    color: #0078d4; /* رنگ متن */
    font-weight: bold; /* ضخامت متن */
    font-size: 14px; /* اندازه فونت */
    padding: 0 10px; /* فاصله داخلی چپ و راست */
    background: #f9f9f9; /* رنگ پسزمینه legend */
    margin-left: 15px; /* فاصله از سمت چپ */
    border: none; /* حذف حاشیه پیشفرض */
    transform: translateY(-50%); /* جابهجایی عمودی برای قرارگیری روی خط */
}

.groupbox-content {
    display: flex; /* چینش افقی عناصر */
    flex-direction: column; /* چینش عمودی */
    gap: 10px; /* فاصله بین عناصر */
}

/* استایلدهی عناصر داخلی */
.groupbox-content input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.groupbox-content label {
    font-size: 12px;
    color: #666;
}