/* News Component Styles */
.news-component {
    --primary: var(--selcuk-blue);
    --secondary: var(--selcuk-blue);
    --text-dark: #2C3E50;
    --border: #e5e7eb;
    padding: 3rem 0;
}

/* Header Area */
.news-component__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.news-component__titles {
    position: relative;
}

.news-component__main-title {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.news-component__main-title--compact {
    font-size: 1.5rem;
}

.news-component__subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Tab Navigation */
.news-component__tabs {
    display: flex;
    gap: 1rem;
}

.news-component__tab {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .news-component__tab:hover {
        border-color: var(--secondary);
        color: var(--secondary);
        transform: translateY(-2px);
    }

    .news-component__tab.active {
        background: var(--secondary);
        color: white;
        border-color: var(--secondary);
    }

/* News Grid */
.news-component__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin: 1rem 0 2rem 0;
}

/* News Card */
.news-component__card {
    text-decoration: none;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

    .news-component__card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

/* Success News Variant - image inside card with spacing */
.news-component--success .news-component__card {
    padding: 0.75rem;
    overflow: visible;
}

.news-component--success .news-component__image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.news-component--success .news-component__image {
    object-fit: contain;
}

/* Card Image */
.news-component__image-wrapper {
    position: relative;
    padding-top: 60%; /* 5:3 Aspect Ratio */
    overflow: hidden;
}

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

.news-component__card:hover .news-component__image {
/*    transform: scale(1.05);
*/}

/* Card Content */
.news-component__content {
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
}

.news-component__title {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.news-component__description {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Divider Footer */
.news-component__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    position: relative;
}

.news-component__divider-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.news-component__divider-line {
    flex: 1;
    height: 1.5px;
    position: relative;
    background: var(--selcuk-blue);
}

    .news-component__divider-line::before {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: var(--selcuk-blue);
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(255, 201, 13, 0.4);
    }

    .news-component__divider-line:first-child::before {
        right: 15%;
    }

    .news-component__divider-line:last-child::before {
        left: 15%;
    }

    .news-component__divider-line::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 2px;
        background: var(--selcuk-blue);
        border-radius: 50%;
        opacity: 0.6;
    }

    .news-component__divider-line:first-child::after {
        right: 30%;
    }

    .news-component__divider-line:last-child::after {
        left: 30%;
    }

.news-component__divider-text {
    color: var(--selcuk-blue);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1.5px solid var(--selcuk-blue);
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(28, 69, 139, 0.1);
    margin: 0 1rem;
}

    .news-component__divider-text:hover {
        background: var(--selcuk-blue-hover);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(13, 45, 94, 0.25);
    }

/* Hover Effects */
.news-component__card:hover .news-component__title {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-component__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .news-component__tab {
        padding: 0.6rem 1.25rem;
    }

    .news-component__divider-container {
        max-width: 500px;
    }

    .news-component__divider-text {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
        margin: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .news-component {
        padding: 2rem 0;
    }

    .news-component__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-component__tabs {
        width: 100%;
    }

    .news-component__tab {
        flex: 1;
        text-align: center;
    }

    .news-component__main-title {
        font-size: 1.75rem;
    }

    .news-component__footer {
        margin-top: 2rem;
    }

    .news-component__divider-container {
        max-width: 400px;
    }

    .news-component__divider-text {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        margin: 0 0.5rem;
    }

    .news-component__divider-line::before {
        width: 3px;
        height: 3px;
    }

    .news-component__divider-line::after {
        width: 1.5px;
        height: 1.5px;
    }
}

@media (max-width: 576px) {
    .news-component__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-component__content {
        padding: 1rem 1.25rem 1rem 1.5rem;
    }

    .news-component__title {
        font-size: 1rem;
    }

    .news-component__divider-line {
        display: none;
    }

    .news-component__divider-text {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        border-radius: 15px;
        margin: 0;
    }
}
