/*
Theme Name: CreditScope
Author: AI Assistant
Description: Modern credit and mortgage advisory theme for CreditScope
Version: 1.0.0
Text Domain: creditscope
*/

:root {
  /* Colors - Trustify Palette */
  --primary: #0000FF;
  --primary-dark: #0000CC;
  --primary-light: #3333FF;
  --accent: #FFC107;
  --accent-dark: #FFA000;
  --highlight: #1a1a1a;
  --bg-main: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #1a1a1a;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  
  /* Dimensions */
  --container-width: 1280px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: 8rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

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

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul { 
  list-style: none; 
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 1rem;
}

::selection {
  background: var(--primary);
  color: white;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

/* Top Banner */
.top-banner {
  background: var(--accent);
  color: var(--text-main);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.top-banner a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* HEADER */
.site-header {
  background: white;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.site-brand:hover {
  opacity: 0.8;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  padding: 0.5rem 0;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
  width: 100%;
}

/* HERO */
.hero-finance {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: #fafafa;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-label {
  display: inline-block;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  background: #e8e8e8;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Steps Section */
.features-section {
  padding: 5rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 0;
  transition: var(--transition);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.section-header {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 3rem;
}

.section-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* SERVICES GRID */
.articles-section {
  padding: 5rem 0;
  background: white;
}

.services-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-featured {
  background: var(--primary);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.service-featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

.service-featured-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.service-featured h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
  font-weight: 700;
  line-height: 1.3;
}

.service-featured p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.tech-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.tech-title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.tech-title a {
  color: var(--text-main);
  transition: var(--transition);
}

.tech-title a:hover {
  color: var(--primary);
}

.tech-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ARTICLES GRID (Blog Posts) */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card.post-style {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
}

.tech-thumb {
  overflow: hidden;
  height: 240px;
  background: #e8e8e8;
}

.tech-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tech-card.post-style:hover .tech-thumb img {
  transform: scale(1.05);
}

.tech-body {
  padding: 2rem;
}

.tech-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-date::before {
  content: '📅';
  font-size: 1rem;
}

.tech-category {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.tech-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: var(--transition);
}

.tech-link:hover {
  gap: 0.75rem;
}

.tech-link::after {
  content: "→";
  font-size: 1.25rem;
}

/* SINGLE POST */
.single-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3.5rem;
  padding: var(--space-lg) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.single-header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.single-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.single-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.single-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.single-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.single-content h2,
.single-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.single-content h2::before,
.single-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 4px;
  height: calc(100% - 0.8rem);
  background: var(--primary);
  border-radius: 2px;
}

.single-content ul,
.single-content ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.single-content li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

.single-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.single-content img {
  margin: 3rem 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.single-content img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-colored);
}

.single-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  transition: var(--transition);
}

.sidebar-box:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-box h4 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-box li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-box li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-box a {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: block;
  transition: var(--transition);
  color: var(--text-main);
}

.sidebar-box a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Page Styles */
.page-hero {
  background: #fafafa;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  color: var(--text-main);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.page-featured-image {
  margin-bottom: 3rem;
}

.page-featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.page-featured-image img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.5);
}

.page-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-body h2,
.page-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-main);
}

.page-body h2::before,
.page-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 4px;
  height: calc(100% - 0.8rem);
  background: var(--primary);
  border-radius: 2px;
}

.page-body p {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.page-body ul,
.page-body ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.page-body li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

.page-body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.page-body a {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition);
}

.page-body a:hover {
  color: var(--accent);
}

/* FOOTER */
.footer-finance {
  background: var(--bg-dark);
  color: white;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col li {
  padding-left: 0;
}

.footer-col li::before {
  display: none;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-weight: 400;
  display: inline-block;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: white;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.01em;
}

.footer-contact-item {
  margin-bottom: 1rem;
}

.footer-contact-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

.footer-contact-value {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer-contact-value a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  transition: var(--transition);
}

.footer-contact-value a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  padding: 3rem 0;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  margin: 0 0.35rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

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

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Category Page */
.category-hero {
  background: #fafafa;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.category-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.category-label {
  display: inline-block;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.category-title {
  color: var(--text-main);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.category-description {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: white;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.post-thumbnail {
  height: 240px;
  overflow: hidden;
  background: #e8e8e8;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 2rem;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-category::before {
  content: '📅';
  font-size: 1rem;
}

.post-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.post-card-title a {
  color: var(--text-main);
  transition: var(--transition);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  flex-grow: 1;
}

.post-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: var(--transition);
}

.post-read-more:hover {
  gap: 0.75rem;
}

.post-read-more::after {
  content: "→";
  font-size: 1.25rem;
}

.pagination-wrapper {
  padding: 3.5rem 0 var(--space-md);
  text-align: center;
}

/* Additional Styles */
.single-content a,
.page-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.single-content a:hover,
.page-body a:hover {
  color: var(--primary-dark);
}

.single-content strong,
.page-body strong {
  color: var(--text-main);
  font-weight: 700;
}

.single-content blockquote,
.page-body blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .single-sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .tech-grid,
  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  
  body {
    font-size: 16px;
  }
  
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .site-header {
    padding: 1rem 0;
  }
  
  .site-brand {
    font-size: 1.4rem;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.25rem;
  }
  
  .main-nav a {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero-finance {
    min-height: auto;
    padding: var(--space-lg) 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .features-section,
  .articles-section {
    padding: var(--space-lg) 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .tech-grid,
  .grid-container {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
  
  .section-header {
    text-align: center;
  }
  
  .page-hero,
  .category-hero {
    padding: 3rem 0;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    font-size: 0.875rem;
  }
  
  .footer-finance {
    padding: var(--space-lg) 0 var(--space-md);
  }
  
  .single-layout {
    padding: var(--space-md) 0;
  }
  
  .page-content-wrap {
    padding: 0 var(--space-sm) var(--space-lg);
  }
}
