/* Mantolama Teknik Şartname - Two Column Layout with Sticky Navigation */

/* Override subpage-header for this page */
.subpage-header {
    padding: 140px 0 60px;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.sartname-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

/* ========================================
   SIDEBAR NAVIGATION (Left Column)
   ======================================== */

.sidebar-nav {
    position: relative;
}

.nav-sticky {
    position: sticky;
    top: 120px;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.toc-link.active {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: var(--color-accent);
}

.toc-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    min-width: 24px;
    transition: color 0.3s ease;
}

.toc-link.active .toc-number {
    color: var(--color-accent);
}

.toc-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.toc-link.active .toc-text {
    color: #fff;
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT (Right Column)
   ======================================== */

.main-content {
    max-width: 720px;
}

/* ========================================
   MADDE SECTIONS
   ======================================== */

.madde-section {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.madde-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.madde-header {
    margin-bottom: 1.25rem;
}

.madde-number {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.madde-header h2 {
    font-family: var(--font-heading-tech);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.madde-summary {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ========================================
   ACCORDION
   ======================================== */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-item.open {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header span {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-item.open .accordion-content {
    max-height: 300px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.accordion-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 220px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .sartname-main {
        padding: 3rem 1.5rem 4rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-nav {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    .madde-header h2 {
        font-size: 1.4rem;
    }

    .accordion-header {
        padding: 1rem 1.25rem;
    }

    .accordion-content p {
        padding: 0 1.25rem 1.25rem;
    }
}