﻿/*habersayfa.css*/
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Noto+Serif+Sinhala&family=Playball&display=swap');

/* Swiper Slider Styles */
.scn {
    width: 100%;
    height: 430px;
    max-height: 430px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.swr {
    height: 100%;
    width: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 430px;
}

.imageas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    border:0px solid #f2f2f2;
}

/* Portrait orientation images */
.swiper-slide.portrait .imageas {
    height: 100%;
    width: auto;
}

/* Landscape orientation images */
.swiper-slide.landscape .imageas {
    width: 100%;
    height: auto;
}

/* Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #000;
    background: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 20px;
    }

.swiper-pagination {
    position: relative;
    margin-top: 10px;
}

/* General Styles */
.nextbefore {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: row;
    height: 60px;
    max-width: 1000px;
    margin: 0 0 10px 0;
    border-radius: 7px;
    text-decoration: none;
    border: 0px solid black;
}

.coverbefore, .covernext {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    height: 50px;
    width: 200px;
    border: 1px solid lightgray;
    border-radius: 3px;
    color: black;
    background-color: white;
}

.nebe {
    text-decoration: none;
    list-style-type: none;
    color: white;
    text-align: center;
    font-family: 'Berkshire Swash', cursive;
}

.baslik {
    font-size: 20px;
    text-indent: 5px;
    padding: 10px;
    border-bottom: 1px solid #d4d2d2;
    margin-bottom: 15px;
    border-radius: 10px;
}

.paragraf {
    font-size: 17px;
    text-indent: 20px;
    padding-top: 20px;
    border: 0px solid black;
}

.anahaber {
    margin-bottom: 15px;
}

.vid {
    width: 100%;
    height: auto;
    border:0px solid red;
}

video {
    width: 100%;
    max-height: 500px;
}

.bas {
    font-size: 17px;
    font-weight: bold;
}

.habe {
    border-top: 3px solid lightgray;
    border-bottom: 3px solid lightgray;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    padding: 20px 40px 20px 40px;
    border: 1px solid #e1dfdf;
    margin: 0 auto;
    
}

.habertarih {
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid lightgray;
}

.yazar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 250px;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    margin-top: 30px;
    float: right;
}

.resimlerim {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 70px;
    border: 5px solid whitesmoke;
    border-radius: 50px;
    margin-right: 10px;
    overflow: hidden;
    z-index: 1;
}

.isimlerim {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 180px;
    border: 1px solid lightgray;
    border-radius: 50px;
    font-family: 'Berkshire Swash', cursive;
}

/* Fixed Navigation Buttons */
.nextbefore {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin: 0;
    width: 100%;
}

.coverbefore, .covernext {
    z-index: 1001;
    transition: all 0.3s ease;
}

    .coverbefore:hover, .covernext:hover {
        background-color: #f5f5f5;
        transform: translateY(-2px);
    }
.paragraf.collapse {
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
}
/* Responsive Styles */
@media all and (max-width: 1200px) {
    .habe {
        padding: 20px;
        max-width: 100%;
    }

    .scn {
        height: 400px;
    }
}

@media all and (max-width: 768px) {
    .scn {
        height: 300px;
    }

    .habe {
        padding: 15px;
    }

    .nextbefore {
        height: auto;
        gap: 10px;
        padding: 5px 0;
    }

    .coverbefore, .covernext {
        width: 90%;
        margin: 5px 0;
    }
}

@media all and (max-width: 480px) {
    .scn {
        height: 250px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

        .swiper-button-prev:after,
        .swiper-button-next:after {
            font-size: 16px;
        }

    .habe {
        padding: 10px;
      
    }

    .nextbefore {
    }
}
