/*!
Theme Name: Base Site Theme
Theme URI:
Author:
Author URI:
Description: Lightweight listing / affiliate layout. Rename the theme folder per project if you like; strings use the text domain "base-site".
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: base-site
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --rating-gold: #fbbf24;
    --success-green: #10b981;
    --purple-dark: #5b21b6;
    --purple-banner: #6d28d9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--white);
    padding: 20px 0;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.banner-icon span {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
}

.banner-icon__img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

.banner-text p {
    font-size: 0.95rem;
    margin: 0;
}

.banner-text a {
    color: var(--rating-gold);
    text-decoration: underline;
    font-weight: 600;
}

.banner-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-logo {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.banner-logo:hover {
    opacity: 1;
}

.banner-logo img {
    height: 28px;
    width: auto;
}
.star svg {
    fill: #e5e7eb; /* серые */
}

.star.is-active svg {
    fill: #fbbf24; /* жёлтые */
}
/* Navigation Menu */
.nav-container {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.hero__description p{
    font-size: 17px;
    font-weight: 400;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.nav-menu.active {
    max-height: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 16px 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Header */
header {
    background: var(--white);
    color: var(--text-dark);
    padding: 40px 20px;
    text-align: center;
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero__title .primary {
    color: var(--primary-color);
}

.hero__description {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 1; color: var(--text-gray);
    line-height: 1.6;
}

/* Main Content */
main {
    padding: 60px 0;
}

.brands-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.brand-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
} */

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
}

.brand-offer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    min-height: 60px;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.offer-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.brand-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 18px;
    height: 18px;
}

.star svg {
    width: 100%;
    height: 100%;
    fill: var(--rating-gold);
}

.brand-cta {
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    p{
        font-size: 0.85rem;
        color: #6b7280;
        line-height: 1.6;
        text-align: center;
    }
}

.cta-button {
    display: block;
    /* background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%); */
    color: #000000;
    padding: 5px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); */
}
/* 
.cta-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
} */

.brand-disclaimer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* About Section */
.about-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 50px 60px;
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-section h2 .primary {
    color: var(--primary-color);
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
    text-align: center;
}

.faq-section h2 .primary {
    color: var(--primary-color);
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand {
    text-align: center;
    margin: 40px 0;
}

.footer-brand a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-brand a:hover {
    opacity: 0.8;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 16px;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Support Organizations Section */
.support-organizations {
    background: var(--white);
    padding: 80px 0;
    margin-top: 80px;
}

.support-organizations h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.support-organizations > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.organization-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.organization-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.organization-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 240px;
    min-height: 80px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
}

.organization-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

.organization-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.organization-info p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.organization-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-item img {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

.organization-cta {
    margin-top: auto;
}

.organization-cta .cta-button {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.organization-cta .cta-button:hover {
    background: var(--primary-hover);
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
    list-style: none;
}

.footer-menu a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.85rem;
}




.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.content-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.content-body p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.content-body ul, .content-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--text-gray);
}

/* Policy Page template — readable box for pasted legal copy */
.policy-page {
    padding: 40px 48px 48px;
    margin-top: 24px;
    margin-bottom: 48px;
}

.policy-page__header {
    margin-bottom: 8px;
}

.policy-page__body {
    text-align: left;
}

.policy-page__body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.policy-page__body a:hover {
    color: var(--primary-hover);
}

.highlight-box {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 8px;
}

.organization__info_2 {
    margin: 20px; 
    padding: 40px; 
    background: var(--bg-light); 
    border-radius: 16px; 
    border-left: 4px solid var(--primary-color);
}

/* Responsive Design */
/* =========================================================================
   404 — Page introuvable. Same theme tokens as Articles.
   ========================================================================= */
.page-404 { padding: 60px 0 80px; }

.page-404__hero {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 60px 60px 50px;
    margin-bottom: 32px;
    text-align: center;
    border-top: 6px solid var(--primary-color);
}

.page-404__code {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    margin: 0 0 12px;
    opacity: 0.85;
}

.page-404__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.page-404__lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0 auto 32px;
    max-width: 56ch;
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.page-404__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-404__btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.page-404__btn--primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.page-404__btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.page-404__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.page-404__col {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 28px;
}

.page-404__col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.page-404__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-404__list li {
    margin-bottom: 12px;
}

.page-404__list li:last-child {
    margin-bottom: 0;
}

