:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --light-text: #f8f9fa;
  --font-family: 'Montserrat', sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
}

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

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

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

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--light-text);
  font-weight: 600;
  position: relative;
}

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

nav a:hover:after {
  width: 100%;
}

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

/* Main Content Styles */
main {
  margin-top: 100px;
  min-height: calc(100vh - 250px);
}

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Light effect on button hover */
.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.cta-button:hover::after {
  left: 100%;
}

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

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

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.post-content p {
  margin-bottom: 15px;
  color: #555;
}

.read-more {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  background-color: var(--accent-color);
  color: white;
}

.quote-of-day {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.quote-of-day h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.quote-of-day blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.quote-of-day cite {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--secondary-color);
}

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

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-text {
  line-height: 1.4;
}

.contact-text h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

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

.submit-button {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  background-color: var(--accent-color);
}

.submit-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.submit-button:hover::after {
  left: 100%;
}

/* About Page Styles */
.about-section {
  margin-bottom: 50px;
}

.about-hero {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.about-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.about-text {
  padding: 20px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.team-section {
  margin-bottom: 50px;
}

.team-section h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.team-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

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

.team-info {
  padding: 20px;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

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

/* Single Post Page Styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

.post-meta {
  display: flex;
  align-items: center;
  color: #777;
  margin-bottom: 20px;
}

.post-meta span {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

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

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

.post-body h4 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 25px 0 15px;
}

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

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

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.post-body blockquote {
  padding: 20px;
  background-color: var(--light-color);
  border-left: 5px solid var(--secondary-color);
  margin: 20px 0;
  font-style: italic;
}

.post-body pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-body code {
  font-family: 'Courier New', Courier, monospace;
}

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

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

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

.footer-links a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

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

.footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

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

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-links.horizontal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-links.horizontal li {
  margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-text h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.cookie-text p {
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.accept-cookies {
  background-color: var(--accent-color);
  color: white;
}

.accept-cookies:hover {
  background-color: #c0392b;
}

.customize-cookies {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.customize-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.reject-cookies {
  background-color: #7f8c8d;
  color: white;
}

.reject-cookies:hover {
  background-color: #6d7b7c;
}

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

.thank-you-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-30px);
  transition: transform 0.4s;
}

.thank-you-modal.show .modal-content {
  transform: translateY(0);
}

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

.modal-content p {
  margin-bottom: 25px;
  color: #555;
  font-size: 1.1rem;
}

.modal-close {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-200%);
    transition: transform 0.3s;
    z-index: 999;
  }
  
  nav ul.show {
    transform: translateY(0);
  }
  
  .cookie-consent {
    flex-direction: column;
  }
  
  .cookie-text {
    padding-right: 0;
    margin-bottom: 15px;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .post-header h2 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
  
  .modal-content {
    padding: 20px;
    margin: 0 20px;
  }
}
