* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

.heros {
  background: linear-gradient(rgba(0, 0, 0, 0.61), rgba(0, 0, 0, 0.61)), url("../assets/main3.png");
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  justify-content: center;
  height: 90vh;
  align-items: center;
  text-align: center;
  color: white;
  padding: 14% 20px;
  padding-bottom: 100px;
  border-radius: 0 0 50% 50%;
}

.heros-content {
  max-width: 800px;
}

.heros h1 {
  font-size: 3rem;
}

.heros p {
  font-size: 1.2rem;
  color: #000000;
}

.btn {
  padding: 15px 30px;
  background: #000000;
  color: white;
  font-size: 1.1rem;
  border: none;
  margin-top: 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0e0e0e;
  transition: background 0.3s ease;
}


.pillars {
  padding: 12% 20px;
  text-align: center;
}

.pillars-head{
  max-width: 1000px; 
  margin: 0 auto 40px;
  text-align: left;
  margin-bottom: 30px;
}

.pillars h2 {
  text-align: left;
  font-size: 2rem;
}

.pillars p {
  font-size: 1.1rem;
  color: #555;
}

.pillars-head p{
  max-width: 700px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#pillar-grid-II{
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.pillar {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.158);
  transition: transform 0.3s ease;
}

.pillar:hover {
  transform: translateY(-5px);
}

.pillar img{
  width: 210px;
  height: 157px;
}

.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: black;
}

.pillar p {
  font-size: 1rem;
  color: #444;
}

.stats {
  background: #fff;
  padding: 50px 20px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat{
  margin: 10px 0;
}

.stat h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
}

.stat p {
  font-size: 1rem;
  color: #555;
}

.facilities {
  padding: 12% 20px;
  background: #fff;
  text-align: center; 
}

.facilities-head{
  text-align: left;
  max-width: 90%;  
  margin: 0 auto 40px;
}

.facilities h2 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #111;
  position: relative;
  display: inline-block; 
}


.facilities p {  
  color: #555;
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
}


.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.facility-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.226);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.facility-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.facility-content {
  padding: 20px;
  text-align: left;
}

.facility-content h3 {
  font-size: 1.3rem;
  margin: 10px 0;
  color: #000;
}

.facility-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
}

.facility-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.facility-content ul li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: #222;
}

.facility-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}

.icon-box {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}


.learn-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.learn-btn:hover {
  background: #333;
}


@media (max-width: 992px) {
  .facility-grid {
    grid-template-columns: repeat(2, 1fr); 
  }

  .stat h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .heros h1 {
    font-size: 3rem;
  }

  .heros p {
    font-size: 1.6rem;
    padding: 0 20px;
  }

  .btn {
    padding: 25px 50px;
    font-size: 1.5rem;
  }

  #pillar-grid-II{
    display: grid;
  }

  .pillars-head {
    margin: 0;
    margin-bottom: 30px;
  }

  .pillars h2 {
    font-size: 2.5rem;
  }

  .pillars p {
    font-size: 1.4rem;
  }

  .pillar h3 {
    font-size: 1.6rem;
  }

  .pillar p {
    font-size: 1.2rem;
  }

  .stats .stats-grid {
    justify-content: center;
  }

  .stats .stats-grid {
    gap: 15%;
  }

  .facilities-head {
    margin: 0;
    margin-bottom: 30px;
  }

  .facilities h2 {
    font-size: 2.5rem;   
  }

  .facilities p {
    font-size: 1.4rem;
    line-height: 1.1;
    padding: 0 10px;   
  }

  .facility-content h3 {
    font-size: 1.4rem;
  }

  .facility-card ul li{
    font-size: 1rem;
  }

  .learn-btn {
    font-size: 0.91rem;
  }
}

@media (max-width: 600px) {

  .pillar-grid {
    grid-template-columns: none;
    justify-content: center;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat h2 {
    font-size: 1.7rem;
  }
}


@media (max-width: 480px) {
  .heros{
    padding-top: 20%;
    padding-bottom: 10%;
    border-radius: 0 0 48% 48%;
    background: linear-gradient(rgba(0, 0, 0, 0.61), rgba(0, 0, 0, 0.61)), url("../assets/hmeblogs2.jpg");
    height: 60vh;
  }

  .heros h1 {
    line-height: 1.1;
    margin-bottom: 10px;
    font-size: 42px;
  }

  .heros-content p {
    padding: 0 40px;
    font-size: 18px;
    line-height: 1;
  }

  .btn {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .facilities p {
    padding: 0;
  }

  .pillars{
    padding: 20% 20px;
  }

  .pillars h2{
    font-size: 40px;
  }

  .pillar h3{
    font-size: 1.6rem;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .pillars p {
    font-size: 1.2rem;
  }

  .stat h2 {
    font-size: 2rem;
  }

  .stat p{
    font-size: 17.5px;
  }

  .facilities-head{
    margin: 0;
    margin-bottom: 40px;
  }

  .facilities h2{
    font-size: 40px;
  }
}

@media (max-width: 400px) {

  .heros{
    padding-top: 30%;
    padding-bottom: 15%;
    border-radius: 0 0 48% 48%;
    background: linear-gradient(rgba(0, 0, 0, 0.61), rgba(0, 0, 0, 0.61)), url("../assets/hmeblogs2.jpg");
    height: 60vh;
  }

  .heros h1 {
    line-height: 1.1;
    margin-bottom: 10px;
    font-size: 32px;
  }

  .heros-content p {
    padding: 0 20px;
    line-height: 1;
    font-size: 16px;
    padding: 0 50px;
  }

  .pillars h2{
    line-height: 1.2;
  }

  .stats .stats-grid {
    justify-content: space-between;
  }

  .stats .stats-grid {
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr; 
  }

  .stat h2 {
    font-size: 1.5rem;
  }

  .pillars h2{
    font-size: 35px;
  }

  .pillars p{
    font-size: 16.5px;
  }

  .facilities h2{
    font-size: 35px;
  }

  .facilities p {
    line-height: 1.2;
    font-size: 16.5px;
  }

  .facilities-head {
    margin-bottom: 30px;
  }
}