/* Base Styles and Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #6d28d9;
  --accent-color: #3b82f6;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-mono: 'Fira Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style-position: inside;
}

button, .btn {
  cursor: pointer;
  font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5rem 0 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--rounded);
  border: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

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

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

.btn-cookie {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--rounded);
  font-weight: 500;
  transition: var(--transition);
}

.btn-cookie.accept {
  background-color: var(--success-color);
  color: white;
  border: none;
}

.btn-cookie.accept:hover {
  background-color: #0d9668;
}

.btn-cookie.customize {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-cookie.customize:hover {
  background-color: var(--bg-light);
}

.btn-cookie.reject {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-cookie.reject:hover {
  background-color: var(--bg-light);
}

/* Header */
header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded);
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.page-header p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Featured Posts Section */
.featured-posts {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.post-card {
  background-color: white;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.post-card .post-content {
  padding: 1.5rem;
}

.post-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.post-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

.view-all {
  text-align: center;
  margin-top: 2.5rem;
}

/* Comparison Table */
.comparison-table {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.comparison-table h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.table-container {
  overflow-x: auto;
  box-shadow: var(--shadow);
  border-radius: var(--rounded-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f3f4f6;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

tr:hover {
  background-color: #f1f5f9;
}

/* Tip of the Day */
.tip-of-the-day {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.tip-card {
  background-color: #f0f9ff;
  border-left: 4px solid var(--primary-color);
  border-radius: var(--rounded-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tip-header svg {
  color: var(--primary-color);
}

.tip-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.tip-content p {
  margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--rounded);
  font-size: 1rem;
}

/* Blog Content */
.blog-content {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.blog-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  min-width: 250px;
  display: flex;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  font-size: 1rem;
}

.search-bar button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  padding: 0 1rem;
  color: var(--text-light);
}

.category-filter select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  font-size: 1rem;
  background-color: white;
  min-width: 180px;
}

.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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

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

/* About Content */
.about-content {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.about-mission, .about-values {
  margin-bottom: 3rem;
}

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

.value-card {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--rounded-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.value-card svg {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.value-card h3 {
  margin-top: 0;
}

.team-section {
  margin-bottom: 3rem;
}

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

.team-member {
  background-color: var(--bg-light);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-member h3, .team-member p {
  padding: 0 1.5rem;
  margin-top: 1rem;
}

.team-member .social-icons {
  padding: 0 1.5rem 1.5rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.team-member .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--rounded-full);
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

.team-member .social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.about-stats {
  margin-bottom: 3rem;
}

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

.stat-card {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: var(--rounded-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

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

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Contact Content */
.contact-content {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.info-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--rounded-full);
  background-color: var(--primary-color);
  color: white;
  flex-shrink: 0;
}

.info-item h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.info-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

.social-icons.contact-social {
  margin-top: 2rem;
}

.social-icons.contact-social h3 {
  margin-bottom: 1rem;
}

.social-icons.contact-social .icon-links {
  display: flex;
  gap: 1rem;
}

.social-icons.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rounded-full);
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

.social-icons.contact-social a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-form-container {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.map-section {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Blog Post */
.blog-post {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1.25rem;
  color: var(--text-light);
}

.post-image {
  margin-bottom: 2rem;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-image img {
  width: 100%;
  height: auto;
}

.post-content {
  margin-bottom: 2rem;
}

.post-content h2 {
  margin-top: 2.5rem;
}

.post-content h3 {
  margin-top: 2rem;
}

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

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

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e5e7eb;
  color: var(--text-color);
  border-radius: var(--rounded-full);
  font-size: 0.875rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: var(--rounded-lg);
}

.post-share span {
  font-weight: 600;
}

.post-share .social-icons {
  display: flex;
  gap: 0.75rem;
}

.post-share .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rounded-full);
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

.post-share .social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.post-author {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: var(--rounded-lg);
}

.post-author .author-image {
  flex-shrink: 0;
}

.post-author .author-image img {
  width: 100px;
  height: 100px;
  border-radius: var(--rounded-full);
  object-fit: cover;
}

.post-author h3 {
  margin-top: 0;
  font-size: 1.125rem;
}

.post-author .author-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-author .author-bio {
  color: var(--text-light);
  margin-bottom: 0;
}

.related-posts h2 {
  margin-bottom: 2rem;
}

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

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

.footer-about img {
  width: 60px;
  height: 60px;
  border-radius: var(--rounded);
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.footer-about .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-about .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rounded-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-about .social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-links h3 {
  color: white;
  margin-bottom: 1.5rem;
}

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

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

.footer-links ul li a {
  color: #d1d5db;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.footer-contact p svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-policy {
  margin-left: auto;
}

/* Thank You Modal */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.modal-content {
  background-color: white;
  border-radius: var(--rounded-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.modal-header svg {
  margin-right: 0.75rem;
}

.modal-header h3 {
  margin: 0;
  color: white;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .post-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-policy {
    margin-left: 0;
    text-align: center;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .post-tags {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .value-card, .stat-card {
    padding: 1rem;
  }
}
