/* ------------------------------------------
   Global Overflow Prevention
------------------------------------------ */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Prevent any element from exceeding viewport width */
*:not(html):not(body) {
  max-width: 100%;
}

/* ------------------------------------------
   Hero Section
------------------------------------------ */
.hero-section {
  background-image: url('/public/empowering-dreams-page/webp/edp-banner.webp');
  background-size: cover;
  background-position: center;
  
  height: 110vh;
  width: 100%;
  position: relative;
  margin-bottom: 0;
  z-index: -2;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/public/empowering-dreams-page/webp/edp-banner.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1); /* flip horizontally */
  z-index: -1; /* keep image behind content */
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 5rem;
  margin: 0;
  
}

.hero-title {
  font-size: 10.5rem;
  line-height: 7.5rem;
  color: white;
  font-family: var(--font-secondary);
  font-weight: 800;
  margin: 0 0 0.5rem 8rem;
  transform: translateY(-20rem);
}

.hero-title::before {
  content: '';
  position: absolute;
  width: 64rem;
  height: 62rem;
  background-color: #C74A9B;
  opacity: 0.65;
  border-top-left-radius: 3.125rem;
  border-top-right-radius: 3.125rem;
  top: -4rem;
  left: -4rem;
  z-index: -3;
  padding: 2rem;
  box-sizing: border-box;
}

.hero-description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 150%;
  letter-spacing: 0%;
  color: white;
  margin: 0 0 6rem 8rem;
  max-width: 50rem;
  transform: translateY(-8rem);
}

/* ------------------------------------------
   Who Section
------------------------------------------ */
.who-section {
  margin: 0;
  width: 100%;
  padding: 8rem var(--spacer-lg);
  position: relative;
  z-index: 10 !important;
  background-color: #e1e6e6;
}

.who-section .section-title {
  max-width: 90%;
  margin: 0 auto ;
}

.who-section .section-title h1 {
  font-family: var(--font-secondary);
  font-size: 6.25rem;
  font-weight: 700;
  color: #C32921;
  position: relative;
  margin-left: 3%;
  letter-spacing: 0.1rem;
}

.who-content {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  align-items: center;
  padding: var(--spacer-md);
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  border-top: 1px solid #C32921;
  border-bottom: 1px solid #C32921;
}

/* Fixed: Horizontal lines touching screen edges */
.who-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -100vw;
  right: -100vw;
  width: 200vw;
  height: 1px;
  background-color: #C32921;
  z-index: 1;
}

.who-content::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -100vw;
  right: -100vw;
  width: 200vw;
  height: 1px;
  background-color: #C32921;
  z-index: 1;
}

