/* ==========================================================================
   Yêu FX - Home (front-page) styles
   ========================================================================== */

:root{
	--yfx-bg:#0b1220;
	--yfx-surface:#111c2f;
	--yfx-surface-2:#16233a;
	--yfx-border:#22314d;
	--yfx-text:#e6ecf5;
	--yfx-muted:#9fb0c9;
	--yfx-primary:#2f7bff;
	--yfx-primary-2:#1e5fd8;
	--yfx-accent:#22c55e;
	--yfx-radius:14px;
	--yfx-shadow:0 8px 30px rgba(0,0,0,.28);
}

.yfx-home *{box-sizing:border-box;}
/* Trang chủ giữ nền trắng/xanh sáng của theme. Chỉ card và badge cần nền riêng. */
.yfx-home{background:transparent !important;}
.yfx-container{max-width:1180px;margin:0 auto;padding:0 20px;}
.yfx-section{padding:56px 0;}
.yfx-section__title{font-size:1.7rem;font-weight:800;margin:0 0 26px;color:var(--yfx-text);line-height:1.2;}
.yfx-section__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px;flex-wrap:wrap;}
.yfx-section__head .yfx-section__title{margin:0;}
.yfx-section__more{color:var(--yfx-primary);font-weight:600;text-decoration:none;white-space:nowrap;}
.yfx-section__more:hover{text-decoration:underline;}

