/* Base Styles & Variables */
:root {
  --primary-color: #3a6ea5;
  --secondary-color: #ff7e5f;
  --tertiary-color: #feb47b;
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --grey-color: #6c757d;
  --light-grey-color: #e9ecef;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --body-font: 'Open Sans', Helvetica, Arial, sans-serif;
  --heading-font: 'Montserrat', Helvetica, Arial, sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --container-width: 1200px;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1.5rem;
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

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

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

.btn-tertiary {
  background-color: var(--light-grey-color);
  color: var(--dark-color);
}

.btn-tertiary:hover {
  background-color: var(--grey-color);
  color: white;
}

.center {
  text-align: center;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 5rem;
  width: auto;
}

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

nav ul li a {
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-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(--secondary-color);
}

/* Hero Section */
.hero {
  height: 60vh;
  background-image: linear-gradient(to right, rgba(58, 110, 165, 0.7), rgba(58, 110, 165, 0.3)), 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: 6rem;
}

.hero-content {
  max-width: 80rem;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* What You'll Learn Section */
.what-you-learn {
  padding: 6rem 0;
  background-color: white;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.learn-item {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

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

.learn-item .icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-grey-color);
  border-radius: 50%;
  color: var(--primary-color);
}

.learn-item h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.learn-item p {
  color: var(--grey-color);
  font-size: 1.5rem;
}

/* Featured Posts Section */
.featured-posts {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

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

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

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

.post-content {
  padding: 2rem;
}

.post-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-right: 2rem;
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.read-more:hover:after {
  right: -5px;
}

/* Random Fact Section */
.random-fact {
  padding: 6rem 0;
  background-color: white;
}

.fact-box {
  background-color: var(--light-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.fact-box .icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
}

.fact-box p {
  margin-bottom: 0;
  font-size: 1.8rem;
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: 8rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 3.2rem;
}

.cta p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
}

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

.footer-col p {
  color: #aaa;
  font-size: 1.5rem;
}

.footer-col address {
  font-style: normal;
}

.footer-col address p {
  margin-bottom: 0.8rem;
}

.footer-col address a {
  color: #aaa;
}

.footer-col address a:hover {
  color: var(--secondary-color);
}

.copyright {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

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

.footer-links a {
  color: #aaa;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: white;
  padding: 2rem;
  z-index: 1001;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default, shown via JS */
}

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

.cookie-content p {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.cookie-policy {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.cookie-policy a {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-header h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.8rem;
  max-width: 70rem;
  margin: 0 auto;
}

/* Blog Page Styles */
.blog-posts {
  padding-bottom: 6rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: var(--grey-color);
  font-size: 1.4rem;
}

.newsletter {
  padding: 6rem 0;
  background-color: var(--light-grey-color);
  text-align: center;
}

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

.newsletter p {
  max-width: 60rem;
  margin: 0 auto 3rem;
  font-size: 1.8rem;
}

.newsletter-form {
  display: flex;
  max-width: 50rem;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
}

/* Blog Post Styles */
.blog-post {
  padding-bottom: 6rem;
}

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

.post-header h1 {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
}

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

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

.post-content {
  max-width: 80rem;
  margin: 0 auto;
}

.post-content .lead {
  font-size: 1.8rem;
  color: var(--grey-color);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.post-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 2.6rem;
}

.post-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

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

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

.post-image {
  margin: 3rem 0;
}

.post-image img {
  width: 100%;
  border-radius: var(--border-radius);
}

.caption {
  text-align: center;
  color: var(--grey-color);
  font-size: 1.4rem;
  margin-top: 1rem;
}

.post-tags {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

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

.post-tags a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--light-grey-color);
  color: var(--grey-color);
  border-radius: 20px;
  font-size: 1.4rem;
  transition: var(--transition);
}

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

.related-posts {
  padding: 6rem 0;
  background-color: var(--light-grey-color);
}

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

/* Gallery Page Styles */
.gallery-filters {
  margin-bottom: 4rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.8rem 1.8rem;
  background-color: var(--light-grey-color);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
}

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

.gallery {
  padding-bottom: 6rem;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.gallery-caption p {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 1002;
  align-items: center;
  justify-content: center;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 2rem;
}

.lightbox-caption h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: var(--secondary-color);
}

/* About Page Styles */
.about-intro {
  padding-bottom: 6rem;
}

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

.about-text h2 {
  margin-bottom: 2rem;
  font-size: 3rem;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

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

.our-values {
  padding: 6rem 0;
  background-color: var(--light-grey-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.value-item {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.value-item .icon {
  width: 5rem;
  height: 5rem;
  background-color: var(--light-grey-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.team {
  padding: 6rem 0;
}

.team h2 {
  text-align: center;
  margin-bottom: 4rem;
}

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 2rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

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

.team-member .social-icons {
  justify-content: center;
}

.testimonials {
  padding: 6rem 0;
  background-color: var(--light-grey-color);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  gap: 3rem;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-color) var(--light-grey-color);
}

.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background-color: var(--grey-color);
  border-radius: 20px;
}

.testimonial {
  flex: 0 0 calc(33.333% - 2rem);
  min-width: 30rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.testimonial-content {
  padding: 3rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author .name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.testimonial-author .title {
  color: var(--grey-color);
  margin-bottom: 0;
}

/* Contact Page Styles */
.contact-content {
  padding-bottom: 6rem;
}

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

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

.contact-details {
  margin-bottom: 4rem;
}

.contact-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  background-color: var(--light-grey-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

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

.contact-item p, .contact-item address {
  margin-bottom: 0.5rem;
  color: var(--grey-color);
}

.social-connect h3 {
  margin-bottom: 1.5rem;
}

.contact-form-container {
  background-color: white;
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 3rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  transition: var(--transition);
}

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

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkbox-group input {
  width: auto;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.map-section {
  padding-bottom: 6rem;
}

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

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

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

.modal-content {
  background-color: white;
  padding: 4rem;
  border-radius: var(--border-radius);
  max-width: 50rem;
  width: 90%;
  position: relative;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-color);
}

.modal-icon {
  width: 8rem;
  height: 8rem;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
}

.modal-body h2 {
  margin-bottom: 1.5rem;
}

.modal-body p {
  margin-bottom: 3rem;
}

.close-btn {
  display: inline-block;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 58%;
  }
  
  .about-content, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  header {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  
  .logo-container {
    margin-bottom: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    height: 50vh;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .post-header h1 {
    font-size: 3rem;
  }
  
  .testimonial {
    flex: 0 0 calc(100% - 2rem);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .cookie-banner {
    padding: 1.5rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .posts-grid, .gallery-grid, .learn-grid, .values-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .modal-content {
    padding: 3rem 2rem;
  }
}
