
/* ===== OUTER FRAME ===== */
.seva-card-frame {
  background: #f8f2e9;
  padding: 15px 10px;
  border-radius: 20px;

  border: 2px solid #ff5722;
  border-top: 1px solid #ff7300; 
  border-bottom: 1px solid #ff9900;

  margin: 20px auto;
  max-width: 99%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  transition: 0.3s ease;
}

.seva-card-frame:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

.seva-card-frame .seva-card-header {
  margin: 2px auto;
}

/* ===== CARD HEADER ===== */
.seva-card-header {
  padding: 5px 5px;
  display: flex;
  justify-content: center;
}

/* ===== CARD CONTENT ===== */
.seva-card-content {
  width: 100%;
  max-width: 100%;
  padding: 8px;

  border: 1px solid #581111;
  border-top: 1px solid #ac7777;
  border-bottom: 1px solid #4c1d1d;
  border-radius: 50px;

  background-color: #efe4d1;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);

  transition: 0.3s ease;
}

.seva-card-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ===== FLEX LAYOUT (FIXED) ===== */
.seva-card-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* center ऐवजी */
  gap: 15px;
  flex-wrap: nowrap;
  padding-left: 40px;            /* alignment fix */
}

/* ===== IMAGE (FIXED) ===== */
.seva-card-img {
  width: 90px;
  height: 120px;
  margin: 5px;
  min-width: 90px;      /* equal width */
  flex-shrink: 0;       /* image shift होऊ नये म्हणून */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff5722;
}

/* ===== TEXT ===== */
.seva-card-text {
  text-align: center;
  width: 100%;
}

.seva-card-text h1 {
  color: #bf360c;
  font-size: clamp(18px, 3vw, 30px);
  margin-bottom: 5px;
  white-space: nowrap;
}

.seva-card-text p {
  color: #e64a19;
  font-size: clamp(14px, 2vw, 16px);
  margin: 2px 0;
  white-space: normal;
  word-break: break-word;
}


.seva-card-text2 p {
  font-size: clamp(14px, 2vw, 16px);
  margin: 2px 0;
  white-space: normal;
  word-break: break-word;

  /* Gradient text */
  background: linear-gradient(
    90deg, 
    #2c4b79 16.6%,
    #0b3c6c 33.2%,
    #2da233 49.8%,
    #a29350 66.4%,
    #fb8c00 83%,
    #d81b60 100%
  );

  /* Standard property for compatibility */
  background-clip: text;

  /* Vendor-specific for WebKit */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: bold;
}

.seva-card-text2 h1 {
  color: #834d3d;
  font-size: clamp(15px, 3vw, 25px);
  margin-bottom: 2px;
  text-align: center;
  white-space: nowrap;
}



/* ===== MOBILE FIX ===== */
@media (max-width: 600px) {

  .seva-card-frame {
    padding: 10px 6px;
  }

  .seva-card-content {
    padding: 8px;
    border-radius: 15px;
  }

  .seva-card-flex {
    flex-direction: row;
    gap: 5px;
    padding-left: 10px;
  }

  .seva-card-img {
    width: 60px;
    height: 90px;
    min-width: 60px;
  }

  .seva-card-text h1 {
    font-size: 18px;
  }

  .seva-card-text p {
    font-size: 12px;
    white-space: normal;

    
  }

  
}



/* ===== वृक्षदानातून निसर्गसेवा ===== */

.main-box {
  text-align: center;
}

/* ===== OVAL TITLE - Nature Green Theme ===== */
.oval-title {
  display: inline-block;
  padding: 14px 30px;
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;

  /* 🌿 Rounded Green Background */
  background: linear-gradient(135deg, #a5d6a7, #43a047);
 border-top-left-radius: 100px;
 border-bottom-right-radius: 100px ;

  /* 🌳 Border */
  border: 0.5px solid #2e7d32;

  /* 🌿 Text Gradient */
  background-clip: text;
  -webkit-background-clip: text;

  /* Important Trick */
  color: #1b5e20;

  transition: all 0.3s ease;
}

/* Hover Effect */
.oval-title:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 100, 0, 0.35);
}



/* ===== फिरता बॉर्डर  ===== */

.main-box {
  text-align: center;
}

/* ===== OVAL TITLE ===== */
.oval-title {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;

  background: #ffffff;   /* White background inside */
  color: #1b5e20;

  border-top-left-radius: 100px;
  border-bottom-right-radius: 100px;

  z-index: 1;
  overflow: hidden;

  transition: all 0.3s ease;
}

/* 🔴 Single Red Rotating Border */
.oval-title::before {
  content: "";
  position: absolute;
  inset: -3px;   /* Border thickness */

  border-top-left-radius: 110px;
  border-bottom-right-radius: 110px;

  background: conic-gradient(
    from 0deg,
    rgb(255, 0, 0) 0deg 90deg,
    transparent 90deg 360deg
  );

  animation: rotateBorder 3s linear infinite;
  z-index: -2;
}

/* Inner Layer */
.oval-title::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #ffffff;

  border-top-left-radius: 100px;
  border-bottom-right-radius: 100px;

  z-index: -1;
}

/* Rotation Animation */
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hover */
.oval-title:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(200, 0, 0, 0.35);
}

