/* Base Styles */
:root {
  --primary-color: #3f80ea;
  --secondary-color: #ff6b6b;
  --accent-color: #ffd166;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #e1e4e8;
  --success-color: #28a745;
  --error-color: #dc3545;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  text-align: center;
}

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

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

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

ul {
  list-style: none;
}

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

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  color: var(--dark-color);
}

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

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

/* Clock */
.clock-container {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

#clock {
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

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

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.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;
}

/* Featured Posts Section */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2,
.blog-posts h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.featured-posts h2::after,
.blog-posts h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

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

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

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

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

.post-card h3,
.post-card h4 {
  padding: 1rem 1.5rem 0.5rem;
  font-family: var(--font-secondary);
}

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

.post-card .btn-small {
  margin: 0 1.5rem 1.5rem;
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 0;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-primary);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

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

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-social a {
  color: #ddd;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--secondary-color);
}

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

.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);
  transition: var(--transition);
}

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

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

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Blog Post Styles */
.blog-posts {
  padding: 5rem 0;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.category {
  color: var(--primary-color);
  font-weight: 500;
}

/* Blog Post Single */
.blog-post {
  padding: 5rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header h1 {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin: 1rem 0;
}

.post-header .post-intro {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

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

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

.post-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: left;
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark-color);
}

.post-content h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--dark-color);
}

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

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

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

.post-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-image img {
  width: 100%;
}

.image-caption {
  font-style: italic;
  text-align: center;
  color: var(--text-light);
  padding: 0.8rem;
  background-color: #f8f9fa;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  justify-content: center;
}

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

.post-tags a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: #f0f2f5;
  border-radius: 30px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.author-bio {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.bio-content h3 {
  margin-bottom: 0.3rem;
}

.bio-content p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.prev-post, .next-post {
  max-width: 45%;
}

.next-post {
  text-align: right;
}

.post-navigation span {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.post-navigation h4 {
  font-family: var(--font-secondary);
  color: var(--dark-color);
  transition: var(--transition);
}

.post-navigation a:hover h4 {
  color: var(--primary-color);
}

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* About Page */
.about-story {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-text h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.team {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.team h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

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

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

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

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

.team-member h3 {
  margin: 1.5rem 0 0.3rem;
  padding: 0 1rem;
  font-family: var(--font-secondary);
}

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

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.values {
  padding: 5rem 0;
}

.values h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

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

.value-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.value-card .icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

/* Contact Page */
.contact-content {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form h2 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 2rem;
}

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

.info-item .icon {
  color: var(--primary-color);
  display: flex;
  align-items: flex-start;
}

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

.info-text p,
.info-text a {
  color: var(--text-light);
}

.social-contact {
  margin-top: 2.5rem;
}

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

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

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

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

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

.map {
  padding-bottom: 5rem;
}

.map h2 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  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: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.modal h2 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  color: var(--success-color);
}

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

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

.cookie-content {
  padding: 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.cookie-content a {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .newsletter form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3::after,
  .footer-social h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social .social-icons {
    justify-content: center;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .prev-post, .next-post {
    max-width: 100%;
    text-align: center;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
