/* Base Styles & Reset */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --text-color: #333;
  --light-text: #f1faee;
  --background-color: #ffffff;
  --card-background: #f8f9fa;
  --border-color: #ddd;
  --success-color: #28a745;
  --footer-bg: #1d3557;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

button, .cta-button, .submit-button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* Header & Navigation */
header {
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex: 0 0 120px;
}

.logo {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
}

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

.nav-links a {
  color: var(--secondary-color);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

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

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 5%;
  background-color: var(--accent-color);
}

.hero-content {
  flex: 0 0 45%;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

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

.hero-image {
  flex: 0 0 45%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 60px 5%;
  background-color: var(--background-color);
}

.feature-card {
  flex: 0 0 30%;
  background-color: var(--card-background);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 50px;
  height: 50px;
}

/* Recent Posts Section */
.recent-posts {
  padding: 60px 5%;
  background-color: var(--accent-color);
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

.post-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.post-card {
  flex: 0 0 31%;
  background-color: var(--background-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

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

.view-all-button {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.view-all-button:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

/* Future Quote Section */
.future-quote {
  padding: 60px 5%;
  background-color: var(--secondary-color);
  color: var(--light-text);
  text-align: center;
}

.future-quote h2 {
  color: var(--light-text);
  margin-bottom: 30px;
}

.future-quote blockquote {
  font-size: 1.4rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 30px;
}

.future-quote blockquote::before,
.future-quote blockquote::after {
  content: '"';
  font-size: 3rem;
  position: absolute;
  opacity: 0.3;
}

.future-quote blockquote::before {
  top: -20px;
  left: 0;
}

.future-quote blockquote::after {
  bottom: -50px;
  right: 0;
}

.future-quote cite {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  font-style: normal;
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--light-text);
  padding: 60px 5% 30px;
}

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

.footer-logo {
  flex: 0 0 20%;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 15px;
}

.footer-links {
  flex: 0 0 20%;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--light-text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  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 {
  flex: 0 0 25%;
}

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

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

.footer-social {
  flex: 0 0 20%;
}

.social-icons {
  display: flex;
}

.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);
  margin-right: 10px;
  transition: var(--transition);
  color: var(--light-text);
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-number {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-content {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-content p {
  flex: 1 1 100%;
  margin-bottom: 10px;
}

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

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

.cookie-btn.decline {
  background-color: transparent;
  color: var(--light-text);
}

.cookie-policy-link {
  color: var(--light-text);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Blog Page */
.blog-page {
  padding: 40px 5%;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

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

.blog-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-content {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post {
  margin-bottom: 80px;
  background-color: var(--card-background);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-post .post-image {
  height: 400px;
}

.blog-post .post-content {
  padding: 30px;
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.post-date {
  margin-right: 20px;
}

/* About Page */
.about-page {
  padding: 40px 5%;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.about-header-content {
  flex: 0 0 48%;
}

.about-header-image {
  flex: 0 0 48%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.our-mission {
  margin-bottom: 60px;
}

.our-mission h2 {
  text-align: center;
  margin-bottom: 30px;
}

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

.mission-text {
  flex: 0 0 55%;
}

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

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

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

.our-team {
  margin-bottom: 60px;
}

.our-team h2 {
  text-align: center;
  margin-bottom: 40px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.team-member {
  flex: 0 0 calc(33.333% - 20px);
  background-color: var(--card-background);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding-bottom: 20px;
}

.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: 15px 0 5px;
}

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

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--light-text);
  margin: 0 5px;
  transition: var(--transition);
}

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

.our-values {
  margin-bottom: 60px;
}

.our-values h2 {
  text-align: center;
  margin-bottom: 40px;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.value-card {
  flex: 0 0 48%;
  background-color: var(--card-background);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.value-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.value-icon svg {
  width: 40px;
  height: 40px;
}

/* Contact Page */
.contact-page {
  padding: 40px 5%;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

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

.contact-info {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.contact-card {
  flex: 1 1 22%;
  background-color: var(--card-background);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.contact-icon {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact-icon svg {
  width: 40px;
  height: 40px;
}

.contact-description {
  font-size: 0.9rem;
  color: #777;
  margin-top: 10px;
}

.contact-form-container {
  flex: 0 0 100%;
  background-color: var(--card-background);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-group {
  flex: 0 0 48%;
  margin-bottom: 25px;
}

.form-group.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group:last-of-type,
.form-group.checkbox-group {
  flex: 0 0 100%;
}

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

.form-group.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.form-group input[type="checkbox"] {
  width: auto;
}

.submit-button {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.location-map {
  margin-bottom: 60px;
}

.location-map h2 {
  text-align: center;
  margin-bottom: 30px;
}

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

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

/* 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;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--background-color);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--success-color);
}

.modal-button {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 10px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-weight: 600;
  transition: var(--transition);
}

.modal-button:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    flex: 0 0 100%;
    margin-bottom: 40px;
  }
  
  .hero-image {
    flex: 0 0 100%;
  }
  
  .feature-card {
    flex: 0 0 48%;
    margin-bottom: 30px;
  }
  
  .post-card {
    flex: 0 0 48%;
  }
  
  .about-header,
  .mission-content {
    flex-direction: column;
  }
  
  .about-header-content,
  .about-header-image,
  .mission-text,
  .mission-image {
    flex: 0 0 100%;
  }
  
  .about-header-content,
  .mission-text {
    margin-bottom: 30px;
  }
  
  .team-member {
    flex: 0 0 calc(50% - 15px);
  }
  
  .footer-logo,
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 0 0 48%;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    height: 0;
    background-color: var(--background-color);
    flex-direction: column;
    width: 100%;
    align-items: center;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    height: 300px;
    padding: 20px 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .burger {
    display: block;
  }
  
  .feature-card,
  .post-card,
  .contact-card {
    flex: 0 0 100%;
  }
  
  .form-group {
    flex: 0 0 100%;
  }
  
  .value-card {
    flex: 0 0 100%;
  }
  
  .team-member {
    flex: 0 0 100%;
  }
  
  .footer-logo,
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 0 0 100%;
  }
  
  .copyright {
    flex-direction: column;
  }
  
  .page-number {
    margin-top: 10px;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .cookie-policy-link {
    margin-top: 10px;
  }
}
