﻿/*Tagline*/
.tagline {
    margin: 5.5em 0 3em 0;
    color: #333;
    text-align: center;
    background: linear-gradient(180deg, rgba(167, 166, 166, 0.3), rgba(150, 225, 255, 0.3));
    padding: 1.5em;
    width: 100%;
    box-sizing: border-box;
}

    .tagline p {
        font-size: 3em;
        font-weight: bold;
        color: rgb(0, 0, 128);
        padding: 0.5em;
        margin: 0 auto;
        display: inline-block;
        text-align: center;
    }

@media (max-width: 430px) {
    .tagline {
        padding: 2em;
        margin-top: 5.5em;
    }

        .tagline h1 {
            font-size: 1.5em;
        }

        .tagline p {
            font-size: 1.5em;
            padding: 0;
        }
}

@media (min-width: 430px) and (max-width: 767px) {
    .tagline {
        padding: 2em;
        margin-top: 6em;
    }

        .tagline h1 {
            font-size: 1.5em;
        }

        .tagline p {
            font-size: 1.5em;
            padding: 0;
        }
}

@media (max-width: 1200px) {
    .tagline {
        padding: 2em;
    }

        .tagline h1 {
            font-size: 1.5em;
        }

        .tagline p {
            font-size: 1.5em;
            padding: 0;
        }
}

/* Arama kutusu */
.arama-kutusu {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 2rem auto;
}

    .arama-kutusu input {
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        outline: none;
        transition: border-color 0.3s ease;
    }

        .arama-kutusu input:focus {
            border-color: #aaa;
        }

.arama-ikon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    border: 2px solid #888;
    border-radius: 50%;
    box-sizing: border-box;
}

    .arama-ikon::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 2px;
        background: #888;
        top: 12px;
        left: 12px;
        transform: rotate(45deg);
        transform-origin: left top;
        border-radius: 1px;
    }

/* Öneri kutusu (autocomplete listesi) */
.arama-oneriler {
    position: absolute;
    top: 100%; /* input'un hemen altına yerleşir */
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    /* Öneri kutusu satırları */
    .arama-oneriler li {
        padding: 10px;
        cursor: pointer;
        font-size: 0.95rem;
    }

        /* Üzerine gelince renk */
        .arama-oneriler li:hover {
            background-color: #f0f0f0;
        }


/* Mobil uyumluluk */
@media (max-width: 480px) {
    .arama-kutusu {
        width: 95%;
        margin: 1.5rem auto;
    }

        .arama-kutusu input {
            font-size: 0.95rem;
            padding: 0.65rem 2.2rem 0.65rem 0.9rem;
        }

    .arama-ikon {
        width: 14px;
        height: 14px;
        right: 0.8rem;
    }

        .arama-ikon::after {
            width: 5px;
            height: 2px;
            top: 10px;
            left: 10px;
        }
}

/* Ders Kartları Bölümünün Kapsayıcısı */
.ders-kartlari-bolumu {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

    .ders-kartlari-bolumu h2 {
        font-size: 2em;
        color: #007bff;
        margin-bottom: 25px;
        text-align: center;
    }

/* Kartları İçeren Container (Esnek Düzen) */
.kart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    align-items: stretch; /* Burası ÖNEMLİ: Kartların dikeyde eşit yükseklikte olmasını sağlar */
}

/* Her Bir Ders Kartının Stili */
.ders-karti {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 300px;
    display: flex;
    flex-direction: column; /* İçeriği dikey sırala */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

    .ders-karti:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.kart-ust {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Resimlerin (ikonların) Boyut ve Davranış Ayarları */
.ders-ikon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
}

.ders-karti h3 {
    font-size: 1.6em;
    color: #007bff;
    margin: 0;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* KART AÇIKLAMA VE LİSTE DÜZENLEMESİ */
.kart-aciklama {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Esneklik: Bu alanın mümkün olduğunca büyümesini sağlar */
    display: -webkit-box; /* Metni belirli satır sayısıyla sınırlamak için */
    -webkit-line-clamp: 4; /* Maksimum satır sayısı. İhtiyaca göre 3, 5 gibi değiştirebilirsiniz. */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-height: 100px; (Opsiyonel): Eğer -webkit-line-clamp yetmezse, sabit bir max-height deneyebilirsiniz */
}

.ogrenim-ciktilari {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    flex-grow: 1; /* Esneklik: Bu alanın da mümkün olduğunca büyümesini sağlar */
    /* min-height: 80px; (Opsiyonel): Eğer listeler çok kısaysa, minimum yükseklik verebilirsiniz */
}

    .ogrenim-ciktilari li {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 8px;
        position: relative;
        padding-left: 20px;
    }

        .ogrenim-ciktilari li::before {
            content: '✔';
            color: #28a745;
            position: absolute;
            left: 0;
            top: 0;
        }

.kart-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Kartın alt kısmını her zaman en dibe iter */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ders-seviyesi {
    background-color: #e0f7fa;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.btn-detay {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-detay:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }

/* Mobil Uyumlu Tasarım (Responsive) */
@media (max-width: 768px) {
    .kart-container {
        flex-direction: column;
        align-items: center;
    }

    .ders-karti {
        width: 90%;
        max-width: 350px;
        padding: 20px;
    }

    .ders-kartlari-bolumu h2 {
        font-size: 1.8em;
    }

    .ders-ikon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
}
