/* =====================================================
   Articles / Insights  —  professional card grid
   Uses the site brand palette:
     --primary-color: #C88A2A (gold)
     --secondary-color: #111
   Path: /assets/css/articles.css
   ===================================================== */

.articles-section {
    padding: 20px 0 80px;
}

/* Standalone (articles.php / article.php) sits below the fixed header */
.articles-page {
    padding-top: 140px;
    background: #fafafa;
}

.articles-heading-area {
    margin-bottom: 50px;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.articles-heading-area .mini-label {
    display: inline-block;
    background: rgba(204, 135, 43, 0.10);
    color: #C88A2A;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.articles-heading-area h2 {
    font-size: 33px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    margin-bottom: 12px;
}

.articles-heading-area p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* ---------- Grid ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

/* All-articles page shows a comfortable 3-up layout */
.articles-page .articles-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .articles-grid,
    .articles-page .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .articles-grid,
    .articles-page .articles-grid { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(204, 135, 43, 0.18);
    border-color: rgba(204, 135, 43, 0.35);
}

.article-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f2;
}

.article-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-visual img {
    transform: scale(1.05);
}

.article-visual .article-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.article-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #C88A2A;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-body h5 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin: 0 0 10px;
}

.article-body p {
    font-size: 14px;
    line-height: 1.65;
    color: #666;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    transition: gap 0.25s ease, color 0.25s ease;
}

.article-card:hover .article-readmore {
    color: #C88A2A;
    gap: 12px;
}

.article-readmore i { font-size: 12px; }

/* ---------- Section footer button ---------- */
.articles-cta {
    text-align: center;
    margin-top: 46px;
}

.articles-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 15px;
}

/* =====================================================
   Single article detail  (article.php)
   ===================================================== */
.article-detail {
    max-width: 820px;
    margin: 0 auto;
    padding: 130px 20px 80px;
}

.article-detail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 26px;
    transition: color 0.2s ease;
}
.article-detail .back-link:hover { color: #C88A2A; }

.article-detail .detail-tag {
    display: inline-block;
    background: rgba(204, 135, 43, 0.10);
    color: #C88A2A;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.article-detail h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #0e0e0e;
    margin: 0 0 14px;
}

.article-detail .detail-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.article-detail .detail-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 34px;
}

.article-detail .detail-content {
    font-size: 17px;
    line-height: 1.85;
    color: #444;
}

.article-detail .detail-content p {
    margin: 0 0 22px;
}

@media (max-width: 640px) {
    .article-detail h1 { font-size: 28px; }
    .article-detail { padding-top: 110px; }
    .articles-heading-area h2 { font-size: 27px; }
}
