/* Halkın Partisi - Modern Editorial / Trust & Authority | v11 */

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }

.text-accent-100 {
    --tw-text-opacity: 1;
    color: rgb(255 255 255);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===================== Page content (WP içeriği) ===================== */
.page-content { line-height: 1.75; color: #1F2937; font-size: 16px; }
.page-content > * + * { margin-top: 1.25rem; }
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5 {
    color: #0F172A; font-weight: 700; letter-spacing: -0.015em;
    margin: 2rem 0 1rem; line-height: 1.25;
}
.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.625rem; }
.page-content h3, .page-content .page-title { font-size: 1.25rem; }
.page-content p { margin: 0.875rem 0; max-width: 75ch; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin: 0.875rem 0; }
.page-content ul { list-style: disc; } .page-content ol { list-style: decimal; }
.page-content li { margin: 0.25rem 0; }
.page-content a { color: #24445F; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.page-content a:hover { color: #DB303F; }
.page-content img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.page-content figure.page-figure { margin: 1.25rem 0; }
.page-content figure.page-figure img { box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.page-content blockquote {
    border-left: 3px solid #DB303F; padding: 0.75rem 1.25rem; background: #F8FAFC;
    font-style: italic; margin: 1.25rem 0; border-radius: 0 0.25rem 0.25rem 0;
}
.page-content .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin: 1.5rem 0; }
.page-content .col { grid-column: span 12; }
.page-content .col-1 { grid-column: span 1; }
.page-content .col-2 { grid-column: span 2; }
.page-content .col-3 { grid-column: span 3; }
.page-content .col-4 { grid-column: span 4; }
.page-content .col-5 { grid-column: span 5; }
.page-content .col-6 { grid-column: span 6; }
.page-content .col-7 { grid-column: span 7; }
.page-content .col-8 { grid-column: span 8; }
.page-content .col-9 { grid-column: span 9; }
.page-content .col-10 { grid-column: span 10; }
.page-content .col-11 { grid-column: span 11; }
.page-content .col-12 { grid-column: span 12; }
@media (max-width: 1024px) {
    .page-content .col-1, .page-content .col-2, .page-content .col-3 { grid-column: span 4; }
    .page-content .col-4, .page-content .col-5 { grid-column: span 6; }
    .page-content .col-7, .page-content .col-8, .page-content .col-9, .page-content .col-10, .page-content .col-11 { grid-column: span 12; }
}
@media (max-width: 640px) {
    .page-content .col-1, .page-content .col-2, .page-content .col-3, .page-content .col-4, .page-content .col-5, .page-content .col-6, .page-content .col-7, .page-content .col-8, .page-content .col-9, .page-content .col-10, .page-content .col-11 { grid-column: span 6; }
}

/* Sadece kurucu üyeler tipi (col-2) için 5'li grid - tek satıra 5 kişi */
.page-content .row:has(> .col-2) {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1.25rem !important;
}
.page-content .row:has(> .col-2) > [class*="col-"] {
    grid-column: span 1 !important;
}
@media (max-width: 1280px) {
    .page-content .row:has(> .col-2) { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 1024px) {
    .page-content .row:has(> .col-2) { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
    .page-content .row:has(> .col-2) { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== Kişi/Profil Kartı (figure içeren tüm col'lar) — profil sayfası hariç ===== */
.page-content [class*="col-"]:has(> .page-figure) {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.875rem;
    overflow: hidden;
    padding: 0 0 1rem 0;
    transition: border-color .25s ease, box-shadow .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.page-content [class*="col-"]:has(> .page-figure)::before {
    content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
    background: #DB303F; transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease; z-index: 2;
}
.page-content [class*="col-"]:has(> .page-figure):hover {
    border-color: rgba(219,48,63,0.35);
    box-shadow: 0 18px 38px -14px rgba(15,23,42,0.22), 0 4px 12px -4px rgba(15,23,42,0.06);
    transform: translateY(-5px);
}
.page-content [class*="col-"]:has(> .page-figure):hover::before {
    transform: scaleX(1);
}
.page-content [class*="col-"]:has(> .page-figure) > .page-figure {
    margin: 0;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, #E9EEF3, #C9D5DF);
    border-radius: 0;
    box-shadow: none;
}
.page-content [class*="col-"]:has(> .page-figure) > .page-figure img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform .55s ease;
    display: block;
}
.page-content [class*="col-"]:has(> .page-figure):hover > .page-figure img {
    transform: scale(1.06);
}
/* Kart içi metinler */
.page-content [class*="col-"]:has(> .page-figure) > h4 {
    font-size: 0.95rem;
    padding: 1rem 1rem 0.25rem;
    margin: 0;
    text-align: center;
    color: #0F172A;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.page-content [class*="col-"]:has(> .page-figure) > p {
    padding: 0 1rem;
    margin: 0.25rem 0;
    font-size: 0.8125rem;
    color: #64748B;
    text-align: center;
    line-height: 1.55;
}
.page-content [class*="col-"]:has(> .page-figure) > p + p {
    /* Uzun bio paragrafı - sol yaslı + daha küçük */
    text-align: left;
    padding: 0.75rem 1rem 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    border-top: 1px solid #F1F5F9;
    margin-top: 0.5rem;
    color: #475569;
}
.page-content [class*="col-"]:has(> .page-figure) > .page-social {
    justify-content: center;
    padding: 0.5rem 1rem 0.25rem;
    margin: 0;
}
.page-content [class*="col-"]:has(> .page-figure) > .page-social-link,
.page-content [class*="col-"]:has(> .page-figure) > .page-social a {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
}

/* Kart STAGGERED reveal animasyonu */
.page-content .row > [class*="col-"]:has(> .page-figure) {
    opacity: 0; transform: translateY(20px);
    animation: card-in .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(1) { animation-delay: .05s; }
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(2) { animation-delay: .12s; }
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(3) { animation-delay: .19s; }
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(4) { animation-delay: .26s; }
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(5) { animation-delay: .33s; }
.page-content .row > [class*="col-"]:has(> .page-figure):nth-child(n+6) { animation-delay: .40s; }

@keyframes card-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Figure içermeyen col'lar (bio metni vs.): kart styling olmasın */
.page-content [class*="col-"]:not(:has(> .page-figure)) {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.page-content table th, .page-content table td { padding: 0.75rem 1rem; border: 1px solid #E5E7EB; text-align: left; }
.page-content table th { background: #F8FAFC; font-weight: 600; color: #0F172A; }
.page-content .page-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.875rem 0; }
.page-content .page-social-link {
    display: inline-flex; align-items: center; padding: 0.45rem 0.9rem;
    background: #24445F; color: white !important;
    border-radius: 0.375rem; font-size: 0.8125rem; text-decoration: none !important;
    transition: background-color .15s;
}
.page-content .page-social-link:hover { background: #1E3A52; }
.page-content .page-btn {
    display: inline-block; padding: 0.625rem 1.5rem; background: #DB303F; color: white !important;
    border-radius: 0.375rem; text-decoration: none !important; font-weight: 500; font-size: 0.875rem;
    transition: background-color .15s;
}
.page-content .page-btn:hover { background: #B82430; }
.page-content .page-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem; margin: 1.25rem 0;
}
.page-content .page-gallery a { display: block; overflow: hidden; border-radius: 0.375rem; aspect-ratio: 1; background: #F8FAFC; }
.page-content .page-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.page-content .page-gallery a:hover img { transform: scale(1.05); }

/* ===================== Cards - Editorial Trust pattern ===================== */
/* Hover'da kayma yok - sadece shadow + border + image scale */
.post-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.post-card:hover {
    border-color: #DB303F;
    box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12), 0 4px 8px -2px rgba(15,23,42,0.04);
}

/* Basın açıklamaları / blog kartları — soldan dış gölge */
.home-blog-section .post-card,
.posts-list-section .post-card {
    box-shadow:
        -10px 4px 26px rgba(15, 23, 42, 0.11),
        -4px 0 14px rgba(15, 23, 42, 0.07),
        0 4px 14px rgba(15, 23, 42, 0.05);
}
.home-blog-section .post-card:hover,
.posts-list-section .post-card:hover {
    border-color: #DB303F;
    box-shadow:
        -14px 8px 34px rgba(15, 23, 42, 0.15),
        -6px 0 18px rgba(219, 48, 63, 0.1),
        0 8px 22px rgba(15, 23, 42, 0.08);
}

.post-card .post-card-img { overflow: hidden; background: #F8FAFC; }
.post-card .post-card-img img { transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }

/* Leader card - trust grid pattern */
.leader-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.leader-card:hover {
    border-color: #24445F;
    box-shadow: 0 12px 24px -8px rgba(36,68,95,0.18);
}
.leader-card .leader-img { aspect-ratio: 3/4; background: linear-gradient(135deg, #E9EEF3, #C9D5DF); overflow: hidden; position: relative; }
.leader-card .leader-img img { transition: transform .5s ease; }
.leader-card:hover .leader-img img { transform: scale(1.03); }
.leader-card .leader-img::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 50%;
    background: linear-gradient(to top, rgba(29,35,39,0.6), transparent);
    pointer-events: none;
}

/* Header — alt dış gölge */
#site-header.site-header-bar {
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.07),
        0 10px 36px rgba(15, 23, 42, 0.12),
        0 16px 48px rgba(15, 23, 42, 0.06);
}

/* Header — üst menü ikonları */
.menu-top-icon {
    color: #24445F;
    opacity: 0.85;
    transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover .menu-top-icon,
.group:hover > a .menu-top-icon,
details[open] > summary .menu-top-icon {
    color: #DB303F;
    opacity: 1;
}
a.text-primary .menu-top-icon,
.text-primary .menu-top-icon {
    color: #DB303F;
    opacity: 1;
}

/* ===================== Hero / Slider ===================== */
.hero-slider .slides-wrap { position: relative; min-height: 600px; }
.hero-slider .slide {
    position: absolute; inset: 0;
    min-height: 600px;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease, visibility 0s .6s;
    pointer-events: none;
}
.hero-slider .slide.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .6s ease, visibility 0s 0s;
    z-index: 2;
}
.hero-slider .slide.with-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(15,23,42,0.85) 0%, rgba(36,68,95,0.65) 45%, rgba(29,35,39,0.2) 100%);
}
.hero-slider .slide-content { position: relative; z-index: 2; max-width: 720px; }
.hero-slider .slide-content.text-right { margin-left: auto; text-align: right; }
.hero-slider .slide-content.text-center { margin: 0 auto; text-align: center; }
@media (max-width: 768px) {
    .hero-slider .slides-wrap, .hero-slider .slide { min-height: 480px; }
}

/* Hero pattern overlay */
.hero-pattern {
    background-image:
        linear-gradient(120deg, rgba(15,23,42,0.92) 0%, rgba(36,68,95,0.85) 50%, rgba(29,35,39,0.65) 100%),
        repeating-linear-gradient(45deg, transparent 0, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 82px);
}

/* ===================== Page hero (kategori başlığı) ===================== */
.page-hero {
    background: linear-gradient(120deg, #24445F 0%, #1D2327 100%);
    color: white; padding: 4rem 0 3.5rem; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(180,83,9,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(to right, #DB303F 0%, #DB303F 33%, transparent 33%);
}
.page-hero .container { position: relative; z-index: 2; }

/* ===================== Form ===================== */
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #E5E7EB;
    border-radius: 0.375rem; font-family: 'Poppins', sans-serif;
    transition: border-color .15s, box-shadow .15s; font-size: 0.9375rem;
    background: white;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: #24445F; box-shadow: 0 0 0 3px rgba(36,68,95,0.08);
}

/* ===================== Pagination ===================== */
.pagination { display: inline-flex; gap: 0.25rem; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 0.85rem;
    border: 1px solid #E5E7EB; border-radius: 0.375rem; color: #1F2937;
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    transition: all .15s;
}
.pagination a:hover { background: #24445F; color: white; border-color: #24445F; }
.pagination .current { background: #24445F; color: white; border-color: #24445F; }

/* ===================== Typography utilities ===================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: #DB303F;
}
.eyebrow::before {
    content: ''; display: inline-block; width: 24px; height: 2px; background: #DB303F;
}
.section-title { font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 700; color: #0F172A; letter-spacing: -0.02em; line-height: 1.15; }
.section-divider { width: 60px; height: 3px; background: #DB303F; }

/* Anasayfa — Halkın Partisi Hakkında (iç gölge) */
.home-about-section {
    box-shadow:
        inset 0 4px 28px rgba(15, 23, 42, 0.07),
        inset 0 -4px 24px rgba(15, 23, 42, 0.05),
        inset 4px 0 20px rgba(15, 23, 42, 0.04),
        inset -4px 0 20px rgba(15, 23, 42, 0.04);
}

/* Anasayfa — CTA (Halkla, Halk İçin Yola Devam — dış gölge) */
.home-cta-section {
    position: relative;
    z-index: 2;
    box-shadow:
        0 -10px 36px rgba(15, 23, 42, 0.14),
        0 10px 40px rgba(15, 23, 42, 0.2),
        0 0 48px rgba(15, 23, 42, 0.08);
}

/* Anasayfa — Fotoğraf Galerimiz (dış gölge) */
.home-gallery-section {
    position: relative;
    z-index: 2;
    box-shadow:
        0 -10px 36px rgba(15, 23, 42, 0.14),
        0 10px 40px rgba(15, 23, 42, 0.2),
        0 0 48px rgba(15, 23, 42, 0.08);
}
.home-gallery-section .gallery-card {
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.2);
}
.home-gallery-section .gallery-card:hover {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.45),
        0 6px 14px rgba(219, 48, 63, 0.15);
}

/* ===================== Accordion / Details ===================== */
.page-accordion { background: white; padding: 1rem 1.25rem; border: 1px solid #E5E7EB; border-radius: 0.5rem; margin: 0.5rem 0; }
.page-accordion summary { font-weight: 600; cursor: pointer; color: #24445F; list-style: none; }
.page-accordion summary::-webkit-details-marker { display: none; }
.page-accordion summary::after { content: '+'; float: right; transition: transform .2s; }
.page-accordion[open] summary::after { transform: rotate(45deg); }
.page-divider { border: none; border-top: 1px solid #E5E7EB; margin: 1.5rem 0; }
.page-embed { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 0.5rem; background: #1D2327; }
.page-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-embed.pdf-embed { padding-top: 0; height: 80vh; min-height: 600px; border: 1px solid #E5E7EB; border-radius: 0.5rem; overflow: hidden; }
.page-embed.pdf-embed iframe { position: relative; height: 100%; }

/* Parti Program Sayfası */
.parti-program-doc { display: flex; flex-direction: column; gap: 1.5rem; }
.parti-program-intro { background: linear-gradient(135deg, #F8FAFC, #E9EEF3); padding: 1.5rem; border-radius: 0.75rem; border-left: 4px solid #DB303F; }
.parti-program-intro p { color: #475569; max-width: none; }
.parti-program-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.parti-program-actions .page-btn-secondary { background: white !important; color: #24445F !important; border: 1px solid #E5E7EB; }
.parti-program-actions .page-btn-secondary:hover { background: #F8FAFC !important; border-color: #24445F; }

/* line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* selection */
::selection { background: #DB303F; color: white; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #C9D5DF; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #24445F; }

/* Focus visible */
:focus-visible {
    outline: 2px solid #DB303F;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* IntersectionObserver fade-in */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate="fade-left"] { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate="fade-left"].is-visible, [data-animate="fade-right"].is-visible { transform: none; }
[data-animate-delay="1"] { transition-delay: .08s; }
[data-animate-delay="2"] { transition-delay: .16s; }
[data-animate-delay="3"] { transition-delay: .24s; }
[data-animate-delay="4"] { transition-delay: .32s; }
[data-animate-delay="5"] { transition-delay: .40s; }
[data-animate-delay="6"] { transition-delay: .48s; }

/* Smooth hover - link underline animation */
a.fancy-link { position: relative; }
a.fancy-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px; background: #DB303F;
    transform: scaleX(0); transform-origin: right;
    transition: transform .3s ease;
}
a.fancy-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Image zoom container helper */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .6s ease; }
.img-zoom:hover img { transform: scale(1.06); }

/* Number counter */
.count-up { font-variant-numeric: tabular-nums; }

/* Smooth focus ring */
button, a { -webkit-tap-highlight-color: transparent; }

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Profil sayfası — mobil: resim tam üstte | desktop: sol resim+btn, sağ yazı ===== */
.profile-section {
    padding: 1rem 0 2.5rem;
    background: #F8FAFC;
}
.profile-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.75rem;
}
.profile-section .profile-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.profile-section .page-content.profile-page .page-title {
    display: none;
}
.profile-section .profile-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
}
.profile-section .profile-identity,
.profile-section .profile-bio {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    float: none !important;
    grid-column: 1 / -1 !important;
}

/* Global kişi kartı stillerini iptal */
.profile-section .profile-identity:has(> .page-figure) {
    display: block !important;
    flex-direction: unset !important;
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    margin: 0 !important;
    text-align: center;
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 1.25rem !important;
}
.profile-section .profile-identity:has(> .page-figure)::before {
    display: none !important;
}

/* MOBİL — resim tam genişlik üstte */
.profile-section .profile-identity > .page-figure {
    margin: 0 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4/5 !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 3px solid #DB303F !important;
    overflow: hidden !important;
    background: #E9EEF3 !important;
    box-shadow: none !important;
    transition: none !important;
}
.profile-section .profile-identity > .page-figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}
.profile-section .profile-identity > h4,
.profile-section .profile-identity > p {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.profile-section .profile-identity > h4 {
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #0F172A !important;
    margin: 0 0 0.35rem !important;
    text-align: center !important;
    border: none !important;
}
.profile-section .profile-identity > p {
    font-size: 0.9375rem !important;
    color: #24445F !important;
    font-weight: 500 !important;
    margin: 0 0 1rem !important;
    text-align: center !important;
    border: none !important;
}
.profile-section .profile-identity > p + p {
    border-top: none !important;
}
.profile-section .profile-identity > .page-social {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 1rem !important;
    margin: 0 !important;
}
.profile-section .profile-identity > .page-social .page-social-link,
.profile-section .profile-identity > .page-social a {
    min-height: 44px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    border: 1px solid #24445F !important;
    background: #24445F !important;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.profile-section .profile-identity > .page-social .page-social-link:hover,
.profile-section .profile-identity > .page-social a:hover {
    background: #DB303F !important;
    border-color: #DB303F !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(219, 48, 63, 0.25) !important;
}

/* MOBİL — yazı altta */
.profile-section .profile-bio {
    background: #fff !important;
    border: none !important;
    padding: 1.25rem 1rem 1.5rem !important;
    box-shadow: none !important;
}
.profile-section .profile-bio p {
    max-width: none !important;
    margin: 0 0 1rem !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    text-align: left !important;
    padding: 0 !important;
    border: none !important;
}
.profile-section .profile-bio p:last-child {
    margin-bottom: 0 !important;
}

/* DESKTOP — sol: resim + butonlar (border + hover) | sağ: yazı */
@media (min-width: 1024px) {
    .profile-section {
        padding: 2.5rem 0 4rem;
    }
    .profile-section__inner {
        padding: 0 1.5rem;
    }
    .profile-section .profile-split {
        grid-template-columns: 320px 1fr !important;
        align-items: stretch !important;
    }
    .profile-section .profile-identity {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 1.75rem 1.5rem !important;
        border: none !important;
        border-right: 1px solid #E2E8F0 !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        background: #F8FAFC !important;
        transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    .profile-section .profile-identity:hover {
        border-right-color: #CBD5E1 !important;
        box-shadow: inset -4px 0 0 #DB303F !important;
    }
    .profile-section .profile-identity > .page-figure {
        margin: 0 auto 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4/5 !important;
        border-radius: 0.75rem !important;
        border: 2px solid #E2E8F0 !important;
        border-bottom: 2px solid #E2E8F0 !important;
        box-shadow: 0 6px 20px rgba(36, 68, 95, 0.1) !important;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
    }
    .profile-section .profile-identity:hover > .page-figure {
        border-color: #24445F !important;
        box-shadow: 0 12px 28px rgba(36, 68, 95, 0.18) !important;
        transform: translateY(-4px) !important;
    }
    .profile-section .profile-identity:hover > .page-figure img {
        transform: scale(1.05) !important;
    }
    .profile-section .profile-identity > h4,
    .profile-section .profile-identity > p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .profile-section .profile-bio {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 2rem 2.5rem !important;
        border-left: none !important;
    }
    .profile-section .profile-bio p {
        max-width: 70ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-section .profile-identity > .page-figure img,
    .profile-section .profile-identity > .page-social .page-social-link,
    .profile-section .profile-identity > .page-social a,
    .profile-section .profile-identity > .page-figure {
        transition: none !important;
    }
    .profile-section .profile-identity:hover > .page-figure,
    .profile-section .profile-identity:hover > .page-figure img {
        transform: none !important;
    }
}
