/* ------------------------------------------
   Hero Section
------------------------------------------ */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-content {
    background-color: #FED672;
    display: inline-block;
    padding: 5rem 3rem;
    margin: 0 auto;
    height: auto;
    min-height: 35rem;
    width: 90%;
    max-width: 65rem;
    border-radius: 1.25rem 23.4rem 3.12rem 1.25rem;
}

.hero-text-light{
    font-family: var(--font-primary);
    font-size: 3.2rem;
    font-weight: 300;
}

.hero-text-bold {
    font-size: 12.5rem;
    font-weight: 800;
    line-height: 10rem;
}

.hero-content p {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 87%;
    font-size: 5.5rem;
    color: #252422;
    position: relative;
    text-align: left;
}

.hero-content p::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    left: 0;
    width: 8rem;
    height: 0.1rem;
    background-color: #252422;
}

/* ------------------------------------------
   Teams Section
------------------------------------------ */
.board-members-header {
    margin: 5rem auto 8rem auto;
    padding-left: 2rem;
    letter-spacing: 0;
    position: relative;
    line-height: 5rem;
    max-width: 120rem;
}

.board-members-header p {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: 3rem;
    text-align: left;
    margin: 0;
}

.board-members-header h2 {
    text-align: left;
    color: var(--primary-color-2);
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    font-size: 11rem;
    margin: 2rem 0 0 0;
    line-height: 10rem;
    position: relative;
}

.board-members-header h2::after {
    content: '';
    display: block;
    width: 20rem;
    height: 0.2rem;
    background-color: var(--primary-color-2);
    margin: 2rem 0 0 0;
    position: absolute;
    left: 0;
    bottom: -3rem;
}

.team-members .board-members-header h2{
    text-transform: uppercase;
    color: #C74A9B;
}

/* ------------------------------------------
   Board Members Grid - Updated to Flexbox
------------------------------------------ */
.board-members-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem 12rem 2rem; 
    max-width: 120rem;
    margin: 0 auto;
}

