/* ===== FUBAD.COM - PREMIUM STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #0f4c81;
  --primary-light: #1a6ab5;
  --accent: #f97316;
  --accent-light: #fb923c;
  --dark: #0f172a;
  --dark2: #1e293b;
  --mid: #334155;
  --muted: #64748b;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Merriweather', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--lighter);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  font-family: var(--font-sans);
  letter-spacing: -1px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

nav ul li a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #1a2744 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(249,115,22,0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 17px;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  overflow: hidden;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 8px 8px 0;
  min-width: 0;
}

.hero-search input::placeholder { color: #94a3b8; font-weight: 400; }

.hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-search button:hover { background: #ea6c0a; }

/* ===== MAIN WRAPPER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.section-title .line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.section-title .badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(15,76,129,0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== CATEGORIES GRID ===== */
.categories-section { padding: 60px 0 40px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, var(--primary));
  transform: scaleX(0);
  transition: transform .25s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cat-bg, rgba(15,76,129,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  transition: transform .25s;
}

.category-card:hover .category-icon { transform: scale(1.1) rotate(-5deg); }

.category-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-card p {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== ARTICLES GRID ===== */
.articles-section { padding: 20px 0 60px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.article-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(15,76,129,0.08);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.article-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover { color: var(--accent); }

/* ===== CATEGORY PAGE ===== */
.cat-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 24px;
  color: white;
}

.cat-hero-inner { max-width: 1200px; margin: 0 auto; }
.cat-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.cat-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.cat-hero .breadcrumb a:hover { color: white; }
.cat-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cat-hero p { font-size: 16px; color: rgba(255,255,255,0.8); }

.cat-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  font-size: 32px;
  margin-bottom: 16px;
}

/* ===== ARTICLE PAGE ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.article-main {}

.article-header {
  margin-bottom: 28px;
}

.article-header .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-header .breadcrumb a { color: var(--muted); }
.article-header .breadcrumb a:hover { color: var(--primary); }
.article-header .breadcrumb span { color: var(--border); }

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-meta .cat-link {
  background: rgba(15,76,129,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.article-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.article-body .featured-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.article-body .featured-img-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-body .inside-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.article-body .inside-img-placeholder {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

/* Steps */
.step-box {
  background: var(--lighter);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.step-box .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 8px;
}

.step-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.step-box p {
  font-size: 15px;
  color: var(--mid);
  margin: 0;
  line-height: 1.7;
}

/* Tips box */
.tips-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.tips-box h2 {
  border-bottom: none !important;
  color: #92400e !important;
  margin-top: 0 !important;
  font-size: 18px !important;
}

.tips-box ul li { color: #78350f !important; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead th {
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.data-table tbody tr:hover { background: var(--lighter); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody td {
  padding: 12px 18px;
  color: var(--mid);
}

.data-table tbody tr:nth-child(even) { background: #f8fafc; }

/* Conclusion box */
.conclusion-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

.conclusion-box h2 {
  color: var(--primary) !important;
  border-bottom: none !important;
  margin-top: 0 !important;
}

.conclusion-box p { color: #1e40af !important; }

/* ===== SIDEBAR ===== */
.sidebar {}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-cat-list { list-style: none; }

.sidebar-cat-list li {
  border-bottom: 1px solid var(--border);
}

.sidebar-cat-list li:last-child { border-bottom: none; }

.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--mid);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.sidebar-cat-list li a:hover { color: var(--primary); }

.sidebar-cat-list .count {
  font-size: 11px;
  background: var(--light);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.recent-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.recent-article:last-child { border-bottom: none; padding-bottom: 0; }

.recent-article-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.recent-article-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.recent-article-text span {
  font-size: 11px;
  color: var(--muted);
}

.recent-article:hover h4 { color: var(--primary); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #94a3b8;
  margin-top: 80px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: #475569;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: all .2s;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark2); padding: 16px; }
  nav.open ul { flex-direction: column; }
  .hamburger { display: flex; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 52px 16px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { padding: 20px; }
}
