/* İlçe kart kapsayıcı */
.companies-map {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Kart link */
.companies-map a {
    text-decoration: none;
    flex: 1 1 calc(25% - 1rem);
    /* 4 kart / satır */
    min-width: 200px;
}

/* Kart tasarımı */
.organization-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* Hover efekti */
.organization-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-color-blue);
    color: #1e40af;
}

/* Kart içi yazı */
.organization-card p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .companies-map a {
        flex: 1 1 calc(33.33% - 1rem);
        /* 3 kart / satır */
    }
}

@media (max-width: 768px) {
    .companies-map a {
        flex: 1 1 calc(50% - 1rem);
        /* 2 kart / satır */
    }
}

@media (max-width: 480px) {
    .companies-map a {
        flex: 1 1 100%;
        /* 1 kart / satır */
    }
}

/* ===== İlçeler Kartları ===== */
.companies-map {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.organization-card-link {
    text-decoration: none;
    flex: 1 1 calc(25% - 1rem);
    min-width: 180px;
}

.organization-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 120px;
}

.organization-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.organization-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.organization-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--theme-color-blue);
}

/* ===== İl Bilgi Kartı ===== */
.organization-info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #374151;
}

/* ===== Yönetim Kartları ===== */
.party-management {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.person-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.person-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.person-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 2px solid var(--theme-color-blue);
}

.person-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #111827;
}

.person-info .title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
    text-align: center;
    padding: 0;
}

.person-contact a {
    margin: 0 0.3rem;
    color: var(--theme-color-blue);
    font-size: 1rem;
    transition: color 0.2s;
}

.person-contact a:hover {
    color: #1e40af;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .organization-card-link {
        flex: 1 1 calc(33.33% - 1rem);
    }
}

@media (max-width: 768px) {
    .organization-card-link {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .organization-card-link {
        flex: 1 1 100%;
    }
}

/* Genel sidebar kapsayıcı */
.sidebar-container {
    padding: 1.5rem;
    background-color: #fff;
    /* Açık modern arkaplan */
    border-radius: 8px;
    border-left: 1px solid #e5e7eb;
}

/* Başlık */
.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    border-bottom: 2px solid var(--theme-color-blue);
    /* Şık alt çizgi */
    padding-bottom: 0.5rem;
}

/* Liste */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Liste elemanları */
.sidebar-menu li {
    margin-bottom: 0.5rem;
}

/* Linkler */
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Aktif link */
.sidebar-menu li a.active {
    background-color: var(--theme-color-blue);
    color: white;
    font-weight: 600;
}

/* Hover efekti */
.sidebar-menu li a:hover {
    background-color: #e0f2fe;
    color: #1d4ed8;
}

/* Resim veya ikon varsa */
.sidebar-menu li a img,
.sidebar-menu li a i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    border-radius: 4px;
    object-fit: cover;
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Pagination kapsayıcı */
.panigation {
    text-align: center;
    margin: 40px 0;
}

.panigation-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
    /* Sayfalar arasına boşluk */
}



.panigation-ul li a {
    display: block;
    padding: 10px 16px;
    color: var(--theme-color-blue);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--theme-color-blue);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.panigation-ul li a:hover {
    background-color: var(--theme-color-blue);
    color: #fff;
}

.panigation-ul li a.active {
    background-color: var(--theme-color-blue);
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}

/* Ok ikonları için */
.panigation-ul li a i {
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 576px) {
    .panigation-ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.afis-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 420px;
    /* Tüm kartlar aynı yükseklik */
}

.afis-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Resim kısmı kartın %65'ini kaplasın */
.afis-image {
    width: 100%;
    height: 65%;
    object-fit: cover;
    border-bottom: 2px solid var(--theme-color-blue);
}

/* İçerik kısmı kalan alanı alsın */
.afis-content {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 35%;
}

.afis-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color-blue);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 3 satırdan sonrası ... */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afis-date {
    font-size: 13px;
    color: #555;
    text-align: right;
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .afis-card {
        height: 380px;
    }

    .afis-image {
        height: 65%;
    }
}

@media (max-width: 576px) {
    .afis-card {
        height: 320px;
    }

    .afis-image {
        height: 65%;
    }

    .afis-title {
        font-size: 14px;
    }

    .afis-date {
        font-size: 12px;
    }
}

/* PDF Card Container */
.doc-card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px 15px;
    height: 100%;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Icon Circle */
.doc-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--theme-color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Text Area */
.doc-card-text {
    text-align: center;
}

.doc-card-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color-blue);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2 satırda kes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-card-text .doc-card-date {
    font-size: 14px;
    color: #555;
}

/* Grid styling: ensure equal height cards */
.col-md-3 {
    display: flex;
}

/* Responsive */
@media (max-width: 992px) {
    .col-md-3 {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        flex: 0 0 100%;
    }

    .doc-card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }
}

.kuruldakiler-container {
    padding: 20px 0;
}

.kurul-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 440px;
    /* Tüm kartlar aynı yükseklikte */
}

.kurul-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.kurul-image {
    height: 60%;
    overflow: hidden;
}

.kurul-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kurul-card:hover .kurul-image img {
    transform: scale(1.05);
}

.kurul-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 40%;
}

.kurul-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color-blue);
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.kurul-role {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
    text-align: center;
}

.kurul-contact {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--theme-color-blue);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-icon:hover {
    background-color: #0a5a87;
    transform: scale(1.1);
}

.afis-card img {
    object-fit: fill;
}


@media (max-width: 576px) {
    .kurul-name {
        font-size: 16px;
    }

    .kurul-role {
        font-size: 13px;
    }


}

@media (max-width: 993px) {
    .haberler-sayfa-div {
        margin-top: 90px;
        flex-direction: column-reverse !important;
    }

}

@media (min-width:994px) and (max-width:1200px) {
    .kurul-info {
        height: 44%;
    }
}


@media (max-width:993px) {
    .journal-allnews-news-image img {
        height: 150px;
        width: 170px;
        object-fit: contain;
    }

    .new-banner-mobile {
        margin-top: 40px;
    }

    .haberler-sayfa-div {
        margin-top: 0;
    }

    .sidebar-container {
        border: 1px solid #e5e7eb;
        margin-bottom: 10px;
    }

    .journal-blocks {
        margin-bottom: 0;
    }

    .haber-card {
        width: 100%;
    }

    .party-management {
        grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
    }

    .kurullar-page-container {
        flex-direction: column-reverse;
    }

    .kurul-name {
        margin: 0;
    }

    .kurul-card {
        height: 690px;
    }



    .kurul-image {
        height: 73%;
    }

    .kurul-info {
        height: 27%;
    }

    .party-management-page-section-title {
        padding-top: 40px;
    }

    .afis-card img {
        object-fit: contain;
    }

    .haber-image {
        width: 100%;
        height: 200px;
        /* Sabit yükseklik */
        object-fit: contain;
    }

    .video-haber-image {
        width: 100%;
        height: 240px;
        /* Sabit yükseklik */
        object-fit: contain;
    }
}


/* Modern kart tasarımı */
.haber-card-inner {
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.haber-card-inner:hover {

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.haber-card-logo img {
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.haber-card-inner:hover .haber-card-logo img {
    transform: scale(1.05);
}

.haber-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.haber-card-date {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    .haber-card-inner {
        padding: 2rem 1rem;
    }
}