/* Modern CSS Architecture for JK Intelligent Tech */

/* ===== Variables ===== */
:root {
  /* Colors */
  --primary-color: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --secondary-color: #FFA000;
  --text-color: #333;
  --text-light: #666;
  --background-light: #F5F5F5;
  --white: #FFFFFF;
  
  /* Neutral Colors */
  --color-background: #F5F5F5;
  --color-surface: #FFFFFF;
  --color-border: #E0E0E0;
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --header-height: 80px;
  --container-max-width: 1200px;
  --container-padding: var(--spacing-lg);
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
}

/* ===== Layout Components ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background-color: var(--background-light);
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section--white {
  background-color: var(--white);
}

.section--gray {
  background-color: var(--background-light);
}

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

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

/* Card Styles */
.card {
  transition: transform var(--transition-normal);
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
}

.card__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Image Styles */
.img-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background-color: var(--background-light);
}

.img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important; /* 确保图片在容器中水平和垂直居中 */
  transition: transform var(--transition-normal);
  display: block;
}

/* Large content sections with text + image layout */
.section .row.align-items-center .img-container {
  height: 350px;
}

/* Mobile responsive for large sections */
@media (max-width: 991px) {
  .section .row.align-items-center .img-container {
    height: 300px;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .section .row.align-items-center .img-container {
    height: 250px;
  }
}


/* Different image container sizes for different contexts */
.img-container.blog__image {
  height: 200px;
}

.img-container.testimonial__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.img-container.team-member__image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

/* Hero Section Styles */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
}

.img-container:hover img {
  transform: scale(1.03);
}

/* ===== Advanced Animations & Interactions ===== */

/* Scroll Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.stagger-animation {
  animation-delay: 0.1s;
}

.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
}

.btn::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.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Enhanced Card Animations */
.card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-light);
}

.card__icon {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 2.5rem;
}

