#second-block, #third-block, #fourth-block, #fifth-block, #sixth-block, #seventh-block, #eighth-block, #ninth-block, #tenth-block
{
  padding: 2rem 0;
}

#second-block
{
  background: #bab1b2;
}
#third-block
{
  background: #eaf7fd;
}
#fourth-block
{
  background: #ffffff;
}
#fifth-block
{
  background: #eaf7fd;
}
#sixth-block
{
  background: #f0f0f0;
}
#seventh-block
{
  background: #eaf7fd;
}
#eighth-block
{
  background: #eaf7fd;
}
#ninth-block
{
  background: #eaf7fd;
}
#tenth-block
{
  background: #eaf7fd;
}

/* quick-menu -FrontPage - START*/


#first-block
{
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* height: 60vh;  full viewport height (or set custom height) */
  background-image: url('bg_sec-first.jpg');
  background-repeat: no-repeat;
  background-position: center -40px; /* center horizontally & vertically */
  background-size: cover; /* scales proportionally to cover entire div */
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #cfcfcf;
}

#first-block .section-wrapper
{
  background-color: transparent;
  width: 100%;
  padding: 0;
  margin: 0;
  padding-top: 10px;
}
/* rest plz check navigation.css*/
/* quick-access-menu -FrontPage - END*/

/* aboutus -FrontPage - END*/
/* aboutus -FrontPage - END*/
.aboutus-wrap
{
  margin: 0;
  margin-bottom: 2rem;
}

.aboutus-wrap .details-box img
{
  width: 100%;
  border-radius: 10px;
}

.aboutus-wrap .right-column,
.aboutus-wrap .tiles
{
  gap: 2rem;
}

.right-column .details-box h2
{
  line-height: 1;
  padding: 0;
}

