/* Base Styles and CSS Reset */
:root {
  --primary-color: #3A7CA5;
  --primary-dark: #2F6690;
  --primary-light: #81C3D7;
  --secondary-color: #F38D68;
  --secondary-dark: #E07A58;
  --accent-color: #16425B;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
  --transition-speed: 0.3s;
  --container-width: 1200px;
  --header-height: 80px;
}

/* Load 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 and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--bg-light);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

code {
  font-family: monospace;
  padding: 0.2rem 0.4rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 0.9em;
}

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

/* Header */
header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

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

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 0.8rem;
  border-radius: 8px;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-color);
}

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

nav li {
  margin-left: 2rem;
}

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

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

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

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

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
}

.mobile-menu-toggle span {
  height: 3px;
  background-color: var(--text-color);
  transition: all var(--transition-speed);
}

/* Hero section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
}

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

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.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;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Features section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

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

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
}

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

.feature-card h3 {
  margin-top: 0;
}

/* Future quote section */
.future-quote {
  padding: 5rem 0;
  background-color: var(--accent-color);
  color: white;
}

.future-quote h2 {
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.future-quote blockquote {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  border-left: 4px solid var(--primary-light);
  background-color: rgba(255, 255, 255, 0.1);
}

.future-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  text-align: right;
  opacity: 0.8;
}

.light-bg.future-quote {
  background-color: var(--bg-light);
  color: var(--text-color);
}

.light-bg.future-quote h2 {
  color: var(--accent-color);
}

.light-bg.future-quote blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: white;
  box-shadow: var(--shadow-sm);
}

/* Latest posts section */
.latest-posts {
  padding: 5rem 0;
}

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

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

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

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.post-content p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

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

/* Page header */
.page-header {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
}

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

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

.about-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
}

.contact-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Blog page */
.blog-featured {
  padding: 3rem 0;
}

.featured-post {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-image {
  flex: 1;
  min-height: 400px;
}

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

.featured-content {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.featured-content h2 {
  margin-top: 0;
  font-size: 2rem;
}

.blog-filters {
  margin: 3rem 0;
  text-align: center;
}

.blog-filters h3 {
  margin-bottom: 1rem;
}

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

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: none;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
}

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

.blog-grid {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.post-meta {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-lighter);
  display: flex;
  gap: 1rem;
}

.post-category {
  color: var(--primary-color);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background-color: white;
  color: var(--text-color);
  text-decoration: none;
  transition: all var(--transition-speed);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

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

.pagination span.current-page {
  background-color: var(--primary-color);
  color: white;
}

.next-page, .prev-page {
  width: auto !important;
  padding: 0 1rem;
}

/* Newsletter section */
.newsletter {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: white;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0 1.5rem;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
  background-color: #0d2b3b;
}

.form-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* About page */
.about-mission {
  padding: 5rem 0;
}

.about-mission .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.mission-content {
  flex: 1;
}

.mission-image {
  flex: 1;
}

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

.core-values {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

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

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

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

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

.team-section {
  padding: 5rem 0;
}

.team-section h2, .section-intro {
  text-align: center;
}

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

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

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

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

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card h3 {
  margin: 1.5rem 0 0.3rem;
}

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

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 0 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-color);
  transition: all var(--transition-speed);
}

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

.history-timeline {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 50%;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
  justify-content: flex-start;
}

.timeline-marker {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  border: 4px solid white;
  z-index: 1;
  left: calc(100% - 40px);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -40px;
}

.timeline-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  width: calc(100% - 60px);
  margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60px;
  margin-right: 0;
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-info {
  padding: 4rem 0;
}

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

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

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

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.info-card p {
  margin-bottom: 0.5rem;
}

.info-note {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.contact-form-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact-form-section .container {
  display: flex;
  gap: 3rem;
}

.form-container {
  flex: 2;
}

.map-container {
  flex: 1;
}

.form-container h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.form-container > p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

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

.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;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

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

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

.checkbox-group input {
  width: auto;
  margin-right: 0.8rem;
  margin-top: 0.3rem;
}

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

.map-container h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.map {
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

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

.office-hours {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.office-hours h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.office-hours p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.office-hours svg {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.office-hours p:last-child {
  margin-bottom: 0;
}

.faq-section {
  padding: 5rem 0;
}

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

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

.faq-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

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

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

.thank-you-message {
  text-align: center;
  padding: 1rem 0;
}

.thank-you-message svg {
  margin-bottom: 1rem;
}

.thank-you-message h2 {
  margin-top: 0;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
}

/* Article page */
.article-main {
  padding: 4rem 0;
}

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

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-lighter);
}

.article-meta .article-category {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 1.2rem;
  color: var(--text-light);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

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

.article-body {
  margin-bottom: 3rem;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
  margin-top: 2.5rem;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-label {
  font-weight: 600;
  color: var(--text-light);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--bg-light);
  border-radius: 50px;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: all var(--transition-speed);
}

.tag:hover {
  background-color: var(--primary-light);
  color: var(--accent-color);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.author-bio h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.author-bio p {
  margin-bottom: 0;
  color: var(--text-light);
}

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

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

.article-nav-next {
  text-align: right;
}

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

.article-navigation a {
  font-weight: 500;
}

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

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

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

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

.related-card:hover {
  transform: translateY(-5px);
}

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

.related-card h3,
.related-card p,
.related-card a {
  margin: 1.2rem;
}

.related-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.related-card p {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.related-card a {
  display: inline-block;
  margin-top: 0;
}

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

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

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.footer-logo p {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.registration {
  font-size: 0.9rem;
  color: var(--text-lighter);
  font-weight: normal;
}

.footer-content h3 {
  color: white;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
  margin-right: 0.8rem;
  margin-top: 0.2rem;
}

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

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

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

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

/* Cookie banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.btn-accept {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-accept:hover {
  background-color: #218838;
}

.btn-customize {
  background-color: var(--info-color);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-customize:hover {
  background-color: #138496;
}

.btn-decline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-policy-link {
  color: var(--primary-light);
  text-decoration: underline;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-image {
    display: none;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .featured-post {
    flex-direction: column;
  }
  
  .featured-image {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .about-mission .container {
    flex-direction: column;
  }
  
  .contact-form-section .container {
    flex-direction: column;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
  }
  
  .timeline-marker {
    left: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: 0;
  }
  
  .timeline-content {
    width: 100%;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: white;
    display: none;
    box-shadow: var(--shadow-md);
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }
  
  nav li {
    margin: 0;
  }
  
  nav a {
    display: block;
    padding: 0.8rem 1.5rem;
  }
  
  nav a::after {
    display: none;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .features, .latest-posts, .about-mission, .core-values, .team-section, .history-timeline, .contact-info, .contact-form-section, .faq-section, .related-posts {
    padding: 3rem 0;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .article-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .article-nav-prev, .article-nav-next {
    max-width: 100%;
  }
  
  .article-nav-next {
    text-align: left;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .article-author {
    flex-direction: column;
    text-align: center;
  }
}
