
/* Hero */
.hero {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.hero-badge {
    background: rgba(59,130,246,0.12);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to left, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2rem;
}
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(59,130,246,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(59,130,246,0.5);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    color: #1e293b;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to left, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.section-header p {
    color: #5b6e8c;
    margin-top: 0.5rem;
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0 3rem;
}
.cat-card {
    background: white;
    border-radius: 28px;
    padding: 1.8rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}
.cat-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}
.cat-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cat-card p {
    font-size: 0.85rem;
    color: #64748b;
}
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(59,130,246,0.12);
    border-color: #e0e7ff;
}

/* Cards Grid (آموزش تکی و دوره‌ها) */
.courses-grid, .tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.edu-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px -12px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.5);
}
.edu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.2);
}
.card-img {
    height: 170px;
    background: linear-gradient(145deg, #d9e6ff, #eff5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3b82f6;
}
.card-content {
    padding: 1.5rem;
}
.badge-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    background: #eef2ff;
    color: #2563eb;
}
.badge-course {
    background: #fef3c7;
    color: #d97706;
}
.badge-single {
    background: #dcfce7;
    color: #16a34a;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}
.card-desc {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 2;
    text-align: justify;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9eef3;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.price {
    font-weight: 800;
    color: #0f172a;
}
.price-free {
    color: #16a34a;
}
.more-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* newsletter */
.newsletter {
    background: linear-gradient(110deg, #1e293b, #0f172a);
    border-radius: 48px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.3);
}
.newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.newsletter form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.newsletter input {
    padding: 0.9rem 1.5rem;
    border-radius: 60px;
    border: none;
    width: 280px;
    font-family: 'Vazirmatn';
    outline: none;
}
.newsletter button {
    background: #3b82f6;
    border: none;
    padding: 0 1.8rem;
    border-radius: 60px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
