/* Base Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333333;
  --light-gray: #f4f4f4;
  --medium-gray: #bdc3c7;
  --dark-gray: #7f8c8d;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --white: #ffffff;
  --black: #000000;
  --container-max-width: 1200px;
  --header-height: 80px;
  --footer-bg: #2c3e50;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --border-radius: 6px;
}

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

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

button, .button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
  font-weight: 500;
  text-align: center;
}

button:hover, .button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.subtitle {
  display: block;
  font-size: 60%;
  font-weight: 400;
  color: var(--dark-gray);
  margin-top: 5px;
  font-style: italic;
}

/* Header Styles */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

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

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 5px;
  position: relative;
  transition: color var(--transition-speed);
}

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

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

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--dark-color);
  border-radius: 3px;
  transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

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

/* Blog Posts Grid */
.blog-posts {
  padding: 60px 0;
  flex: 2;
}

main.container {
  display: flex;
  gap: 40px;
  padding: 60px 20px;
}

.post-card {
  display: flex;
  margin-bottom: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

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

.post-image {
  flex: 1;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

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

.post-content {
  flex: 2;
  padding: 25px;
}

.post-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 10px;
}

.read-more svg {
  margin-left: 5px;
  transition: transform var(--transition-speed);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Sidebar */
.sidebar {
  flex: 1;
  padding-top: 60px;
}

.widget {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.widget h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget.subscribe p {
  margin-bottom: 15px;
}

.widget.subscribe input {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  margin-right: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-links {
  flex: 1;
  min-width: 160px;
  margin-bottom: 30px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
}

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

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

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-social {
  flex: 1;
  min-width: 160px;
}

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

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

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: var(--white);
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-content p {
  flex: 1;
  margin-right: 20px;
  margin-bottom: 10px;
}

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

.cookie-accept {
  background-color: var(--success-color);
}

.cookie-customize {
  background-color: var(--dark-gray);
}

.cookie-decline {
  background-color: var(--danger-color);
}

.cookie-more {
  display: block;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

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

/* Single Post Page */
.single-post {
  padding-top: 40px;
}

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

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.post-featured-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.post-content {
  margin-bottom: 40px;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.post-content ul li, .post-content ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.post-content ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

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

.post-content blockquote p {
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}

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

.post-tags a {
  display: inline-block;
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: background-color var(--transition-speed);
}

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

.post-share {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.post-share span {
  margin-right: 15px;
  font-weight: 600;
}

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--light-gray);
}

.related-posts h3 {
  margin-bottom: 30px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-post {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.related-post:hover {
  transform: translateY(-5px);
}

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

.related-post h4 {
  padding: 15px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.related-post a {
  display: block;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 10px;
  transition: background-color var(--transition-speed);
}

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

/* About Page */
.about-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)), url('images/about-hero.jpg');
  background-size: cover;
  background-position: center;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.about-mission {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.about-mission .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.mission-content {
  flex: 3;
}

.mission-image {
  flex: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.mission-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.mission-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.mission-content ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.team-section {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform var(--transition-speed);
}

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

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

.team-member h3 {
  margin: 20px 0 5px;
}

.team-member p {
  padding: 0 15px;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.team-member p:last-of-type {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark-color);
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

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

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

.approach-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.approach-content {
  flex: 3;
}

.approach-image {
  flex: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.approach-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.approach-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.approach-content ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.cta-section {
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)), url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.newsletter-form input {
  flex: 1;
  margin-bottom: 0;
}

.social-follow {
  margin-top: 30px;
}

.social-follow p {
  margin-bottom: 15px;
}

.social-follow .social-icons {
  justify-content: center;
}

/* Contact Page */
.contact-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)), url('images/contact-hero.jpg');
  background-size: cover;
  background-position: center;
}

.contact-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

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

.contact-form h2, .contact-info h2 {
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  margin-bottom: 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
}

.checkbox-container input {
  width: auto;
  margin-right: 10px;
}

.submit-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

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

.info-item {
  display: flex;
  margin-bottom: 30px;
}

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

.info-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

.social-connect {
  margin-top: 40px;
}

.social-connect h3 {
  margin-bottom: 15px;
}

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

.faq-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.faq-item p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color var(--transition-speed);
}

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

.thank-you-message {
  text-align: center;
  padding: 20px 0;
}

.thank-you-message svg {
  margin-bottom: 20px;
}

.thank-you-message h2 {
  margin-bottom: 15px;
  color: var(--success-color);
}

.close-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
  margin-top: 20px;
}

.close-button:hover {
  background-color: var(--primary-color);
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
  .about-mission .container,
  .approach-section .container {
    flex-direction: column;
  }
  
  .mission-content,
  .approach-content,
  .mission-image,
  .approach-image {
    flex: 1;
    width: 100%;
  }
  
  .mission-image,
  .approach-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 992px) {
  main.container {
    flex-direction: column;
  }
  
  .blog-posts,
  .sidebar {
    flex: 1;
    width: 100%;
  }
  
  .sidebar {
    padding-top: 0;
  }
  
  .post-card {
    flex-direction: column;
  }
  
  .post-image {
    height: 250px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    transition: left var(--transition-speed);
    z-index: 1000;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    height: 100%;
    padding: 30px;
  }
  
  nav ul li {
    margin-left: 0;
    margin-bottom: 20px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo,
  .footer-links,
  .footer-social {
    margin-bottom: 30px;
    width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .team-grid,
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content p {
    margin-right: 0;
  }
}
