/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fafafa;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  width: 100%;
  padding: 20px 40px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;      /* Stays on top when scrolling */
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    text-align: center;
    padding: 20px 0;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}


.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #4CAF50;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: #4CAF50;
  color: #ffffff;
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 80px;
  color: #ffffff;
  transition: background-image 1s ease-in-out; /* Smooth fade */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

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

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

.hero-buttons .btn {
  display: inline-block;
  padding: 12px 25px;
  margin: 5px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.hero-buttons .btn.primary {
  background: #4CAF50;
  color: #ffffff;
}

.hero-buttons .btn.secondary {
  background: #ffffff;
  color: #4CAF50;
}

.hero-buttons .btn:hover {
  opacity: 0.85;
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlights {
  padding: 60px 40px;
  background: #f4f4f4;
  text-align: center;
}

.highlights h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

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

.highlight-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.highlight-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.highlight-card h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #333;
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h3 {
  color: #f8c146;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f8c146;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
}

.subscribe-form button {
  background: #f8c146;
  color: #333;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.subscribe-form button:hover {
  background: #e6b63b;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  margin-top: 30px;
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
/* --- Mobile Nav --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;        /* or your preferred color */
    position: absolute;
    top: 60px;               /* height of navbar */
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }
}
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;}
  
  .navbar {
    padding: 15px 20px;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p  { font-size: 0.9rem; }
}

/* ====== About Page ====== */
/* ===== About Page Background ===== */
body.about-page {
  background: #f7f9fc;   /* light grayish-blue tone for distinction */
  /* OR you can use an image:
     background: url('../images/about-bg.jpg') center/cover no-repeat;
  */
}


.about-hero {
  background: url('../images/clearcow.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}
.btnp{
   background: #e6f2e6;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;

}
.btnp:hover{
  background: skyblue;
}

.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.about-section h2,
.products-section h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 20px;
  color: #555;
  line-height: 1.7;
  text-align: center;
}

/* ===== Our Story Section ===== */
.our-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  background: #f0f9f0;  /* soft green tint */
  border-radius: 12px;
  overflow: hidden;
  max-width: 1100px;
  margin: 60px auto;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.story-content {
  padding: 40px 30px;
}

.story-content h2 {
  color: #2e5a2e;
  margin-bottom: 20px;
}

.story-content p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 900px;
}

.mission-vision h3 {
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.mission-vision p {
  color: #555;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  line-height: 1.7;
}


.cow-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cow-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cow-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ====== Products ====== */
.products-section {
  padding: 60px 20px;
  background: #fff;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h4 {
  color: #333;
  margin: 10px 0;
}

/* ===== Registration Page ===== */


body.register-page {
  background: #f7f9fc;
}

.register-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

.register-section h2 {
  padding-top: 60px;
  text-align: center;
  color: #2e5a2e;
  margin-bottom: 10px;
}

.register-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.tab-btn {
  background: #e6f2e6;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: #2e5a2e;
  color: #fff;
}

.tab-content {
  display: none;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-content.active {
  display: block;
}

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

form label {
  margin-top: 15px;
  color: #333;
}

form input,
form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.checkbox-group label {
  font-size: 16px;
  cursor: pointer;
}


form select[multiple] {
  height: 100px;
}

form button {
  margin-top: 25px;
  background: #2e5a2e;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #3f7a3f;
}
