/*
 * TÜRKONFED Secretary General Page
 * Leadership. Sharp. Brutal.
 */

/* ============================================
   PROFILE SECTION
   ============================================ */

.sg-profile {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.sg-profile-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Photo Wrapper */
.sg-photo-wrapper {
    position: relative;
}

.sg-photo {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-bg-light);
    overflow: hidden;
}

.sg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.sg-photo:hover img {
    filter: grayscale(0%);
}

.sg-photo-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
}

.sg-photo-placeholder svg {
    width: 120px;
    height: 120px;
    color: rgba(0, 0, 0, 0.05);
}

.sg-photo-accent {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-accent);
    z-index: -1;
}

/* Profile Info */
.sg-info {
    padding-top: 1rem;
}

.sg-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    background: rgba(237, 27, 47, 0.08);
    margin-bottom: 1.5rem;
}

.sg-name {
    font-family: var(--font-family-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.sg-title {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.sg-bio {
    margin-bottom: 2rem;
}

.sg-bio p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sg-bio p:last-child {
    margin-bottom: 0;
}

/* Credentials */
.sg-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.sg-credential {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sg-credential-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sg-credential-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Contact Buttons */
.sg-contact {
    display: flex;
    gap: 1rem;
}

.sg-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sg-contact-btn svg {
    width: 18px;
    height: 18px;
}

.sg-contact-btn:not(.sg-contact-btn-outline) {
    background: var(--color-accent);
    color: #fff;
}

.sg-contact-btn:not(.sg-contact-btn-outline):hover {
    background: var(--color-accent-dark);
}

.sg-contact-btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.sg-contact-btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================
   MESSAGE SECTION
   ============================================ */

.sg-message {
    padding: 5rem 0;
    background: var(--color-bg-light);
    position: relative;
}

.sg-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.sg-message-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sg-message-quote {
    margin-bottom: 2rem;
}

.sg-message-quote svg {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    opacity: 0.5;
}

.sg-message-text {
    font-family: var(--font-family-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0 0 2rem;
    font-style: italic;
}

.sg-message-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sg-message-author-name {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.sg-message-author-title {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIBILITIES SECTION
   ============================================ */

.sg-responsibilities {
    padding: 5rem 0;
    background: var(--color-bg-white);
}

.sg-resp-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sg-resp-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.sg-resp-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
}

.sg-resp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sg-resp-card {
    display: flex;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sg-resp-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sg-resp-num {
    flex-shrink: 0;
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.sg-resp-content h3 {
    font-family: var(--font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.sg-resp-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.sg-team {
    padding: 5rem 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.sg-team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sg-team-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.sg-team-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.sg-team-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.sg-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sg-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sg-team-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.sg-team-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
}

.sg-team-card:hover .sg-team-avatar {
    background: var(--color-accent);
}

.sg-team-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sg-team-name {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.sg-team-title-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.sg-team-dept {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   DEPARTMENTS SECTION
   ============================================ */

.sg-departments {
    padding: 5rem 0;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.sg-dept-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sg-dept-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.sg-dept-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
}

.sg-dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sg-dept-card {
    padding: 2rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
}

.sg-dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.sg-dept-card:hover::before {
    width: 100%;
}

.sg-dept-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.sg-dept-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.sg-dept-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.sg-dept-card:hover .sg-dept-icon {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.sg-dept-card:hover .sg-dept-icon svg {
    color: #fff;
}

.sg-dept-name {
    font-family: var(--font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.sg-dept-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */

.sg-contact-cta {
    padding: 5rem 0;
    background: var(--color-bg-light);
    position: relative;
}

.sg-contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.sg-cta-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 4rem;
}

.sg-cta-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.sg-cta-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.sg-cta-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.sg-cta-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sg-cta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sg-cta-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-cta-item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.sg-cta-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sg-cta-item-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.sg-cta-item-content a {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sg-cta-item-content a:hover {
    color: var(--color-accent);
}

.sg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sg-cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sg-cta-btn:hover {
    background: var(--color-accent-dark);
}

.sg-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.sg-profile-grid,
.sg-resp-card,
.sg-team-card,
.sg-dept-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.sg-resp-card:nth-child(1) { animation-delay: 0.1s; }
.sg-resp-card:nth-child(2) { animation-delay: 0.15s; }
.sg-resp-card:nth-child(3) { animation-delay: 0.2s; }
.sg-resp-card:nth-child(4) { animation-delay: 0.25s; }
.sg-resp-card:nth-child(5) { animation-delay: 0.3s; }
.sg-resp-card:nth-child(6) { animation-delay: 0.35s; }

.sg-team-card:nth-child(1) { animation-delay: 0.1s; }
.sg-team-card:nth-child(2) { animation-delay: 0.15s; }
.sg-team-card:nth-child(3) { animation-delay: 0.2s; }
.sg-team-card:nth-child(4) { animation-delay: 0.25s; }
.sg-team-card:nth-child(5) { animation-delay: 0.3s; }
.sg-team-card:nth-child(6) { animation-delay: 0.35s; }
.sg-team-card:nth-child(7) { animation-delay: 0.4s; }
.sg-team-card:nth-child(8) { animation-delay: 0.45s; }

.sg-dept-card:nth-child(1) { animation-delay: 0.1s; }
.sg-dept-card:nth-child(2) { animation-delay: 0.15s; }
.sg-dept-card:nth-child(3) { animation-delay: 0.2s; }
.sg-dept-card:nth-child(4) { animation-delay: 0.25s; }
.sg-dept-card:nth-child(5) { animation-delay: 0.3s; }
.sg-dept-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .sg-cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .sg-cta-info {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }

    .sg-cta-actions {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .sg-profile-grid {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }

    .sg-resp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sg-dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sg-profile {
        padding: 3rem 0;
    }

    .sg-profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sg-photo-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }

    .sg-info {
        text-align: center;
        padding-top: 0;
    }

    .sg-credentials {
        align-items: center;
    }

    .sg-contact {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sg-message {
        padding: 4rem 0;
    }

    .sg-message-text {
        font-size: 1.125rem;
    }

    .sg-responsibilities {
        padding: 4rem 0;
    }

    .sg-resp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sg-resp-card {
        padding: 1.5rem;
    }

    .sg-team {
        padding: 4rem 0;
    }

    .sg-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sg-team-card {
        padding: 1.5rem 1rem;
    }

    .sg-team-avatar {
        width: 64px;
        height: 64px;
        font-size: 1rem;
    }

    .sg-departments {
        padding: 4rem 0;
    }

    .sg-dept-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sg-cta-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sg-cta-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sg-name {
        font-size: 1.75rem;
    }

    .sg-title {
        font-size: 1rem;
    }

    .sg-contact {
        flex-direction: column;
    }

    .sg-contact-btn {
        justify-content: center;
    }

    .sg-team-grid {
        grid-template-columns: 1fr;
    }

    .sg-resp-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sg-contact-cta {
        padding: 4rem 0;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .sg-profile-grid,
    .sg-resp-card,
    .sg-team-card,
    .sg-dept-card {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .sg-photo img,
    .sg-contact-btn,
    .sg-resp-card,
    .sg-team-card,
    .sg-team-avatar,
    .sg-dept-card,
    .sg-dept-icon,
    .sg-cta-btn {
        transition: none;
    }
}

/* ============================================
   ORGANIZATION CHART
   ============================================ */

.sg-orgchart {
    padding: 5rem 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.sg-orgchart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sg-orgchart-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.sg-orgchart-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
}

.orgchart-wrapper {
    overflow-x: auto;
    padding: 2rem 0;
}

/* Tree Structure */
.orgchart-tree {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    min-width: 1400px;
}

.orgchart-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Secretary General - Top Node */
.orgchart-main > .orgchart-node-primary {
    margin-bottom: 2rem;
    position: relative;
}

.orgchart-main > .orgchart-node-primary::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--color-border-dark, #333);
}

/* Children Container */
.orgchart-children {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    position: relative;
}

.orgchart-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--color-border-dark, #333);
}

/* Each Branch */
.orgchart-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    position: relative;
}

.orgchart-branch::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background: var(--color-border-dark, #333);
}

/* Subnodes - Vertical Tree */
.orgchart-subnodes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    width: 100%;
}

.orgchart-subnodes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--color-border-dark, #333);
}

.orgchart-subnodes > .orgchart-node {
    position: relative;
}

.orgchart-subnodes > .orgchart-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.75rem;
    width: 0.75rem;
    height: 2px;
    background: var(--color-border-dark, #333);
}

/* Nested Subnodes */
.orgchart-subnodes-nested {
    margin-left: 0.5rem;
}

.orgchart-subnodes-nested::before {
    left: 0.25rem;
}

.orgchart-subnodes-nested > .orgchart-node::before {
    left: -0.75rem;
}

/* Side Branch - EU Representation */
.orgchart-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-left: 2rem;
    position: relative;
    margin-top: 4rem;
}

.orgchart-side::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--color-border-dark, #333);
}

.orgchart-side .orgchart-subnodes {
    padding-left: 1.5rem;
}

/* Node Styles */
.orgchart-node {
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    min-width: 140px;
}

.orgchart-node-title {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.orgchart-node-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

/* Node Types */
.orgchart-node-primary {
    background: var(--color-accent);
    color: #fff;
    padding: 1.25rem 2.5rem;
    box-shadow: 0 4px 12px rgba(237, 27, 47, 0.3);
}

.orgchart-node-primary .orgchart-node-title {
    font-size: 1rem;
}

.orgchart-node-deputy {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 1rem 1.25rem;
    min-width: 160px;
}

.orgchart-node-deputy .orgchart-node-subtitle {
    color: var(--color-accent);
    font-weight: 700;
}

.orgchart-node-side {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 1rem 1.5rem;
}

.orgchart-node-manager {
    background: rgba(237, 27, 47, 0.9);
    color: #fff;
}

.orgchart-node-staff {
    background: rgba(237, 27, 47, 0.7);
    color: #fff;
}

.orgchart-node-assistant {
    background: rgba(237, 27, 47, 0.5);
    color: #fff;
}

/* Org Chart Responsive */
@media (max-width: 1400px) {
    .orgchart-tree {
        min-width: 1200px;
    }

    .orgchart-branch {
        min-width: 150px;
    }

    .orgchart-node {
        min-width: 120px;
        padding: 0.6rem 0.75rem;
    }

    .orgchart-node-title {
        font-size: 0.65rem;
    }

    .orgchart-children {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .sg-orgchart {
        padding: 3rem 0;
    }

    .orgchart-wrapper {
        margin: 0 -1rem;
        padding: 1rem;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.sg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    font-size: 1rem;
    color: var(--color-text-secondary);
    grid-column: 1 / -1;
}

/* ============================================
   PHOTO INITIALS (Featured Profile)
   ============================================ */

.sg-photo-placeholder {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1d24 100%);
}

.sg-photo-initials {
    font-family: var(--font-family-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

.sg-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   IMAGE STYLES FOR ALL SECTIONS
   ============================================ */

.sg-team-card-img,
.sg-advisor-img,
.sg-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sg-regional-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ============================================
   TEAM CARD STYLES (Dynamic Cards)
   ============================================ */

.sg-team-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.sg-team-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sg-team-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.sg-team-card-photo {
    width: 100%;
    aspect-ratio: 4/5;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1d24 100%);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sg-team-card-photo img,
.sg-team-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Featured (Genel Sekreter) kart - ayni boyut, sadece vurgulu cerceve */
.sg-team-card-featured {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(237, 27, 47, 0.12);
}

.sg-team-card-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.sg-team-card:hover .sg-team-card-photo {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c51528 100%);
}

.sg-team-card-initials {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

.sg-team-card:hover .sg-team-card-initials {
    color: rgba(255, 255, 255, 0.4);
}

.sg-team-card-info {
    padding: 1.25rem;
    text-align: center;
}

.sg-team-card-name {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.375rem;
}

.sg-team-card-position {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.sg-team-card-arrow {
    display: none;
}

/* ============================================
   ADVISORS SECTION
   ============================================ */

.sg-advisors {
    padding: 5rem 0;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.sg-advisors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sg-advisor-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sg-advisor-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.sg-advisor-photo {
    width: 100%;
    aspect-ratio: 4/5;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c51528 100%);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sg-advisor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sg-advisor-card:hover .sg-advisor-photo {
    background: linear-gradient(135deg, #c51528 0%, #a01020 100%);
}

.sg-advisor-initials {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.sg-advisor-card:hover .sg-advisor-initials {
    color: rgba(255, 255, 255, 0.5);
}

.sg-advisor-info {
    padding: 1.25rem;
    text-align: center;
}

.sg-advisor-name {
    font-family: var(--font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.375rem;
}

.sg-advisor-position {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.sg-advisor-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0077b5;
    background: transparent;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sg-advisor-linkedin svg {
    width: 16px;
    height: 16px;
}

.sg-advisor-linkedin:hover {
    border-color: #0077b5;
    background: #0077b5;
    color: #fff;
}

/* ============================================
   REGIONAL SECRETARIAT SECTION
   ============================================ */

.sg-regional {
    padding: 5rem 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.sg-regional-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sg-regional-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sg-regional-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.sg-regional-photo {
    width: 100%;
    aspect-ratio: 4/5;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transition: background 0.3s ease;
    overflow: hidden;
}

.sg-regional-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sg-regional-card:hover .sg-regional-photo {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c51528 100%);
}

.sg-regional-initials {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

.sg-regional-card:hover .sg-regional-initials {
    color: rgba(255, 255, 255, 0.4);
}

.sg-regional-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    text-align: center;
}

.sg-regional-federation {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.sg-regional-name {
    font-family: var(--font-family-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.sg-regional-position {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   PROFILE MODAL
   ============================================ */

.sg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sg-modal.visible {
    opacity: 1;
    visibility: visible;
}

.sg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.sg-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--color-bg-white);
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.sg-modal.visible .sg-modal-content {
    transform: scale(1) translateY(0);
}

.sg-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.sg-modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-primary);
}

.sg-modal-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.sg-modal-close:hover svg {
    color: #fff;
}

.sg-modal-body {
    padding: 2.5rem;
}

.sg-modal-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.sg-modal-photo {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1d24 100%);
    flex-shrink: 0;
    overflow: hidden;
}

.sg-modal-initials {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

.sg-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.sg-modal-name {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin: 0;
}

.sg-modal-position {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.sg-modal-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0077b5;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

.sg-modal-linkedin svg {
    width: 18px;
    height: 18px;
}

.sg-modal-linkedin:hover {
    opacity: 0.8;
}

.sg-modal-bio h3 {
    font-family: var(--font-family-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 1rem;
}

.sg-modal-bio p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0 0 1rem;
}

.sg-modal-bio p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE (Additional)
   ============================================ */

@media (max-width: 1024px) {
    .sg-advisors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sg-regional-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sg-advisors {
        padding: 4rem 0;
    }

    .sg-advisors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sg-advisor-photo {
        height: 180px;
    }

    .sg-advisor-initials {
        font-size: 2rem;
    }

    .sg-regional {
        padding: 4rem 0;
    }

    .sg-regional-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sg-modal-body {
        padding: 1.5rem;
    }

    .sg-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .sg-modal-info {
        align-items: center;
    }

    .sg-modal-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .sg-team-grid {
        grid-template-columns: 1fr;
    }

    .sg-advisors-grid {
        grid-template-columns: 1fr;
    }

    .sg-regional-grid {
        grid-template-columns: 1fr;
    }

    .sg-regional-card {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .sg-regional-photo {
        margin-bottom: 0;
    }
}
