body {
    margin: 0;
    font-family: Tahoma, sans-serif;
    background-color: #f5f5f5;
}

header {
    background-color: #1A3F60   ;
    padding: 15px 0;
}

nav {
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
}

nav a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    margin-top: 30px;
}

footer {
    background-color: #003366;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}
p {
    text-align: center;
    font-size: 16px;
}
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background-color: #ffffff;
    padding: 20px;
    width: 200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    border-radius: 8px;

    display: flex;        /* اضافه شد */
    flex-direction: column; /* ستون محور */
}

.service-card h3 {
    margin-top: 0;
    color: #003366;
}

.service-card a {
    display: inline-block;
    margin-top: auto;  /* مهم: دکمه همیشه پایین کارت */
    text-decoration: none;
    background-color: #003366;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
}

.service-card a:hover {
    background-color: #0055a5;
}

.service-card a:hover {
    background-color: #0055a5;
}
form {
    max-width: 500px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input, form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #cccccc;
}

form button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #003366;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0055a5;
}
.home-title {
    text-align: center;
    padding: 30px 15px;
    background: #f8f8f8;
}

.home-title h1 {
    font-size: 20px;
    font-weight: bold;
}

.contact-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Tahoma, sans-serif;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.contact-info a {
    color: #0077cc;
    text-decoration: none;
}

.contact-form {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #0077cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #005fa3;
}
/* ===== درباره ما ===== */
.about-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Tahoma, sans-serif;
    direction: rtl;
}

.about-page h1 {
    text-align: right;
    margin-bottom: 30px;
}

.about-content,
.team-content {
    text-align: right;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    line-height: 1.8;
}

.about-content h2,
.about-content h3,
.team-content h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* ===== منوی اصلی ===== */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
    direction: rtl;              /* راست‌چین */
}

/* آیتم دارای زیرمنو */
.menu-item {
    position: relative;
}

/* لینک‌های منو */
nav a {
    text-decoration: none;
    color: #FFFFFF;
}

/* ===== زیرمنو ===== */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 160px;
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 10px;
    text-align: right;
    color: #333;
}

.submenu a:hover {
    background: #f2f2f2;
}

/* نمایش زیرمنو با هاور */
.menu-item:hover .submenu {
    display: block;
}
/* ===== Hero Section ===== */

.hero {
    background: url('../assets/images/hero.jpg') no-repeat center center;
    background-size: cover;
    height: 600px;
    position: relative;
    direction: rtl;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    height: 100%;
    position: relative;
}

/* قرار دادن محتوا پایین‌تر */
.hero-content-bottom {
    position: absolute;
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    color: #fff;
}

/* متن مجوز */
.hero-license-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* دکمه */
.hero-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #f9b233;
    color: #000;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #ffcc66;
}
/* صفحه مجوزها */

.licenses-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
}

.licenses-page h1 {
    text-align: center;
    margin-bottom: 30px;
}

.licenses-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستون */
    gap: 40px; /* فاصله بیشتر */
}

.license-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.license-item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.license-pdf {
    text-align: center;
    margin-top: 40px;
}

.pdf-btn {
    background: #f9b233;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.pdf-btn:hover {
    background: #ffcc66;
}
.license-pdf-view {
    margin-top: 50px;
}

.license-pdf-view h2 {
    margin-bottom: 15px;
}
.license-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
    cursor: pointer;
}

.license-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* ===== بخش خدمات ===== */

.services-section {
    background: url('../assets/images/services-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 500px;
    margin-top: 00px;
    display: flex;
    align-items: center;
}

.services-overlay {
    max-width: 1400px;
    margin: auto;
    text-align: center;
}

.services-title {
    color: rgb(40, 197, 74);
    font-size: 28px;
    margin-bottom: 40px;
}

.services-cards {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: nowrap;
    
}

.service-card {
    flex: 1;
    min-width: 200px;
    background: #b3f0db;  
    padding: 80px 30px;
    border-radius: 14px;
    text-decoration: none;
    color: #000;          /* متن مشکی */
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}
.service-card h3 {
    color: #000;
}


.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px #36cfda;
    background: #36cfda;
}

.card-title {
    text-align: center;
}

/* ===== بخش عملکرد صندوق ===== */

.performance-section {

    background: url('../assets/images/performance-bg.jpg');
    background-size: cover;
    background-position: center;

    padding: 80px 0;
}

.performance-overlay {

    max-width: 1300px;
    margin: auto;

    padding: 0 40px;
}

.performance-cards {

    display: flex;

    gap: 25px;

    justify-content: space-between;
}

