﻿

/*slider*/
.slider {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 80vw;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin: auto;
}

.slide {
    flex: 1;
    transition: transform 1s ease, margin 1s ease;
    position: relative;
}

    .slide img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 1s ease;
    }

    .slide.center {
        flex: 1.5;
    }

        .slide.center img {
            transform: scale(1.1);
        }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.left {
    left: -40px;
}

.right {
    right: -40px;
}

@media (max-width: 1200px) {
    .slider {
        display: none;
    }
}

/*Mobile Slider*/

.mobil-gorsel-alani {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    aspect-ratio: 16 / 9; /* Mobil için oranlı görünüm */
    display: none;
    margin-top: 6em;
    margin-bottom: 5em;
}

.mobil-gorsel-kapsayici {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.mobil-gorsel {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

    .mobil-gorsel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mobil-noktalar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.mobil-nokta {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.aktif {
    background-color: #333;
}

@media (max-width: 1200px) {
    .mobil-gorsel-alani {
        display: block;
    }
}

/*Tagline*/
.tagline {
    background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
    padding: 6em 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-bottom: 8px solid #00c9ff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    margin-top: -3em;
}

.tagline-inner {
    max-width: 900px;
}

.tagline h1 {
    font-size: 3em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background: linear-gradient(90deg, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5em;
}

.tagline p {
    font-size: 1.4em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #e0f7fa;
}

@media (max-width: 768px) {
    .tagline {
        padding: 4em 1em;
    }

        .tagline h1 {
            font-size: 2em;
        }

        .tagline p {
            font-size: 1.1em;
        }
}


.video-container {
    display: flex;
    justify-content: center;
    gap: 4em;
    margin: 2em 0 4em 0;
    cursor: pointer;
    flex-wrap: wrap;
}

    .video-container video {
        width: 100%;
        max-width: 700px;
        height: auto;
        border: 2px solid #000;
    }

/* 430px ve altı: sadece 1 video göster */
@media (max-width: 430px) {
    .video-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5em;
    }

        .video-container a {
            display: none; /* Tüm videoları gizle */
        }

            .video-container a:first-child {
                display: block; /* Sadece ilk video görünsün */
            }

        .video-container video {
            width: 300px;
        }
}

/* 431px - 767px: alt alta 2 video */
@media (min-width: 431px) and (max-width: 767px) {
    .video-container {
        display: block;
        margin-left: 4em;
    }

        .video-container a {
            display: block;
            margin-bottom: 1em;
        }

        .video-container video {
            width: 300px;
        }
}

/* 1200px altı: video boyutunu küçült */
@media (max-width: 1200px) {
    .video-container {
        gap: 2em;
    }

        .video-container video {
            max-width: 340px;
        }
}

/*one cıkanlar*/
/* Başlık */
.highlight-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    font-family: 'Arial', sans-serif;
    margin: 40px 0 20px;
}

/* Genel sarıcı */
.highlights-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(202, 202, 202, 0), rgba(0, 0, 0, 0.521));
    width: 100%;
    margin-bottom: 20px;
}

/* Kart listesi */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    justify-items: center;
}

/* Tekil kart */
.highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgb(240, 240, 240);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 680px;
}

    /* Görsel */
    .highlight img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Metin kutusu */
.highlight-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .highlight-text h2 {
        margin-top: 0;
        font-size: 1.2rem;
    }

    .highlight-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

/* Buton */
.highlight-button {
    margin-top: auto;
    padding: 10px 20px;
    background-color: rgb(0, 0, 150);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

    .highlight-button:hover {
        background-color: rgb(0, 0, 112);
    }

/* Daha fazla link kısmı */
.more-link-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.line {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 10px;
}

.more-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(0, 0, 150);
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

    .more-link:hover {
        background-color: rgb(0, 0, 112);
    }

/* ---------------- RESPONSIVE ---------------- */

/* Mobil görünüm (480px altı) */
@media (max-width: 480px) {
    .highlight-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .highlights-container {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .highlight {
        grid-template-columns: 1fr;
        max-width: 90%;
        display: grid;
    }

        .highlight img {
            height: 180px;
        }

    .highlight-text {
        padding: 12px;
    }

        .highlight-text h2 {
            font-size: 1.1rem;
        }

        .highlight-text p {
            font-size: 0.9rem;
        }

    .highlight-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* Sadece ilk iki kutu görünsün */
    .highlight:nth-child(n+3) {
        display: none;
    }
}

/* iPad görünümü (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .highlights-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .highlight {
        flex-direction: column;
        display: flex;
        max-width: 90%;
    }

        .highlight img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

    .highlight-text {
        padding: 16px;
    }
}




/*Duyuru*/

.news {
    background: linear-gradient(180deg, rgba(121, 120, 120, 0.349), rgba(202, 202, 202, 0));
    padding: 40px 20px;
    margin: 20px 0;
}

    .news h2 {
        font-size: 2.5em;
        color: #333;
        text-align: center;
        margin-bottom: 20px;
    }

    .news article {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin: 20px 0;
        position: relative;
    }

        .news article h3 {
            font-size: 1.8em;
            color: #555;
            margin-bottom: 10px;
        }

        .news article p {
            font-size: 1em;
            color: #666;
            margin-bottom: 20px;
        }

        .news article a {
            background-color: rgb(0, 0, 150);
            color: white;
            padding: 10px 15px;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s;
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
        }

            .news article a:hover {
                background-color: rgb(0, 0, 112);
            }

@media (max-width: 768px) {
    .news {
        padding: 20px 10px;
    }

        .news h2 {
            font-size: 2rem;
            margin-bottom: 16px;
        }

        .news article {
            padding: 15px;
            margin: 16px 0;
        }

            .news article h3 {
                font-size: 1.4em;
                margin-bottom: 6px;
            }

            .news article p {
                font-size: 0.95em;
                margin-bottom: 10px;
            }

            .news article a {
                position: static;
                display: inline-block;
                margin-top: 4px;
                padding: 6px 10px; /* Buton daha küçük */
                font-size: 0.85em;
                transform: none;
            }
}

@media (max-width: 480px) {
    .news h2 {
        font-size: 1.6rem;
    }

    .news article h3 {
        font-size: 1.2em;
        margin-bottom: 4px;
    }

    .news article p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .news article a {
        font-size: 0.8em;
        padding: 5px 10px; /* Mobil için biraz daha küçük buton */
        margin-top: 2px;
    }
}
