/**
 * News Section Styles
 * Modern blog card design with BEM naming convention
 *
 * @package Flavor_Starter
 */

/* Section Container */
.ta-news {
    padding: var(--space-16, 4rem) 0;
    background-color: #ffffff;
}

/* Section Header styles moved to shared component: section-heading.css */

/* Grid Layout */
.ta-news__grid {
    display: grid;
    gap: var(--space-6, 1.5rem);
    margin-bottom: var(--space-12, 3rem);
}

.ta-news__grid--cols-2 {
    grid-template-columns: 1fr;
}

.ta-news__grid--cols-3 {
    grid-template-columns: 1fr;
}

.ta-news__grid--cols-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .ta-news__grid--cols-2,
    .ta-news__grid--cols-3,
    .ta-news__grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ta-news__grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .ta-news__grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Blog Card - Modern Style
   ============================================ */

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

.ta-news-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ta-news-card__inner:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Image Section */
.ta-news-card__image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f3f4f6;
}

.ta-news-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ta-news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ta-news-card__inner:hover .ta-news-card__image {
    transform: scale(1.08);
}

/* Content Section */
.ta-news-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.ta-news-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.ta-news-card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ta-news-card__title-link:hover {
    color: #1f3b64;
}

.ta-news-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Section */
.ta-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ta-news-card__date {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.ta-news-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f3b64;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ta-news-card__read-more:hover {
    color: #FFC200;
    gap: 10px;
}

.ta-news-card__arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.ta-news-card__read-more:hover .ta-news-card__arrow {
    transform: translateX(4px);
}

/* ============================================
   Compact Card Style Variation
   ============================================ */

.ta-news__grid--style-compact .ta-news-card__inner {
    border-radius: 8px;
}

.ta-news__grid--style-compact .ta-news-card__content {
    padding: 16px;
}

.ta-news__grid--style-compact .ta-news-card__title {
    font-size: 16px;
    margin-bottom: 8px;
}

/* ============================================
   Minimal Card Style Variation
   ============================================ */

.ta-news__grid--style-minimal .ta-news-card__inner {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.ta-news__grid--style-minimal .ta-news-card__inner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* ============================================
   Footer Section
   ============================================ */

.ta-news__footer {
    text-align: center;
    margin-top: var(--space-8, 48px);
}

.ta-news__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: 14px 32px;
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-semibold, 600);
    color: #ffffff;
    background: var(--primary-color, var(--primary, #3b82f6));
    border: none;
    border-radius: var(--radius-lg, 8px);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast, 150ms) var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ta-news__button:hover {
    background: var(--primary-color, var(--primary-dark, #2563eb));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.ta-news__button:focus-visible {
    outline: 2px solid var(--primary-color, var(--primary, #3b82f6));
    outline-offset: 2px;
}

.ta-news__button-icon {
    flex-shrink: 0;
    transition: transform var(--transition-fast, 150ms) var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));
}

.ta-news__button:hover .ta-news__button-icon {
    transform: translateX(4px);
}

/* No Posts Message */
.ta-news__no-posts {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    padding: var(--space-8, 2rem);
}

/* Responsive Adjustments */
@media (max-width: 639px) {
    .ta-news-card__title {
        font-size: 16px;
    }

    .ta-news-card__content {
        padding: 20px;
    }
}