.about-tiles
{
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 100px;

  display: flex;
  flex-wrap: nowrap; /* keeps tiles side-by-side */
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.about-tiles .details-box
{
  border: 1px solid #f5f5f5;
  flex: 1 1 50%;
  padding: 1rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.about-tiles .details-box img
{
  width: 90%;
}

.objective p
{
padding-bottom: 10px;

}

.about-objective
{
  padding-bottom: 6px;
}

.intro-text p
{
  padding-bottom: 10px;
}

.intro-text p:last-child
{
  padding-bottom: 0;
}

.about-tiles .objective
{
  display: block;
  text-align: left;
}

.about-objective-list{
	padding: 5px 0;
}
.about-objective {
  font-size: 0.9rem;
 font-weight: 600;
 margin-top: 15px;
  display: flex;
  align-items: center; /* Vertically center icon + text */
  gap: 5px; /* Optional: adds spacing between icon and text */
}
.about-objective .icon {
  width: 18px;
  height: 18px;
 border: 1px solid #000;
}
/* aboutus -FrontPage - END*/

/* MEMBERS*/
.members-tiles
{
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 100px;
}

#fifth-block {
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* height: 60vh;  full viewport height (or set custom height) */
  background-image: url('bg_sec_fifth.jpg');
  background-repeat: no-repeat;
  background-position: center top; /* center horizontally & vertically */
  background-size: cover; /* scales proportionally to cover entire div */
}

/*MEMBERS*/

.ameeting-tiles
{
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
}

.recent-news-tiles
{
  grid-template-columns: repeat(1, 1fr);
  grid-auto-rows: 100px;
}

/* Heads of Institutions - START */

#second-block .text-center h2
{
  line-height: 1;
}

#second-block .text-center
{
  margin-bottom: 2rem;
}


.view-views-aebf-heads .tile
{
  background-color: unset;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.heads-tiles
{
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
}
.heads-tiles .tile{
  display: grid;
  align-items: start; /* aligns content to top */
  background-color: #dcdcdc;
}

.heads-block
{
  display: block;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.heads-photo
{
  background-color: #ffffff;
  position: relative; /* Needed to position .description absolutely inside */
  overflow: hidden;
  border-left: 1px solid #d2d2d2;
  border-top: 1px solid #d2d2d2;
  border-right: 1px solid #d2d2d2;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

.heads-photo img
{
  width: 100%;
  display: block;
}

/* Hidden text overlay */
.heads-info
{
  position: absolute;
  bottom: 0px;
  left: 1.5%;
  width: 98%;
  height: auto;
  background-color: rgba(52, 65, 124, 0.95);
/*   */
  padding: 8px 0;
  display: block;
  align-items: center;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2; /* Make sure it’s on top */
  pointer-events: none;
  border-radius: 8px 8px 0 0;
 line-height: 1.5;
letter-spacing: -.5;
}
/* On hover: reveal the overlay - Heads Photo Rollover Animation */
.heads-block:hover .heads-info
{
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.name
{
  text-align: center;
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #5b57a6;/*#4f4f4f;*/
 letter-spacing: -0.5px;
  border-top: 2px solid #ed3336;
  border-radius: 0 0 10px 10px;
}
.country
{
  font-size: 16px;
 letter-spacing: .5px;
 padding-top: 5px;
  font-weight: 600;
  color: #b1357e;
}
.designation, .institution
{
  font-size: 13px;
  color: white;
  text-align: center;
}
/* Heads of Institutions - END */

/* Milestone - START */
.milestone-tiles
{
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 100px;
}

.view-milestone-view .tile
{
  background-color: unset;
}

/* Members - START */
.view-member-details .tile
{
  background-color: unset;
  box-shadow: none;
}

/* NwesRoom - START */
/* NEWS SECTION*/
.news-img img,
.news-info .news-img img
{
  padding: 0;
  margin: 0;
  border-radius: 8px;
}

.news-info
{
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center; /* Vertically center icon + text */
  padding: 5px;
}
.views-row{
  border-bottom: 1px solid #dcdcdc;
}
.views-row:last-child{
 border-bottom: none;
}

.news-date,
.news-member
{
  display: flex;
  align-items: center; /* Vertically center icon + text */
  gap: 5px; /* Optional: adds spacing between icon and text */
  font-size: 0.8rem;
}

.news-info .news-img,
.news-infox .news-detail
{
  display: flex;
  margin: 0;
  padding: 0;
}

.news-date,
.news-info .news-img
{
  flex: 1 1 25%;
  padding: 0;
  margin: 0;
  /*border: 1px solid #fc2147;*/
}
.news-member,
.news-infox .news-detail
{
  flex: 1 1 70%;
  padding: 0;
  margin: 0;
}

.news-detail
{
  position: relative;
  width: auto;
  padding: 10px 20px;
  text-align: left;

}
.news-heading
{
  font-size: 1.2rem;
  margin: 0;
  margin-bottom: 10px ;
  padding: 5px;
}

.news-detail .detail-info
{
  position: absolute;
  right: 0;
  bottom: 0; /* or wherever you want */
  margin: 0 10px 10px 0;
}
/*
.news-detail .btn .icon
{
  background-color: #ffffff;
}
*/
.right-column .mail-to
{
  padding: 10px;
  background-color: #5b57a6;
  cursor: pointer;
  text-align: center;
}

.right-column .mail-to:hover
{
  background-color: #b1357e;
}

.right-column .mail-to h3
{
  line-height: 1;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 600px)
{
  .content-container
  {
    flex-direction: column;
  }

  .left-column,
  .right-column
  {
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .left-column
  {
    grid-template-columns: 1fr;
  }

  .heads-tiles
  {
    grid-template-columns: repeat(3, 1fr);
  }
  .milestone-tiles
  {
    grid-template-columns: repeat(1, 1fr);
  }
  .column-wrap
  {
    flex-direction: column;
    gap: 1rem; /* reduce spacing for mobile */
  }

  .left-column,
  .right-column
  {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .members-wrap
  {
    flex-direction: column; /* stack left and right columns */
  }

  .member-info
  {
    height: auto !important; /* allow natural height on mobile */
    padding-bottom: 1rem;
  }


  @media (max-width: 768px)
  {
    #second-block, #third-block, #fourth-block, #fifth-block, #sixth-block, #seventh-block, #eighth-block, #ninth-block, #tenth-block
    {
      padding: 1rem 0;
    }
    .aboutus-wrap .right-column,
    .aboutus-wrap .tiles
    {
      gap: 0.5rem;
    }

    .about-tiles .details-box img
    {
      width: 100%;
    }

    .quick-menu ul
    {
      padding: 10px;
    }
    .quick-menu a .icon
    {
      width: 50px;
      height: 50px;
    }
    .quick-menu li a
    {
      margin: 0 auto;
      padding: 10px;
      width: 90%;
    }
    .news-detail
    {
      padding: 10px;
      font-size: 0.95rem;
    }

    .news-img img
    {
      width: 100%; /* Make image fill container */
      height: auto;
    }

    .news-info
    {
      flex-direction: column;
      gap: 1rem;
      padding: 5px;
    }

    .news-date,
    .news-member
    {
      width: 100%; /* Stack them vertically */
      justify-content: flex-start; /* Optional: left-align content */
    }

    .news-heading
    {
      font-size: 1rem;
      padding: 0;
      margin-bottom: 8px;
    }

    .btn
    {
      width: 100%; /* Full width button */
      justify-content: center;
      padding: 8px;
      font-size: 1rem;
    }

    .news-detail .detail-info
    {
      position: static; /* Remove absolute positioning */
      margin-top: 10px;
      margin-left: 0;
      text-align: center;
      display: block;
    }
  }

  @keyframes fadeUp
  {
    to {
    opacity: 1;
    transform: translateY(0);
  }
}
