/* Global Styles */
:root {
  --primary-color: #e83a30;
  --secondary-color: #1d1d1d;
  --accent-color: #ffc107;
  --text-color: #333333;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --dark-gray: #666666;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.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(--light-color);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  max-width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
}

nav ul {
  display: flex;
  margin: 0;
}

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

nav ul li a {
  color: var(--secondary-color);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

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

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 100px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/1.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: var(--light-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Featured Posts Section */
.featured-posts {
  padding: 80px 0;
}

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

.featured-posts h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

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

.post-card {
  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-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.post-content p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--primary-color);
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Blog Page Styles */
.page-header {
  background-color: var(--gray-color);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

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

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

.blog-image {
  overflow: hidden;
}

.blog-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-content {
  padding: 25px;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.blog-content p {
  margin-bottom: 20px;
}

/* Single Blog Post */
.blog-post {
  padding: 60px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-meta {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-top: 10px;
}

.post-meta span {
  margin: 0 10px;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.post-content h2, .post-content h3 {
  margin-top: 40px;
}

.post-content ul, .post-content ol {
  padding-left: 20px;
}

.post-navigation {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-nav-links {
  display: flex;
  justify-content: space-between;
}

.prev-post, .next-post, .back-to-blog {
  font-weight: 600;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

.related-post h4 {
  font-size: 1rem;
  padding: 15px 15px 5px;
}

.related-post .read-more {
  padding: 0 15px 15px;
  display: block;
}

/* About Page */
.about-content {
  padding: 60px 0;
}

.about-story, .about-mission {
  margin-bottom: 60px;
}

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

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

.team-member {
  text-align: center;
  background-color: var(--light-color);
  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: auto;
  object-fit: cover;
}

.team-member h3 {
  margin-top: 15px;
  font-size: 1.2rem;
}

.team-member p {
  padding: 0 15px 15px;
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  padding: 60px 0;
}

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

.contact-info {
  background-color: var(--gray-color);
  padding: 40px;
  border-radius: var(--border-radius);
}

.info-item {
  display: flex;
  margin-top: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.social-contact {
  margin-top: 30px;
}

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

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

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

.contact-form-container {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(232, 58, 48, 0.2);
}

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

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

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

.map-section {
  padding: 40px 0 80px;
}

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

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

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

/* Daily Tip Section */
.daily-tip {
  padding: 40px 0;
  background-color: var(--gray-color);
}

.tip-box {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  border-top: 4px solid var(--accent-color);
}

.tip-box h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.tip-content p {
  margin-bottom: 0;
}

/* Poll Section */
.poll-section {
  padding: 60px 0;
}

.poll-box {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  border-top: 4px solid var(--primary-color);
}

.poll-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.poll-options {
  margin: 20px 0;
}

.poll-option {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.poll-option input {
  margin-right: 10px;
}

.poll-results {
  margin-top: 30px;
}

.result-item {
  margin-bottom: 15px;
}

.result-bar {
  background-color: var(--gray-color);
  border-radius: 20px;
  height: 20px;
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.result-bar .bar {
  background-color: var(--primary-color);
  height: 100%;
  border-radius: 20px;
}

.result-bar span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-logo img {
  max-width: 120px;
  margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
  color: var(--light-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

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

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

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

.footer-links ul li a {
  color: #cccccc;
  transition: var(--transition);
}

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

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

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

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

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 15px;
  z-index: 9999;
  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: 15px;
}

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

.cookie-content a {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.cookie-content a:hover {
  text-decoration: underline;
}

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

.modal-content {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  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 {
  margin-top: 20px;
}

/* Media Queries */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }
  
  nav {
    display: none;
    width: 100%;
    margin-top: 20px;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0 0 15px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .blog-card {
    grid-template-columns: 1fr;
  }
  
  .blog-image img {
    height: 250px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .post-nav-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .post-meta span {
    display: block;
    margin: 5px 0;
  }
}
