/* Base Styles */
:root {
  --primary-color: #e57373;
  --primary-dark: #af4448;
  --primary-light: #ffa4a2;
  --secondary-color: #81c784;
  --text-color: #333333;
  --light-text: #666666;
  --bg-color: #ffffff;
  --light-bg: #f9f9f9;
  --accent-color: #ffd54f;
  --border-color: #e0e0e0;
  --footer-bg: #37474f;
  --footer-text: #eceff1;
  --success-color: #66bb6a;
  --error-color: #ef5350;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

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

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

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

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

ul, ol {
  padding-left: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 600;
}

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

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

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

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

.logo-container {
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.logo-container h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-top: 1rem;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.nav-links a i {
  margin-right: 0.5rem;
}

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

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

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

/* Hero Section */
.hero {
  height: 70vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.hero-content {
  padding: 1rem;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content .slogan {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Page Banner */
.page-banner {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/3.jpg');
  background-size: cover;
  background-position: center;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.banner-content {
  padding: 1rem;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* This Day in History */
.this-day-history {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 4px;
}

.this-day-history h3 {
  margin-bottom: 0.5rem;
}

.mobile-only {
  display: none;
}

/* Featured Posts */
.featured-posts {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
}

.featured-posts h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.post-content p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

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

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

.see-all {
  text-align: center;
  margin-top: 2rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--light-bg);
  padding: 3rem 1rem;
  margin-bottom: 3rem;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
}

/* Blog Posts Styles */
.blog-container {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.blog-post {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.post-header {
  position: relative;
}

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

.post-meta {
  padding: 1.5rem;
  background-color: var(--bg-color);
}

.post-meta h2 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.post-info {
  display: flex;
  flex-wrap: wrap;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-info span {
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.post-info i {
  margin-right: 0.5rem;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin: 1.5rem 0 1rem;
  color: var(--text-color);
}

.post-content p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-container {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.about-story {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
}

.about-story h2 {
  margin-bottom: 1.5rem;
  position: relative;
}

.about-story h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.about-img {
  float: right;
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin: 0 0 1rem 1rem;
  border-radius: 8px;
}

.about-story p {
  margin-bottom: 1rem;
}

.team-container {
  margin-bottom: 3rem;
}

.team-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.team-container h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

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

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

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

.team-member h3 {
  margin: 1rem 0 0.5rem;
  padding: 0 1.5rem;
}

.member-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

.team-member p {
  padding: 0 1.5rem 1.5rem;
  color: var(--light-text);
}

.about-philosophy {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
}

.about-philosophy h2 {
  margin-bottom: 1.5rem;
  position: relative;
}

.about-philosophy h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.philosophy-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.philosophy-text {
  flex: 2;
  padding-right: 2rem;
}

.philosophy-img {
  flex: 1;
  min-width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.philosophy-text p {
  margin-bottom: 1rem;
}

.philosophy-text ul {
  margin-bottom: 1rem;
}

.philosophy-text li {
  margin-bottom: 0.5rem;
}

.testimonials {
  margin-bottom: 3rem;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.testimonials h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding-bottom: 1rem;
}

.testimonial {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  scroll-snap-align: start;
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial:before {
  content: """;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  line-height: 1;
}

.testimonial p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  text-align: right;
  margin-top: 1rem;
}

/* Contact Page Styles */
.contact-container {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info, .contact-form-container {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.contact-info h2, .contact-form-container h2 {
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-info h2:after, .contact-form-container h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.info-card {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.info-item h3 {
  margin-bottom: 0.5rem;
}

.social-follow h3 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

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

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

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

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

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.map-container {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.map-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

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

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

.modal-content {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.modal-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 3rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo .logo {
  margin-bottom: 1rem;
}

.footer-logo h3 {
  margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h4:after, .footer-contact h4:after, .footer-social h4:after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

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

.footer-contact i {
  margin-right: 0.5rem;
  width: 20px;
}

.footer-social .social-icons {
  margin-top: 1rem;
}

.footer-social .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
}

.footer-social .social-icon:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  margin-top: 1rem;
}

.legal-links a {
  color: var(--footer-text);
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

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

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

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-content h4 {
  margin-bottom: 0.5rem;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .banner-content h2 {
    font-size: 2.2rem;
  }
  
  .about-img {
    width: 250px;
    height: 170px;
  }
  
  .philosophy-content {
    flex-direction: column;
  }
  
  .philosophy-text {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 8vh;
    height: 92vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 50%;
    padding: 2rem 0;
    transition: right 0.5s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.nav-active {
    right: 0;
  }
  
  .burger {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .banner-content h2 {
    font-size: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    float: none;
    width: 100%;
    height: 200px;
    margin: 0 0 1.5rem 0;
  }
  
  .this-day-history.desktop {
    display: none;
  }
  
  .this-day-history.mobile-only {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    padding: 0 1rem;
  }
  
  nav {
    padding: 0 1rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .banner-content h2 {
    font-size: 1.8rem;
  }
  
  .post-header img {
    height: 250px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
}
