/* DERSLERİMİZ BÖLÜMÜ STİLLERİ */

.derslerimiz {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.ders-baslik {
    text-align: center;
    margin-bottom: 60px;
}

.ders-baslik h2 {
    font-size: 2.8rem;
    color: #4A235A;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.ders-baslik h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #4A235A, #7D3C98);
    border-radius: 2px;
}

.ders-aciklama {
    font-size: 1.2rem;
    color: #7D3C98;
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* DERS GRID */
.ders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ders-kart {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ders-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4A235A, #7D3C98);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ders-kart:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.ders-kart:hover::before {
    opacity: 1;
}

.ders-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A235A, #7D3C98);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.ders-kart:hover .ders-icon {
    transform: scale(1.1) rotate(5deg);
}

.ders-adi {
    font-size: 1.4rem;
    color: #4A235A;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.ders-kisa-aciklama {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

/* DERS DETAY BUTONU */
.ders-detay-btn {
    background: transparent;
    border: 2px solid #4A235A;
    color: #4A235A;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.ders-detay-btn:hover {
    background: #4A235A;
    color: white;
    transform: translateY(-2px);
}

.ders-detay-btn.active {
    background: #4A235A;
    color: white;
}

.ders-detay-btn.active i {
    transform: rotate(180deg);
}

.ders-detay-btn i {
    transition: transform 0.3s ease;
}

/* DERS DETAY İÇERİĞİ */
.ders-detay {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(-10px);
}

.ders-detay.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.ders-detay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ders-detay li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.ders-detay li i {
    color: #4A235A;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* DERS PROGRAMI TABLOSU */
.ders-programi {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.program-baslik {
    text-align: center;
    color: #4A235A;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.program-baslik::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4A235A, #7D3C98);
    border-radius: 2px;
}

.program-tablo {
    overflow-x: auto;
    margin-bottom: 20px;
}

.program-tablo table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.program-tablo th {
    background: linear-gradient(135deg, #4A235A, #7D3C98);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: none;
    position: relative;
}

.program-tablo th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.program-tablo th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.program-tablo td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    transition: all 0.3s ease;
}

.program-tablo tr:hover td {
    background: #f9f7ff;
    transform: scale(1.02);
}

.program-tablo td:first-child {
    font-weight: 600;
    color: #4A235A;
    background: #f5f3ff;
}

.program-not {
    text-align: center;
    color: #7D3C98;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 20px;
}

/* RESPONSIVE TASARIM */
@media (max-width: 1200px) {
    .ders-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .derslerimiz {
        padding: 60px 0;
    }
    
    .ders-baslik h2 {
        font-size: 2.2rem;
    }
    
    .ders-aciklama {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .ders-kart {
        padding: 25px;
    }
    
    .ders-adi {
        font-size: 1.3rem;
    }
    
    .ders-programi {
        padding: 25px 15px;
    }
    
    .program-baslik {
        font-size: 1.5rem;
    }
    
    .program-tablo table {
        font-size: 0.9rem;
    }
    
    .program-tablo th,
    .program-tablo td {
        padding: 12px 8px;
    }
}

@media (max-width: 576px) {
    .ders-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ders-kart {
        padding: 20px;
    }
    
    .ders-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .program-tablo table {
        font-size: 0.85rem;
    }
}

/* ANİMASYONLAR */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ders-kart {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

/* Kartları sırayla göster */
.ders-kart:nth-child(1) { animation-delay: 0.1s; }
.ders-kart:nth-child(2) { animation-delay: 0.2s; }
.ders-kart:nth-child(3) { animation-delay: 0.3s; }
.ders-kart:nth-child(4) { animation-delay: 0.4s; }
.ders-kart:nth-child(5) { animation-delay: 0.5s; }
.ders-kart:nth-child(6) { animation-delay: 0.6s; }
.ders-kart:nth-child(7) { animation-delay: 0.7s; }
.ders-kart:nth-child(8) { animation-delay: 0.8s; }
.ders-kart:nth-child(9) { animation-delay: 0.9s; }
.ders-kart:nth-child(10) { animation-delay: 1s; }

/* Hover efekti için ek stiller */
.ders-kart:hover .ders-adi {
    color: #7D3C98;
}

.ders-kart:hover .ders-kisa-aciklama {
    color: #555;
}