/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --primary-light: #FFF3F0;
  --accent: #1565C0;
  --accent-2: #00B8D9;
  --success: #16A34A;
  --warning: #F59E0B;
  --text: #111827;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F1F5F9;
  --glass: rgba(255,255,255,0.78);
  --shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 10px 30px rgba(15,23,42,0.10);
  --shadow-lg: 0 22px 70px rgba(15,23,42,0.14);
  --radius: 12px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-sm: 8px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(255,87,34,0.10), transparent 32%),
    radial-gradient(circle at 95% 6%, rgba(21,101,192,0.10), transparent 30%),
    var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

body::selection { background: var(--primary); color: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  border: 2px solid transparent;
  min-height: 48px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,87,34,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(255,87,34,0.36); }
.btn-outline { background: rgba(255,255,255,0.72); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text); flex-shrink: 0; letter-spacing: -0.03em; }
.logo-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 12px 28px rgba(255,87,34,0.28); }
.logo-text { line-height: 1; }
.logo-accent { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: all 0.18s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 7px; border-radius: 10px; }
.hamburger:hover { background: var(--bg-light); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.22s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 12px 20px 18px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.96); }
.mobile-nav .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--border-light); border-radius: 0; }
.mobile-nav.open, .mobile-nav.show { display: flex; }

