/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container-fluid {
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* Add this for proper stacking context */
}

.nav1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
}

.logo {
    height: auto;
    width: 150px;
}

.name {
    color: #2c7d2c;
    margin: 0;
    font-size: 2.5rem;
    border-bottom: 2px solid rgb(35, 109, 6);
    font-weight: bold;
}

.jai-jawan {
    color: #ff6b00;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.donate-btn {
    background-color: #ff6b00;
    color: white;
    border: none;
    padding: 25px 35px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.donate-btn:hover {
    background-color: #e05d00;
}

/* Fixed Sticky Navigation */
.menu-bar {
    background-color: #2c7d2c;
    padding: 0 20px;
    width: 100%;
}

.menu-bar.position {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1020; /* Higher than default Bootstrap z-index */
}

.menu-bar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-bar li {
    padding: 15px 20px;
    white-space: nowrap;
}

.menu-bar li:last-child {
    margin-left: auto; /* Push search to right */
}

.menu-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-bar a:hover {
    color: #ffcc00;
}

.menu-bar input.place {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    min-width: 200px;
}

/* Main Content Styles */
.pic-video {
    position: relative;
    width: 100%;
    margin-top: 0; /* Ensure no gap above */
}

.pic-farmer {
    width: 100%;
    height: auto;
    display: block;
}

.main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
}

.mera {
    color: #ffcc00;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    white-space: pre-wrap;
}

.bhartiya {
    color: white;
    font-size: 1rem;
    margin: 20px 0 0;
    white-space: pre-wrap;
}
.slider-container {
    width: 100%;
    overflow: hidden;
    background-color: #2c7d2c;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(150px * 14); /* Double the original items */
}

.slider-item {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    margin: 0 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}
/* 
.slider-2{

    background-color: grey;
    width: 100%;
    height: 100vh;
    
    justify-content: center;
    
}

.slider-2 h1{
    color: white;
    font-size: 3rem;
    
    text-align: center;
}

 */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 7 - 25px * 14)); /* Move by half of total width */
    }
}

/* Pause on hover */
.slider-track:hover {
    animation-play-state: paused;
}
/* 
.team-member{

    display: flex;
    height: 100vh;
    
    justify-content: center;

}

.member-card{
    border: 2px solid white;
    width: 500px;
    height: 400px;
    margin: 10px;
    overflow: hidden;
    background-color: green;

}

.member-card img{
    width: 100%;
    height: 70%;
    object-fit: cover;
    

} */
.slider-2 {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .slider-2 h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    display: inline-block;
  }
  
  .slider-2 h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a89dc;
  }
  
  .team-container {
    position: relative;
    width: 100%;
    padding: 10 150px;
    overflow: hidden;
  }
  
  .team-members {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    /* overflow: hidden; */
  }
  
  .member-card {
    min-width: calc(100% / 4);
    padding: 0 15px;
    transition: all 0.3s;
    /* overflow: hidden; */
  }
  
  .member-card:hover {
    transform: translateY(-10px);
  }
  
  .member-card a {
    display: block;
    text-decoration: none;
    color: #333;
  }
  
  .member-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 5px solid white;
  }
  
  .member-card:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  .member-name {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .member-position {
    color: #777;
    font-size: 0.9rem;
    margin-top: 5px;
  }
  
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
  }
  
  .nav-btn:hover {
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  }
  
  .prev-btn {
    left: 0;
  }
  
  .next-btn {
    right: 0;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
  }
  
  .pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .pagination-dot.active {
    background: #4a89dc;
    transform: scale(1.2);
  }

  .all-members{

    margin-top: 70px;
    
  }

  .a-members{
    text-decoration: none;
   font-size: 20px;
    font-weight: bold;
    padding: 20px 35px;
    color: #333;
    background-color: #e05d00;
    border-radius: 95px;
  }

    .a-members:hover{
        background-color: #ff6b00;
        color: white;
    }


    .farm-about-section {
      width: 100%;
      overflow: hidden;
      font-family: 'Open Sans', sans-serif;
    }
    
    .farm-pic {
      background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      padding: 100px 20px;
      position: relative;
      color: white;
      min-height: 100vh;
      display: flex;
      align-items: center;
    }
    
    .farm-pic::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(27, 94, 32, 0.9) 100%);
      animation: gradientShift 15s ease infinite alternate;
    }
    
    .content-wrapper {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      backdrop-filter: blur(5px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      transform: translateY(20px);
      opacity: 0;
      animation: fadeInUp 1s 0.5s forwards;
    }
    
    /* Typography */
    h1 {
      font-size: 3rem;
      margin-bottom: 30px;
      text-align: center;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .farm-text p {
      font-size: 1.2rem;
      line-height: 1.8;
      margin-bottom: 25px;
      text-align: center;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }
    
    /* Button Styles */
    .read-more-btn {
      display: block;
      width: 220px;
      padding: 15px 0;
      margin: 40px auto 0;
      background-color: #FFC107;
      color: #2E7D32;
      border: none;
      border-radius: 50px;
      font-size: 1.1rem;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.4s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      position: relative;
      overflow: hidden;
    }
    
    .read-more-btn:hover {
      background-color: #FFD54F;
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .read-more-btn::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      transition: 0.5s;
    }
    
    .read-more-btn:hover::after {
      left: 100%;
    }

    .author{

      text-decoration: none;
    }
    
    /* Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes gradientShift {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }
    
    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
      100% {
        transform: scale(1);
      }
    }
    
    @keyframes textSlide {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    /* Animation Classes */
    .title-animate {
      animation: fadeInUp 1s 0.2s forwards;
    }
    
    .text-slide {
      opacity: 0;
      transform: translateX(-20px);
      animation: textSlide 0.8s forwards;
    }
    
    .text-slide:nth-child(1) {
      animation-delay: 0.4s;
    }
    
    .text-slide:nth-child(2) {
      animation-delay: 0.6s;
    }
    
    .pulse {
      animation: pulse 2s infinite;
    }
    
    /* Responsive Design */
    @media (max-width: 992px) {
      .farm-pic {
        padding: 80px 20px;
        background-attachment: scroll;
      }
      
      h1 {
        font-size: 2.5rem;
      }
      
      .farm-text p {
        font-size: 1.1rem;
      }
    }
    
    @media (max-width: 768px) {
      .content-wrapper {
        padding: 30px 20px;
      }
      
      h1 {
        font-size: 2rem;
      }
      
      .farm-text p {
        font-size: 1rem;
        text-align: left;
      }
      
      .read-more-btn {
        width: 180px;
        padding: 12px 0;
      }
    }
    
    @media (max-width: 480px) {
      .farm-pic {
        padding: 60px 15px;
      }
      
      .content-wrapper {
        padding: 25px 15px;
      }
      
      h1 {
        font-size: 1.8rem;
      }
      
      .read-more-btn {
        width: 160px;
        font-size: 1rem;
      }
    }

#gallary img{

    width: 20%;
    height: 20%;
    padding-left: 30px;
    padding-top: 20px;
    border: 1px solid black;

  
}

#gallary{
  margin: 30px auto;
  
  
}



