﻿
/*.slider-container {
    position: relative;
    width: 320px;
    margin: 20px auto 0 auto;
    perspective: 1000px;
    background: #fff;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate360 120s infinite forwards linear;
}

.image {
    position: absolute;
    height: 200px;
    top: 20px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    cursor: pointer;
    background: none;
}

.image-caption {
    position: absolute;*/
    /*    margin-top: 150px;*/
    /*color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    width: 98%;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 5px;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2000px rgba(81, 70, 70, 0.5);
    background: none;
}

@keyframes rotate360 {
    from {
        transform: rotateY(360deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

.image:nth-child(1) {
    transform: rotateY(0deg) translateZ(450px);
}

.image:nth-child(2) {
    transform: rotateY(40deg) translateZ(450px);
}

.image:nth-child(3) {
    transform: rotateY(80deg) translateZ(450px);
}

.image:nth-child(4) {
    transform: rotateY(120deg) translateZ(450px);
}

.image:nth-child(5) {
    transform: rotateY(160deg) translateZ(450px);
}

.image:nth-child(6) {
    transform: rotateY(200deg) translateZ(450px);
}

.image:nth-child(7) {
    transform: rotateY(240deg) translateZ(450px);
}

.image:nth-child(8) {
    transform: rotateY(280deg) translateZ(450px);
}

.image:nth-child(9) {
    transform: rotateY(320deg) translateZ(450px);
}*/


/*  NEWS LIST STYLE */
.news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #424242
}

.news-main-card {
    padding-right: 30px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.inspiration-section {
    width: 100%;
    height: auto;
    margin: 0px auto;
    padding: 20px;
    background: #eeeeee;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
}


.article {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: justify;
    transition: transform 0.2s;
    cursor: pointer;
}

    .article:hover {
        transform: scale(1.02); 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

.image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.1;
    font-weight: normal;
    color: rgb(104, 99, 99);
}

.article-date {
    font-size: 12px;
    color: #888;
    font-style: italic;
    padding-top: 5px;
    margin-bottom: 0px;
}

.view-all-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
    border-radius: 4px;
}

    .view-all-btn:hover {
        background: #444;
    }

/* Responsivitas */
@media screen and (max-width: 768px) {

    .article-title {
        display: -webkit-box;
        -webkit-line-clamp: 3; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px; 
        text-align: justify;
        line-height: 1.2;
    }

    .view-all-btn {
        width: 10%; 
        padding: 10px;
        font-size: 60%;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 100%;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 5px; 
    }

    .article-title {
        display: -webkit-box;
        -webkit-line-clamp: 3; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
        text-align: justify;
        line-height: 1.2;
        margin-bottom: 0px;
    }

    .article-date {
        font-size: 7px; 
        margin-bottom: 0px;
    }

    .view-all-btn {
        width: 10%; 
        padding: 7px; 
        font-size: 10%;
    }
}



.content-image {
    margin: auto;
/*    width: 50%;*/
    height: 400px;
}

.content-img {
    margin: 7px auto;
    border-radius: 15px;
    /*    width: 100%;*/
    width: auto;
    height: 350px;
    object-fit:contain;
}

.content-h2 {
    margin-left: 10px;
    margin-top: 18px;
    font-size: 20px;
}

.content-p {
    margin: 15px 10px 0px 10px;
    font-size: 15px;
    color: rgb(104, 99, 99);
}




.slider-img {
    display: none;

}

    .slider-img.active {
        display: block;
    }

.content-image {
    position: relative;
}


/* ====================== NEW SLIDER ================================== */

img {
    max-width: 100%;
    border-radius: 8px;
}


.slider {
    height: var(--height);
    width: 90%;
    overflow: hidden;
    mask-image: linear-gradient( to right, transparent, #000 10%, #000 90%, transparent );
}


.list {
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
    margin: 0;
    padding: 0;
    list-style-type: none;
}


.image-item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    transform: translateX(100vw);
    animation: AutoRun var(--duration) linear infinite;
    animation-delay: calc( (var(--duration) / var(--quantity)) * (var(--position) - 1) - var(--duration) );
}

.slider-news-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.image-item {
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .image-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

    .image-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.image-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: center;
    padding: 1px 5px;
    margin: 0;
    line-height: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* sadece 2 satır göster */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

@keyframes AutoRun {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(calc(var(--width) * -1));
    }
}