/* ===========================
Feature Cards
=========================== */

.feature-card{
    transition:.3s;
    border-radius:15px;
}

.feature-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.1)!important;
}

.icon-box{
    width:70px;
    height:70px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.brand-box{
    padding:30px;
    border-radius:15px;
    background:#fff;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.brand-box:hover{
    transform:translateY(-6px);
}

.table{
    border-radius:10px;
    overflow:hidden;
}

/*==========================
Download Section
==========================*/

#download{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
}

#download .card{
border-radius:20px;
}

/*==========================
Installation Steps
==========================*/

.step-card{

background:#fff;

padding:35px;

border-radius:15px;

box-shadow:0 10px 30px rgba(0,0,0,.08);

text-align:center;

height:100%;

transition:.3s;

}

.step-card:hover{

transform:translateY(-8px);

}

.step-number{

width:60px;

height:60px;

margin:auto;

background:#2563eb;

color:#fff;

font-size:24px;

font-weight:bold;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

margin-bottom:20px;

}

.table th{

background:#f8f9fa;

}

.hero{
background:#0f172a;
color:white;
padding:100px 0;
}

.hero-image{
max-width:90%;
border-radius:15px;
}

.stat-box{
background:rgba(255,255,255,0.1);
padding:15px;
border-radius:10px;
text-align:center;
margin-top:20px;
}

.stat-box h3{
margin:0;
font-weight:bold;
}

/* ============================================================
   VARIABLES
============================================================ */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --dark: #0f172a;
    --gray-600: #64748b;
    --gray-400: #94a3b8;
    --gray-100: #f8f9fa;
    --radius: 15px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   TFT BLOG SECTION — shared: homepage + listing + related
============================================================ */

.tft-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 899px) {
    .tft-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
    .tft-blog-grid { grid-template-columns: 1fr; }
}

.tft-blog-card {
    min-width: 0;
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 350ms ease;
}

.tft-blog-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 20px 48px rgba(37,99,235,0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.tft-blog-card:focus-within {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.tft-blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.tft-blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tft-blog-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 650ms var(--ease);
}

.tft-blog-card:hover .tft-blog-img { transform: scale(1.06); }

.tft-blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0);
    transition: background 500ms ease;
    pointer-events: none;
}

.tft-blog-card:hover .tft-blog-overlay { background: rgba(37, 99, 235, 0.10); }

.tft-blog-accent {
    height: 3px;
    width: 0%;
    background: var(--brand);
    flex-shrink: 0;
    transition: width 380ms var(--ease);
}

.tft-blog-card:hover .tft-blog-accent { width: 100%; }

.tft-blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.tft-blog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}

.tft-blog-title,
.tft-blog-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin: 0 0 10px;
    transition: color 350ms ease;
}

.tft-blog-card:hover .tft-blog-title,
.tft-blog-card:hover .tft-blog-title-text { color: var(--brand); }

.tft-blog-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tft-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    position: relative;
}

.tft-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--brand);
    transition: width 300ms var(--ease);
}

.tft-blog-card:hover .tft-read-more::after { width: calc(100% - 20px); }

.tft-arrow {
    display: inline-block;
    transition: transform 350ms var(--ease);
}

.tft-blog-card:hover .tft-arrow { transform: translateX(6px); }

/* ============================================================
   BLOG LIST LAYOUT (Articles listing page)
============================================================ */

.tft-blog-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.tft-blog-list .tft-blog-card-link { flex-direction: row; align-items: stretch; }

.tft-blog-list .tft-blog-img-wrap {
    width: 320px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: auto;
    border-radius: var(--radius) 0 0 var(--radius);
}

.tft-blog-list .tft-blog-accent { display: none; }

.tft-blog-list .tft-blog-content { flex: 1; justify-content: center; padding: 26px 32px; }

.tft-blog-list .tft-blog-excerpt { -webkit-line-clamp: 2; }

@media (max-width: 767px) {
    .tft-blog-list .tft-blog-card-link { flex-direction: column; }
    .tft-blog-list .tft-blog-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

/* ============================================================
   BLOG PREVIEW SECTION (Homepage)
============================================================ */

.blog-preview-section { padding: 88px 0 96px; background: var(--gray-100); }
.blog-preview-heading { text-align: center; margin-bottom: 56px; }

.blog-label {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.blog-preview-heading .blog-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
}

.blog-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.blog-view-all-wrap { text-align: center; margin-top: 48px; }

.blog-view-all-btn {
    padding: 12px 36px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-view-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   BLOG LISTING PAGE (/articles/)
============================================================ */

.blog-hero { background: var(--dark); color: #fff; padding: 70px 0 60px; text-align: center; }
.blog-hero h1 { font-weight: 700; margin-bottom: 14px; }
.blog-hero p { color: #cbd5e1; max-width: 600px; margin: 0 auto; }
.blog-listing-section { padding: 64px 0; background: var(--gray-100); }

/* ============================================================
   ARTICLE PAGE
============================================================ */

.article-hero { background: var(--dark); color: #fff; padding: 60px 0 50px; }
.article-breadcrumb { margin-bottom: 20px; }
.article-breadcrumb a { color: var(--gray-400); text-decoration: none; font-size: 14px; }
.article-breadcrumb a:hover { color: #fff; }

.article-category-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.article-hero h1 { font-weight: 700; max-width: 800px; margin-bottom: 16px; }

.article-meta {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-featured-img,
.article-body img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-toc { background: var(--gray-100); border-radius: 12px; padding: 24px; margin-bottom: 30px; }

.article-toc h5 {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
}

.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 10px; }
.article-toc a { color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 500; }
.article-toc a:hover { text-decoration: underline; }

.article-body { font-size: 1.05rem; line-height: 1.8; color: #334155; }

.article-body h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 42px;
    margin-bottom: 18px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 14px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul,
.article-body ol { margin-bottom: 20px; padding-left: 22px; }

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
    background: #eff6ff;
    border-left: 4px solid var(--brand);
    padding: 18px 22px;
    border-radius: 8px;
    margin: 26px 0;
    color: #1e3a8a;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-body figure { margin: 28px 0; }

.article-body figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 8px;
}

.article-body .table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }

.article-body th,
.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.article-body th { background: var(--dark); color: #fff; font-weight: 600; white-space: nowrap; }
.article-body tbody tr:nth-child(even) { background: var(--gray-100); }
.article-body tbody tr:last-child td { border-bottom: none; }

.article-body a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
}

.article-body a:hover { text-decoration-color: var(--brand); }

.article-step {
    display: flex;
    gap: 16px;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.article-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cta-box {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.article-cta-box h4 { font-weight: 700; margin-bottom: 10px; }
.article-cta-box p { color: #dbeafe; margin-bottom: 20px; }

/* ── Section heading + button row (Related Articles) ── */
.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.section-heading-row h3 { margin-bottom: 0; }