/* Tarihçe Page Styles */
.tarihce-section {
    padding: 20px 0;
}

.page-title {
    color: #1e3c72;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #41e2ad;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: #1e3c72;
}

.tarihce-content {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.tarihce-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Image Styles */
.tarihce-img-wrapper {
    float: right;
    width: 40%;
    margin-left: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tarihce-img-wrapper:hover {
    transform: translateY(-5px);
}

.tarihce-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: sepia(20%);
}

/* Layout Configuration for Desktop */
@media (min-width: 992px) {
    .fr-layout {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .fr-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
    }

    .tarihce-section {
        flex: 1;
        min-width: 0;
        /* Prevent flex item from overflowing */
        padding-top: 0;
        /* Align with sidebar top */
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .fr-layout {
        display: block;
    }

    .fr-sidebar {
        /* Mobile styles are handled in sidebar.css */
    }
}

@media (max-width: 768px) {
    .tarihce-img-wrapper {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 1.75rem;
    }
}