/* Base Styles */
:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --accent-color: #f1faee;
  --dark-color: #1d3557;
  --text-color: #333333;
  --light-text: #f5f5f5;
  --bg-color: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

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

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

ul {
  list-style: none;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.primary:hover {
  background-color: #d32f2f;
  color: var(--light-text);
}

.secondary {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.secondary:hover {
  background-color: #396a93;
  color: var(--light-text);
}

.tertiary {
  background-color: var(--light-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.tertiary:hover {
  background-color: #e9ecef;
}

/* Header Styles */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

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

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

.language-switch button {
  background: none;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.language-switch button:hover {
  background-color: var(--light-bg);
}

/* Hero Section */
.hero {
  background-color: var(--light-bg);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('images/9.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin: 20px 20px 10px;
  color: var(--dark-color);
}

.feature-card p {
  margin: 0 20px 20px;
}

/* Latest Posts Section */
.latest-posts {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.latest-posts h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

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

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

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

.post-content {
  padding: 20px;
}

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

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

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

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

.view-all {
  text-align: center;
  margin-top: 40px;
}

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

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

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

.footer-logo p {
  font-style: italic;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links a {
  color: var(--light-text);
  opacity: 0.8;
}

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

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

.footer-contact i {
  font-size: 1.2rem;
}

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

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

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--light-text);
  opacity: 0.7;
  font-size: 0.9rem;
}

.legal-links a:hover {
  opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--light-text);
  padding: 20px;
  z-index: 1000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

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

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

.cookie-more-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cookie-more-info a {
  color: var(--light-text);
  text-decoration: underline;
}

/* Blog Page Styles */
.blog-header {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 60px 0;
  text-align: center;
}

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

.blog-posts {
  padding: 60px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.post-card .post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
}

/* Blog Post Styles */
.blog-post {
  padding: 60px 0;
}

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

.post-header img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

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

.post-meta {
  display: flex;
  gap: 20px;
  color: #6c757d;
  margin-bottom: 30px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

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

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

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-image {
  margin: 30px 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.image-caption {
  margin-top: 10px;
  font-style: italic;
  color: #6c757d;
  font-size: 0.9rem;
}

.post-navigation {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.back-to-blog {
  font-weight: 600;
}

.post-nav-links {
  display: flex;
  gap: 20px;
}

.prev-post, .next-post {
  font-weight: 600;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

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

.related-post {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

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

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

.related-post h4 {
  padding: 15px;
  font-size: 1.1rem;
  color: var(--dark-color);
}

/* About Page Styles */
.about-header {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 60px 0;
  text-align: center;
}

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

.about-story {
  padding: 80px 0;
}

.story-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.story-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.story-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.story-text p {
  margin-bottom: 20px;
}

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

.our-mission h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.mission-text p {
  margin-bottom: 20px;
}

.mission-text ul {
  padding-left: 20px;
  list-style-type: disc;
}

.mission-text li {
  margin-bottom: 10px;
}

.mission-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.team {
  padding: 80px 0;
}

.team h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

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

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

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.team-member h3 {
  margin-top: 20px;
  font-size: 1.4rem;
  color: var(--dark-color);
}

.team-member p {
  padding: 0 20px 20px;
}

.team-member p:first-of-type {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.testimonials {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-content p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* Contact Page Styles */
.contact-header {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 60px 0;
  text-align: center;
}

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

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

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

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

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

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

.details h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

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

.social-connect h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

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

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

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

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

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

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-container input {
  width: auto;
}

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

.map-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--dark-color);
}

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

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

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

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s;
}

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

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

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

.thank-you-message h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

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

.close-btn {
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .feature-cards, .post-cards, .related-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  .story-content, .mission-content {
    grid-template-columns: 1fr;
  }
  
  .post-nav-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .post-header h1, .about-header h1, .contact-header h1 {
    font-size: 2rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .icon {
    margin-bottom: 10px;
  }
}
