.about-nadi {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
  .tit-section {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background: #D33D03;
    font-family: 'Abhaya Libre', serif;  
    }
.title {
  font-size: 30px;
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  color: #000;
  text-align: center;
  position: relative;
  margin: 30px 0;
}
.title::before,
.title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 280px;    
  height: 1px;
  background: #000;
}
.title::before {
  left: 0;
}
.title::after {
  right: 0;
}
.subtitle {
font-size:20px;
color: #D33D03;
margin-bottom: 25px;
font-family: 'Abhaya Libre', serif;
}
.description {
 font-family: 'Abhaya Libre', serif;
font-size: 20px;
color: #444;
line-height: 1.8;
text-align: center;
}
.description span {
  display: contents;
  text-align: center;
}
.rishis {
  background: #fff;
  padding: 60px 20px;
}
.rishi-title {
  text-align: center;
   font-family: 'Abhaya Libre', serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #D33D03 ;
}
.rishi-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 25px;
  align-items: start;
}
.rishi-card {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.6s, box-shadow 0.3s;
}
.rishi-card img {
  width: 100%;
  /* height: 290px; */
  object-fit: cover;
  object-position: center 65%;
  border-radius: 10px;
  display: block;
  object-position: center 70%;

}
/* Only Agathiyar image */
.rishi-card:first-child .rishi-img-wrap img {
  object-position: center 80%;
}

.rishi-card p {
 font-family: 'Abhaya Libre', serif;
font-size: 25px;
margin-top: 12px;
 font-weight: 600;
color: #D33D03;
}
.rishi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.nadi-section {
    max-width: 1100px;
    margin: auto;
    padding: 40px 120px;
}
.nadi-card {
    background-color: #D33D03;
    color: #ffffff;
    border-radius: 18px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.nadi-card reverse {
    flex-direction: row-reverse;
}
.nadi-image img {
  width: 1000px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.25);
}
.nadi-text h2 {
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: #000;
}
.nadi-text p {
    font-size: 20px;
    line-height: 1.20;
}

.rishi-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 🔥 KEY FIX */
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;   /* 🔥 centers image vertically */
  justify-content: center;
}

.rishi-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {

  .title {
    font-size: 22px;
  }

  .title::before,
  .title::after {
    width: 60px;
  }

  .subtitle {
    font-size: 16px;
  }

  .description {
    font-size: 16px;
    line-height: 1.6;
  }

  .rishi-grid {
    grid-template-columns: 1fr;
  }

  .rishi-card p {
    font-size: 20px;
  }

  .nadi-section {
    padding: 20px;
  }

  .nadi-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    gap: 25px;
  }

  .nadi-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
  }

  .nadi-image img {
    width: 100%;
    height: 100%;
  }

  .nadi-text h2 {
    font-size: 20px;
  }

  .nadi-text p {
    font-size: 16px;
    line-height: 1.5;
  }
}
@media (min-width: 601px) and (max-width: 900px) {

  .title::before,
  .title::after {
    width: 140px;
  }

  .rishi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nadi-section {
    padding: 30px 40px;
  }

  .nadi-card {
    gap: 30px;
    padding: 30px;
  }

  .nadi-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
  }

  .nadi-image img {
    width: 100%;
    height: 100%;
  }

  .nadi-text p {
    font-size: 18px;
  }@media (min-width: 901px) {
  .nadi-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
  }

  .nadi-image img {
    width: 100%;
    height: 100%;
  }
}

}



/* NAVBAR */
.navbar {
  background: rgb(255, 166, 0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  flex-wrap:wrap;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap:wrap;
}

.navbar li a{
  text-decoration:none;
  font-size:15px;
  font-weight:bold;
  color:#4b2003;
}

.navbar li a:hover { 
  color:#fff; 
}

.email{
  font-size:14px;
  color:#4b2003;
}

/* =============================== */
/* ✅ TABLET VIEW */
/* =============================== */
@media (max-width: 900px){

  .container{
    grid-template-columns:1fr;
    gap:30px;
  }

  .tit-section h1{
    font-size:34px;
  }

  .navbar{
    flex-direction:column;
    gap:8px;
  }

  .navbar ul{
    justify-content:center;
    gap:15px;
  }

  .navbar li a{
    font-size:13px;
  }

  .email{
    font-size:12px;
  }
}

/* =============================== */
/* ✅ MOBILE VIEW */
/* =============================== */
@media (max-width: 600px){

  .tit-section{
    padding:20px 10px;
  }

  .tit-section h1{
    font-size:28px;
  }

  .container{
    width:92%;
    margin:25px auto;
  }

  .form-box{
    padding:18px;
  }

  .form-box h2{
    font-size:20px;
  }

  form input,
  form textarea{
    font-size:13px;
    padding:10px;
  }

  form button{
    padding:12px;
    font-size:14px;
  }

  .info-card{
    padding:18px;
  }

  .info-card h3{
    font-size:16px;
  }

  .info-card p{
    font-size:13px;
    line-height:1.5;
  }

  .navbar ul{
    gap:10px;
  }

  .navbar li a{
    font-size:12px;
  }

  .email{
    font-size:11px;
  }

  .map{
    height:250px;
  }
}

/* =============================== */
/* ✅ EXTRA SMALL (VERY SMALL DEVICES) */
/* =============================== */
@media (max-width: 400px){

  .navbar li a{
    font-size:11px;
  }

  .email{
    font-size:10px;
  }

  .tit-section h1{
    font-size:24px;
  }

}