:root {
  --primary: #ffffff;
  --secondary: #fdfaf6;
  --accent: #8b5a2b; /* Brown matching the logo */
  --text-dark: #3e2723; /* Dark brown text */
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --font-main: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo img {
  height: auto;
  max-height: 70px;
  max-width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  background: linear-gradient(rgba(62, 39, 35, 0.75), rgba(62, 39, 35, 0.75)), url('../images/hero_cow.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  padding: 4rem 5%;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image-wrapper {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #fff; /* in case image is transparent */
  padding: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: var(--shadow);
}

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

/* Sections */
section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

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

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

.card-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background-color: var(--secondary);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Premium NGO Footer */
.ngo-footer {
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 4rem 5% 1rem 5%;
  margin-top: auto;
  border-top: 1px solid #eee;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-logo {
  height: auto;
  max-height: 85px;
  max-width: 100%;
  margin-bottom: 25px;
  display: block;
}

.links-col ul {
  list-style: none;
}

.links-col ul li {
  margin-bottom: 12px;
}

.links-col ul li a {
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

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

.footer-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom a {
  color: var(--text-dark);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom {
    justify-content: center;
  }
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 2rem;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 30px auto;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-image-wrapper img {
    max-width: 250px;
  }
  nav ul {
    display: none; /* Add mobile menu later if needed */
  }
}
@media (max-width: 768px) {
  .footer-bottom {
    justify-content: center;
  }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.team-member {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.team-member img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid var(--accent);
}
.team-member h3 {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 1.25rem;
}
.team-member p {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.team-member .dummy-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ddd;
  color: #aaa;
  font-size: 3rem;
}
