/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@font-face {
  font-family: 'titr';
  src: url('fonts/B Titr Bold_0.ttf') format('ttf');
}
@font-face {
  font-family: 'iran';
  src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'vazir';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}
/* کارت ها */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px)); /* تغییر یافته */
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center; /* اضافه شده */
    justify-items: center;
}
.card {
    flex: 0 0 280px; /* عرض ثابت 280px */
    max-width:300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.card-img {
    width: 100%;
    height: 200px;
    transition: transform 0.5s ease;
}
.card:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.card-content h3 {
     font-family: 'titr' !important;
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-size: 1.6rem;
}
.card-content p {
    font-family: 'iran' !important;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.card-btn {
        font-family: 'vazir' !important;
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.card-btn:hover {
    background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
    letter-spacing: 1px;
} 
@media (max-width: 768px) {
   .card-container {
        grid-template-columns: 1fr;
   }
}   