/* Hero Animations */
.hero__content {
  animation: heroContentSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes heroContentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  animation: heroTitleSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes heroTitleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  animation: heroSubtitleSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

@keyframes heroSubtitleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__buttons {
  animation: heroButtonsSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

@keyframes heroButtonsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Background Animation */
.hero::before {
  animation: heroOverlayFadeIn 1.5s ease-out;
}

@keyframes heroOverlayFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Floating Animation for Icons */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card__icon:hover {
  animation: float 2s ease-in-out infinite;
}

/* Navigation Animation */
.navbar {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: none !important;
  border-radius: 0 !important;
  color: var(--text-color) !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link.router-link-active,
.nav-link.router-link-exact-active {
  background: none !important;
  background-color: transparent !important;
  color: var(--text-color) !important;
}

/* 下划线样式仅适用于带下划线的链接 */
.nav-link-underline {
  position: relative;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
}

.nav-link-underline:hover::after,
.nav-link-underline.router-link-active::after {
  width: 100%;
}

/* Contact Us按钮样式保持不变 */
.navbar .btn {
  border-radius: 25px;
}

/* 确保导航链接没有背景色和正确的文字颜色 */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.router-link-active,
.navbar-nav .nav-link.router-link-exact-active {
  background-color: transparent !important;
  color: var(--text-color) !important;
}

/* 滚动时的导航栏样式 */
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link:focus,
.navbar.scrolled .nav-link.router-link-active,
.navbar.scrolled .nav-link.router-link-exact-active {
  color: var(--text-color) !important;
  background-color: transparent !important;
}

/* Image Loading Animation */
.img-container {
  position: relative;
  overflow: hidden;
}

.img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: 1;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Section Title Animations */
.section__title {
  position: relative;
  overflow: hidden;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section__title.animate::after {
  opacity: 1;
  bottom: -5px;
}

/* List Item Animations */
.list-unstyled li {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 只有在viewport中被观察到时才使用动画 */
.list-unstyled.fade-in-animation li {
  opacity: 0;
  transform: translateX(-20px);
}

.list-unstyled.fade-in-animation.animate li {
  opacity: 1;
  transform: translateX(0);
}

.list-unstyled.fade-in-animation.animate li:nth-child(1) { transition-delay: 0.1s; }
.list-unstyled.fade-in-animation.animate li:nth-child(2) { transition-delay: 0.2s; }
.list-unstyled.fade-in-animation.animate li:nth-child(3) { transition-delay: 0.3s; }
.list-unstyled.fade-in-animation.animate li:nth-child(4) { transition-delay: 0.4s; }
.list-unstyled.fade-in-animation.animate li:nth-child(5) { transition-delay: 0.5s; }
.list-unstyled.fade-in-animation.animate li:nth-child(6) { transition-delay: 0.6s; }

/* Page Transition Animation */
.page-enter-active, .page-leave-active {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-enter-from {
  opacity: 0;
  transform: translateY(20px);
}

.page-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

/* Pulse Effect for Important Elements */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Parallax Effect for Hero */
.hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Hero Particle Effect */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float-particles 8s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  width: 2px;
  height: 2px;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 6s;
}

.particle:nth-child(6) {
  width: 4px;
  height: 4px;
  left: 60%;
  animation-delay: 5s;
  animation-duration: 8s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-delay: 6s;
  animation-duration: 7s;
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-delay: 7s;
  animation-duration: 9s;
}

.particle:nth-child(9) {
  width: 2px;
  height: 2px;
  left: 90%;
  animation-delay: 8s;
  animation-duration: 6s;
}

@keyframes float-particles {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Hero Content Enhancement */
.hero__content {
  position: relative;
  z-index: 3;
}

/* Animated Background Overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
  z-index: 1;
  animation: pulse-overlay 4s ease-in-out infinite;
}

@keyframes pulse-overlay {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mouse Movement Effect */
.hero-interactive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero:hover .hero-interactive {
  opacity: 1;
}

/* Enhanced Button Glow Effect */
.hero .btn {
  position: relative;
  box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
  animation: button-glow 3s ease-in-out infinite;
}

@keyframes button-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(46, 125, 50, 0.5);
  }
}

/* Text Glow Effect */
.hero__title {
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(255, 255, 255, 0.2),
    0 0 15px rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  text-align: center;
  opacity: 0.8;
  animation: bounce-indicator 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 5px;
}

.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes bounce-indicator {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Advanced Card Effects - Removed confusing triangle animation */
.card {
  position: relative;
  overflow: hidden;
}

/* Loading Animation for Page */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.loader-subtext {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Enhanced Navigation on Scroll */
.navbar.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--text-color) !important;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Hero image specific styles */
.hero__image {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Team member image specific styles */
.team-member__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 1.5rem;
}

/* Blog image specific styles */
.blog-card__image {
  height: 200px;
  border-radius: 8px 8px 0 0;
}

/* Blog specific styles */
.blog-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-meta {
  font-size: 0.875rem;
}

.blog-tags .badge {
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.blog-tags .badge:hover {
  background-color: var(--primary-dark) !important;
}

.blog-content {
  line-height: 1.8;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-filters {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.markdown-toolbar {
  background: var(--background-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.content-editor textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.preview-content {
  font-family: var(--font-primary);
}

.preview-content h1, .preview-content h2, .preview-content h3 {
  color: var(--primary-dark);
}

.blog-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.blog-actions {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
}

.related-blogs .card {
  transition: transform var(--transition-normal);
}

.related-blogs .card:hover {
  transform: translateY(-3px);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 3rem;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
  display: block;
  margin-bottom: 0.75rem;
}

.footer__link:hover {
  opacity: 1;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  color: var(--white);
  font-size: 1.25rem;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.social-link:hover {
  opacity: 1;
  color: var(--white);
}

.footer__bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 4rem;
}

/* Button Styles */
.btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn var(--transition-normal);
}

.animate-slide-up {
  animation: slideUp var(--transition-normal);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero {
    padding: 6rem 0 3rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section__title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 5rem 0 2rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .team-member__image {
    width: 100px;
    height: 100px;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 960px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-max-width: 720px;
  }
  
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --container-max-width: 540px;
    --header-height: 60px;
  }
  
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
  }
  
  .hero__title {
    font-size: 2rem;
  }
}