:root {
  --primary-color: #3c8dbc;
  --secondary-color: #29677d;
  --accent-color: #f4a261;
  --background-color: #ffffff;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
  --footer-bg: #2c3e50;
  --footer-text: #ecf0f1;
}

[data-theme="dark"] {
  --primary-color: #61a0c7;
  --secondary-color: #417e94;
  --accent-color: #f6b584;
  --background-color: #1a1a1a;
  --text-color: #f5f5f5;
  --light-gray: #2c2c2c;
  --medium-gray: #3d3d3d;
  --dark-gray: #b3b3b3;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --footer-bg: #1a2530;
  --footer-text: #ecf0f1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

/* Theme Switch */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 44px;
  margin-right: 10px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Header */
header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

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

nav ul li a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

/* Hero Sections */
.hero, .blog-hero, .about-hero, .contact-hero {
  background-color: var(--light-gray);
  padding: 100px 0;
  text-align: center;
  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: white;
  position: relative;
}

.blog-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/2.jpg');
}

.about-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/6.jpg');
}

.contact-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/9.jpg');
}

.hero h1, .blog-hero h1, .about-hero h1, .contact-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p, .blog-hero p, .about-hero p, .contact-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* What You'll Learn Section */
.what-you-learn {
  padding: 80px 0;
  background-color: var(--background-color);
}

.what-you-learn h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

.learn-item {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.learn-item h3 {
  margin-bottom: 15px;
}

.learn-item p {
  margin-bottom: 0;
  color: var(--dark-gray);
}

/* Featured Posts */
.featured-posts {
  padding: 80px 0;
  background-color: var(--light-gray);
}

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

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

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

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

.post h3 {
  padding: 20px 20px 10px;
}

.post p {
  padding: 0 20px 20px;
  color: var(--dark-gray);
}

.post .btn-secondary {
  margin: 0 20px 20px;
}

.featured-posts .btn {
  display: block;
  width: 200px;
  margin: 0 auto;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

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

.testimonial {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial .quote {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 20px;
}

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

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

.author h4 {
  margin-bottom: 5px;
}

.author p {
  margin-bottom: 0;
  font-style: normal;
  color: var(--dark-gray);
}

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

.newsletter h2, .newsletter p {
  color: white;
}

.newsletter p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--accent-color);
}

.newsletter-form .btn:hover {
  background-color: #e67e22;
}

/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
}

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

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 50px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-img {
  height: 100%;
}

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

.post-content {
  padding: 30px;
}

.post-meta {
  display: flex;
  margin-bottom: 20px;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

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

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.post-tags span {
  background-color: var(--medium-gray);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* About Story Section */
.about-story {
  padding: 80px 0;
  background-color: var(--light-gray);
}

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

.story-content h2 {
  margin-bottom: 30px;
}

.story-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Team Section */
.team {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

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

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

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

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

.team-member h3, .team-member p {
  padding: 0 20px;
}

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

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  padding: 0 20px 20px;
}

.social-links a {
  margin-right: 15px;
  color: var(--dark-gray);
}

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

/* Values Section */
.values {
  padding: 80px 0;
  background-color: var(--light-gray);
}

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

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

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

.value-item: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-item h3 {
  margin-bottom: 15px;
}

.value-item p {
  margin-bottom: 0;
  color: var(--dark-gray);
}

/* Contact Details Section */
.contact-details {
  padding: 80px 0;
  background-color: var(--background-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2, .contact-form h2 {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  margin-bottom: 25px;
}

.info-item .icon {
  margin-right: 15px;
  color: var(--primary-color);
}

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

.info-item p {
  margin-bottom: 0;
  color: var(--dark-gray);
}

.social-media {
  margin-top: 40px;
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  margin-right: 15px;
  color: var(--text-color);
  transition: var(--transition);
}

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

/* Contact Form */
.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: 10px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

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

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

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

.form-checkbox label {
  margin-bottom: 0;
}

.btn-full {
  width: 100%;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}

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

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

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

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--light-gray);
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
}

.faq-toggle {
  display: flex;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-gray);
}

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

.thank-you-message svg {
  color: var(--success-color);
  margin-bottom: 20px;
}

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

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
  color: var(--footer-text);
  margin-bottom: 20px;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--footer-text);
  opacity: 0.8;
}

.footer-links ul li a:hover {
  opacity: 1;
}

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

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

.footer-contact .social-icons {
  margin-top: 20px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

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

.cookie-content h3 {
  margin-bottom: 10px;
}

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

.btn-cookie {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-cookie-secondary {
  background-color: transparent;
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  cursor: pointer;
  font-weight: 600;
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .about-story .container {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  header {
    height: auto;
    padding: 20px 0;
  }
  
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 15px 10px;
  }
  
  .hero h1, .blog-hero h1, .about-hero h1, .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter-form .btn {
    border-radius: var(--border-radius);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto 20px;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .learn-items, .posts, .testimonial-slider, .team-members, .values-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
