/*
Theme Name: Content Decoded
Author: Content Decoded
Description: Custom theme for Content Decoded blog
Version: 1.0
*/

/* 
 * Content Decoded - Professional Homepage Design
 * Hostinger-Compatible Version (No CSS Variables)
 */

:root {
  /* Primary brand colors - unique dark/analytical theme */
  --deep-navy: #0a192f;
  --analytical-blue: #1a5fb4;
  --signal-green: #26a269;
  --warning-amber: #ff7800;
  --critical-red: #c01c28;
  --neutral-gray: #5e5c64;
  --light-bg: #f6f5f4;
  --card-bg: #ffffff;
  --text-primary: #241f31;
  --text-secondary: #5e5c64;
  --accent-purple: #9141ac;
  --accent-teal: #2ec27e;
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 20px rgba(10, 25, 47, 0.05);
  --shadow-medium: 0 8px 30px rgba(10, 25, 47, 0.1);
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Category accent colors (light + readable) */
--cat-1: #e8f1fd; /* soft blue */
--cat-2: #eefaf4; /* mint green */
--cat-3: #fff4e6; /* warm peach */
--cat-4: #f3ecff; /* lavender */
--cat-5: #eaf7f7; /* light teal */
--cat-6: #fff0f3; /* blush */
--cat-7: #f6f7fb; /* cool gray */
--cat-8: #fdf6ec; /* sand */
--cat-9: #eef2ff; /* periwinkle */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  transition: var(--transition);
  overflow-x: hidden;
}

/* Fix WordPress header spacing */
header,
#header,
.site-header,
.site-branding,
.main-navigation {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Ensure main content doesn't push header */
.site-content,
.content-area,
.entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* Hero section with analytical focus - EXACT COPY */
.hero {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1a365d 100%);
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(38, 162, 105, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 95, 180, 0.1) 0%, transparent 50%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  
  /* Contact Page */

.contact-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 24px;
  animation: fadeUp 0.8s ease both;
}

