/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}

/* Header - Modern Side-by-Side Corporate Balance with Centered Content */
header {
  background: #ffffff; 
  color: #333333;
  padding: 15px 40px;
  border-bottom: 4px solid #ff9933; /* Elegant saffron brand accent line */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  flex-direction: row;            /* Side-by-side horizontal desktop arrangement */
  justify-content: space-between; /* Spreads layout nodes cleanly across the desktop row */
  align-items: center;            /* Centered vertical axis alignment */
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Left Column: Fixed Boundary Logo Controls with Single-Line Tagline */
.logo-group,
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;        /* Structural alignment hard-left */
  flex-shrink: 0;                 /* Prevents center content from squeezing the logo area */
  width: 200px !important;        /* Broadened bounds to ensure tagline fits inline */
}

/* Forces image to remain bounded across all variations */
.logo-group img,
.logo img {
  width: 130px !important;        /* Fits completely within parent layout constraint */
  max-width: 130px !important;    /* Strict hard-stop width ceiling */
  height: auto !important;        /* Locks proper scaling rules proportion */
  display: block !important;
  margin: 0 !important;
}

.logo-group .tagline,
.logo .tagline {
  margin-top: 8px;
  font-size: 11px;                /* Neat, down-scaled tagline layout */
  color: #666666;
  font-style: italic;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap !important; /* FORCES THE TAGLINE TO STAY ON ONE SINGLE ROW */
}

/* Center Column: Shifted to the Absolute Center of the Header Space */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center !important; /* Centers internal elements horizontally */
  text-align: center !important;  /* Centers text typography content */
  flex-grow: 1;                   /* Expand container to occupy remaining header track */
  padding-right: 200px !important;/* Mathematical counter-balance to center text perfectly against logo */
}

.logo-text h1 {
  font-size: 36px;                /* Bold, professional header size */
  font-weight: bold;
  margin: 0;
  color: #ff9933;
}

.logo-text .registration {
  margin-top: 6px;
  font-size: 11px;
  color: #666666;
}

/* Navigation Links Balanced Center Configuration */
.logo-text nav {
  margin-top: 15px;
  display: flex;
  justify-content: center !important; /* Centers link rows horizontally */
  flex-wrap: wrap;
}

.logo-text nav a {
  color: #333333;
  margin: 0 16px;                 /* Even distribution space on both sides of each link */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;                /* Easier to read and tap */
  transition: color 0.2s ease;
}

.logo-text nav a:hover {
  color: #ff9933;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #ff9933, #ffffff, #138808);
  text-align: center;
  padding: 60px 20px;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: auto;
}

section h2 {
  color: #ff9933;
  margin-bottom: 25px;
  text-align: center;
  font-size: 32px;
}

.about-content, .donate-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* ========================================================
   ABOUT US SECTION - INTERACTIVE TAB BAR NAVIGATION
   ======================================================== */
.about-tabs-menu {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #ff9933;
  background-color: #fff4e6;
}

/* Highlighted active button style selection state */
.tab-btn.active {
  color: #ffffff;
  background-color: #ff9933;
  box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
}

/* Hidden container tab defaults */
.about-tab-panel {
  display: none;
  width: 100%;
}

/* Visually active view class toggle indicator */
.about-tab-panel.active {
  display: block;
}

.principles-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  background: #fdfdfd !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 12px !important;
  padding: 30px 25px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
}

.about-icon {
  font-size: 32px !important;
  color: #ff9933;
  margin-bottom: 15px !important;
}

.about-card h3 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ff9933;
  margin-bottom: 20px !important;
  text-align: center;
}

.about-card p {
  font-size: 14px !important;
  color: #555555 !important;
  line-height: 1.6 !important;
  text-align: left !important;
  width: 100%;
}

/* Leadership Card Container Constraints */
.leadership-card {
  max-width: 1000px;
  margin: 0 auto;
}

.director-container {
  display: flex !important;
  flex-direction: row !important; /* Horizontal layout profile rows on desktop */
  gap: 25px !important;
  width: 100%;
  margin-top: 10px;
}

.director-profile {
  flex: 1 !important;
  background: #ffffff !important;
  border: 1px solid #eaeaea !important;
  border-radius: 8px !important;
  padding: 25px 20px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01) !important;
}

