/* Base Styles */
:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #f39c12;
  --accent-color: #e74c3c;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333;
  --text-color: #333;
  --light-text: #fff;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --section-spacing: 5rem;
}

* {
  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: #fff;
  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;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

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

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

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

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

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

nav ul {
  display: flex;
  margin: 0;
}

nav ul li {
  list-style: none;
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  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;
  color: var(--light-text);
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

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

/* Features Section */
.features {
  padding: var(--section-spacing) 0;
  background-color: var(--light-gray);
}

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

.feature-box {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-box .icon {
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog Posts Section */
.latest-posts {
  padding: var(--section-spacing) 0;
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.latest-posts h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

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

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

.post:hover {
  transform: translateY(-10px);
}

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

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

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* Fun Fact */
.fun-fact {
  padding: 3rem 0;
  background-color: var(--light-gray);
}

.fact-box {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
}

.fact-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  padding: var(--section-spacing) 0;
}

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

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

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

.testimonial {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

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

.testimonial-author h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin: 0;
  color: var(--primary-color);
  font-size: 0.9rem;
}

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

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

.footer-col h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  list-style: none;
}

.contact-info li svg {
  margin-right: 0.75rem;
  margin-top: 4px;
  color: var(--primary-color);
}

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

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

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.footer-links li {
  list-style: none;
}

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-gray);
  color: var(--light-text);
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

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

.cookie-more {
  color: var(--light-text);
  text-decoration: underline;
  margin-left: 1rem;
}

/* Page Header */
.page-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/2.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 5rem 1rem;
}

.page-header h1 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* Blog Page */
.blog-content {
  padding: var(--section-spacing) 0;
}

.blog-grid {
  display: grid;
  gap: 3rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.blog-post .post-image {
  height: 100%;
}

.blog-post .post-content {
  padding: 2rem;
}

.blog-post h2 {
  margin-bottom: 0.5rem;
}

.blog-post h2 a {
  color: var(--dark-gray);
}

.blog-post h2 a:hover {
  color: var(--primary-color);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 4rem 0;
}

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

.newsletter h2 {
  color: var(--light-text);
}

.newsletter-form {
  display: flex;
  margin-top: 2rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  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 1.5rem;
}

.newsletter-form button:hover {
  background-color: darken(var(--secondary-color), 10%);
}

/* About Page */
.about-story {
  padding: var(--section-spacing) 0;
}

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

.about-features {
  margin: 2rem 0;
  list-style: none;
}

.about-features li {
  display: flex;
  margin-bottom: 1.5rem;
}

.about-features .icon {
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

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

/* Team Section */
.team-section {
  padding: var(--section-spacing) 0;
  background-color: var(--light-gray);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

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

.team-member {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.member-image {
  height: 300px;
  overflow: hidden;
}

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

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  margin-bottom: 0.25rem;
}

.position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.member-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--light-gray);
  border-radius: 50%;
  transition: var(--transition);
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Values Section */
.values-section {
  padding: var(--section-spacing) 0;
}

.values-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

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

.value-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Certifications */
.certifications {
  padding: var(--section-spacing) 0;
  background-color: var(--light-gray);
}

.certifications h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.certification-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.cert-logo {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cert-logo img {
  max-height: 80px;
  margin: 0 auto 1rem;
}

/* Contact Page */
.contact-section {
  padding: var(--section-spacing) 0;
}

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

.info-card {
  display: flex;
  margin-bottom: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.info-icon {
  color: var(--primary-color);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

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

.info-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

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

.contact-form-container {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

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

.checkbox input {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10vh auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.thank-you-message svg {
  color: green;
  margin: 0 auto 1.5rem;
}

/* Single Blog Post */
.blog-post-single {
  padding: var(--section-spacing) 0;
}

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

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

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

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-navigation {
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

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

.post-prev span, .post-next span {
  display: inline-block;
  transition: var(--transition);
}

.post-prev:hover span {
  transform: translateX(-5px);
}

.post-next:hover span {
  transform: translateX(5px);
}

/* Related Posts */
.related-posts {
  padding: 0 0 var(--section-spacing);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --section-spacing: 4rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .blog-post .post-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
  }
  
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
  }
  
  nav ul li {
    margin-left: 0;
  }
  
  .hero {
    padding: 5rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
