/* Base Styles and Variables */
:root {
  --primary-color: #ff5722;
  --secondary-color: #2196f3;
  --accent-color: #4caf50;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333333;
  --light-text: #ffffff;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
  font-size: 16px;
}

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

a:hover {
  color: #e64a19;
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* Header Styles */
header {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

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

.logo {
  height: 60px;
  width: auto;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light-text);
  font-weight: 500;
  padding: 10px 5px;
  position: relative;
}

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

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

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

.font-size button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.font-size button:hover {
  background-color: #1976d2;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 60px 5%;
  background: linear-gradient(to right, #2c3e50, #4b6cb7);
  color: var(--light-text);
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

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

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

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

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
  color: var(--light-text);
}

/* Features Section */
.features {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 60px 5%;
  background-color: var(--light-color);
}

.feature-card {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Recent Posts Section */
.recent-posts {
  padding: 60px 5%;
  background-color: white;
  text-align: center;
}

.recent-posts h2 {
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.recent-posts h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.post-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

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

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.post-card h3 {
  padding: 15px 15px 0;
  font-size: 1.2rem;
}

.post-card p {
  padding: 0 15px;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  margin: 15px;
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

.view-all {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.view-all:hover {
  background-color: #1976d2;
  color: var(--light-text);
}

/* Tip of the Day Section */
.tip-of-the-day {
  padding: 60px 5%;
  background-color: var(--light-color);
  text-align: center;
}

.tip-of-the-day h2 {
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.tip-of-the-day h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.tip-content {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: left;
}

.tip-content img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.tip-text {
  flex: 1;
}

.tip-text p {
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
}

.tip-text p:before,
.tip-text p:after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.5;
}

/* Newsletter Section */
.newsletter {
  padding: 60px 5%;
  background-color: var(--dark-color);
  color: var(--light-text);
  text-align: center;
}

.newsletter h2 {
  color: var(--light-text);
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 20px;
  border-radius: var(--border-radius);
  border: none;
  width: 100%;
  max-width: 400px;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 50px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 15px;
  border-radius: 50%;
}

.footer-links,
.footer-legal,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-links h3,
.footer-legal h3,
.footer-social h3 {
  color: var(--light-text);
  margin-bottom: 20px;
  position: relative;
}

.footer-links h3:after,
.footer-legal h3:after,
.footer-social h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: #b3b3b3;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--light-text);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: 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);
  transform: translateY(-5px);
}

.social-icons svg {
  fill: var(--light-text);
}

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

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95);
  color: var(--light-text);
  padding: 15px;
  z-index: 9999;
  display: none;
}

.cookie-notice.active {
  display: block;
}

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

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

.cookie-buttons button {
  padding: 8px 15px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

#accept-cookies {
  background-color: var(--success-color);
  color: white;
}

#customize-cookies {
  background-color: #7f8c8d;
  color: white;
}

#decline-cookies {
  background-color: var(--error-color);
  color: white;
}

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

/* Blog Page Styles */
.blog-page {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 5%;
  gap: 40px;
}

.blog-header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.blog-posts {
  flex: 3;
  min-width: 300px;
}

.sidebar {
  flex: 1;
  min-width: 250px;
}

.blog-post {
  margin-bottom: 50px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.post-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-content {
  padding: 30px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.post-excerpt {
  margin-bottom: 20px;
}

.read-more-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.read-more-btn:hover {
  background-color: #1976d2;
  color: white;
}

.categories,
.popular-posts,
.tags {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.categories h3,
.popular-posts h3,
.tags h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-color);
}

.categories ul,
.popular-posts ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.categories a,
.popular-posts a {
  color: var(--text-color);
  transition: var(--transition);
}

.categories a:hover,
.popular-posts a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  display: inline-block;
  background-color: var(--light-color);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* About Page Styles */
.about-page {
  padding: 40px 5%;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.our-story {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.story-content {
  flex: 2;
}

.story-image {
  flex: 1;
}

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

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0 60px;
}

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

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

.team-member h3 {
  margin-top: 20px;
  color: var(--primary-color);
}

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

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

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

.social-links svg {
  fill: var(--dark-color);
  width: 18px;
  height: 18px;
}

.social-links a:hover svg {
  fill: white;
}

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

.our-values {
  text-align: center;
  margin-bottom: 60px;
}

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

.value-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

/* Contact Page Styles */
.contact-page {
  padding: 40px 5%;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form-container {
  flex: 2;
  min-width: 300px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.info-icon svg {
  fill: white;
}

.info-text h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.social-links-contact {
  display: flex;
  gap: 15px;
}

.social-links-contact a {
  color: var(--secondary-color);
  font-weight: 500;
}

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

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

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

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background-color: #e64a19;
}

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

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

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

.map-notice {
  background-color: rgba(44, 62, 80, 0.8);
  color: white;
  padding: 10px;
  font-size: 0.9rem;
}

.faq-section {
  margin-bottom: 60px;
}

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

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

.faq-item {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.modal.active {
  display: flex;
}

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

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

.modal-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background-color: #e64a19;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  .hero-content {
    margin-bottom: 30px;
    max-width: 100%;
  }

  .features,
  .post-cards {
    flex-direction: column;
  }

  .tip-content {
    flex-direction: column;
  }

  .our-story {
    flex-direction: column;
    text-align: center;
  }

  .story-content {
    order: 2;
  }

  .story-image {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
  }

  .logo-container {
    margin-bottom: 15px;
  }

  .nav-links {
    gap: 15px;
    margin-bottom: 15px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Active blog post styles */
.blog-post:target {
  animation: highlight 2s ease;
}

@keyframes highlight {
  0% {
    background-color: rgba(255, 87, 34, 0.2);
  }
  100% {
    background-color: white;
  }
}
