/* Genel Stil */
body.is-councils-page {
    padding-bottom: 0 !important;
}

/* Hero Section */
.council-hero {
    margin-top: 120px;
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    z-index: 0;
}

.council-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    z-index: 1;
    transition: transform 0.5s ease-out;
}

/* Mobil görünümde Kadın Meclisi görselini sağa kaydır */
@media (max-width: 767px) {
    body.is-councils-page .council-hero-bg {
        background-position: 65% center; /* Görseli sağa doğru kaydır */
    }
    
    .council-hero {
        margin-top: 90px;
        padding: 40px 0;
    }
}

/* Responsive ayarlamalar */
@media (max-width: 991.98px) {
    .council-hero {
        margin-top: 100px;
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .council-hero {
        margin-top: 80px;
        padding: 30px 0;
    }
}

/* iOS cihazlar için dinamik alan */
@supports (padding: max(0px)) {
    .council-hero {
        margin-top: 120px;
    }

    /* Dynamic Island özelliği olan cihazlar */
    @media only screen 
        and (device-width: 430px) 
        and (device-height: 932px) 
        and (-webkit-device-pixel-ratio: 3),
        only screen 
        and (device-width: 393px) 
        and (device-height: 852px) 
        and (-webkit-device-pixel-ratio: 3) {
        
        .council-hero {
            margin-top: 140px !important;
        }
    }
}

.council-hero:hover .council-hero-bg {
    transform: scale(1.05);
}

.council-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.council-hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 50px;
}

.council-hero .row {
    width: 100%;
}

.council-hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: -50px;
}

.council-hero-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.council-hero .btn {
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.council-hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Content Section */
.council-content-section {
    background-color: #f8f9fa;
    padding-top: 80px;
}

.content-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.content-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.content-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

/* Content stili - editörden gelen içerik için */
.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.content-text h1, .content-text h2, .content-text h3, .content-text h4, .content-text h5, .content-text h6 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-text p {
    margin-bottom: 1.2rem;
}

.content-text ul, .content-text ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text table {
    width: 100%;
    margin-bottom: 1.2rem;
    border-collapse: collapse;
}

.content-text table, .content-text th, .content-text td {
    border: 1px solid #ddd;
}

.content-text th, .content-text td {
    padding: 12px;
    text-align: left;
}

.content-text th {
    background-color: #f2f2f2;
}

.content-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

.content-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-text a:hover {
    color: var(--primary-color-dark);
}

/* News Cards */
.news-section-title {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
}

.news-section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    background: white;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.news-img-container {
    position: relative;
    overflow: hidden;
}

.news-img-container img {
    transition: transform 0.5s;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-card:hover .news-img-container img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-top-right-radius: 10px;
}

.news-title {
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Join Banner */
.join-banner {
    border-radius: 10px;
}

/* Haber Slayt Gösterimi Kodları */
.council-news-slider {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.council-news-slider .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    position: relative;
}

.council-news-slider .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Carousel Stil */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Radio butonlarını gizle */
.carousel-container input[type="radio"] {
    display: none;
}

/* Kartlar konteynerı */
.council-cards {
    position: relative;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Geçiş efekti */
.council-cards.sliding .carousel-card {
    transition: all 0.3s ease-in-out;
}

/* Carousel kartları */
.carousel-card {
    position: absolute;
    width: 55%;
    height: 400px;
    left: 22.5%;
    top: 50px;
    cursor: pointer;
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.8) translateX(300px);
    transition: transform 0.5s, opacity 0.5s, z-index 0s 0.5s;
    background-color: #f0f0f0;
}

/* Carousel kartları içindeki görseller */
.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

/* Aktif kart */
input[id="council-item-1"]:checked ~ .cards #council-news-1,
input[id="council-item-2"]:checked ~ .cards #council-news-2,
input[id="council-item-3"]:checked ~ .cards #council-news-3,
input[id="council-item-4"]:checked ~ .cards #council-news-4,
input[id="council-item-5"]:checked ~ .cards #council-news-5,
input[id="council-item-6"]:checked ~ .cards #council-news-6,
input[id="council-item-7"]:checked ~ .cards #council-news-7,
input[id="council-item-8"]:checked ~ .cards #council-news-8,
input[id="council-item-9"]:checked ~ .cards #council-news-9,
input[id="council-item-10"]:checked ~ .cards #council-news-10 {
    z-index: 5;
    opacity: 1;
    transform: scale(1) translateX(0);
    transition: transform 0.5s, opacity 0.5s, z-index 0s;
    visibility: visible;
}

/* Önceki kart */
input[id="council-item-2"]:checked ~ .cards #council-news-1,
input[id="council-item-3"]:checked ~ .cards #council-news-2,
input[id="council-item-4"]:checked ~ .cards #council-news-3,
input[id="council-item-5"]:checked ~ .cards #council-news-4,
input[id="council-item-6"]:checked ~ .cards #council-news-5,
input[id="council-item-7"]:checked ~ .cards #council-news-6,
input[id="council-item-8"]:checked ~ .cards #council-news-7,
input[id="council-item-9"]:checked ~ .cards #council-news-8,
input[id="council-item-10"]:checked ~ .cards #council-news-9,
input[id="council-item-1"]:checked ~ .cards #council-news-10 {
    z-index: 4;
    opacity: 0.8;
    transform: scale(0.9) translateX(-160px);
    visibility: visible;
}

