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

:root {
  --primary: #5b21b6;
  --accent: #f472b6;
  --dark: #1f2937;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

/* Header & Navigation */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 50px;
  height: 50px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f9fafb 0%, #e0e7ff 100%);
}

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

.hero-title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.hero-feature-list {
  list-style: none;
  margin: 2rem 0;
}

.hero-feature-list li {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-featured {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-featured:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(91, 33, 182, 0.3);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-features-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-features-image img:hover {
  transform: scale(1.03);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(91, 33, 182, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #6b7280;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.process-step h3 {
  margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
  padding: 80px 0;
  background: var(--light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 2rem;
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.portfolio-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--white);
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  background: var(--light);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--dark);
  font-size: 1.125rem;
}

.testimonial-author span {
  color: #6b7280;
  font-size: 0.875rem;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -60px; }
.carousel-next { right: -60px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Team Section */
.team-section {
  padding: 80px 0;
  background: var(--light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

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

.team-image {
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 0;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  padding: 0 1.5rem;
}

.team-bio {
  padding: 0.5rem 1.5rem 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--light);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-item summary {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-item[open] summary::after {
  transform: rotate(45deg);
}

.accordion-item p {
  margin-top: 1rem;
  color: #6b7280;
  line-height: 1.8;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #111827;
  transform: translateY(-2px);
}

.newsletter-privacy {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn-cta {
  display: inline-block;
  padding: 1.25rem 3rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.4);
  color: var(--white);
}

/* Footer */
.footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #9ca3af;
  transition: color 0.3s ease;
}

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

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

.social-links a {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.contact-info li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* Page Hero */
.page-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrapper h2 {
  margin-bottom: 1rem;
}

.form-intro {
  color: #6b7280;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
}

.btn-submit {
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.3);
}

.form-note {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-info-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.info-content h4 {
  margin-bottom: 0.5rem;
}

.info-content p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.info-content a {
  color: var(--primary);
  font-weight: 500;
}

.info-hours {
  font-size: 0.75rem !important;
  margin-top: 0.25rem;
}

.contact-features {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-features h4 {
  margin-bottom: 1rem;
}

.contact-features ul {
  list-style: none;
}

.contact-features ul li {
  padding: 0.5rem 0;
  color: #6b7280;
}

.social-connect {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.social-links-large a {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links-large a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Map Section */
.map-section {
  padding: 0;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* Blog Page */
.featured-article-section {
  padding: 60px 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-article-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.article-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.article-date,
.article-read-time {
  color: #6b7280;
}

.featured-article-content h2 {
  margin-bottom: 1rem;
}

.featured-article-content h2 a {
  color: var(--dark);
}

.featured-article-content h2 a:hover {
  color: var(--primary);
}

.btn-read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.blog-grid-section {
  padding: 80px 0;
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.blog-card-image {
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.blog-card-content {
  padding: 2rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-card-content h3 {
  margin-bottom: 1rem;
}

.blog-card-content h3 a {
  color: var(--dark);
}

.blog-card-content h3 a:hover {
  color: var(--primary);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
}

.blog-author span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.blog-categories-section {
  padding: 80px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.category-card:hover {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.category-count {
  display: block;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Article Single */
.article-single {
  padding-bottom: 80px;
}

.article-header {
  padding: 60px 0 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent);
}

.article-header h1 {
  margin-bottom: 1.5rem;
}

.article-lead {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info strong {
  display: block;
  color: var(--dark);
}

.article-author-info span {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
}

.article-featured-image {
  margin-bottom: 4rem;
}

.article-featured-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.article-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

.article-image {
  margin: 3rem 0;
}

.article-image img {
  width: 100%;
  border-radius: 12px;
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  font-style: italic;
}

.article-share {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.article-share h4 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }

.author-bio {
  display: flex;
  gap: 2rem;
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 3rem;
}

.author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio h4 {
  margin-bottom: 0.5rem;
}

.author-bio strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.related-articles {
  margin-top: 4rem;
}

.related-articles h3 {
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  display: block;
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.related-card h4 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin: 0;
  color: var(--dark);
}

.related-card span {
  display: block;
  padding: 0 1.5rem 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-content {
  padding: 60px 0;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

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

/* Story Section (About page) */
.story-section {
  padding: 80px 0;
}

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

.story-content h2 {
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
}

.story-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.values-section {
  padding: 80px 0;
  background: var(--light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

/* Timeline Section */
.timeline-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  pointer-events: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
  pointer-events: none;
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #6b7280;
}

.certifications-section {
  padding: 80px 0;
  background: var(--light);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cert-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-prev { left: -40px; }
  .carousel-next { right: -40px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 77px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-features-grid,
  .story-grid,
  .contact-grid,
  .featured-article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-bio img {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 60px 0;
  }

  .stats-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-featured-image img {
    height: 300px;
  }
}