/* ---------- HERO ---------- */
.yfx-home .yfx-hero{
	background:
		radial-gradient(920px 440px at 88% -15%,rgba(47,123,255,.40),transparent 62%),
		linear-gradient(155deg,#16233a 0%,#1a2740 50%,#16233a 100%) !important;
	padding:88px 0 76px;border-bottom:1px solid var(--yfx-border);
	position:relative;
}
.yfx-home .yfx-hero::after{
	content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
	background:linear-gradient(90deg,transparent,rgba(47,123,255,.5),transparent);
}
.yfx-hero__inner{max-width:760px;}
.yfx-hero__eyebrow{
	display:inline-block;font-size:.82rem;font-weight:600;letter-spacing:.04em;
	color:var(--yfx-primary);background:rgba(47,123,255,.12);
	border:1px solid rgba(47,123,255,.35);padding:6px 14px;border-radius:999px;margin-bottom:18px;
}
.yfx-hero__title{font-size:2.9rem;line-height:1.12;font-weight:900;color:var(--yfx-text);margin:0 0 16px;}
.yfx-hero__title span{color:var(--yfx-primary);}
.yfx-hero__sub{font-size:1.12rem;color:var(--yfx-muted);margin:0 0 30px;max-width:620px;}
.yfx-hero__cta{display:flex;gap:14px;flex-wrap:wrap;}

/* ---------- BUTTONS ---------- */
.yfx-btn{
	display:inline-flex;align-items:center;justify-content:center;
	padding:13px 26px;border-radius:10px;font-weight:700;font-size:1rem;
	text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;border:1px solid transparent;cursor:pointer;
}
.yfx-btn:hover{transform:translateY(-2px);}
.yfx-btn--primary{background:var(--yfx-primary);color:#fff;box-shadow:0 8px 20px rgba(47,123,255,.35);}
.yfx-btn--primary:hover{background:var(--yfx-primary-2);}
.yfx-btn--ghost{background:transparent;color:var(--yfx-text);border-color:var(--yfx-border);}
.yfx-btn--ghost:hover{border-color:var(--yfx-primary);color:var(--yfx-primary);}
.yfx-btn--light{background:#fff;color:#0b1220;}
.yfx-btn--light:hover{background:#eaf1ff;}

/* ---------- CARD (ảnh chuẩn 16:9, hết nhỏ xíu) ---------- */
.yfx-home .yfx-card{
	background:#ffffff !important;border:1px solid #e5e7eb;border-radius:var(--yfx-radius);
	overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.yfx-card{
	background:var(--yfx-surface);border:1px solid var(--yfx-border);border-radius:var(--yfx-radius);
	overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.yfx-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(15,23,42,.12);border-color:var(--yfx-primary);}
.yfx-card__thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--yfx-surface-2);}
.yfx-card__img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease;}
.yfx-card:hover .yfx-card__img{transform:scale(1.05);}
.yfx-card__cat{
	position:absolute;top:12px;left:12px;z-index:2;
	background:rgba(11,18,32,.82);color:#fff;font-size:.74rem;font-weight:600;
	padding:5px 11px;border-radius:999px;backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.12);
}
.yfx-card__body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:10px;flex:1;}
.yfx-home .yfx-card__body{background:#ffffff !important;}
.yfx-card__title{font-size:1.08rem;line-height:1.35;font-weight:700;margin:0;}
.yfx-home .yfx-card__title,
.yfx-home .yfx-card__title a,
.yfx-home .yfx-card__title a:visited{color:#111827 !important;text-decoration:none;}
.yfx-home .yfx-card__title a:hover{color:var(--yfx-primary) !important;}
.yfx-home .yfx-card__excerpt{color:var(--yfx-muted) !important;font-size:.93rem;line-height:1.55;margin:0;flex:1;}
.yfx-home .yfx-card__meta,
.yfx-home .yfx-card__date{font-size:.8rem;color:var(--yfx-muted) !important;margin-top:4px;}

/* Text section/card trên nền trắng: tối rõ, không xám mờ */
.yfx-home .yfx-section__title{color:#0f172a !important;}
.yfx-home .yfx-cats .yfx-section__title{color:#ffffff !important;}
.yfx-home .yfx-cats .yfx-cat__name{color:#ffffff !important;}
.yfx-home .yfx-cats .yfx-cat__count{color:#c3cfe2 !important;}
.yfx-home .yfx-latest .yfx-section__title{
	display:inline-flex;align-items:center;
	background:linear-gradient(135deg,#16233a 0%,#0f172a 100%);
	color:#ffffff !important;
	border:1px solid rgba(47,123,255,.35);
	border-left:5px solid var(--yfx-primary);
	border-radius:12px;padding:10px 16px;
	box-shadow:0 8px 22px rgba(15,23,42,.16);
}
.yfx-home .yfx-latest .yfx-card__title,
.yfx-home .yfx-latest .yfx-card__title a,
.yfx-home .yfx-featured .yfx-card__title,
.yfx-home .yfx-featured .yfx-card__title a{color:#111827 !important;}
.yfx-home .yfx-latest .yfx-card__excerpt,
.yfx-home .yfx-featured .yfx-card__excerpt{color:#4b5563 !important;}

/* ---------- FEATURED (1 lớn + 2 nhỏ) ---------- */
.yfx-featured{padding-top:48px;}
.yfx-featured__grid{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;gap:22px;}
.yfx-card--feature{grid-row:span 2;}
.yfx-card--feature .yfx-card__title,
.yfx-card--feature .yfx-card__title a{font-size:1.55rem;}
.yfx-card--feature .yfx-card__thumb{aspect-ratio:16/10;}
.yfx-card--feature .yfx-card__body{padding:24px;}

/* ---------- GRID bài mới ---------- */
.yfx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}

/* ---------- CATEGORY ---------- */
.yfx-home .yfx-cats{background:var(--yfx-surface-2) !important;border-top:1px solid var(--yfx-border);border-bottom:1px solid var(--yfx-border);}
.yfx-cats{background:var(--yfx-surface);border-top:1px solid var(--yfx-border);border-bottom:1px solid var(--yfx-border);}
.yfx-cats__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.yfx-cat{
	display:flex;align-items:center;justify-content:space-between;gap:10px;
	background:var(--yfx-surface-2);border:1px solid var(--yfx-border);border-radius:12px;
	padding:18px 20px;text-decoration:none;transition:all .16s ease;
}
.yfx-cat:hover{border-color:var(--yfx-primary);transform:translateY(-2px);}
.yfx-cat__name{font-weight:700;color:var(--yfx-text);font-size:1.02rem;}
.yfx-cat__count{color:var(--yfx-muted);font-size:.82rem;white-space:nowrap;}

/* ---------- CTA BAND ---------- */
.yfx-cta-band{background:linear-gradient(120deg,var(--yfx-primary) 0%,var(--yfx-primary-2) 100%);padding:52px 0;}
.yfx-cta-band__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.yfx-cta-band h2{color:#fff;font-size:1.7rem;margin:0 0 6px;font-weight:800;}
.yfx-cta-band p{color:rgba(255,255,255,.9);margin:0;font-size:1.05rem;}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
	.yfx-hero__title{font-size:2.2rem;}
	.yfx-featured__grid{grid-template-columns:1fr;}
	.yfx-card--feature{grid-row:auto;}
	.yfx-card--feature .yfx-card__title{font-size:1.3rem;}
	.yfx-grid{grid-template-columns:repeat(2,1fr);}
	.yfx-cats__grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
	.yfx-hero{padding:60px 0 48px;}
	.yfx-hero__title{font-size:1.8rem;}
	.yfx-hero__sub{font-size:1rem;}
	.yfx-section{padding:40px 0;}
	.yfx-grid{grid-template-columns:1fr;}
	.yfx-cats__grid{grid-template-columns:1fr;}
	.yfx-cta-band__inner{flex-direction:column;align-items:flex-start;}
}
