/* Common styles for pages (about, contact, project) */

/* Page container - common for all pages */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Specific padding for about and contact containers */
.about-container.page-container,
.contact-container.page-container {
    padding-top: 40px; /* Keep padding-top when sidebar is showing */
}

/* Page title - common for all pages */
.page-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #000;
}

/* Page content - common for all pages */
.page-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

/* About page specific styles */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    padding-right: 30px;
}

.about-image {
    margin-top: 55px;
    flex: 1;
}

.about-text p {
    margin-top: 55px;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Contact page specific styles */
.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    padding-right: 30px;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin: 25px 0;
}

.contact-details p {
    margin-bottom: 10px;
}

/* Project page specific styles */
.project-title {
    margin-bottom: 10px;
}

.project-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 15px;
}

.project-description {
    max-width: 700px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 992px) {
    /* Only remove padding-top for about and contact containers when in header mode */
    .about-container.page-container,
    .contact-container.page-container,
    .page-container,
    .project-detail {
        padding-top: 0;
    }
    
    .page-content {
        flex-direction: column;
        margin-top: 0; /* Changed from 15px to 0 */
    }
    
    .about-content, 
    .contact-content {
        flex-direction: column;
        margin-top: 0; /* Make sure about-content margin is 0 */
        height: auto; /* Mobilde otomatik yükseklik */
    }
    
    .about-text, 
    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
        max-height: none; /* Mobilde maksimum yükseklik kısıtlaması kaldırıldı */
        overflow-y: visible; /* Mobilde scroll kapatıldı */
        position: relative; /* Mobilde sticky kaldırıldı */
    }
    
    /* Reset top margins for elements inside containers */
    .about-text p,
    .about-image {
        margin-top: 0;
        position: relative; /* Mobilde sticky kaldırıldı */
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 30px 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        flex-direction: column;
    }
} 