@import url('font.css');

*{
        text-decoration: none;
}


input[type="text"], textarea, select {
    width: auto;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--on-surface);
    transition: border-color 0.3s;
}
button, .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: background 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
.container {
    max-width: 1200px;
    margin: 0 auto;
}

a.btn.btn-secondary {
    background: none;
    padding: 0px;
}
form.filter-form {
    display: flex
;
    gap: 10px;
    margin: 20px 0px;
}

a.page-link {
    color: #fff;
}

a.page-link.active {
    color: #ffffff;
    padding: 10px 20px;
    background: #242424;
    border-radius: 10px;
    font-size: 14px;
    margin: 0px 10px;
}

a.page-after {
    padding: 10px 20px;
    background: #4849e8;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    margin-right:10px;
}

a.page-before {
    padding: 10px 20px;
    background: #252525;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    margin-left:10px;
}

.pagination {
    margin-top: 15px;
    font-size: 20px;
    text-align: center;
}

.page-title{
    font-size:20px;
}

h1 {
    text-align: center;
    color: #e0e0e0;
    margin: 0;
    font-weight: 700;
}

/* شبکه کارت‌های آموزشی */
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top:20px;
}

/* استایل کارت آموزشی */
.course-card {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* بخش تصویر کارت */
.img-section-card {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #333;
    transition: transform 0.7s ease;
}

.course-card:hover img {
    transform: scale(1.08);
}

/* لایه overlay هنگام هاور */
.rotosh-hover-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

.course-card:hover .rotosh-hover-card {
    opacity: 1;
    visibility: visible;
}

/* بخش اطلاعات کارت */
.course-info {
    padding: 18px;
}

.course-title {
    font-size: 18px;
    margin: 0 0 12px;
    color: #e0e0e0;
    font-weight: 600;
}

.course-description {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* استایل‌های آیکون پلی */
.play-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    position: relative;
    text-decoration: none;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon {
    width: 80px;
    height: 80px;
    z-index: 3;
    position: relative;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.play-icon-circle {
    fill: rgba(255, 255, 255, 0.15);
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1.2;
    transition: all 0.4s ease;
}

.play-icon-triangle {
    fill: rgba(255, 255, 255, 0.9);
    transform: translate(2px, 0);
    transition: all 0.3s ease;
}

.play-icon-wrapper:hover {
    transform: scale(1);
}

.play-icon-wrapper:hover .play-icon {
    transform: scale(1.1);
}

.play-icon-wrapper:hover .play-icon-circle {
    fill: rgba(72, 73, 232, 0.25);
    stroke: #4849e8;
    stroke-width: 1.5;
}

.play-icon-wrapper:hover .play-icon-triangle {
    fill: #4849e8;
}

/* حلقه های پالس انیمیشنی */
.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

.course-card:hover .pulse-ring {
    animation: pulse 2s infinite;
}

.course-card:hover .pulse-ring.delay {
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* انیمیشن برای آیکون پلی هنگام نمایش */
.course-card:hover .play-icon-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(0.9);
    }
}

/* انیمیشن برای حلقه‌ها با تاخیر */
.course-card:hover .pulse-ring {
    animation: pulse 2s infinite;
}

.course-card:hover .pulse-ring.delay {
    animation: pulse 2s infinite 0.7s;
}

/* واکنش‌گرایی برای صفحه‌های کوچک‌تر */
@media (max-width: 768px) {
    .courses {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .play-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .play-icon {
        width: 70px;
        height: 70px;
    }
    
    .pulse-ring {
        width: 90px;
        height: 90px;
    }
}