﻿/*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;
        }
}


/*Kart*/
.kartlar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.ders-karti {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

    .ders-karti:hover {
        transform: translateY(-4px);
    }

    .ders-karti img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.ders-karti-icerik {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ders-karti h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #333;
}

.ders-karti p {
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.ders-karti a {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    background-color: rgb(0, 0, 222);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .ders-karti a:hover {
        background-color: rgb(0, 0, 110);
    }
