

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:target{
    scroll-margin-top: 50px;
    animation: anchorGlow 1.2s ease-out;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 30px;
    align-items: stretch;

}

.article-card {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    background: #fff;
    padding: 35px;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    transition: .3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-category {
    margin-bottom: 15px;
    padding: 6px 12px;
    background: rgba(200,169,107,.15);
    color: #c8a96b;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block;
    
}

.article-card h3 {
    margin-bottom: 15px;
}

.article-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #111;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-3px);
    border: 1px solid #c8a96b;
}


.article-card .btn-secondary {
    margin-top: auto;
    width: auto;
    align-self: flex-start;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    border: 1px solid #c8a96b;
    background: transparent;
    transition: .3s;
}

.btn-secondary:hover {
    background: #c8a96b;
    color: #111;
    transform: translateY(-2px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}


    .article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-container h2:not(:first-of-type) {
    margin-top: 50px;
}

.article-hero {
    background: #111;
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
}

.article-meta {
    opacity: 0.7;
    margin-top: 10px;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #444;
}

.article-toc {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.article-tip {
    background: rgba(200,169,107,0.12);
    border-left: 4px solid #c8a96b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
}

.article-faq {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 20px;
}

.article-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: #f8f8f8;
    border-radius: 20px;
}

.article-cta .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.related-articles {
    margin-top: 60px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 10px;
}
  
.article-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-container p {
    line-height: 1.7;
}

.article-hero {
    padding: 140px 0 70px;
}


@media (max-width: 900px) {

    html {
        scroll-padding-top: 65px;
    }

     h2 {
        scroll-margin-top: 65px;
    }
}


@media (max-width: 768px) {

    html {
        scroll-padding-top: 85px;
    }
    :target,
     h2 {
        scroll-margin-top: 85px;
    }

    .article-cta .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.anchor-highlight {

    animation: anchorGlow 1.2s ease-out;

}

@keyframes anchorGlow {

    0% {

        box-shadow: 0 0 0 0 rgba(200,169,107,.45);

    }

    50% {

        box-shadow: 0 0 0 12px rgba(200,169,107,.15);

    }

    100% {

        box-shadow: 0 0 0 0 rgba(200,169,107,0);

    }

}