/* Sonraki kart */
input[id="council-item-1"]:checked ~ .cards #council-news-2,
input[id="council-item-2"]:checked ~ .cards #council-news-3,
input[id="council-item-3"]:checked ~ .cards #council-news-4,
input[id="council-item-4"]:checked ~ .cards #council-news-5,
input[id="council-item-5"]:checked ~ .cards #council-news-6,
input[id="council-item-6"]:checked ~ .cards #council-news-7,
input[id="council-item-7"]:checked ~ .cards #council-news-8,
input[id="council-item-8"]:checked ~ .cards #council-news-9,
input[id="council-item-9"]:checked ~ .cards #council-news-10,
input[id="council-item-10"]:checked ~ .cards #council-news-1 {
    z-index: 4;
    opacity: 0.8;
    transform: scale(0.9) translateX(160px);
    visibility: visible;
}

/* Diğer kartlar */
.carousel-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 2;
}

.card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.card-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.card-link {
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    margin-top: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.card-link:hover {
    color: white;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: -45px;
    width: 100%;
    text-align: center;
}

.carousel-dots label {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

input[id="council-item-1"]:checked ~ .carousel-dots label[for="council-item-1"],
input[id="council-item-2"]:checked ~ .carousel-dots label[for="council-item-2"],
input[id="council-item-3"]:checked ~ .carousel-dots label[for="council-item-3"],
input[id="council-item-4"]:checked ~ .carousel-dots label[for="council-item-4"],
input[id="council-item-5"]:checked ~ .carousel-dots label[for="council-item-5"],
input[id="council-item-6"]:checked ~ .carousel-dots label[for="council-item-6"],
input[id="council-item-7"]:checked ~ .carousel-dots label[for="council-item-7"],
input[id="council-item-8"]:checked ~ .carousel-dots label[for="council-item-8"],
input[id="council-item-9"]:checked ~ .carousel-dots label[for="council-item-9"],
input[id="council-item-10"]:checked ~ .carousel-dots label[for="council-item-10"] {
    background: var(--primary-color);
    transform: scale(1.4);
}

/* Carousel navigasyon butonları */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* İlerleme çubuğu konteynerı */
.news-progress-container {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    display: none; /* Mobil görünümde gizli */
}

.news-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.council-news-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.1s linear;
}

@media (max-width: 991px) {
    .council-hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .council-hero-title {
        font-size: 3.5rem;
        margin-top: -190px;
    }
    
    .council-hero-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .council-hero .btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }
    
    .carousel-card {
        width: 90%;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .council-hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .council-hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .council-hero-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .council-hero .btn {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
    
    .council-content-section {
        padding-top: 50px;
    }
    
    .carousel-card {
        width: 100%;
    }
    
    .news-progress-container {
        display: block;
    }
    
    input[id="council-item-2"]:checked ~ .cards #council-news-1,
    input[id="council-item-3"]:checked ~ .cards #council-news-1,
    input[id="council-item-4"]:checked ~ .cards #council-news-1,
    input[id="council-item-5"]:checked ~ .cards #council-news-1,
    input[id="council-item-6"]:checked ~ .cards #council-news-1,
    input[id="council-item-7"]:checked ~ .cards #council-news-1,
    input[id="council-item-8"]:checked ~ .cards #council-news-1,
    input[id="council-item-9"]:checked ~ .cards #council-news-1,
    input[id="council-item-10"]:checked ~ .cards #council-news-1 {
        transform: translateX(-100%);
    }
    
    input[id="council-item-1"]:checked ~ .cards #council-news-1,
    input[id="council-item-2"]:checked ~ .cards #council-news-2,
    input[id="council-item-3"]:checked ~ .cards #council-news-3,
    input[id="council-item-4"]:checked ~ .cards #council-news-4,
    input[id="council-item-5"]:checked ~ .cards #council-news-5,
    input[id="council-item-6"]:checked ~ .cards #council-news-6,
    input[id="council-item-7"]:checked ~ .cards #council-news-7,
    input[id="council-item-8"]:checked ~ .cards #council-news-8,
    input[id="council-item-9"]:checked ~ .cards #council-news-9,
    input[id="council-item-10"]:checked ~ .cards #council-news-10 {
        transform: translateX(0);
        opacity: 1;
        z-index: 1;
    }
}

@media (max-width: 576px) {
    .carousel-card {
        width: 95%;
        height: 250px;
        left: 2.5%;
    }
    
    .card-overlay {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
} 