/* Kurum kadrosu — Polatlı / referans örnekleri */
.org-public {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.org-public-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--borsa-text, #222);
    margin: 0 0 1rem;
}

.org-public-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.org-public-tab {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.org-public-tab:hover {
    border-color: var(--borsa-red, #c8102e);
    color: var(--borsa-red, #c8102e);
}

.org-public-tab.is-active {
    background: var(--borsa-red, #c8102e);
    border-color: var(--borsa-red, #c8102e);
    color: #fff;
}

.org-table {
    border: 1px solid #ddd;
}

.org-table th,
.org-table td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.org-table thead th {
    background: #f5f5f5;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
}

/* Fotoğraflı kart — ortak */
.org-card {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 0.5rem 1rem;
    box-sizing: border-box;
    min-width: 0;
}

.org-card-photo {
    position: relative;
    margin: 0 auto 0.65rem;
    max-width: 200px;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3f4f6;
}

.org-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.org-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
}

.org-card-role {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #333;
    line-height: 1.3;
}

.org-card-name {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

/* Yönetim kurulu — başkan + grid */
.org-board-lead {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.75rem;
    max-width: 300px;
    padding-top: 0.25rem;
}

.org-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0.25rem 0.5rem;
}

.org-board-grid .org-card {
    height: 100%;
    width: 100%;
}

/* ——— Çerçeve temaları (admin: Fotoğraf çerçeve teması) ——— */
.org-members[class*="org-frame-"] .org-card:not(.org-card--teal) {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.org-members[class*="org-frame-"] .org-card:not(.org-card--teal):hover {
    transform: translateY(-3px);
}

/* Klasik */
.org-frame-classic .org-card:not(.org-card--teal) {
    border: 2px solid #d1d5db;
    border-radius: 4px;
    padding: 0.75rem 0.5rem 1rem;
    box-shadow: none;
}

.org-frame-classic .org-card-photo {
    border: 1px solid #e5e7eb;
}

/* Kurumsal kırmızı */
.org-frame-portrait .org-card:not(.org-card--teal) {
    border: none;
    border-radius: 16px;
    padding: 1rem 0.85rem 1.1rem;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}

.org-frame-portrait .org-board-lead .org-card {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 40px rgba(200, 16, 46, 0.14),
        0 0 0 2px rgba(200, 16, 46, 0.35);
}

.org-frame-portrait .org-card:not(.org-card--teal) .org-card-photo {
    max-width: none;
    width: 100%;
    padding: 5px;
    border-radius: 12px;
    background: linear-gradient(145deg, #d4142a 0%, #9a0c1f 45%, #c8102e 100%);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.org-frame-portrait .org-card-photo img,
.org-frame-portrait .org-card-photo-placeholder {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.org-frame-portrait .org-card-role {
    color: var(--borsa-red, #c8102e);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.org-frame-portrait .org-card-name {
    letter-spacing: 0.05em;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.org-frame-portrait .org-board-lead .org-card-name {
    font-size: 1rem;
}

/* Yumuşak */
.org-frame-soft .org-card:not(.org-card--teal) {
    border: none;
    border-radius: 20px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.org-frame-soft .org-card-photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.org-frame-soft .org-card-role {
    color: #64748b;
    font-weight: 600;
}

/* Altın */
.org-frame-gold .org-card:not(.org-card--teal) {
    border: none;
    border-radius: 14px;
    padding: 0.85rem 0.75rem 1rem;
    background: linear-gradient(180deg, #fffef8 0%, #fff9eb 100%);
    box-shadow: 0 8px 24px rgba(146, 103, 20, 0.12), 0 0 0 1px rgba(180, 134, 40, 0.25);
}

.org-frame-gold .org-card-photo {
    padding: 4px;
    border-radius: 10px;
    background: linear-gradient(145deg, #e8c547 0%, #b8860b 50%, #d4af37 100%);
}

.org-frame-gold .org-card-photo img,
.org-frame-gold .org-card-photo-placeholder {
    border-radius: 7px;
}

.org-frame-gold .org-card-role {
    color: #926718;
    letter-spacing: 0.04em;
}

/* Minimal */
.org-frame-minimal .org-card:not(.org-card--teal) {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.35rem 0.85rem;
    background: transparent;
    box-shadow: none;
}

.org-frame-minimal .org-card-photo {
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.org-frame-minimal .org-card:not(.org-card--teal):hover {
    transform: none;
    box-shadow: none;
}

.org-hier-row .org-card {
    border-radius: 0;
}

@media (max-width: 900px) {
    .org-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .org-board-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/* Eski: dikey tek sütun */
.org-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 280px;
    margin: 0 auto;
}

.org-card--stack {
    width: 100%;
    border: none;
    box-shadow: none;
}

/* Sekmeli sayfa — teal kart (Adana örneği) */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem 1.25rem;
    align-items: stretch;
    justify-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}

.org-card--teal {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.org-card--teal .org-card-photo {
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 0 0 auto;
    aspect-ratio: 3 / 4;
}

.org-card--teal .org-card-photo img {
    object-position: center 18%;
}

.org-card--teal .org-card-photo-placeholder {
    position: absolute;
    inset: 0;
}

.org-card--teal .org-card-role,
.org-card--teal .org-card-name {
    background: #0d6e7a;
    color: #fff;
    padding: 0.35rem 0.5rem;
    margin: 0;
}

.org-card--teal .org-card-role {
    font-size: 0.72rem;
    padding-top: 0.5rem;
}

.org-card--teal .org-card-name {
    font-size: 0.82rem;
    padding-bottom: 0.55rem;
    font-weight: 700;
    text-transform: none;
}

/* Meclis hiyerarşisi — Polatlı: 1 | 2 | 3 sütun */
.org-hier-row {
    display: grid;
    gap: 0;
    border: 1px solid #d1d5db;
    border-bottom: none;
    max-width: 960px;
    margin: 0 auto;
}

.org-hier-row:last-child {
    border-bottom: 1px solid #d1d5db;
}

.org-hier-row--1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

.org-hier-row--1 .org-card {
    max-width: 280px;
    width: 100%;
    border: none;
    border-bottom: 1px solid #d1d5db;
}

.org-hier-row--2 {
    grid-template-columns: repeat(2, 1fr);
}

.org-hier-row--2 .org-card {
    border: none;
    border-right: 1px solid #d1d5db;
}

.org-hier-row--2 .org-card:last-child {
    border-right: none;
}

.org-hier-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.org-hier-row--3 .org-card {
    border: none;
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.org-hier-row--3 .org-card:nth-child(3n) {
    border-right: none;
}

@media (max-width: 640px) {
    .org-hier-row--2,
    .org-hier-row--3 {
        grid-template-columns: 1fr;
    }

    .org-hier-row--2 .org-card,
    .org-hier-row--3 .org-card {
        border-right: none;
    }

    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
