:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --link-color: #3498db;
  --link-hover-color: #2980b9;
  --background-color: #f9f9f9;
  --card-background: #fff;
  --footer-background: #2c3e50;
  --footer-text: #ecf0f1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  margin-left: 15px;
}

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

/* Introduction Section */
.intro {
  padding: 50px 0;
  text-align: center;
  margin-bottom: 30px;
}

.intro h2 {
  font-size: 2.2rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.intro h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

/* Post Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.post-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.post-content {
  padding: 25px;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.post-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.9rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--link-hover-color);
}

/* Editor's Note Section */
.editors-note {
  background-color: var(--card-background);
  padding: 40px;
  margin: 50px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.editors-note::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 150px;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 20px;
  right: 40px;
  line-height: 1;
}

.editors-note h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.editors-note h3::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.editors-note p {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.editor-signature {
  text-align: right;
  font-weight: 600;
  color: var(--dark-color);
}

/* Contact Page Styles */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 50px 0;
}

.contact-info {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.contact-details {
  list-style: none;
  margin-top: 30px;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-details svg {
  margin-right: 15px;
  min-width: 20px;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--dark-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* About Page Styles */
.about-section {
  padding: 50px 0;
}

.about-content {
  margin-bottom: 50px;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.about-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.team-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--dark-color);
  text-align: center;
  position: relative;
  display: inline-block;
}

.team-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.team-member {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
}

.team-member-info {
  padding: 20px;
}

.team-member-info h3 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.team-member-info p {
  color: #666;
  margin-bottom: 15px;
}

.team-member-info .position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

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

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Single Post Page Styles */
.single-post {
  max-width: 800px;
  margin: 50px auto;
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.post-header .post-meta {
  color: #888;
  font-size: 1rem;
  margin-bottom: 20px;
}

.post-featured-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.post-body {
  line-height: 1.8;
  color: #444;
  font-size: 1.1rem;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark-color);
}

.post-body h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--dark-color);
}

.post-body ul, .post-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--link-color);
}

.post-body a:hover {
  color: var(--link-hover-color);
  border-bottom: 1px solid var(--link-hover-color);
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.post-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags a {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.post-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.post-nav-link svg {
  margin-right: 10px;
}

.post-nav-link.next svg {
  margin-right: 0;
  margin-left: 10px;
}

.post-nav-link.next {
  text-align: right;
}

/* Footer Styles */
footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 50px 0 20px;
}

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column p {
  margin-bottom: 20px;
  line-height: 1.6;
  opacity: 0.8;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
}

.cookie-text h4 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.cookie-text p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
}

.accept-all {
  background-color: var(--secondary-color);
  color: white;
}

.accept-all:hover {
  background-color: #27ae60;
}

.customize {
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.customize:hover {
  background-color: #f5f5f5;
}

.decline {
  background-color: transparent;
  color: #666;
}

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

/* Thank You Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-container h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.modal-container p {
  margin-bottom: 25px;
  color: #666;
}

.modal-close {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--link-hover-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-actions {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .btn-secondary {
    margin-left: 0;
  }
  
  .editors-note {
    padding: 25px;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 5px;
  }
}