/* Vertical line between content */
.who-content .vertical-line {
  position: absolute;
  top: 0;
  left: 40%;
  bottom: 0;
  width: 1px;
  background-color: #C32921;
  z-index: 2;
}
.who-image {
  flex: 0 0 50rem;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.who-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.who-image img {
  width: 80%;
  height: 90%;
  object-fit: cover;
  object-position: center;
  display: block;
  
}

.who-text {
  padding: 4rem 3rem;
}

.who-text p {
  font-size: 1.8rem;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #252422;
  margin-bottom: var(--spacer-md);
}

.who-text h3 {
  font-size: 2.6rem;
  font-family: var(--font-primary);
  font-weight: 700;
  color: #C32921;
  margin-top: var(--spacer-md);
  line-height: 4rem;
}

/* ------------------------------------------
   Topics Section
------------------------------------------ */
.topics-section {
  margin: var(--spacer-xl) 0;
  padding: 6rem var(--spacer-lg);
  overflow: visible;
  padding-top: 12rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 95%;
  margin: 0 auto;
  padding: var(--spacer-md);
  align-items: end;
  height: 35rem;
  position: relative;
}

.topic-card {
  height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
  border: 1px solid;
  border-radius: 1rem;
  position: relative;
  transition: all 0.5s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding:6rem 0 0 0 ;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateY(-5px);
}

.topic-card:hover .topic-content {
  height: calc(100% + 6rem);
  border-radius: 1rem;
  transition: all 0.5s ease;
  justify-content: flex-start;
  
  margin-top: -6rem;
}

.topic-content h2 {
  font-size: 5rem !important;
}
.topic-content p {
  font-size: 2rem !important;
}
.topic-card:hover .topic-content h2 {

  margin-bottom: 1rem !important;
}



.topic-card.saksham:hover .topic-content {
  background-color: #339A5E;
}

.topic-card.saksham:hover .topic-content h2,
.topic-card.saksham:hover .topic-content p {
  color: #F2EFEA;
}

.topic-card.swayamsiddha:hover .topic-content {
  background-color: #C74A9B;
}

.topic-card.swayamsiddha:hover .topic-content h2,
.topic-card.swayamsiddha:hover .topic-content p {
  color: #F2EFEA;
}

.topic-card.swadhin:hover .topic-content {
  background-color: #C32921;
}

.topic-card.swadhin:hover .topic-content h2,
.topic-card.swadhin:hover .topic-content p {
  color: #F2EFEA;
}

.topic-content {
  background: #FED672;
  padding: 1.5rem;
  text-align: left;
  border-radius: 1rem;
  line-height: 1.4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.5s ease;
}

.topic-content h2 {
  
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.topic-content p {
  
  font-family: var(--font-primary);
  line-height: 1.4;
  margin: 0;
}

.topic-card.saksham {
  border-color: #339A5E;
  height: 18rem; /* Increased step height */
}

.topic-card.saksham .topic-content h2,
.topic-card.saksham .topic-content p {
  color: #339A5E;
}

.topic-card.saksham .topic-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.topic-card.saksham .topic-content p {
  font-size: 1rem;
}

.topic-card.swayamsiddha {
  border-color: #C74A9B;
  height: 25rem; /* Increased step height */
}

.topic-card.swayamsiddha .topic-content h2,
.topic-card.swayamsiddha .topic-content p {
  color: #C74A9B;
}

.topic-card.swayamsiddha .topic-content h2 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.topic-card.swayamsiddha .topic-content p {
  font-size: 1.2rem;
}

.topic-card.swadhin {
  border-color: #C32921;
  height: 30rem; /* Increased step height */
}

.topic-card.swadhin .topic-content h2,
.topic-card.swadhin .topic-content p {
  color: #C32921;
}

/* Climbing figure positioned on top of first two steps */
.climbing-figure {
  position: absolute;
  width: 24rem;
  height: auto;
  top: -18rem;
  left: 24.66%;
  z-index: 10;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

/* ------------------------------------------
   Program Sections
------------------------------------------ */
.program-section {
  margin: var(--spacer-xl) 0;
  position: relative;
  min-height: 80vh;
  width: 100%;
  padding: 8rem var(--spacer-lg);
}

.program-section .section-title {
  max-width: 90%;
  margin: 0 auto ;
}

.program-section .section-title h1 {
  font-family: var(--font-secondary);
  font-size: 6rem;
  font-weight: var(--font-weight-bold);
  position: relative;
  margin-left: 8%;
  letter-spacing: 0.1rem;
}

.program-content {
  display: grid;
  grid-template-columns: 35rem 1fr;
  gap: 4rem;
  align-items: flex-start;
  padding: 4rem 3rem;
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

/* Full-width borders extending to screen edges - FIXED */
.program-content::before,
.program-content::after {
  content: '';
  position: absolute;
  left: -100vw;
  right: -100vw;
  width: 200vw;
  height: 1px;
  z-index: 1;
}

.program-content::before {
  top: 0;
}

.program-content::after {
  bottom: 0;
}

.program-image {
  flex: 0 0 35rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  display: block;
}

.program-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.program-text {
  display: flex;
  flex-direction: column;
}

.program-text p {
  font-size: 1.8rem;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #252422;
}

.program-text h3 {
  font-size: 2.6rem;
  font-family: var(--font-primary);
  font-weight: 700;
  margin: var(--spacer-md) 0 0;
  line-height: 4rem;
}

.saksham-section .section-title h1 {
  color: #339A5E;
}

.saksham-section .section-title h1::after {
  background-color: #339A5E;
  left: 20rem;
}

.saksham-section .program-content::before,
.saksham-section .program-content::after {
  background-color: #339A5E;
}

.saksham-section .program-text h3 {
  color: #339A5E;
}

/* Saksham Image Cropping - Focus on teacher and students, reduce ceiling */
.saksham-section .program-image img {
  object-position: center 85% !important; /* Focus heavily on bottom portion */
  transform: scale(1.3) translateY(-10%); /* Strong zoom to crop top */
  transition: transform 0.3s ease;
}

.swayamsiddha-section .section-title h1 {
  color: #C74A9B;
}

.swayamsiddha-section .section-title h1::after {
  background-color: #C74A9B;
  left: 30rem;
}

.swayamsiddha-section .program-content::before,
.swayamsiddha-section .program-content::after {
  background-color: #C74A9B;
}

.swayamsiddha-section .program-text h3 {
  color: #C74A9B;
}

.swadhin-section .section-title h1 {
  color: #C32921;
}

.swadhin-section .section-title h1::after {
  background-color: #C32921;
  left: 15rem;
}

.swadhin-section .program-content::before,
.swadhin-section .program-content::after {
  background-color: #C32921;
}

.swadhin-section .program-text h3 {
  color: #C32921;
}

/* ------------------------------------------
   Responsive Design
------------------------------------------ */

/* Tablets and mobile devices - Remove hover effects and prevent horizontal scroll */
@media (max-width: 1080px) {
  /* Prevent horizontal overflow */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Ensure all sections fit within viewport */
  .hero-section,
  .who-section,
  .topics-section,
  .program-section {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .topic-card {
    cursor: default;
    height: 12rem !important;
    padding: 0 !important;
  }

  .topic-card.saksham,
  .topic-card.swayamsiddha,
  .topic-card.swadhin {
    height: 12rem !important;
  }

  .topic-card:hover {
    transform: none;
    height: 12rem !important;
  }

  .topic-content {
    height: 100% !important;
    background: #FED672 !important;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: none !important;
    margin-top: 0 !important;
  }

  .topic-card:hover .topic-content {
    height: 100% !important;
    background: #FED672 !important;
    transition: none;
    justify-content: center;
    margin-top: 0;
  }

  .topic-card.saksham:hover .topic-content,
  .topic-card.swayamsiddha:hover .topic-content,
  .topic-card.swadhin:hover .topic-content {
    background-color: #FED672 !important;
  }

  .topic-content h2,
  .topic-card:hover .topic-content h2 {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .topic-content p,
  .topic-card:hover .topic-content p {
    font-size: 1.5rem !important;
  }

  .topic-card.saksham .topic-content h2,
  .topic-card.saksham .topic-content p,
  .topic-card.saksham:hover .topic-content h2,
  .topic-card.saksham:hover .topic-content p {
    color: #339A5E !important;
  }

  .topic-card.swayamsiddha .topic-content h2,
  .topic-card.swayamsiddha .topic-content p,
  .topic-card.swayamsiddha:hover .topic-content h2,
  .topic-card.swayamsiddha:hover .topic-content p {
    color: #C74A9B !important;
  }

  .topic-card.swadhin .topic-content h2,
  .topic-card.swadhin .topic-content p,
  .topic-card.swadhin:hover .topic-content h2,
  .topic-card.swadhin:hover .topic-content p {
    color: #C32921 !important;
  }

  /* Hide climbing figure in default box mode */
  .climbing-figure {
    display: none !important;
  }

  /* Adjust section title font size for mobile */
  .section-title h1 {
    font-size: 4.5rem !important;
  }

  /* Center images in mobile mode */
  .program-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
  }

  .program-image img {
    margin: 0 auto;
    display: block;
  }

  /* Adjust Saksham image cropping for mobile */
  .saksham-section .program-image img {
    object-position: center 75%; /* Focus on lower portion for mobile */
    transform: scale(1.25); /* Balanced zoom for mobile */
  }
}

/* Fix vertical scrolling issue for 900-750px range */
@media (max-width: 900px) and (min-width: 750px) {
  .topics-section {
    padding: 6rem 2rem 8rem 2rem;
    margin-bottom: 4rem;
    overflow: visible;
  }

  .topics-grid {
    height: auto !important;
    min-height: fit-content;
    overflow: visible;
    align-items: stretch;
    gap: 2rem;
  }

  .topic-card {
    height: 12rem !important;
    overflow: visible;
  }

  .topic-content {
    height: 100% !important;
    overflow: visible;
  }
}

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 8.5rem;
    line-height: 6.5rem;
    left: 11rem;
    padding-bottom: 5rem;
    transform: translateY(0rem);

  }

  .hero-title::before {
    width: 50rem;
    height: 53rem;
    bottom: -5rem;
    left: -1.5rem;
  }

  .hero-description {
    left: 17rem;
    font-size: 1.6rem;
    max-width: 45rem;
    padding-bottom: 0.5rem;
        transform: translateY(0rem);

  }

  .topics-section {
    padding-top: 10rem;
  }

  .topics-grid {
    height: 30rem;
  }

  .topic-card {
    padding: 5rem 0 0 0;
  }

  .topic-card.saksham {
    height: 10rem;
  }

  .topic-card.swayamsiddha {
    height: 15rem;
  }

  .topic-card.swadhin {
    height: 24rem;
  }

  .topic-card:hover .topic-content {
    height: calc(100% + 5rem);
    margin-top: -5rem;
  }

  .climbing-figure {
    width: 20rem;
    top: -10rem;
    left: 16.66%;
    max-width: calc(100vw - 2rem);
  }

  .who-content {
    gap: 4rem;
    max-width: 95%;
  }
  
  .who-text h3 {
    font-size: 2.4rem;
    line-height: 3.5rem;
  }
  
  .topics-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 95%;
    gap: 1.5rem;
  }
  
  .topic-content h2 {
    font-size: 2.5rem;
  }
  
  .topic-content p {
    font-size: 1.3rem;
  }
  
  .program-section {
    padding: 6rem var(--spacer-md);
  }
  
  .program-content {
    max-width: 95%;
  }
  
  .program-image {
    width: 30rem;
    margin: 0 2rem 2rem 0;
  }
  
  .program-text h3 {
    font-size: 2.4rem;
    line-height: 3.5rem;
  }

  /* Tablet-specific Saksham image adjustments */
  .saksham-section .program-image img {
    object-position: center 78%; /* Focus on lower portion for tablets */
    transform: scale(1.28); /* Stronger zoom for tablets */
  }
}

/* Tablets */
@media (max-width: 968px) {
  .hero-section {
    height: 80vh;
  }

  .hero-content {
    margin-left: 2rem;
  }

  .hero-title {
    font-size: 6.5rem;
    line-height: 5.5rem;
    left: 6rem;
    padding-bottom: 4rem;
  }

  .hero-title::before {
    width: 40rem;
    height: 42rem;
    bottom: -4rem;
    left: -1.2rem;
  }

  .hero-description {
    left: 10rem;
    font-size: 1.4rem;
    max-width: 38rem;
    padding-bottom: 0.4rem;
  }

  .topics-section {
    padding-top: 8rem;
  }

  .who-section,
  .program-section {
    padding: 5rem var(--spacer-sm);
  }
  
  .who-section .section-title h1,
  .program-section .section-title h1 {
    font-size: 4rem;
    margin-left: 0;
    text-align: center;
  }
  
  .who-section .section-title h1::after,
  .program-section .section-title h1::after {
    left: 50% !important;
    transform: translateX(-50%);
    width: 15rem !important;
  }
  
  .who-content {
    gap: 3rem;
    padding: var(--spacer-sm);
  }
  
  .who-content .vertical-line {
    display: none;
  }
  
  .who-image,
  .who-text {
    padding: 3rem 2rem;
  }
  
  .who-text p {
    font-size: 1.7rem;
  }
  
  .who-text h3 {
    font-size: 2.2rem;
    line-height: 3.2rem;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95%;
    height: 25rem;
    align-items: end;
  }

  .topic-card {
    padding: 4rem 0 0 0;
  }

  .topic-card.saksham {
    height: 8rem;
  }

  .topic-card.swayamsiddha {
    height: 13rem;
  }

  .topic-card.swadhin {
    height: 20rem;
  }

  .topic-card:hover .topic-content {
    height: calc(100% + 4rem);
    margin-top: -4rem;
  }

  .climbing-figure {
    display: none;
  }
  
  .topic-content h2 {
    font-size: 2.5rem;
  }
  
  .topic-content p {
    font-size: 1.3rem;
  }
  
  .program-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .program-image {
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  .program-text {
    padding: 2rem 1rem;
  }
  
  .program-text p {
    font-size: 1.7rem;
  }
  
  .program-text h3 {
    font-size: 2.2rem;
    line-height: 3.2rem;
    text-align: center;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
  }

  .hero-content {
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
  }

  .hero-title {
    font-size: 4.5rem;
    line-height: 4rem;
    margin: 0 0 0.5rem 0;
    transform: translateY(0rem);
  }

  .hero-title::before {
    width: 28rem;
    height: 29rem;
    top: -3rem;
    left: -2rem;
  }

  .hero-description {
    margin: 0;
    font-size: 1.2rem;
    max-width: 26rem;
    text-align: left;
    transform: translateY(0rem);
  }

  .topics-section {
    padding-top: 6rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95%;
    height: 19rem;
    align-items: end;
  }

  .topic-card {
    padding: 3rem 0 0 0;
  }

  .topic-card.saksham {
    height: 6rem;
  }

  .topic-card.swayamsiddha {
    height: 10rem;
  }

  .topic-card.swadhin {
    height: 15rem;
  }

  .topic-card:hover .topic-content {
    height: calc(100% + 3rem);
    margin-top: -3rem;
  }

  .climbing-figure {
    display: none;
  }

  .who-section,
  .program-section {
    padding: 4rem 1rem;
  }
  
  .who-section .section-title h1,
  .program-section .section-title h1 {
    font-size: 3rem;
    text-align: center;
    margin-left: 0;
  }
  
  .who-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0.5rem;
  }
  
  .who-image,
  .who-text {
    padding: 2rem 1rem;
  }
  
  .who-text p {
    font-size: 1.6rem;
  }
  
  .who-text h3 {
    font-size: 2rem;
    line-height: 2.8rem;
    text-align: center;
  }
  
  .topics-section {
    padding: 4rem 1rem;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    height: auto;
    align-items: stretch;
  }

  .topic-card.saksham {
    height: 3rem;
  }

  .topic-card.swayamsiddha {
    height: 6rem;
  }

  .topic-card.swadhin {
    height: 9rem;
  }

  .topic-card:hover {
    height: 15rem !important;
  }

  .climbing-figure {
    width: 8rem;
    top: -3rem;
    left: 25%;
    max-width: calc(100vw - 2rem);
  }
  
  .topic-content {
    padding: 1.5rem;
  }
  
  .topic-content h2 {
    font-size: 2rem;
  }
  
  .topic-content p {
    font-size: 1.2rem;
  }
  
  .program-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0.5rem;
  }
  
  .program-image {
    padding: 2rem 1rem;
  }
  
  .program-text {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .program-text p {
    font-size: 1.6rem;
  }
  
  .program-text h3 {
    font-size: 2rem;
    line-height: 2.8rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero-section {
    height: 60vh;
  }

  .hero-content {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero-title {
    font-size: 3.2rem;
    line-height: 3rem;
    margin: 0 0 0.5rem 0;
    transform: translateY(3rem);
  }

  .hero-title::before {
    width: 22rem;
    height: 22.5rem;
    top: -2.5rem;
    left: -1.5rem;
  }

  .hero-description {
    margin: 0;
    font-size: 1rem;
    max-width: 20rem;
    text-align: left;
    transform: translateY(0rem);
  }

  .topics-section {
    padding: 5rem 1rem 8rem 1rem;
    margin-bottom: 4rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95%;
    height: auto;
    align-items: stretch;
  }

  .topic-card {
    height: 12rem !important;
    padding: 0 !important;
  }

  .topic-card.saksham,
  .topic-card.swayamsiddha,
  .topic-card.swadhin {
    height: 12rem !important;
  }

  .topic-card:hover {
    transform: none;
    height: 12rem !important;
  }

  .topic-content {
    height: 100% !important;
    background: #FED672 !important;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: none !important;
    margin-top: 0 !important;
  }

  .topic-card:hover .topic-content {
    height: 100% !important;
    background: #FED672 !important;
    transition: none;
    justify-content: center;
    margin-top: 0;
  }

  .climbing-figure {
    display: none;
  }

  .who-section,
  .program-section {
    padding: 3rem 1rem;
  }
  
  .who-section .section-title h1,
  .program-section .section-title h1 {
    font-size: 2.5rem;
  }
  
  .who-content {
    padding: 1.5rem 0.25rem;
    gap: 1.5rem;
  }
  
  .who-image,
  .who-text {
    padding: 1.5rem 0.5rem;
  }
  
  .who-text p {
    font-size: 1.4rem;
  }
  
  .who-text h3 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .program-content {
    padding: 1.5rem 0.25rem;
  }
  
  .program-image,
  .program-text {
    padding: 1.5rem 0.5rem;
  }
  
  .program-text p {
    font-size: 1.4rem;
  }
  
  .program-text h3 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-content {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .hero-title {
    font-size: 2.8rem;
    line-height: 2.5rem;
    margin: 0 0 0.5rem 0;
    transform: translateY(4rem);
  }

  .hero-title::before {
    width: 18rem;
    height: 18rem;
    top: -2rem;
    left: -1rem;
  }

  .hero-description {
    margin: 0;
    font-size: 0.9rem;
    max-width: 16rem;
    text-align: left;
    transform: translateY(0rem);
  }

  .topics-section {
    padding-top: 4rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95%;
    height: 11rem;
    align-items: end;
  }

  .topic-card {
    padding: 2rem 0 0 0;
  }

  .topic-card.saksham {
    height: 4rem;
  }

  .topic-card.swayamsiddha {
    height: 5rem;
  }

  .topic-card.swadhin {
    height: 8rem;
  }

  .topic-card:hover .topic-content {
    height: calc(100% + 2rem);
    margin-top: -2rem;
  }

  .climbing-figure {
    display: none;
  }

  .who-section .section-title h1,
  .program-section .section-title h1 {
    font-size: 2.2rem;
  }
  
  .who-text h3 {
    font-size: 1.6rem;
    line-height: 2.2rem;
  }
  
  .topic-content h2 {
    font-size: 1.6rem;
  }
  
  .topic-content p {
    font-size: 1rem;
  }
  
  .program-text h3 {
    font-size: 1.6rem;
    line-height: 2.2rem;
  }
  
  .program-text p {
    font-size: 1.3rem;
  }
}

/* ------------------------------------------
   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;
}