.performance-card {

    flex: 1;

    background: #fff;

    border-radius: 12px;

    padding: 20px;

    text-align: center;

    transition: 0.3s;
}

.performance-card img {

    width: 100%;

    height: auto;

    border-radius: 8px;

    margin-bottom: 10px;
}

.performance-card p {

    font-size: 16px;

    font-weight: bold;

    color: #0cbcc2;
}

.performance-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.performance-card {
    direction: rtl;
}

/* ===== اخبار و مطالب آموزشی ===== */

.news-section {

    padding: 100px 0;

    background: #ffffff;

}


/* کانتینر اصلی */
.news-container {

    max-width: 1500px;

    margin: auto;

    display: flex;

    gap: 40px;

    padding: 0 60px;

}


/* هر ستون */
.news-box {

    flex: 1;

    background: #ffffff;

    padding: 35px;

    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    direction: rtl;

    min-height: 520px;

    transition: transform 0.3s, box-shadow 0.3s;

}


/* افکت hover حرفه‌ای */
.news-box:hover {

    transform: translateY(-5px);

    box-shadow: 0 12px 35px rgba(0,0,0,0.12);

}


/* عنوان بخش */
.news-box h2 {

    margin-bottom: 20px;

    font-size: 24px;

    font-weight: bold;

    text-align: right;

}


/* اسلایدر */
.slider {

    position: relative;

    width: 100%;

    min-height: 420px;

}


/* هر اسلاید */
.slide {

    display: none;

    text-align: right;

}


/* اسلاید فعال */
.slide.active {

    display: block;

}


/* تصویر */
.slide img {

    width: 100%;

    height: 300px;

    object-fit: cover;

    border-radius: 12px;

}


/* عنوان خبر */
.slide h3 {

    font-size: 20px;

    margin-top: 15px;

    font-weight: bold;

}


/* متن خبر */
.slide p {

    font-size: 16px;

    margin-top: 10px;

    line-height: 1.7;

    color: #444;

}


/* ===== نسخه موبایل ===== */
@media (max-width: 768px) {

    .news-container {

        flex-direction: column;

        padding: 0 20px;

    }

    .news-box {

        min-height: auto;

        padding: 25px;

    }

    .slide img {

        height: 220px;

    }

    .news-box h2 {

        font-size: 20px;

    }

}


/* ===== مانیتورهای بزرگ ===== */
@media (min-width: 1400px) {

    .slide img {

        height: 340px;

    }

}
/* دکمه های قبلی و بعدی */

.slider button {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);

    color: #fff;

    border: none;

    padding: 10px 15px;

    cursor: pointer;

    font-size: 18px;

    border-radius: 6px;

    transition: 0.3s;

}

.slider .prev {
    right: 10px;
}

.slider .next {
    left: 10px;
}

.slider button:hover {
    background: rgba(0,0,0,0.8);
}
/* ===== سهامداران ===== */

.shareholders-section {

    padding: 100px 0;

    background: #ffffff;

    text-align: center;

}

.section-title {

    font-size: 28px;

    margin-bottom: 40px;

}

.shareholders-slider {

    overflow: hidden;

    position: relative;

    width: 100%;

}

.shareholders-track {

    display: flex;

    width: max-content;

    animation: scroll 35s linear infinite;

    gap: 60px;

}

.shareholders-track img {

    height: 100px;

    width: auto;

    object-fit: contain;

    transition: 0.3s;

    opacity: 0.8;

}

.shareholders-track img:hover {

    opacity: 1;

    transform: scale(1.20);

}

/* توقف هنگام Hover */
.shareholders-slider:hover .shareholders-track {

    animation-play-state: paused;

}

/* انیمیشن حرکت */
@keyframes scroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}

/* نسخه موبایل */
@media (max-width: 768px) {

    .shareholders-track {

        gap: 40px;

    }

    .shareholders-track img {

        height: 70px;

    }

}

/* ===== مشتریان ===== */

.clients-section {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.clients-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.clients-track {
    display: flex;
    width: fit-content;
    animation: clientScroll 35s linear infinite;
}

.client-logos {
    display: flex;
    gap: 70px;
}

.client-logos img {
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: 0.3s;
}

.client-logos img:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* توقف هنگام hover */
.clients-slider:hover .clients-track {
    animation-play-state: paused;
}

/* انیمیشن */
@keyframes clientScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* موبایل */
@media (max-width: 768px) {

    .client-logos {
        gap: 40px;
    }

    .client-logos img {
        height: 60px;
    }

}
