/* Base Styles */
:root {
  --primary-color: #2c6e49;
  --secondary-color: #4c956c;
  --accent-color: #ffc857;
  --text-color: #333333;
  --light-text: #666666;
  --bg-color: #ffffff;
  --light-bg: #f8f9fa;
  --dark-bg: #1b4332;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

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

button,
.btn-primary {
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  color: var(--dark-bg);
  font-family: "Playfair Display", serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Cookie Notice */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(27, 67, 50, 0.95);
  color: white;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#cookie-notice .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#cookie-notice p {
  margin-right: 20px;
  flex: 1;
}

#cookie-notice button {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
}

#cookie-notice button:hover {
  background-color: #e6b64c;
}

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

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

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

.logo-icon {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-bg);
}

.main-menu {
  display: flex;
}

.main-menu li {
  margin: 0 15px;
}

.main-menu a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.main-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-menu a:hover {
  color: var(--primary-color);
}

.main-menu a:hover::after {
  width: 100%;
}

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

.contact-btn a {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
}

.contact-btn a:hover {
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(27, 67, 50, 0.8)), url("../images/preview_image_1.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

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

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--dark-bg);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-color: #e6b64c;
  transform: translateY(-2px);
}

/* Featured Article */
.featured-article {
  padding: 60px 0;
}

.featured-card {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.featured-image {
  flex: 0 0 50%;
  overflow: hidden;
}

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

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

.featured-content {
  flex: 0 0 50%;
  padding: 30px;
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.tag {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 15px;
}

.author {
  color: var(--light-text);
  font-size: 0.9rem;
}

.featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-bg);
  font-family: "Playfair Display", serif;
}

.featured-content p {
  color: var(--light-text);
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

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

.read-more:hover i {
  transform: translateX(5px);
}

/* Articles Grid */
.articles-grid {
  padding: 40px 0;
}

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

.article-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

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

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

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

.article-content {
  padding: 20px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--light-text);
}

.article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-bg);
  font-family: "Playfair Display", serif;
  line-height: 1.4;
}

.article-content p {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
  background-color: var(--light-bg);
  padding: 60px 0;
}

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

.sidebar-widget {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-bg);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Search Widget */
.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--light-text);
  font-size: 1rem;
}

.search-form button:hover {
  color: var(--primary-color);
}

/* News Widget */
.news-list li {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.news-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.news-list a {
  display: flex;
  align-items: center;
}

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

.news-content h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  transition: var(--transition);
}

.news-date {
  font-size: 0.8rem;
  color: var(--light-text);
}

.news-list a:hover h4 {
  color: var(--primary-color);
}

/* Newsletter Widget */
.newsletter-widget p {
  margin-bottom: 20px;
  color: var(--light-text);
}

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

.newsletter-form input {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: inherit;
}

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

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-column p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-links {
  display: flex;
}

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

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

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

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

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

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  opacity: 0.8;
}

.contact-info i {
  margin-right: 10px;
  margin-top: 5px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
}

.footer-newsletter input {
  padding: 12px 15px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  color: white;
  font-family: inherit;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
}

.footer-newsletter button:hover {
  background-color: #e6b64c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  opacity: 0.7;
}

.footer-bottom-links a {
  margin-left: 20px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .featured-card {
    flex-direction: column;
  }

  .featured-image,
  .featured-content {
    flex: 0 0 100%;
  }

  .featured-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .main-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    margin-top: 15px;
  }

  .footer-bottom-links a {
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  .contact-btn {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .featured-content h3 {
    font-size: 1.5rem;
  }
}
