/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ana-renk);
    margin-bottom: 0;
}

/* News Card Base Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* News Link */
.news-link {
    display: block;
    text-decoration: none;
}

/* Featured News Card (Large) */
.news-card-featured {
    height: 100%;
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.news-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-badge {
    display: inline-block;
    background: var(--ana-renk);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--ana-renk);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 4px;
}

.news-read-more::after {
    content: "→";
    font-size: 1.2rem;
}

.news-read-more:hover {
    gap: 8px;
    color: var(--ikincil-renk);
}

/* Four News Cards Grid (2x2) */
.news-grid-four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: 100%;
}

.news-card-compact {
    display: flex;
    flex-direction: column;
    height: 100%;
} 

.news-image-wrapper-compact {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.news-image-wrapper-compact img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-wrapper-compact img {
    transform: scale(1.05);
}

.news-content-compact {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title-compact {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.news-excerpt-compact {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.news-read-more-compact {
    display: inline-flex;
    align-items: center;
    color: var(--ana-renk);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 4px;
}

.news-read-more-compact::after {
    content: "→";
    font-size: 1rem;
}

.news-read-more-compact:hover { 
    gap: 8px;
    color: var(--ikincil-renk);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .news-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-four {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
}

/* News Page - Slider Items */
.news-slider .image-area {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.news-slider .image-area img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Page - Grid Items */
.news-item .image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 15px;
}

.news-item .image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-item .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional Images Gallery Section */
.additional-images {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.additional-images h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ikincil-renk);
    margin-bottom: 20px;
}

.additional-images .col-md-4 img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.additional-images .col-md-4 img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Modal styling for gallery images */
.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .additional-images {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .additional-images h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .additional-images .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
