/* Base Styles */
:root {
  --primary-color: #2c7da0;
  --primary-dark: #1a5e7a;
  --primary-light: #61a5c2;
  --secondary-color: #e76f51;
  --accent-color: #f4a261;
  --light-bg: #f8f9fa;
  --dark-bg: #2b2d42;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --success-color: #2a9d8f;
  --warning-color: #f4a261;
  --error-color: #e63946;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

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

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header & Navigation */
header {
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

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

nav ul li a {
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
  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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Quote of the Day */
.quote-of-day {
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

.quote-of-day blockquote {
  font-size: 1.5rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

.quote-of-day cite {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: normal;
}

/* Featured Posts */
.featured-posts {
  padding: 4rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

.post-image {
  height: 200px;
  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: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.75rem;
}

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

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

/* User Quotes */
.user-quotes {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.user-quotes h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.quote-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.quote-content {
  position: relative;
  padding-left: 2rem;
}

.quote-content:before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
}

.quote-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

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

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

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

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

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

#newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

#newsletter-form button {
  border-radius: 0 4px 4px 0;
}

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

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

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

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

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

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

.footer-links h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

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

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

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

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

.footer-contact h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

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

.footer-contact address p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-contact address p svg {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 1rem;
  z-index: 1001;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 1rem;
}

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

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

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

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Blog Page */
.blog-content {
  padding: 4rem 0;
}

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

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

.blog-post .post-image {
  height: 400px;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 2rem 0;
}

.blog-post h2 {
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.blog-post p {
  padding: 0 2rem;
}

.blog-post p:last-child {
  margin-bottom: 2rem;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-post {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.popular-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.popular-post h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.popular-post span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

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

/* About Page */
.about-content {
  padding: 4rem 0;
}

.about-mission {
  margin-bottom: 4rem;
  text-align: center;
}

.about-mission h2 {
  margin-bottom: 1.5rem;
}

.about-mission p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-values {
  margin-bottom: 4rem;
}

.about-values h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.value-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.about-team {
  margin-bottom: 4rem;
}

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

.about-team > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

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

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

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

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

.team-member h3, .team-member p {
  padding: 0 1.5rem;
}

.team-member h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

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

.team-member p:last-child {
  margin-bottom: 1.5rem;
}

.about-stats {
  margin-bottom: 4rem;
}

.about-stats h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.stat-card {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-partners {
  margin-bottom: 4rem;
}

.about-partners h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.about-partners > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.partner-logo img {
  max-height: 80px;
  max-width: 100%;
}

.join-us {
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.join-us h2 {
  margin-bottom: 1rem;
}

.join-us p {
  margin-bottom: 2rem;
}

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

/* Contact Page */
.contact-content {
  padding: 4rem 0;
}

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

.contact-info {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  color: var(--primary-color);
}

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

.business-hours, .social-connect {
  margin-top: 2rem;
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

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

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
}

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

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

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

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

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

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

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

.faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

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

/* 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: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.close-btn {
  margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-image {
    height: 250px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  #newsletter-form button {
    border-radius: 4px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .quote-of-day blockquote {
    font-size: 1.25rem;
  }
  
  .post-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
}
