/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a6fc4;
  --primary-dark: #0d4ea0;
  --primary-light: #e8f1fb;
  --accent: #e84118;
  --accent2: #f59e0b;
  --text: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(26,111,196,0.07);
  --card-shadow-hover: 0 8px 32px rgba(26,111,196,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-width: 310px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.topbar {
  background: linear-gradient(90deg, #0d4ea0 0%, #1a6fc4 100%);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.8); font-size: 12.5px; transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.topbar-date { opacity: .85; font-weight: 500; }
.topbar-links { display: flex; gap: 16px; align-items: center; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

/* ===== NAV ===== */
.main-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
}
.main-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: #fff;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: .3s;
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
  padding: 8px 0;
  overflow: hidden;
}
.breaking-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.breaking-label {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.ticker-text a { color: var(--primary-dark); margin: 0 22px; }
.ticker-text a:hover { color: var(--accent); }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

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

/* ===== LAYOUT: MAIN + SIDEBAR ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 28px;
  padding: 32px 0 52px;
  align-items: start;
}

/* ===== SECTION HEADING ===== */
.section-title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== FEATURED POST (BIG) ===== */
.featured-big {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
  position: relative;
  transition: box-shadow var(--transition);
}
.featured-big:hover { box-shadow: var(--card-shadow-hover); }
.featured-big img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  transition: transform .5s ease;
}
.featured-big:hover img { transform: scale(1.02); }
.featured-big-content {
  padding: 24px 26px 26px;
}
.featured-big .cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 11px;
}
.featured-big h2 {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.featured-big h2 a:hover { color: var(--primary); }
.featured-big .excerpt { color: var(--text-light); font-size: 15px; margin-bottom: 16px; line-height: 1.65; }
.post-meta { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== POST CARD GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.post-card-img { position: relative; overflow: hidden; height: 185px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-img img { transform: scale(1.07); }

/* Gradient overlay on card images */
.post-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== CATEGORY BADGES ===== */
.cat-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-badge.finance    { background: #1a6fc4; }
.cat-badge.business   { background: #0d9488; }
.cat-badge.tech       { background: #7c3aed; }
.cat-badge.health     { background: #dc2626; }
.cat-badge.gaming     { background: #ea580c; }
.cat-badge.seo        { background: #0891b2; }
.cat-badge.government { background: #92400e; }
.cat-badge.tax        { background: #374151; }
.cat-badge.general    { background: #475569; }

.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .cat-badge { margin-bottom: 9px; }
.post-card-body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 10px;
  color: var(--text);
  flex: 1;
}
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-body .post-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }

/* ===== TOP 10 LIST ===== */
.top10-list { margin-bottom: 28px; }
.top10-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), padding-left var(--transition);
}
.top10-item:hover { background: var(--primary-light); padding-left: 16px; }
.top10-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 36px;
  text-align: right;
  transition: color var(--transition);
}
.top10-item:hover .top10-num { color: var(--primary); }
.top10-text h4 { font-size: 14.5px; font-weight: 600; line-height: 1.38; margin-bottom: 4px; }
.top10-text h4 a:hover { color: var(--primary); }
.top10-text .post-meta { font-size: 12px; }

/* ===== CATEGORY SECTION ===== */
.cat-section { margin-bottom: 40px; }
.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}
.cat-section-head .section-title { margin-bottom: 0; border: none; padding: 0; }
.view-all { font-size: 13px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.view-all:hover { color: var(--accent); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  border-top: 3px solid var(--primary);
}
.widget-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.search-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,111,196,0.12); }
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* Categories widget */
.cat-list li { padding: 0; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text);
}
.cat-list a:hover { color: var(--primary); background: var(--primary-light); padding-left: 12px; }
.cat-list .count {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Recent posts widget */
.recent-post-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border: none; padding-bottom: 0; }
.recent-post-img { width: 68px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.recent-post-item:hover .recent-post-img img { transform: scale(1.1); }
.recent-post-info h5 { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-info h5 a:hover { color: var(--primary); }
.recent-post-info .date { font-size: 11.5px; color: #94a3b8; }

/* About widget */
.about-widget-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.about-widget p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0d4ea0 0%, #1a6fc4 60%, #0891b2 100%);
  color: #fff;
  padding: 38px 0 34px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 { font-family: var(--font-head); font-size: 33px; font-weight: 800; margin-bottom: 7px; position: relative; }
.page-hero p { opacity: .85; font-size: 15px; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  opacity: .75;
  margin-bottom: 10px;
  position: relative;
}
.breadcrumb a { color: #93c5fd; }
.breadcrumb span { opacity: .5; }

/* ===== POST PAGE ===== */
.post-hero-img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 26px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.post-header { margin-bottom: 22px; }
.post-header h1 {
  font-family: var(--font-head);
  font-size: 35px;
  font-weight: 800;
  line-height: 1.25;
  margin: 13px 0 15px;
  color: var(--text);
}
.post-content {
  font-size: 16.5px;
  line-height: 1.87;
  color: #1e293b;
}
.post-content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 13px;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 12px 0 18px 22px; }
.post-content li { margin-bottom: 7px; }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.post-content th { background: var(--primary); color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; }
.post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: var(--bg); }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 17px;
}
.post-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-label { font-size: 13px; font-weight: 700; color: var(--text-light); }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text);
  transition: all var(--transition);
  font-weight: 500;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== RELATED POSTS ===== */
.related-posts { margin-top: 38px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #0d1b2a 0%, #0a1220 100%);
  color: #cbd5e1;
  padding: 52px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 38px;
}
.footer-brand .site-logo { font-size: 24px; color: #fff; margin-bottom: 13px; display: block; }
.footer-brand p { font-size: 13.5px; opacity: .6; line-height: 1.75; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li { padding: 5px 0; }
.footer-col ul a { font-size: 13.5px; opacity: .6; transition: all var(--transition); display: inline-block; }
.footer-col ul a:hover { opacity: 1; color: #93c5fd; padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: .45;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,111,196,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.read-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { color: var(--accent); }

/* ===== NOTICE ===== */
.notice {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 13px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-light);
  margin: 20px 0;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, #0d4ea0, #1a6fc4 60%, #0891b2);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.about-hero h1 { font-family: var(--font-head); font-size: 36px; margin-bottom: 10px; }
.about-hero p { opacity: .85; font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  :root { --sidebar-width: 280px; }
}
@media (max-width: 680px) {
  .posts-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 58px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--primary);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0 20px; gap: 2px; }
  .main-nav a { display: block; }
  .hamburger { display: flex; }
  .site-logo { font-size: 22px; }
  .featured-big img { height: 230px; }
  .featured-big h2 { font-size: 21px; }
  .post-header h1 { font-size: 25px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .layout { padding: 22px 0 36px; }
}
@media (max-width: 400px) {
  .topbar-inner { justify-content: center; }
  .topbar-links { display: none; }
  .posts-grid { gap: 14px; }
}
