/* News Page Styles */
.news-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  background-image: url('../Images/Image_7.jpeg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.news-hero-overlay h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin: 0;
  text-align: center;
  padding: 0 20px;
}

/* News Content Section */
.news-content-section {
  padding: 60px 0;
  background-color: #f2e8d5;
}

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

.news-container h3 {
  color: #800000;
  font-size: 36px;
  text-align: center;
  margin-bottom: 15px;
}

.news-intro {
  text-align: center;
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* News Grid Layout */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-item {
  display: flex;
  gap: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-icon {
  flex: 0 0 80px;
  height: 80px;
  background-color: #800000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.news-icon i {
  font-size: 32px;
}

.news-details {
  flex: 1;
}

.news-details h4 {
  color: #6b4226;
  font-size: 24px;
  margin: 0 0 5px 0;
}

.news-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  font-style: italic;
}

.news-text {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-link {
  color: #800000;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #a00000;
}

.news-link i {
  font-size: 14px;
}

/* Subscribe Section */
.news-subscribe-section {
  background-color: #6b4226;
  padding: 60px 20px;
  color: #fff;
}

.news-subscribe-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.news-subscribe-content h3 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #fff;
}

.news-subscribe-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f2e8d5;
}

.news-subscribe-form .form-group {
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    gap: 20px;
  }

  .news-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .news-hero {
    height: 30vh;
  }
}

/* Fix for font awesome cow icon */
.fa-cow:before {
  content: '\f6c0'; /* This is the code for cow in FA 5 */
}