.board-row {
    display: flex;
    justify-content: center;
    gap: min(7.3rem, 5vw);
    width: 100%;
    max-width: 100%;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.member-card {
    position: relative;
    background-image: url('/public/shapes/img-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 26rem;
    width: 100%;
    min-width: 20rem;
    max-width: 28rem;
    flex: 0 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-card .member-image {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    mask-image: url('/public/shapes/img-bg.png');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-image: url('/public/shapes/img-bg.png');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: filter 0.3s ease;
}

.member-card .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    z-index: 5;
}

.member-card:hover .hover-overlay {
    opacity: 1;
}

.member-card:hover img {
    filter: brightness(0.8);
}

.member-card .member-image::after {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #436E55B2;
   opacity: 0;
   transition: opacity 0.3s ease;
   pointer-events: none;
   z-index: 2;
   mask-image: url('/public/shapes/img-bg.png');
   mask-size: 100% 100%;
   mask-repeat: no-repeat;
   mask-position: center center;
   -webkit-mask-image: url('/public/shapes/img-bg.png');
   -webkit-mask-size: 100% 100%;
   -webkit-mask-repeat: no-repeat;
   -webkit-mask-position: center center;
}

.member-card:hover .member-image::after {
   opacity: 1;
}

.hover-overlay .description {
    font-family: var(--font-primary);
    font-size: 1.875rem;
    line-height: 1.4;
    font-weight: 400;
    max-width: 100%;
}

/* Individual board member descriptions */
.member-card:nth-child(1) .hover-overlay .description::after {
    content: "Co-Director and Managing Trustee, is a researcher, writer, and design programs. She has been an active member in the Indian women's movement for the past 45 years.";
}

.member-card:nth-child(2) .hover-overlay .description::after {
    content: "Co-Director and Managing Trustee, is a professional social worker, trainer, public awareness campaign specialist and an active member of the Indian women's movement.";
}

.member-card:nth-child(3) .hover-overlay .description::after {
    content: "Ex Professor at Tata Institute of Social Sciences, Mumbai is the Program Convenor of Women Centred Work at the School of Social Work.";
}

.board-row-2 .member-card:nth-child(1) .hover-overlay .description::after {
    content: "A storyteller and trainer with 30+ years of corporate and entrepreneurial experience in designing content and facilitating and workshops.";
}

.board-row-2 .member-card:nth-child(2) .hover-overlay .description::after {
    content: "A chartered accountant by profession and a philanthropist at heart who as a concerned citizen engages in supporting tribal communities.";
}

.board-row-2 .member-card:nth-child(3) .hover-overlay .description::after {
    content: "A founder member of Jagori, New Delhi, and Jagori Rural in Himachal Pradesh. She is also an active member of the Indian women's movement, a gender trainer and consultant.";
}

.board-row-2 .member-card:nth-child(4) .hover-overlay .description::after {
    content: "A professional architect and founder of SJK Architects which has won multiple international awards like the prix Versailles Award and World Architecture Festival Award.";
}

/* ------------------------------------------
   Team Members Grid
------------------------------------------ */
.team-members-grid {
    display: grid;
    grid-template-areas:
        "a b c d"
        "e f g h"
        ". i j .";
    gap: min(7.3rem, 5vw) min(7.3rem, 5vw);
    justify-content: center;
    padding: 4.6rem 2rem 6rem 2rem;
    max-width: 120rem;
    margin: 0 auto;
}

.team-members-grid > div:nth-child(1) { grid-area: a; }
.team-members-grid > div:nth-child(2) { grid-area: b; }
.team-members-grid > div:nth-child(3) { grid-area: c; }
.team-members-grid > div:nth-child(4) { grid-area: d; }
.team-members-grid > div:nth-child(5) { grid-area: e; }
.team-members-grid > div:nth-child(6) { grid-area: f; }
.team-members-grid > div:nth-child(7) { grid-area: g; }
.team-members-grid > div:nth-child(8) { grid-area: h; }
.team-members-grid > div:nth-child(9) { grid-area: i; }
.team-members-grid > div:nth-child(10) { grid-area: j; }

.team-member-card {
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: clamp(25rem, 19.53vw, 125rem);
    min-height: clamp(20rem, 15.625vw, 100rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px;
    overflow: visible;
    margin-bottom: clamp(3rem, 2.34vw, 15rem);
}

.team-member-card .member-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.team-member-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 8px;
    align-self: flex-end;
}

/* Individual team member card shapes */
.team-card-1 {
    border: 2px solid #C74A9B;
    border-radius: 10rem 4.5rem 3rem 3rem;
}

.team-card-2 {
    border: 2px solid #C74A9B;
    border-radius: 7.5rem 15rem 3rem 3rem;
    
}
.team-card-2 img {
    transform-origin: bottom center;
}


.team-card-3 {
    border: 2px solid #C74A9B;
    border-radius: 8rem 15rem 3rem 3rem;
}

.team-card-4 {
    border: 2px solid #C74A9B;
    border-radius: 17.5rem 7.5rem 3rem 3rem;
}

.team-card-5 {
    border: 2px solid #C74A9B;
    border-radius: 3rem 15rem 3rem 3rem;
}

.team-card-6 {
    border: 2px solid #C74A9B;
    border-radius: 16rem 7.3rem 3rem 3rem;
}

.team-card-6b {
    border: 2px solid #C74A9B;
    border-radius: 16rem 7.3rem 3rem 3rem;
}

 .team-card-6b img {
    transform: scale(1);
    
} 

.team-card-7 {
    border: 2px solid #C74A9B;
    border-radius: 6.75rem 9.4rem 1.875rem 1.875rem !important;
}

.team-card-8 {
    border: 2px solid #C74A9B;
    border-radius: 3rem 17.5rem 3rem 3rem;
    width: 110%;
}

.team-card-9 {
    border: 2px solid #C74A9B;
    border-radius: 31px 175px 30px 30px;
    width: 110%;
}

.team-card-10 {
    border: 2px solid #C74A9B;
    border-radius: 16rem 6rem 3rem 3rem;
}

.team-card-11 {
    border: 2px solid #C74A9B;
    border-radius: 8.5rem 15rem 3rem 3rem;
}

.team-card-12 {
    border: 2px solid #C74A9B;
    border-radius: 100px 45px 30px 30px;
}
.teams{
    margin-bottom: 10rem;
}
/* ------------------------------------------
   Caption Styling - Unified for Both Sections
------------------------------------------ */
.caption {
    position: absolute;
    top: 100%;
    width: 80%;
    margin-top: clamp(-2.5rem, -1.953125vw, -12.5rem);
    background-color: var(--primary-color-1);
    color: white;
    text-align: center;
    padding: clamp(1.2rem, 0.9375vw, 6rem);
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 1.171875vw, 7.5rem);

    border-radius: 0 0 8px 8px;
    z-index: 20;
    transition: opacity 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

.team-member-card .caption {
    top: 100%;
    margin-top: clamp(0.125rem, -2.44140625vw, -15.625rem);
}



.caption .name {
    font-size: clamp(1.5rem, 1.171875vw, 7.5rem);
    font-weight: 600;
    display: block;
    margin-bottom: clamp(0.2rem, 0.15625vw, 1rem);
}

.caption .title {
    font-size: clamp(1.5rem, 1.171875vw, 7.5rem);
    font-weight: var(--font-weight-regular);
    display: block;
    opacity: 0.9;
}

/* ------------------------------------------
   Responsive Design
------------------------------------------ */

/* Large Desktop Screens (1920px+) */
@media (min-width: 1920px) {
    .board-members-header {
        padding-left: 4rem;
    }
    
    .hero-content {
        max-width: 70rem;
    }
    
    .member-card {
        max-width: 30rem;
        height: 28rem;
    }
    
    .team-member-card {
        height: 20rem;
    }
    
    .team-members-grid {
        gap: 8rem;
        padding: 5rem 4rem 7rem 4rem;
    }
    
    .team-member-card .caption {
        width: 85% !important;
        font-size: 1.6rem;
        padding: 14px 8px;
        line-height: 1.2;
    }
    
    .team-member-card .caption .name {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .team-member-card .caption .title {
        font-size: 1.2rem;
    }
    
    .team-member-card .caption {
        bottom: -5.1rem;
    }
}

/* Desktop Large (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .board-members-header {
        padding-left: 3rem;
    }
    
    .member-card {
        max-width: 27rem;
    }
    
    .team-members-grid {
        gap: 7.5rem;
        padding: 4.5rem 3rem 6rem 3rem;
    }
    
    .team-member-card .caption {
        width: 92%;
        font-size: 1.55rem;
        padding: 13px 8px;
        line-height: 1.2;
    }
    
    .team-member-card .caption .name {
        font-size: 1.55rem;
        margin-bottom: 0.25rem;
    }
    
    .team-member-card .caption .title {
        font-size: 1.55rem;
    }
}

/* Tablet - Large Laptop Transition */
@media (max-width: 76.8rem) {
    .hero {
        padding: 8rem 2rem;
        justify-content: center;
    }
    
    .hero-content {
        width: 90%;
        max-width: 40rem;
        min-height: 30rem;
        padding: 4rem 3rem;
    }
    
    .hero-content p {
        font-size: 4.5rem;
        line-height: 90%;
    }
    
    .hero-content p::before {
        width: 6rem;
    }
}

@media (max-width: 1200px) {
    .board-row {
        gap: min(5rem, 4vw);
    }
    
    .board-row-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .member-card {
        max-width: 24rem;
        min-width: 18rem;
    }
    
    .team-members-grid {
        grid-template-areas:
            "a b c"
            "d e f"
            "g h i"
            ". j .";
        gap: min(5rem, 4vw);
        padding: 4rem 2rem 6rem 2rem;
    }
    
    .team-member-card img {
        width: 100%;
        height: 95%;
        object-fit: contain;
        border-radius: 8px;
        align-self: flex-end;
    }
    
    .board-members-header {
        padding-left: 2rem;
        margin: 5rem auto 6rem auto !important;
    }
    
    .board-members-header h2 {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .teams {
        padding: 4rem 1.5rem;
    }
    
    .board-members-header {
        margin: 4rem auto 6rem auto !important;
        padding-left: 1rem;
    }
    
    .board-members-header h2 {
        font-size: 7rem;
    }
    
    .board-members-header p {
        font-size: 2.5rem;
    }
    
    .board-row {
        gap: 3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .board-members-grid {
        padding: 0 1rem 8rem 1rem;
    }
    
    .board-row-1 .member-card,
    .board-row-2 .member-card {
        max-width: 22rem;
        min-width: 18rem;
    }
    
    .member-card {
        height: 24rem;
    }
    
    .hover-overlay .description {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .team-members-grid {
        grid-template-areas:
            "a b"
            "c d"
            "e f"
            "g h"
            "i j";
        gap: 4rem 3rem;
        padding: 4rem 1rem 5rem 1rem;
    }
    
    .team-member-card {
        height: 28rem;
        margin-bottom: 2.5rem;
    }
    
    .team-card-8,
    .team-card-9 {
        width: 100%;
    }
}

@media (max-width: 726px) {
    .hero {
        padding: 4rem 1.5rem;
        min-height: 50vh;
    }
    
    .hero-content {
        width: 95%;
        max-width: 35rem;
        min-height: 28rem;
        padding: 3rem 2rem;
        border-radius: 1.5rem 12rem 5rem 1.5rem;
    }
    
    .hero-content p {
        font-size: 3.5rem;
        line-height: 92%;
    }
    
    .hero-text-bold {
        font-size: 7rem;
        font-weight: 800;
        line-height: 8rem;
    }

    .hero-content p::before {
        width: 5rem;
        top: -1.5rem;
    }
    
    .teams {
        padding: 3rem 1rem;
    }
    
    .board-members-header {
        margin: 3rem auto 4rem auto !important;
        padding-left: 1rem;
    }
    
    .board-members-header h2 {
        font-size: 6rem;
        margin: 1rem 0 0 0;
        line-height: 5rem;
    }
    
    .board-members-header h2::after {
        width: 12rem;
        bottom: -2rem;
    }
    
    .board-members-header p {
        font-size: 2rem;
    }
    
    .board-members-grid {
        gap: 3rem;
        padding: 0 1rem 4rem 1rem;
    }
    
    .board-row {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
        margin-bottom: 3rem;
    }
    
    .board-row .caption {
        bottom: -2rem;
    }
    
    .member-card {
        max-width: 28rem;
        width: 90%;
        height: 26rem;
    }
    
    .hover-overlay .description {
        font-size: 1.4rem;
        line-height: 1.4;
        padding: 1.5rem;
    }
    
    .team-members-grid {
        grid-template-areas:
            "a"
            "b"
            "c"
            "d"
            "e"
            "f"
            "g"
            "h"
            "i"
            "j";
        gap: 7rem;
        padding: 3rem 1rem 3rem 1rem;
    }
    
    .team-member-card {
        height: 32rem;
        margin-bottom: 2rem;
        width: 90%;
        max-width: 28rem;
        justify-self: center;
    }
    
    .caption {
        font-size: 1.3rem;
        padding: 1rem;
        bottom: -3rem;
    }
    
    .team-member-card .caption {
        bottom: -6.5rem;
    }
    
    .caption .name {
        font-size: 1.4rem;
    }
    
    .caption .title {
        font-size: 1.3rem;
    }
}

/* Mobile Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .member-card:active .hover-overlay {
        opacity: 1;
    }

    .member-card:active img {
        filter: brightness(0.3);
    }

    .member-card:active .caption {
        opacity: 0.9;
    }
}

/* ------------------------------------------
   Footer Social Icons Fix - Ensure Horizontal Layout
------------------------------------------ */
.footer_socials {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  margin-bottom: 0.8rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.footer_socials picture {
  display: inline-block !important;
}

.footer_socials img {
  width: 45px !important;
  height: 45px !important;
  filter: brightness(0) invert(1) !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

.footer_socials img:hover {
  transform: scale(1.1) !important;
  cursor: pointer !important;
}

/* ------------------------------------------
   Enhanced Hero Section Styling
------------------------------------------ */
.hero-quote {
  font-family: var(--font-primary) !important;
  font-size: 2.4rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #252422 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 2rem !important;
}

.hero-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4rem 3rem !important;
  height: auto !important;
  min-height: 35rem !important;
}

/* ------------------------------------------
   Organizational Context Section
------------------------------------------ */
.org-context {
  padding: 6rem 2rem;
  background-color: #f8f9fa;
  margin: 4rem 0;
}

.org-context .container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.context-text {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.context-legal {
  font-family: var(--font-primary);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1.5;
  color: #666;
  font-style: italic;
  text-align: left;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

/* ------------------------------------------
   Responsive Design for Enhanced Sections
------------------------------------------ */
@media (max-width: 1024px) {
  .hero-quote {
    font-size: 2.2rem !important;
    padding: 0 1.5rem !important;
  }

  .hero-content {
    width: 90% !important;
    padding: 3rem 2rem !important;
    margin-left: 0 !important;
    min-height: 28rem !important;
  }

  .context-text {
    font-size: 1.8rem;
  }

  .context-legal {
    font-size: 1.5rem;
  }
  
  .org-context {
    padding: 5rem 2rem;
    margin: 3rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
    min-height: 50vh;
  }

  .hero-quote {
    font-size: 1.9rem !important;
    padding: 0 1rem !important;
  }

  .hero-content {
    width: 95% !important;
    padding: 2.5rem 1.5rem !important;
    min-height: 25rem !important;
    border-radius: 1rem 10rem 3rem 1rem !important;
  }

  .org-context {
    padding: 4rem 1.5rem;
    margin: 2rem 0;
  }
  
  .org-context .container {
    padding: 0 1rem;
  }

  .context-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .context-legal {
    font-size: 1.4rem;
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-quote {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .hero-content {
    padding: 2rem 1rem !important;
    min-height: 20rem !important;
  }
  
  .org-context {
    padding: 3rem 1rem;
    margin: 1.5rem 0;
  }
  
  .org-context .container {
    padding: 0 0.5rem;
  }

  .context-text {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .context-legal {
    font-size: 1.2rem;
  }
  
  .board-members-header h2 {
    font-size: 5rem;
  }
  
  .board-members-header p {
    font-size: 1.8rem;
  }
  
  .member-card {
    max-width: 26rem;
    height: 24rem;
  }
  
  .caption {
    font-size: 1.2rem;
  }
}