#gallary img:hover{
  transform: scale(1.1);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  filter: brightness(0.8);
  border-radius: 20px;
  border: none;


 
}

.footer{

  width: 100%;
  height: 100vh;
  background-color: #2c7d2c;
}

.sub-text{

  color: white;
  font-size: 1.5rem;
  margin-top: 20px;
  text-align: left;
  font-weight: bold;
}

.mail-icon{

  width: 50px;
  height: 50px;
  margin-left: 20px;
  margin-top: 20px;
  filter: brightness(0) invert(1);
}
 
.mail-svg{

  /* display: flex; */
  filter: invert(1);
  padding-bottom: 5px;
  
}


.social-links {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  /* margin-left: 40px; */
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border: 1px solid #D2B48C; /* Light brown border */
  border-radius: 50%; /* Circular shape */
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  color: #8B4513; /* Brown color for SVG */
}

.social-icon:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
}

/* Different hover colors for each icon */
.social-icon:nth-child(1):hover svg { /* Facebook */
  color: #4267B2;
}

.social-icon:nth-child(2):hover svg { /* Twitter/X */
  color: #000000; /* Twitter's black color */
}

.social-icon:nth-child(3):hover svg { /* Instagram */
  color: #E1306C;
}
 
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f76612;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(233,30,99,0.3);
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: #ad5f06;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233,30,99,0.4);
}

.donate-btn:active {
  transform: translateY(1px);
}

.donate-btn svg {
  width: 20px;
  height: 20px;
}


  @media (max-width: 992px) {
    .member-card {
      min-width: calc(100% / 3);
    }
  }
  
  @media (max-width: 768px) {
    .member-card {
      min-width: calc(100% / 2);
    }
  }
  
  @media (max-width: 576px) {
    .member-card {
      min-width: 100%;
    }

 
  }




/* Responsive Design */
@media (max-width: 992px) {
    .menu-bar ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-bar li {
        padding: 10px 15px;
    }
    
    .menu-bar li:last-child {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav1 {
        flex-direction: column;
        text-align: center;
    }
    
    .mera {
        font-size: 1.5rem;
    }
    
    .bhartiya {
        font-size: 0.8rem;
    }
    
    .main-text {
        position: static;
        transform: none;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .menu-bar li {
        padding: 8px 10px;
    }
    
    .menu-bar input.place {
        min-width: 150px;
    }
   

}


.footer-container {
  background-color:#2c7d2c;
  color: white;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-family: Arial, sans-serif;
  margin-top: 10px;
}

.footer-section {
  padding: 15px;
}

.footer-section h3 {
  color: #f39c12;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.subscribe-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
}

.subscribe-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
}

.quick-links {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin-bottom: 8px;
}

.quick-links a {
  color: white;
  text-decoration: none;
}

.donate-btn1 {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
}

.events-list {
  list-style: none;
  padding: 0;
}

.events-list li {
  margin-bottom: 8px;
}

.events-list span {
  color: #f39c12;
  font-weight: bold;
}



.copyright {
  background-color: #1a252f;
  color: white;
  text-align: center;
  padding: 15px;
  grid-column: 1 / -1;
  
}

.footer-logo{

  width: 200px;
  height: 180px;
}

@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
  }
}

.about-section {
  padding: 4rem 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('pic/farmer.jpg') center/cover no-repeat;
  color: white;
  position: relative;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.read-more-btn {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.read-more-btn:hover {
  background-color: #219653;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .about-title {
    font-size: 2.2rem;
  }
  
  .about-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 1rem;
  }
  
  .about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .about-content {
    padding: 1.2rem;
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 2rem 0.5rem;
  }
  
  .about-title {
    font-size: 1.8rem;
  }
  
  .about-text {
    white-space: normal;
    text-align: left;
  }
  
  .read-more-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
