/* Base Styles and Variables */
:root {
  --primary-color: #2A7D8A;
  --primary-dark: #1c5e68;
  --secondary-color: #F79E1B;
  --accent-color: #E55934;
  --text-color: #333333;
  --light-text: #777777;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #444444;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 4px;
  --box-shadow: 0 4px 12px 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;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

button, .btn {
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

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

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

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

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

ul {
  list-style: none;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 80px 0;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

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

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

/* Hero Section */
.hero {
  background: 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: var(--white);
  text-align: center;
  padding: 120px 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-banner.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 10px;
}

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

/* Featured Posts Section */
.featured-posts h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

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

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

.post-image {
  height: 250px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 25px;
}

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

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

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

.center-btn {
  text-align: center;
}

/* Fun Facts Section */
.fun-facts {
  background-color: var(--light-gray);
}

.fun-facts h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.fact-item {
  text-align: center;
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.fact-item:hover {
  transform: translateY(-5px);
}

.fact-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.fact-item p {
  margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.newsletter h2,
.newsletter p {
  color: var(--white);
}

.newsletter h2 {
  margin-bottom: 15px;
}

.newsletter p {
  max-width: 700px;
  margin: 0 auto 30px;
}

#newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

#newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
  padding: 0 25px;
}

#newsletter-form button:hover {
  background-color: #e08c00;
}

/* Footer */
footer {
  background-color: #2a3e50;
  color: var(--white);
  padding: 60px 0 30px;
}

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

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

footer h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer a {
  color: #b4c9d6;
}

footer a:hover {
  color: var(--white);
}

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

.footer-contact svg,
.footer-contact i {
  margin-right: 10px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social 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);
}

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

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #b4c9d6;
}

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

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

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

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

/* Blog Page Styles */
.blog-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  max-width: 400px;
  flex-grow: 1;
}

.search-bar input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid var(--medium-gray);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.search-bar button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-filter select {
  padding: 10px 30px 10px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.post-card.full {
  display: grid;
  grid-template-columns: 1fr;
}

.post-card.full .post-image {
  height: 400px;
}

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

.post-meta span {
  display: flex;
  align-items: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.pagination button {
  background-color: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--text-color);
  padding: 8px 15px;
}

.pagination button:hover:not([disabled]) {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

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

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.post-excerpt {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

.post-featured-image {
  margin-bottom: 40px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: var(--light-text);
  margin-top: 10px;
  font-size: 0.9rem;
}

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

.post-content h2 {
  margin-top: 40px;
}

.post-content h3 {
  margin-top: 30px;
}

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

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

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

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

.image-with-text {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
}

.image-with-text img {
  width: 40%;
  border-radius: 8px;
}

.image-with-text.reverse {
  flex-direction: row-reverse;
}

.author-bio {
  margin-top: 60px;
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: center;
}

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

.author-bio h3 {
  margin-bottom: 10px;
}

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

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

.post-tags a {
  background-color: var(--light-gray);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}

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

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

.nav-previous, 
.nav-next {
  max-width: 45%;
}

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

.post-navigation a {
  font-weight: 600;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 30px;
}

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

/* About Page Styles */
.about-intro {
  margin-bottom: 60px;
}

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

.about-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

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

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

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0 20px;
}

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

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

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

.values-section {
  background-color: var(--light-gray);
}

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

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

.value-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
}

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

.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-section .btn {
  background-color: var(--white);
  color: var(--text-color);
  margin-top: 20px;
}

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

/* Contact Page Styles */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

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

.info-icon {
  color: var(--primary-color);
  min-width: 24px;
}

.info-text h3 {
  margin-bottom: 5px;
}

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

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

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

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

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

.form-group.checkbox input {
  width: auto;
}

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

.map-section {
  padding-top: 0;
}

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

.map-container {
  height: 400px;
  background-color: var(--medium-gray);
  border-radius: 8px;
  overflow: hidden;
}

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

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

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-text);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .post-grid,
  .related-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .image-with-text {
    flex-direction: column;
  }
  
  .image-with-text.reverse {
    flex-direction: column;
  }
  
  .image-with-text img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .blog-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .search-bar {
    max-width: none;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-previous, 
  .nav-next {
    max-width: 100%;
  }
  
  .facts-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form input,
  #newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  #newsletter-form input {
    margin-bottom: 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
