body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}


/* ===== Top Header ===== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1e3c72, #2a5298); /* طیف آبی */
    color: #fff;
    padding: 8px 20px;
    height: 50px;
    font-family: Arial, sans-serif;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
}

.right-header a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.right-header a:hover {
    color: #ffd700; /* تغییر رنگ هنگام هاور */
}
/* ===== Header ===== */
.header {
    background-image: url("header.jpg");
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center; 
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header h1 {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 36px;
    letter-spacing: 2px;
}

/* ===== Main Section ===== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

 /* ===== Cards Section ===== */
.cards {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap; /* اجازه به ردیف بعدی در موبایل */
}

/* کارت‌ها */
.card {
    background: #fff;
    flex: 1 1 calc(20% - 16px); /* هر کارت تقریبا 20% عرض با فاصله */
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 180px; /* حداقل عرض کارت */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 10px 5px;
    font-size: 18px;
}

.card p {
    font-size: 14px;
    padding: 0 15px 20px;
    color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .card {
        flex: 1 1 calc(33.33% - 16px); /* 3 کارت در ردیف */
    }
}

@media (max-width: 900px) {
    .card {
        flex: 1 1 calc(50% - 16px); /* 2 کارت در ردیف */
    }
}

@media (max-width: 600px) {
    .card {
        flex: 1 1 100%; /* کارت‌ها تک‌تک در موبایل */
    }
}

/* ===== Footer ===== */
footer {
    background: #222;
    color: #ddd;
    text-align: center;
    padding: 25px 15px;
    margin-top: 50px;
    font-size: 14px;
}

 

/* ===== Intro Text ===== */
.intro-text {
    max-width: 1000px;
    margin: 30px auto 50px; /* فاصله از بالا و پایین */
    padding: 20px 25px;
    background-color: #f0f4f8; /* رنگ پس‌زمینه ملایم */
    border-left: 6px solid #2a5298; /* نوار کناری آبی */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.intro-text p strong {
    font-size: 18px;
    color: #1e3c72;  
}

.lang-switch {
    margin-right: 20px;
    font-size: 14px;
}

.lang {
    cursor: pointer;
    opacity: 0.6;
    margin: 0 4px;
}

.lang:hover {
    opacity: 1;
}

.lang.active {
    opacity: 1;
    font-weight: bold;
    text-decoration: underline;
}
