
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --light-blue: #e3f2fd;
    --dark-blue: #1565c0;
    --text-color-dark: #333;
    --text-color-light: #666;
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-border-light: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --card-shadow: rgba(13, 110, 253, 0.1);
    --card-hover-shadow: rgba(13, 110, 253, 0.25);
    --border-radius-sm: 0.75rem;
    --border-radius-lg: 1.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
}

body {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

/* Hero Section Styles */
.hero {
    position: relative;
    overflow: hidden;
    background-image: url(../img/logs.png);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
}

/* لایه‌ی گرادیان روی تصویر */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.647), rgba(0, 87, 179, 0.772));
    z-index: 1;
    pointer-events: none;
}

/* محتوای داخلی باید بالاتر از گرادیان قرار گیرد */
.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
}

.glass-box {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 0 20px 40px var(--glass-shadow);
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.glass-form {
    position: relative;
    z-index: 2;
}

.glass-form input,
.glass-form select {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color-dark);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.glass-form input:focus,
.glass-form select:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.glass-form input::placeholder {
    color: var(--text-color-light);
    font-weight: 400;
}

.glass-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23666' points='70,100 20,40 120,40'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 12px;
    padding-left: 3rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    background: linear-gradient(45deg, var(--dark-blue) 0%, var(--primary-color) 100%);
}

.btn-warning {
    background: linear-gradient(45deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-warning:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Course List Section */
.course-list {
    background: #ffffff;
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-title {
    color: var(--text-color-dark);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.course-card {
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(13, 110, 253, 0.1);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--dark-blue) 100%);
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--card-hover-shadow);
}

.course-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    line-height: 1.4;
}

.short-description {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.list-unstyled {
    margin-bottom: 1.5rem;
}

.list-unstyled li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.list-unstyled li strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 60px;
    margin-left: 0.5rem;
}

.list-unstyled li::before {
    content: '●';
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-left: 0.8rem;
}

.btn-sm {
    border-radius: 25px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    border: none;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    color: white;
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-color-light);
    font-size: 1.1rem;
}

/* Media Queries */
@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .glass-box {
        padding: 2rem 1rem;
        width: 95%;
    }
    
    .glass-form input,
    .glass-form select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 0 1.5rem;
    }
    
    .glass-box {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 993px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
        padding: 0 3rem;
    }
}
