/**
 * Styles for Custom News Template (Page Actualités)
 * @package BornToWin
 */

.news-page-template {
    padding: 60px 0;
    background: #fcfdfc;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* --- GRID & CARDS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 125, 46, 0.1);
}

.news-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.1);
}

/* Date Badge */
.news-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary-gold);
    color: var(--color-primary-green);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    line-height: 1;
    min-width: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date-badge .day {
    display: block;
    font-size: 1.4rem;
}

.news-date-badge .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.news-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-cat a {
    color: var(--color-primary-green);
}

.news-read {
    color: #aaa;
}

.news-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-title a {
    color: var(--color-black);
    text-decoration: none;
}

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

.news-footer {
    margin-top: auto;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-more-btn i {
    font-size: 0.7rem;
    background: var(--color-primary-gold);
    color: var(--color-primary-green);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.news-more-btn:hover {
    gap: 15px;
    color: var(--color-primary-gold);
}

/* --- SIDEBAR CUSTOM --- */
.news-sidebar-inner {
    position: sticky;
    top: 100px;
}

.news-widget {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.news-widget .widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary-gold);
    color: var(--color-primary-green);
    font-weight: 800;
}

/* Styled Categories */
.styled-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-categories li {
    margin-bottom: 12px;
}

.styled-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.styled-categories a .count {
    background: #f0f0f0;
    color: #777;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.styled-categories a:hover {
    color: var(--color-primary-green);
    transform: translateX(5px);
}

.styled-categories a:hover .count {
    background: var(--color-primary-green);
    color: #fff;
}

/* Edmark CTA Banner */
.edmark-cta-widget {
    background: linear-gradient(135deg, var(--color-primary-green) 0%, #0d3d0d 100%);
    color: #fff;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.edmark-cta-widget::after {
    content: '\f521'; /* Crown icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.1;
    color: var(--color-primary-gold);
}

.banner-icon {
    font-size: 2.5rem;
    color: var(--color-primary-gold);
    margin-bottom: 20px;
}

.edmark-cta-widget h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.edmark-cta-widget p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.5;
}

.banner-btn {
    display: inline-block;
    background: var(--color-primary-gold);
    color: var(--color-primary-green);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--color-primary-green);
}

/* Sidebar Socials */
.sidebar-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.s-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fb { background: #3b5998; }
.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.wa { background: #25d366; }

.s-link:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- PAGINATION --- */
.news-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.news-pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--color-primary-green);
    color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
