/* ==========================================================================
   VAKIF BİRİMLERİ PAGE STYLES
   ========================================================================== */

/* Main Layout Page Wrapper */
.units-page-wrapper {
    background-color: #FFFFFF;
    position: relative;
    overflow: visible;
}

/* Container */
.units-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Grid Layout */
.units-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* ==========================================================================
   HERO / HEADER BLOCK SECTION — CENTERED INSTITUTIONAL
   ========================================================================== */
.units-hero-section {
    padding-top: 9rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(40, 86, 101, 0.09);
    background-color: #FDFCFA;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26 1 L51 26 L26 51 L1 26 Z' fill='none' stroke='rgba(191%2C162%2C118%2C0.22)' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 52px 52px;
}

/* Thin gold accent rule at very top */
.units-hero-top-rule {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    z-index: 2;
}

/* Inner content block — centered */
.units-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Eyebrow label */
.units-hero-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

/* Main H1 */
.units-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1rem + 1.8vw, 2.4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 2.5rem 0;
    letter-spacing: -0.01em;
}

/* Single centered thin gold divider line */
.units-hero-divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto;
}

/* ==========================================================================
   MAIN BODY SECTION
   ========================================================================== */
.units-body-section {
    padding-bottom: 8rem;
    background-color: #FFFFFF;
}

/* ==========================================================================
   LEFT STICKY SIDEBAR
   ========================================================================== */
.units-sidebar-column {
    position: relative;
}

.units-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 1rem;
}

.units-sidebar-sticky::-webkit-scrollbar {
    width: 3px;
}

.units-sidebar-sticky::-webkit-scrollbar-track {
    background: rgba(191, 162, 118, 0.05);
}

.units-sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(191, 162, 118, 0.2);
    border-radius: 3px;
}

.units-sidebar-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(191, 162, 118, 0.15);
    letter-spacing: 0.02em;
}

.units-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.units-sidebar-link {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(40, 86, 101, 0.55);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 0 3px 3px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.45;
}

.units-sidebar-link:hover,
.units-sidebar-link.active {
    color: var(--color-primary);
    border-left-color: var(--color-accent);
    background-color: rgba(191, 162, 118, 0.06);
    padding-left: 1rem;
}

/* ==========================================================================
   RIGHT CONTENT COLUMN — UNIT CARDS
   ========================================================================== */
.units-content-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.units-article-card {
    scroll-margin-top: 140px;
    position: relative;
}

.units-article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.25rem 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-accent);
}

.units-article-body {
    padding-left: 1.25rem;
}

.units-paragraph {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin: 0;
    text-align: justify;
}

.units-article-divider {
    margin-top: 2rem;
    height: 1px;
    background-color: rgba(191, 162, 118, 0.85);
}

.units-article-card:last-child .units-article-divider {
    display: none;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1200px) {
    .units-container {
        padding: 0 2.5rem;
    }

    .units-grid-layout {
        gap: 3rem;
    }
}

@media (max-width: 992px) {

    .units-hero-eyebrow {
        margin-top: 1rem;
    }

    .units-grid-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .units-sidebar-column {
        display: none;
    }

    .units-hero-section {
        padding-top: 130px;
        padding-bottom: 4.5rem;
    }

    .units-body-section {
        padding-bottom: 5rem;
    }

    .units-content-column {
        gap: 1.5rem;
    }

    .units-article-divider {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .units-container {
        padding: 0 1.5rem;
    }

    .units-hero-section {
        padding-top: 110px;
        padding-bottom: 2rem;
    }

    .units-hero-title {
        font-size: 1.4rem;
    }

    .units-article-title {
        font-size: 1.2rem;
    }

    .units-paragraph {
        font-size: 14.5px;
        line-height: 1.75;
    }
}