/* HIGHLY SPECIFIC SELECTION OVERRIDE TO EXPAND PHOTO CEILING */
.director-profile .profile-pic {
  width: 150px !important;        /* Forcefully widened window from 100px */
  height: 150px !important;       /* Balanced height tracker */
  border-radius: 50% !important;  /* Sharp circular mask bounds */
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 4px solid #fff4e6 !important; /* Elegant brand border accent frame */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin: 0 auto 5px auto !important;
}

/* GUARANTEES IMAGE EXPANDS TO OCCUPY THE WHOLE INSIDE TRACK WINDOW */
.director-profile .profile-pic img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* Clips edges evenly without flattening aspect ratios */
  display: block !important;
}

.director-info h4 {
  font-size: 18px !important;
  color: #333333 !important;
  font-weight: bold !important;
  margin-bottom: 2px !important;
}

.director-info span {
  font-size: 12px !important;
  color: #ff9933 !important;
  font-weight: bold !important;
  display: block;
  margin-bottom: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.director-info p {
  font-size: 13px !important;
  color: #666666 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}
/* Core Values checklist styles rules */
.values-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}

.values-list li {
  font-size: 14px !important;
  color: #444444 !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: flex-start !important;
}

.values-list li i {
  color: #138808; /* Deep Green checkbox tick accent marks */
  margin-right: 12px !important;
  margin-top: 4px !important;
  font-size: 14px !important;
}

/* Programs Section - Optimized 3-Column Grid for 6 Cards */
#programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fits 3 clean blocks per row on desktop */
  gap: 25px;
  margin-top: 10px;
  width: 100%;
}

.program-card {
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.program-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.program-card ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.program-card ul li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #444444;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.program-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

/* Accent Card Colors */
.program-card.cow-welfare .card-icon i, .program-card.cow-welfare h3, .program-card.cow-welfare ul li::before { color: #ff9933; }
.program-card.cow-welfare:hover { background-color: #fffaf4; }

.program-card.dairy-economy .card-icon i, .program-card.dairy-economy h3, .program-card.dairy-economy ul li::before { color: #b45309; }
.program-card.dairy-economy:hover { background-color: #fefaf0; }

.program-card.education .card-icon i, .program-card.education h3, .program-card.education ul li::before { color: #f59e0b; }
.program-card.education:hover { background-color: #fffbeb; }

.program-card.health .card-icon i, .program-card.health h3, .program-card.health ul li::before { color: #e63946; }
.program-card.health:hover { background-color: #fff5f5; }

.program-card.empowerment .card-icon i, .program-card.empowerment h3, .program-card.empowerment ul li::before { color: #1d4ed8; }
.program-card.empowerment:hover { background-color: #f0f5ff; }

.program-card.welfare .card-icon i, .program-card.welfare h3, .program-card.welfare ul li::before { color: #138808; }
.program-card.welfare:hover { background-color: #f4fbf3; }

/* ========================================================
   CONTACT US SECTION - REARRANGED HORIZONTAL GRID
   ======================================================== */
#contact {
  padding: 60px 20px;
  background-color: #fafafa;
  border-top: 1px solid #eeeeee;
  width: 100%;
}

.contact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-card {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 30px 20px !important;
  text-align: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #ff9933 !important; /* Saffron highlight on card hover */
}

.contact-icon {
  font-size: 30px !important;
  color: #ff9933 !important;
  background-color: #fff4e6 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 15px !important;
}

.contact-card h3 {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #333333 !important;
  margin-bottom: 10px !important;
}

.contact-card p, .contact-card a {
  font-size: 14px !important;
  color: #555555 !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
}

.contact-card a:hover {
  color: #ff9933 !important;
  text-decoration: underline !important;
}

/* Footer */
footer {
  background: #138808;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive Viewports (Media Queries Adaptations) */
@media (max-width: 1024px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .logo-group, .logo {
    align-items: center;
    width: auto !important;
  }
  .logo-group img, .logo img {
    margin: 0 auto !important;
  }
  .logo-group .tagline, .logo .tagline {
    text-align: center;
    white-space: normal !important;
  }
  .logo-text {
    align-items: center !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .logo-text nav {
    justify-content: center !important;
  }
  .logo-text nav a {
    margin: 0 12px;
  }
  .director-container {
    flex-direction: column !important; /* Stacks profiles vertically cleanly on tablet viewports */
  }
  #programs {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .contact-card:nth-child(3) {
    grid-column: span 2 !important;
  }
}

@media (max-width: 680px) {
  #programs {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-card:nth-child(3) {
    grid-column: auto !important;
  }
}
