/* 
 * Winsome News & Media Page Stylesheet
 * Contains stunning 3-column news grid and premium luxury news cards.
 */

.news-grid-section {
    padding: 3rem 0 6rem;
    background-color: var(--color-bg);
    position: relative;
    z-index: 10;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Stunning Glassmorphic-accented News Card */
.news-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(80, 106, 28, 0.08);
    box-shadow: 0 10px 40px rgba(12, 16, 4, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(80, 106, 28, 0.12), 0 0 0 1.5px rgba(212, 175, 55, 0.35);
    border-color: transparent;
}

/* Card Image Wrapper with Vignette & Zoom */
.news-card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(80, 106, 28, 0.06);
}

/* Vignette Overlay */
.news-card-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 16, 4, 0.45) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.news-card:hover .news-card-img-wrapper::after {
    background: linear-gradient(to top, rgba(12, 16, 4, 0.55) 0%, transparent 50%);
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.33, 1);
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.08) rotate(0.5deg);
}

/* Floating Category Badges with Pulsing Dot */
.news-card-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(12, 16, 4, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Category Pulsing Dot Indicator */
.news-card-category::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-gold);
    display: inline-block;
    animation: indicatorPulse 1.8s infinite ease-in-out;
}

@keyframes indicatorPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--color-gold); }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.news-card-date {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(12, 16, 4, 0.05);
}

/* Card Body Content */
.news-card-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

/* Card Meta Row (Author/Publisher and Type) */
.news-card-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(12, 16, 4, 0.45);
    font-weight: 500;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-meta-row .meta-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

.news-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.6rem; /* Symmetrical column heights */
}

.news-card:hover .news-card-body h3 {
    color: var(--color-primary);
}

.news-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(12, 16, 4, 0.65);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    height: 4.3rem; /* Perfect matching alignment for excerpts */
}

/* Compact Premium Gradient Button in News Card */
.news-card-body .btn-green-gradient {
    width: fit-content;
    align-self: flex-start;
    margin-top: auto;
    border-radius: 30px;
    padding: 0.65rem 1.4rem;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(80, 106, 28, 0.18);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 4%;
    }
    
    .news-card-img-wrapper {
        height: 220px;
    }
    
    .news-card-body h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 650px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 5%;
    }
    
    .news-card-img-wrapper {
        height: 240px;
    }
    
    .news-card-body {
        padding: 2rem 1.5rem;
    }
    
    .news-card-body h3 {
        height: auto;
        -webkit-line-clamp: unset;
    }
    
    .news-card-excerpt {
        height: auto;
        -webkit-line-clamp: unset;
    }
}

/* Media Social Follow CTA */
.media-social-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    width: 100%;
}

.media-social-cta .cta-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(12, 16, 4, 0.55);
}

.social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-outline-social {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(12, 16, 4, 0.15);
    color: var(--color-text);
    background: transparent;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-social svg {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--color-primary);
}

.btn-outline-social:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-hover) !important;
    background: rgba(212, 175, 55, 0.08);
}

.btn-outline-social:hover svg {
    transform: scale(1.15) rotate(5deg);
    color: var(--color-gold);
}

/* Green Colored Gradient Button */
.btn-green-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #728f32 100%);
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8rem 2.25rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(80, 106, 28, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    margin-top: auto;
    width: fit-content;
}

.btn-green-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 106, 28, 0.35);
    background: linear-gradient(135deg, #5b7920 0%, #7ca033 100%);
}

.btn-green-gradient svg {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    stroke: #ffffff;
}

.btn-green-gradient:hover svg {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .news-section {
        padding: 2rem 0 3rem;
    }
    .news-grid {
        padding: 0 3%;
        gap: 1.5rem;
    }
    .news-card-body {
        padding: 1.5rem 1.2rem;
    }
    .news-card-body h3 {
        font-size: 1.1rem;
    }
    .news-card-excerpt {
        font-size: 0.85rem;
    }
    .news-card-img-wrapper {
        height: 200px;
    }
}