/* ===== HERO ===== */
.hero { position: relative; padding: 88px 0 74px; overflow: hidden; text-align: center; }
.hero-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(255,87,34,0.12) 0%, transparent 42%), radial-gradient(circle at 80% 20%, rgba(21,101,192,0.10) 0%, transparent 42%), linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.75)); pointer-events: none; z-index: -1; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 20px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,87,34,0.16), transparent 64%); filter: blur(6px); z-index: -1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,243,240,0.92); color: var(--primary-dark); font-size: 13px; font-weight: 800; padding: 8px 18px; border-radius: 100px; margin-bottom: 22px; border: 1px solid rgba(255,87,34,0.18); box-shadow: var(--shadow); }
.hero-title { font-family: var(--font-head); font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.05; color: var(--text); margin-bottom: 22px; letter-spacing: -0.055em; }
.accent { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(15px, 2vw, 19px); color: var(--text-muted); max-width: 650px; margin: 0 auto 34px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: inline-flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; padding: 20px 28px; background: rgba(255,255,255,0.72); border: 1px solid rgba(226,232,240,0.9); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat { text-align: center; min-width: 90px; }
.stat-num { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.stat-div { width: 1px; height: 42px; background: var(--border); }

/* ===== AD SLOT ===== */
.ad-slot { margin: 26px auto; min-height: 96px; background: linear-gradient(135deg, #fff, var(--bg-light)); border: 1px dashed #CBD5E1; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; max-width: 760px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }
.ad-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.bg-light { background: linear-gradient(180deg, var(--bg-light), #fff); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 16px; }
.section-title { font-family: var(--font-head); font-size: clamp(25px, 3vw, 34px); font-weight: 800; color: var(--text); letter-spacing: -0.035em; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 7px; }
.see-all { font-size: 14px; font-weight: 800; color: var(--primary); white-space: nowrap; transition: color 0.18s ease, transform 0.18s ease; }
.see-all:hover { color: var(--primary-dark); text-decoration: underline; }

/* ===== CATEGORIES ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; align-items: center; padding: 26px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: all 0.24s ease; cursor: pointer; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,87,34,0.08), rgba(21,101,192,0.06)); opacity: 0; transition: opacity 0.24s ease; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover { border-color: rgba(255,87,34,0.55); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 34px; margin-bottom: 12px; transform-origin: center; transition: transform 0.24s ease; }
.cat-card:hover .cat-icon { transform: scale(1.12) rotate(-3deg); }
.cat-name { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.cat-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ===== ARTICLES GRID ===== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: relative; transition: all 0.24s ease; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow); overflow: hidden; }
.article-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity 0.24s ease; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: rgba(255,87,34,0.25); }
.article-card:hover::after { opacity: 1; }
.article-card.featured { border-color: rgba(255,87,34,0.45); background: linear-gradient(135deg, #FFF8F6 0%, #FFFFFF 55%, #F8FBFF 100%); }
.article-badge { position: absolute; top: -1px; right: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 0 0 10px 10px; letter-spacing: 0.04em; z-index: 2; }
.article-card img { width: 100%; border-radius: 16px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 4px; box-shadow: 0 12px 28px rgba(15,23,42,0.10); }
.article-cat { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.07em; }
.article-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.42; color: var(--text); letter-spacing: -0.025em; }
.article-title a { transition: color 0.16s ease; }
.article-title a:hover { color: var(--primary); }
.article-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 12px; color: var(--text-light); padding-top: 12px; border-top: 1px solid var(--border-light); font-weight: 600; }

/* ===== LIST ARTICLES ===== */
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list-article { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.22s ease; box-shadow: var(--shadow); }
.list-article:hover { border-color: rgba(255,87,34,0.45); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.list-num { font-family: var(--font-head); font-size: 25px; font-weight: 800; color: var(--primary-light); -webkit-text-stroke: 1px var(--primary); flex-shrink: 0; line-height: 1; min-width: 36px; }
.list-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.45; margin-bottom: 6px; transition: color 0.16s ease; }
.list-article:hover .list-title { color: var(--primary); }
.list-meta { font-size: 12px; color: var(--text-light); font-weight: 600; }

/* ===== NEWSLETTER ===== */
.newsletter-section { padding: 58px 0; background: linear-gradient(135deg, #111827, #172554 55%, #111827); position: relative; overflow: hidden; }
.newsletter-section::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(255,87,34,0.28), transparent 62%); }
.newsletter-box { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 32px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl); background: rgba(255,255,255,0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nl-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; margin-bottom: 7px; letter-spacing: -0.035em; }
.nl-sub { font-size: 15px; color: rgba(255,255,255,0.72); }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 280px; justify-content: flex-end; }
.nl-input { flex: 1; min-width: 230px; padding: 14px 17px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: #fff; font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.nl-input::placeholder { color: rgba(255,255,255,0.48); }
.nl-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.14); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }

/* ===== FOOTER ===== */
.footer { background: #F8FAFC; border-top: 1px solid var(--border); padding-top: 54px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 52px; padding-bottom: 42px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 230px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.16s ease, transform 0.16s ease; }
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 13px; color: var(--text-light); text-align: center; line-height: 1.8; }

/* ===== ARTICLE PAGE ===== */
.article-hero { padding: 54px 0 0; background: linear-gradient(180deg, var(--bg-light), #fff); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-weight: 600; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.article-page-title { font-family: var(--font-head); font-size: clamp(26px, 4vw, 44px); font-weight: 800; line-height: 1.22; color: var(--text); margin-bottom: 16px; max-width: 820px; letter-spacing: -0.045em; }
.article-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); padding: 17px 0; border-top: 1px solid var(--border); margin-top: 18px; font-weight: 600; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; padding: 52px 0; align-items: start; }
.article-content { min-width: 0; }
.article-content h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--text); margin: 34px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); letter-spacing: -0.025em; }
.article-content h3 { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--text); margin: 26px 0 10px; }
.article-content p { font-size: 16px; line-height: 1.85; color: #334155; margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 20px 22px; }
.article-content li { font-size: 16px; line-height: 1.85; color: #334155; margin-bottom: 7px; }
.article-content img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 24px 0; }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--primary); background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; color: var(--primary-dark); font-weight: 600; }
.article-content .tip-box { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0; font-size: 15px; color: var(--primary-dark); box-shadow: var(--shadow); }
.article-content .tip-box strong { display: block; margin-bottom: 4px; }
.step-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin: 18px 0; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.step-num { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; flex-shrink: 0; box-shadow: 0 10px 20px rgba(255,87,34,0.25); }
.step-text { flex: 1; }
.step-title { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.widget-title { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 16px; padding-bottom: 11px; border-bottom: 2px solid var(--primary-light); }
.related-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.related-post:last-child { border-bottom: none; }
.related-num { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--border); flex-shrink: 0; width: 28px; }
.related-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.48; transition: color 0.16s ease; }
.related-post:hover .related-title { color: var(--primary); }

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 72px 0; text-align: center; background: linear-gradient(180deg, var(--bg-light), #fff); border-bottom: 1px solid var(--border); }
.about-title { font-family: var(--font-head); font-size: clamp(30px, 5vw, 54px); font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.05em; }
.about-sub { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.75; }
.about-content { max-width: 790px; margin: 0 auto; padding: 68px 20px; }
.about-content h2 { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--text); margin: 42px 0 14px; letter-spacing: -0.03em; }
.about-content p { font-size: 16px; color: #334155; line-height: 1.85; margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; margin: 26px 0; }
.about-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow); transition: all 0.22s ease; }
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,87,34,0.35); }
.about-card-icon { font-size: 30px; margin-bottom: 10px; }
.about-card-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { height: 66px; }
  .logo { font-size: 20px; }
  .hero { padding: 58px 0 48px; }
  .hero-title { letter-spacing: -0.04em; }
  .hero-stats { gap: 20px; display: flex; width: 100%; padding: 18px; }
  .stat-div { display: none; }
  .section { padding: 50px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { padding: 20px 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box { flex-direction: column; align-items: flex-start; padding: 24px; }
  .nl-form { justify-content: flex-start; width: 100%; }
  .nl-input { min-width: 100%; }
  .nl-form .btn { width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .article-meta { gap: 8px 12px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
  .article-card { padding: 18px; }
  .article-page-title { font-size: 28px; }
  .step-box { flex-direction: column; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-badge, .hero-title, .hero-sub, .hero-actions, .hero-stats { animation: fadeUp 0.55s ease both; }
.hero-title { animation-delay: 0.08s; }
.hero-sub { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }
.hero-stats { animation-delay: 0.32s; }
.logo-icon { animation: softFloat 3.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