.page-404__list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: color 0.3s ease;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.page-404__list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.page-404__search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.page-404__search input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-404__search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.page-404__search-btn {
    padding: 12px 18px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-404__search-btn:hover {
    background: var(--primary-hover);
}

.page-404__help {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.page-404__help a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-404__help a:hover {
    text-decoration: underline;
}

.page-404__empty {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.page-404__footer-note {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
    border-left: 4px solid var(--primary-color);
}

.page-404__footer-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.page-404__footer-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-404 a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .page-404__btn,
    .page-404__list a,
    .page-404__search input[type="search"],
    .page-404__search-btn { transition: none !important; }
}

@media (max-width: 1024px) {
    .page-404__columns { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .page-404 { padding: 32px 0 60px; }
    .page-404__hero { padding: 40px 24px 32px; }
    .page-404__code { font-size: 3.5rem; }
    .page-404__title { font-size: 1.5rem; }
    .page-404__lede { font-size: 1rem; }
    .page-404__col { padding: 24px 20px; }
    .page-404__footer-note { padding: 20px; }
}

/* =========================================================================
   Articles archive — uses existing theme tokens (Inter, --primary-color,
   --bg-light, border-radius 16px, soft shadow). Visually matches
   brand-cards / organization-cards on the Home page.
   ========================================================================= */
.articles-page__hero {
    background: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.articles-page .articles-page__intro {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 32px 40px;
    margin: 0 0 40px;
    color: var(--text-gray);
    line-height: 1.8;
}

.articles-page .articles-page__intro p { margin: 0 0 16px; }
.articles-page .articles-page__intro p:last-child { margin: 0; }

/* Featured article — same visual language as .about-section / brand-card */
.article-card--featured {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 50px 60px;
    margin-bottom: 60px;
    border-left: 6px solid var(--primary-color);
}

.article-card--featured .article-card__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.article-card--featured .article-card__excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0 0 24px;
    max-width: 70ch;
}

/* Featured top meta row */
.article-card__meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.article-card__badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}

.article-card__cat {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-card__cat:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section divider before grid */
.articles-page__divider {
    text-align: center;
    margin: 0 0 32px;
}

.articles-page__divider-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.articles-page__divider-sub {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Cards grid — mirrors .brands-list pattern (3-col → 2-col → 1-col) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

/* Card — mirrors .brand-card visual language */
.article-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:not(.article-card--featured):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.article-card__cat {
    align-self: flex-start;
    margin-bottom: 16px;
}

.article-card__title {
    margin: 0 0 12px;
    color: var(--text-dark);
    line-height: 1.35;
}

.article-card__title--small {
    font-size: 1.15rem;
    font-weight: 600;
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card__title a:hover {
    color: var(--primary-color);
}

.article-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin: 0 0 18px;
    flex: 1;
}

.article-card__meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-card__meta-sep { color: var(--border-color); }

/* Featured CTA reuses .cta-button — add color so it stands out */
.article-card__cta.cta-button {
    align-self: flex-start;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card__cta.cta-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

/* Card "Lire la suite" link */
.article-card__more {
    align-self: flex-start;
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.article-card__more:hover { color: var(--primary-hover); }

.articles-page__empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

/* Focus state for keyboard users */
.articles-page a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .article-card__cta.cta-button,
    .article-card__cat,
    .article-card__title a,
    .article-card__more { transition: none !important; }
}

/* Tablet */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .article-card--featured {
        padding: 30px 24px;
        margin-bottom: 40px;
    }
    .article-card--featured .article-card__title { font-size: 1.5rem; }
    .article-card--featured .article-card__excerpt { font-size: 1rem; }
    .articles-page__divider-title { font-size: 1.5rem; }
    .articles-grid {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }
    .articles-page .articles-page__intro {
        padding: 24px 20px;
    }
}

@media (max-width: 1024px) {
    .brands-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .policy-page {
        padding: 24px 20px 32px;
        margin-top: 16px;
        margin-bottom: 32px;
    }

    .container {

        padding: 0px;
    }
    .hero__description p{
        font-size: 16px;
        font-weight: 400;
    }
    .banner-text {
        flex-direction: column;
        gap: 8px;
    }

    .banner-text p {
        font-size: 0.85rem;
    }

    .banner-logos {
        gap: 12px;
    }

    .banner-logo img {
        height: 24px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 0.9rem;
    }

    .brands-list {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 30px 24px;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    .footer-logos {
        gap: 16px;
    }

    .footer-logo img {
        height: 32px;
    }
}