.contact-info {
  margin-bottom: 40px;
  background: var(--bg-card, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 24px;
}

.contact-info p {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text-secondary, #475569);
}

.contact-info a {
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Form */

.contact-form {
  background: var(--bg-card, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 32px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Submit Button */

.contact-form button {
  background: var(--accent, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

/* Success & Error */

.contact-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.contact-error {
  background: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: 0.95rem;
}

/* Mobile */

@media (max-width: 640px) {
  .contact-wrapper {
    padding: 60px 18px;
  }

  .contact-form {
    padding: 24px;
  }
}

  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
}

#typewriter {
  background: linear-gradient(90deg, var(--analytical-blue), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

#changing-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

#changing-tagline.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

#changing-tagline.fade-in {
  opacity: 0;
  transform: translateY(10px);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s ease;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* Responsive design */
@media (max-width: 1200px) {
  .hero-container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    min-height: 85vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

/* Remove all WordPress container constraints */
.container,
.wrap,
.inner-wrap,
.content-wrapper,
.site-inner {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure full width */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
/* Categories Section Styles */
.categories-section {
  padding: 5rem 2rem;
  background-color: var(--light-bg);
  position: relative;
}

.categories-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
/* Categories Section */
.categories-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 2.5rem;
}

.categories-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.5rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.categories-slider::-webkit-scrollbar {
  height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.categories-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.categories-slider::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.category-card {
  flex: 0 0 auto;
  background: white;
  color: #2d3748;
  border-radius: var(--border-radius-md);
  padding: 1.75rem 2rem;
  min-width: 240px;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid;
}

/* Color categories with light, friendly colors */
.category-card:nth-child(1) { border-color: #4299E1; }
.category-card:nth-child(2) { border-color: #48BB78; }
.category-card:nth-child(3) { border-color: #ED8936; }
.category-card:nth-child(4) { border-color: #9F7AEA; }
.category-card:nth-child(5) { border-color: #F56565; }
.category-card:nth-child(6) { border-color: #38B2AC; }
.category-card:nth-child(7) { border-color: #ECC94B; }
.category-card:nth-child(8) { border-color: #ED64A6; }
.category-card:nth-child(9) { border-color: #667EEA; }

/* Background color effects on hover */
.category-card:nth-child(1):hover { background: linear-gradient(135deg, #EBF8FF 0%, white 100%); }
.category-card:nth-child(2):hover { background: linear-gradient(135deg, #F0FFF4 0%, white 100%); }
.category-card:nth-child(3):hover { background: linear-gradient(135deg, #FFF5F5 0%, white 100%); }
.category-card:nth-child(4):hover { background: linear-gradient(135deg, #FAF5FF 0%, white 100%); }
.category-card:nth-child(5):hover { background: linear-gradient(135deg, #FFF5F5 0%, white 100%); }
.category-card:nth-child(6):hover { background: linear-gradient(135deg, #E6FFFA 0%, white 100%); }
.category-card:nth-child(7):hover { background: linear-gradient(135deg, #FFFFF0 0%, white 100%); }
.category-card:nth-child(8):hover { background: linear-gradient(135deg, #FFF5F7 0%, white 100%); }
.category-card:nth-child(9):hover { background: linear-gradient(135deg, #EBF4FF 0%, white 100%); }

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon styling */
.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
  display: inline-block;
}

.category-card:hover .category-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Color icons to match categories */
.category-card:nth-child(1) .category-icon { color: #4299E1; }
.category-card:nth-child(2) .category-icon { color: #48BB78; }
.category-card:nth-child(3) .category-icon { color: #ED8936; }
.category-card:nth-child(4) .category-icon { color: #9F7AEA; }
.category-card:nth-child(5) .category-icon { color: #F56565; }
.category-card:nth-child(6) .category-icon { color: #38B2AC; }
.category-card:nth-child(7) .category-icon { color: #ECC94B; }
.category-card:nth-child(8) .category-icon { color: #ED64A6; }
.category-card:nth-child(9) .category-icon { color: #667EEA; }

.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 1;
}

.category-name {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.category-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}

.category-card:hover .category-name::after {
  width: 60px;
}

/* Color category names on hover */
.category-card:nth-child(1):hover .category-name { color: #2B6CB0; }
.category-card:nth-child(2):hover .category-name { color: #276749; }
.category-card:nth-child(3):hover .category-name { color: #C05621; }
.category-card:nth-child(4):hover .category-name { color: #6B46C1; }
.category-card:nth-child(5):hover .category-name { color: #C53030; }
.category-card:nth-child(6):hover .category-name { color: #285E61; }
.category-card:nth-child(7):hover .category-name { color: #B7791F; }
.category-card:nth-child(8):hover .category-name { color: #B83280; }
.category-card:nth-child(9):hover .category-name { color: #4C51BF; }

.category-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.04);
  display: inline-block;
  transition: all 0.3s ease;
}

.category-card:hover .category-count {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  color: #4A5568;
  font-size: 1.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.slider-btn:hover {
  background: var(--analytical-blue);
  color: white;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3);
}

.slider-btn.left {
  left: 0.5rem;
}

.slider-btn.right {
  right: 0.5rem;
}

/* Touch-friendly for mobile */
@media (hover: none) and (pointer: coarse) {
  .category-card {
    min-width: 200px;
    padding: 1.5rem;
  }
  
  .category-card:hover {
    transform: none;
  }
  
  .category-card:active {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Tablet devices */
@media (max-width: 1024px) {
  .categories-slider-wrapper {
    padding: 0 1.5rem;
  }
  
  .category-card {
    min-width: 200px;
    padding: 1.5rem 1.75rem;
  }
  
  .category-name {
    font-size: 1.25rem;
  }
  
  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .categories-slider-wrapper {
    padding: 0 0.5rem;
  }
  
  .categories-slider {
    gap: 1rem;
    padding: 1rem 0.25rem;
  }
  
  .category-card {
    min-width: 180px;
    padding: 1.25rem 1.5rem;
  }
  
  .category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .category-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .category-count {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    opacity: 0.95;
  }
  
  .slider-btn.left {
    left: 0.25rem;
  }
  
  .slider-btn.right {
    right: 0.25rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .category-card {
    min-width: 160px;
    padding: 1rem 1.25rem;
  }
  
  .category-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .category-name {
    font-size: 1rem;
  }
  
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .categories-slider {
    gap: 0.75rem;
  }
}

/* Accessibility: Focus styles */
.category-card:focus-within {
  outline: 2px solid var(--analytical-blue);
  outline-offset: 2px;
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for cards */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
  }
}
/* ======================================
   RECENT POSTS SECTION - REFINED VERSION
   ====================================== */

/* Section Container */
.recent-posts-section {
  padding: 5rem 2rem 7rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}



/* Section Header - Blue Theme */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--analytical-blue);
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--analytical-blue);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  padding-top: 1.5rem;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Post Card Design */
.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* Simple Blue Top Border */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--analytical-blue);
  z-index: 2;
}

/* Image Container */
.post-image {
  position: relative;
  display: block;
  overflow: hidden;
  height: 240px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

/* Category Label */
.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--analytical-blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(26, 95, 180, 0.2);
}

/* Content Area */
.post-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: white;
}

/* Title */
.post-title {
  font-size: 1.3rem;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--deep-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--analytical-blue);
}

/* Excerpt */
.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* CTA Button - White with Blue Text */
.post-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--analytical-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: fit-content;
  border: 2px solid var(--analytical-blue);
  font-size: 0.9rem;
}

.post-cta:hover {
  background: var(--analytical-blue);
  color: white;
  gap: 0.7rem;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 95, 180, 0.2);
}

.post-cta i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.post-cta:hover i {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .recent-posts-section {
    padding: 4rem 1.5rem 5rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .post-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 2rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 576px) {
  .recent-posts-section {
    padding: 3rem 1rem 4rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .post-image {
    height: 200px;
  }
  
  .post-title {
    font-size: 1.2rem;
  }
  
  .post-excerpt {
    font-size: 0.9rem;
  }
  
  .post-cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .post-card:hover {
    transform: none;
  }
  
  .post-card:active {
    transform: translateY(-4px);
  }
  
  .post-cta:active {
    background: var(--analytical-blue);
    color: white;
  }
  
  .post-card:hover .post-image img {
    transform: scale(1.02);
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-image img,
  .post-cta,
  .post-title a {
    transition: none !important;
    animation: none !important;
  }
  
  .post-card:hover {
    transform: none;
  }
  
  .post-card:hover .post-image img {
    transform: none;
  }
}


}
/* ======================================
   MISSION SECTION STYLES
   ====================================== */

.mission-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--analytical-blue), transparent);
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--analytical-blue);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 2rem auto 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Mission Content */
.mission-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Mission Intro */
.mission-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.mission-intro h3 {
  font-size: 2rem;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.mission-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.mission-intro em {
  color: var(--analytical-blue);
  font-style: italic;
  font-weight: 500;
}

/* Core Problems */
.core-problems h3 {
  font-size: 2rem;
  color: var(--deep-navy);
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.problem-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--analytical-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.problem-card:hover::before {
  transform: scaleX(1);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.problem-card:hover .problem-icon {
  transform: rotate(10deg) scale(1.1);
}

.problem-card h4 {
  font-size: 1.3rem;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.4;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.problem-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(26, 95, 180, 0.1);
  color: var(--analytical-blue);
  border: 1px solid rgba(26, 95, 180, 0.2);
}

/* Mission Approach */
.mission-approach h3 {
  font-size: 2rem;
  color: var(--deep-navy);
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.approach-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.approach-step:hover {
  transform: translateX(10px);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--analytical-blue);
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--analytical-blue);
  background: rgba(26, 95, 180, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.4s ease;
}

.approach-step:hover .step-number {
  background: var(--analytical-blue);
  color: white;
  transform: scale(1.1);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 1.25rem;
  color: var(--deep-navy);
  margin-bottom: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
}

.step-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mission Closing */
.mission-closing {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-quote {
  font-size: 1.5rem;
  color: var(--deep-navy);
  font-style: italic;
  margin: 3rem 0;
  padding: 2rem;
  position: relative;
  font-weight: 500;
  line-height: 1.6;
}

.mission-quote::before,
.mission-quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--analytical-blue);
  opacity: 0.2;
  position: absolute;
  font-family: Georgia, serif;
}

.mission-quote::before {
  top: -1rem;
  left: 0;
}

.mission-quote::after {
  bottom: -2rem;
  right: 0;
}


/* Responsive Design */
@media (max-width: 1100px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mission-section {
    padding: 4rem 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .approach-step {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .mission-quote {
    font-size: 1.25rem;
    padding: 1.5rem;
  }
  
}

@media (max-width: 576px) {
  .mission-section {
    padding: 3rem 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .mission-intro h3,
  .core-problems h3,
  .mission-approach h3 {
    font-size: 1.75rem;
  }
  
  .problem-card {
    padding: 1.5rem;
  }
  
  .mission-quote {
    font-size: 1.1rem;
  }
  
  
/* Simple spacing solution *//*
.recent-posts-section {
  padding-bottom: 5rem !important; /* Extra bottom padding */
}

.mission-section {
  padding-top: 5rem !important; /* Extra top padding */
}

/* For mobile */
@media (max-width: 768px) {
  .recent-posts-section {
    padding-bottom: 4rem !important;
  }
  
  .mission-section {
    padding-top: 4rem !important;
  }
}

/* ======================================
   SERVICES SECTION STYLES
   ====================================== */

.services-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--analytical-blue), transparent);
  opacity: 0.3;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--analytical-blue);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 2rem auto 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Service Card */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--analytical-blue), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service Icon */
.service-icon {
  font-size: 3rem;
  color: var(--analytical-blue);
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Service Content */
.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 1.8rem;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.3;
}

.service-tagline {
  font-size: 1rem;
  color: var(--analytical-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26, 95, 180, 0.1);
}

/* Service Features */
.service-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-item i {
  color: var(--accent-teal);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Service Description */
.service-description {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(26, 95, 180, 0.03);
  border-radius: 10px;
  border-left: 3px solid var(--analytical-blue);
}

.service-description p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

/* CTA Button */
.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--analytical-blue);
  color: white;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--analytical-blue);
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.service-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.service-card:hover .service-cta::before {
  left: 100%;
}

.service-cta:hover {
  background: white;
  color: var(--analytical-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 95, 180, 0.2);
}

.service-cta i {
  font-size: 1rem;
  transition: transform 0.4s ease;
}

.service-cta:hover i {
  transform: translateX(5px);
}

/* Service Highlight */
.service-highlight {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(26, 95, 180, 0.1);
  color: var(--analytical-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(26, 95, 180, 0.2);
  transition: all 0.4s ease;
}

.service-card:hover .service-highlight {
  background: var(--analytical-blue);
  color: white;
  transform: translateY(-2px);
}

/* Services Note */
.services-note {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.05), rgba(46, 194, 126, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(26, 95, 180, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.services-note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.services-note i {
  color: var(--analytical-blue);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .services-grid {
    gap: 2rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 4rem 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .service-content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .services-section {
    padding: 3rem 1rem;
  }
  
  .section-header h2 {
    font-size: 1.9rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .service-content h3 {
    font-size: 1.4rem;
  }
  
  .service-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .services-note {
    padding: 1.25rem;
  }
  
  .services-note p {
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}
