/* ═══════════════════════════════════════
   Altunsa News Widget
   ═══════════════════════════════════════ */

.altunsa-news-section-title {
    font-size: 2rem;
    color: #dc3545;
}

.altunsa-news-section-subtitle {
    font-size:2rem;
    color: #208235 !important;
}

/* ── Editor Preview ── */
.altunsa-news-editor-preview {
    padding: 20px 0;
}

/* ────────────────────────────────────────
   Öne Çıkan Kart
──────────────────────────────────────── */
.altunsa-news-main-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.altunsa-news-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.altunsa-news-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.altunsa-news-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.altunsa-news-main-card:hover .altunsa-news-main-image {
    transform: scale(1.05);
}

.altunsa-news-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.altunsa-news-date-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.altunsa-news-main-content {
    padding: 25px;
}

.altunsa-news-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.altunsa-news-main-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.altunsa-news-main-title a:hover {
    color: #28a745;
}

.altunsa-news-main-excerpt {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.altunsa-news-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s, color 0.3s;
}

.altunsa-news-read-more-btn:hover {
    color: #20c997;
    gap: 10px;
}

/* ────────────────────────────────────────
   Yan Kartlar
──────────────────────────────────────── */
.altunsa-news-side-cards {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.altunsa-news-side-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.altunsa-news-side-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.altunsa-news-side-image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.altunsa-news-side-card:hover .altunsa-news-side-image {
    transform: scale(1.04);
}

.altunsa-news-side-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.altunsa-news-side-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: #28a745;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.altunsa-news-side-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.35;
}

.altunsa-news-side-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.altunsa-news-side-title a:hover {
    color: #28a745;
}

.altunsa-news-side-date {
    font-size: 0.78rem;
    color: #adb5bd;
    margin: 0;
}

.altunsa-news-side-link {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.altunsa-news-side-link:hover {
    color: #20c997;
}

/* ────────────────────────────────────────
   Alt Grid Kartları
──────────────────────────────────────── */
.altunsa-news-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.altunsa-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

.altunsa-news-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.altunsa-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.altunsa-news-card:hover .altunsa-news-card-image img {
    transform: scale(1.08);
}

.altunsa-news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.altunsa-news-card-content {
    padding: 20px;
}

.altunsa-news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.35;
}

.altunsa-news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.altunsa-news-card-title a:hover {
    color: #28a745;
}

.altunsa-news-card-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.altunsa-news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.altunsa-news-card-date {
    font-size: 0.82rem;
    color: #adb5bd;
}

.altunsa-news-card-link {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.altunsa-news-card-link:hover {
    color: #20c997;
}

/* ────────────────────────────────────────
   Load More
──────────────────────────────────────── */
.altunsa-news-load-more-btn {
    background-color: #28a745;
    color: #fff;
    border: 2px solid #28a745;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.altunsa-news-load-more-btn:hover {
    background-color: #20c997;
    border-color: #20c997;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.35);
}

.altunsa-news-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.altunsa-news-empty {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
}

/* ── Yeni yüklenen kartlar fade-in ── */
.altunsa-news-grid-col.altunsa-news-fade-in {
    animation: altunsaNewsFadeIn 0.5s ease forwards;
}

@keyframes altunsaNewsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────
   Responsive
──────────────────────────────────────── */
@media ( max-width: 991px ) {
    .altunsa-news-image-container {
        height: 220px;
    }

    .altunsa-news-side-cards {
        margin-top: 20px;
        gap: 15px;
    }
}

@media ( max-width: 768px ) {
    .altunsa-news-side-image {
        height: 75px;
    }

    .altunsa-news-card-image {
        height: 170px;
    }

    .altunsa-news-main-title {
        font-size: 1.25rem;
    }

    .altunsa-news-load-more-btn {
        width: 100%;
        justify-content: center;
    }
}
