.first-section {
    position: relative;
    height: 100dvh;
  }

  .first-section img {
		position: absolute;
    opacity: 1;
    height: 100%;
    width: 100%;
    object-fit: cover;
		z-index: -1;
  }
	.first-section .bg-color{
		position: absolute;
		height: 100%;
		width: 100%;
		opacity: 1;
		
    background: linear-gradient(180deg, rgba(84, 4, 17, 0.00) 22.48%, rgba(15, 11, 11, 0.90) 100%);
	}

  .first-section .content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 2.5vw;
    padding: 4vw;
		position: relative;
		z-index: 2;
  }
	.first-section h1{
		color: var(--text-secondary);
		font-family: var(--font-heading);
			font-weight: 500;
		line-height: 1.1;
		letter-spacing: -0.05em;
		font-size: calc(1.5rem + 2.5vw);
		width: 50%
	}
	.first-section .buttons{
		display: flex;
		background: var(--text-secondary);
		padding: 0.3vw;
		width: max-content;
		border-radius: 0.375rem;
	}
	.first-section .buttons .cta-btn{ 
    width: fit-content;		
		padding: 0.8vw 1vw;
    background: var(--text-secondary);
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: calc(1rem + 0.25vw);
    font-weight: 400;
    color: #540411;
		cursor: pointer;
  }
	
	.first-section .buttons .cta-btn:hover{
		background: #540411 ;
		color: var(--text-secondary);
	}





.slider-container {
       overflow: hidden;
       padding: 2rem 0;
       background: white;
       border-radius: 1rem;
       box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
       -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
       mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
   }

   .auto-slider {
       display: flex;
       width: fit-content;
       animation: slide 25s linear infinite;
       white-space: nowrap;
       will-change: transform;
		 
   }

   .auto-slider .img {
       height: 70px;
       width: auto;
       margin: 0 2.5rem;
       transition: filter 0.3s ease-in-out;
       opacity: 1;
   }
	.auto-slider .img img{
       height: 70px !important;
       width: auto;
		max-width: none !important;
  
   }

   .auto-slider:hover .img {
       filter: grayscale(0);
       opacity: 1;
   }

   .slider-container:hover .auto-slider {
       animation-play-state: paused;
   }

   @keyframes slide {
       from {
           transform: translateX(0);
       }

       to {
           transform: translateX(-50%);
       }
   }
	
	.slider-title-container h1{
		color: #540411;
		font-family: var(--font-heading);
    font-size: calc(3rem + 0.2vw);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.24rem;
	}
	






	.person-review {
    background: linear-gradient(
      180deg,
      #d3eefb 0%,
      rgba(211, 238, 251, 0) 100%
    );
    border-radius: 20px;
		position: relative;
  }
	.person-review .review-left-img img{
		border-radius: 300px;
		aspect-ratio: 1/1;
		object-fit: cover;

	}
  .asset-content img {
    position: absolute;
    top: 0;
    right: 0;
  }
  .asset-content .content p {
    color: #192955;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
		width: 65%;
  }
  .asset-content .content h3 {
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: calc(1.5rem + 0.2vw);
    letter-spacing: -0.075rem;
    line-height: normal;
    padding-top: 4vw;
  }
  .asset-content .small-text p {
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(0.8rem + 0.4vw);
    font-style: normal;
    line-height: 1.5;
  }




	.success-rates{
		position:  relative;
		z-index: 200;
		margin-top: -7vw;
	}
.success-rates .success-item{
display: flex;
	flex-direction: column;
align-items: center;
justify-content: center;

}
	
	.success-rates .success-item h1{
color:var(--text-secondary);
    font-family: var(--font-heading);
    font-size: calc(3rem + 0.2vw);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.24rem;

}
	
	.success-rates .success-item p{
color:var(--text-secondary);
    font-size: clamp(0.875rem, 1.1vw, 1rem);


}




	.potential-path-section h1{
		font-family: var(--font-heading);
    font-size: calc(3rem + 0.2vw);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.24rem;
		color: #540411;
	}
	.potential-path-section p{
		color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
	}







	.hand-in-hand-item{
    background:linear-gradient(180deg, #D3EEFB 0%, rgba(211, 238, 251, 0.00) 100%);
    border-radius: 20px;
  }
	.hand-in-hand-item:hover{
    background-color:#D3EEFB;
  }



  .hand-in-hand-item .img-parent-div {
    display: flex;
    justify-content: end;
    align-items: start;
  }
  .hand-in-hand-item .img-parent-div img{
    width: 25%;
    opacity: 0.75;
  }
  .hand-in-hand-item:hover .img-parent-div img{
    opacity: 1;
  }
  .hand-in-hand-item .content {
    padding: 2vw;
  }
  .hand-in-hand-item .content p{
    color: #192955;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
  }
  .hand-in-hand-item .content .small-text{
    color: #192955;
    font-family: var(--font-body);
    font-size: clamp(0.90rem, 1.1vw, 1.2rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
padding-bottom: 0.5rem;
  }
	.hand-to-hand-parent h2{
		color: #540411;
		font-family: var(--font-heading);
    font-weight: 500;
    font-size: calc(1.5rem + 0.5vw);
    letter-spacing: -0.075rem;
    line-height: normal;
	}







	.once-mitian-img-content {
  height: 90vh;
  position: relative;
}

.once-mitian-img-content .bg-image {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: -1;
  object-fit: cover;
}

.once-mitian-img-content .bg-color {
  position: absolute;
  height: 50%;
  bottom: 0;
  width: 100%;
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
}
.once-mitian-img-content .right-bototm-asset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
	opacity: 0.5;
}

.once-mitian-img-content .content {
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 4vw;
  color: var(--text-secondary);
	z-index: 20;
	height: 100%;
	position: relative;
}

.once-mitian-img-content .content h1 {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-size: calc(1.5rem + 2.5vw);
 
}
.once-mitian-img-content .content h1 strong{
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-size: calc(1.5rem + 2.5vw);

}






  .heart-of-family {
  position: relative;
  background-color: #D3EEFB;
  padding: 4vw 12vw;
}

.heart-of-family .content-asset .asset-top img {
  width: 10%;
	opacity: 0.75;
	position: absolute;
  top: 0;
  right: 0;
}


.heart-of-family .content-asset .asset-bottom img {
	position: absolute;
  bottom: 0;
  left: 0;
  width: 7%;
	opacity: 0.75;
}

.heart-of-family .content-asset h1 {
  font-family: var(--font-heading);
  font-size: calc(3rem + 0.2vw);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.24rem;
  color: #F1591E;
}
.heart-of-family .content-asset p {
      color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}



    .contribution-content h1 {
  font-family: var(--font-heading);
  font-size: calc(3rem + 0.2vw);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.24rem;
  color: #540411;
			padding-bottom: 1rem;
}
.contribution-content p {
      color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}
.contribution-content a {
      color: #F1591E;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}
	
	.slider-custom-arrow{
		position: relative;
	}
	.contribution .hero-nav{
		right: 4vw;
		bottom: 4vw;
		z-index: 1000;
		top: auto;
	}
	
	.contribution .hero-nav .nav-btn{
		background-color: var(--text-secondary);
	}
	.contribution .hero-nav .nav-btn path{
		stroke: var(--primary-color) !important;
	}
	
	.sow-slide-nav, .sow-slider-pagination{
		display: none !important;
	}
	
	.hero-nav .sow-slide-nav{
		display: block !important;
		position: static !important;
		opacity: 1 !important;
	}
	.sow-slider-base .sow-slide-nav a{
		padding: 0!important;
	}
	








.stories {
    width: 100%;

    overflow: hidden;
    position: relative;
}
.stories .header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.stories .header h1 {
    font-family: var(--font-heading);
    font-size: calc(3rem + 0.2vw);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.24rem;
	padding-bottom: 1rem;
}
	
	.stories .header p {
	color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;	
}
	
.stories.sob .header h1 {
    color: #540411;
}

.stories .card-slider {
    width: 100%;
    display: flex;
    gap: 2.5rem;
}

/* 🔥 Immediate children only */
.stories .card-slider > div.card {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    flex-shrink: 0;
    width: calc(20% - 1rem);
}


/* 🔥 Images inside immediate children */
.stories .card-slider > div.card img {
    width: 100%;
    aspect-ratio: 2 / 2.5;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.20);
    object-fit: cover;
}

/* 🔥 Heading inside immediate children */
.stories .card-slider > div.card h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: calc(1.5rem + 0.1vw);
    line-height: normal;
	color: #1A1A1A;
    letter-spacing: -0.075rem;
	padding-top: 1rem;
    padding-bottom: 0.7rem;
}

/* 🔥 Paragraph inside immediate children */
.stories .card-slider > div.card p {
    font-family: var(--font-body);
    font-size: calc(1.025rem + 0.1vw);
    font-weight: 400;
    line-height: 140%;
	color: #1A1A1A;
    letter-spacing: 0.00563rem;
}
	.stories .stories-nav-buttons > div{
		display: flex;
		justify-content: end;
	}
	.stories.sob .ss-nav{
		width: max-content !important;
		display: flex;
		justify-content: end !important;;
	}
	
.stories.sob .header .s-faculty-nav .nav-btn {
    background: #540411;
}
.stories .header .s-faculty-nav .arrow-container svg {
    stroke: #ffffff;
}


/* =========================================
   TABLET & LAPTOP (Max-width: 1024px)
   ========================================= */
@media screen and (max-width: 1024px) {
    
    /* Typography Adjustments */
    :root {
        --font-size-h1: calc(2rem + 1.5vw);
    }

    /* Hero Section */
    .first-section h1 {
        width: 80%;
        font-size: var(--font-size-h1);
    }
    
    .first-section .content {
        gap: 3vw;
    }

    /* Recruiters Slider */
    .slider-title-container h1 {
        font-size: calc(2rem + 1vw);
    }

    /* Success Rates / Stats */
    .success-rates {
        margin-top: -4vw;
        padding: 0 2vw;
    }

    /* Stories Card Width */
    .stories .card-slider > div.card {
        width: calc(33.33% - 1rem); /* Show 3 cards on tablet */
    }

    /* Once an MITian */
    .once-mitian-img-content {
        height: 60vh;
    }
    
    .once-mitian-img-content .content h1,
    .once-mitian-img-content .content h1 strong {
        font-size: calc(2rem + 1vw);
    }
	
	.asset-content .content p{
		width: 100% !important;
		z-index: 20;
		position: relative;
	}
}
@media screen and (min-width: 780px) and (max-width: 1180px) {
    .first-section {
        height: 50dvh;
    }
}
@media screen and (max-width: 780px) {

    .panel-grid-cell {
        padding: 0 !important; 
    }
    .first-section {
        height: 50vh;
    }

    .first-section .content {
        padding: 2rem 1.5rem 2rem 1.5rem;;
        justify-content: flex-end;
        gap: 1.5rem;
    }

    .first-section h1 {
        width: 100%;
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .first-section .buttons {
        width: 100%;
        gap: 10px;
    }

    .first-section .buttons .cta-btn {
        padding: 12px 24px;
        font-size: 1rem;
        flex: 1; /* Make buttons equal width */
        text-align: center;
    }

    /* --- RECRUITERS SLIDER --- */
    .slider-container {
        border-radius: 0;
        padding: 1.5rem 0;
        box-shadow: none;
        margin-bottom: 2rem;
    }

    .slider-title-container h1 {
        font-size: 2rem;
        padding: 0 6vw;
        margin-bottom: 1rem;
    }

    .auto-slider .img {
        margin: 0 1.5rem;
    }
    
    .auto-slider .img img {
        height: 50px !important; 
    }

    .person-review {
        flex-direction: column-reverse; 
        padding: 2rem 6vw;
        background: #D3EEFB; 
    }

    .person-review .review-left-img img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50%;
        margin-top: 1.5rem;
    }

    .asset-content .content p {
        width: 100%;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .asset-content .content h3 {
        padding-top: 1.5rem;
        font-size: 1.25rem;
    }

    .success-rates {
        margin: 1.5rem;
        padding: 3rem 1rem;
        background-color: #192955; /* Ensure dark bg extends */
    }
    
    .success-rates .panel-grid-cell {
        width: 100% !important; 
    }
    
    .success-rates .success-item h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .success-rates .success-item p {
        font-size: 0.9rem;
        opacity: 0.8;
    }



    .potential-path-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .potential-path-section p {
        font-size: 1rem;
    }

    /* --- HAND IN HAND (Icons section) --- */
    .hand-to-hand-parent h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .hand-in-hand-item {
        margin: 0 6vw 1.5rem 6vw;
        padding: 0 0 1rem 1rem;
    }

    .hand-in-hand-item .content p {
        font-size: 1rem;
    }

    /* --- ONCE AN MITIAN --- */
    .once-mitian-img-content {
        height: 50vh;
        margin-top: 2rem;
    }
    
    .once-mitian-img-content .bg-color {
        height: 70%; /* Higher gradient on mobile for text readability */
    }

    .once-mitian-img-content .content {
        padding: 6vw;
        align-items: flex-end;
    }

    .once-mitian-img-content .content h1,
    .once-mitian-img-content .content h1 strong {
        font-size: 2rem;
        width: 100%;
        line-height: 1.2;
    }

    /* --- STORIES OF EXCELLENCE (Horizontal Scroll) --- */
    .stories {
        padding: 3rem 0;
    }

    .stories .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 6vw;
        margin-bottom: 1.5rem;
    }
    
    .stories .header h1 {
        font-size: 2rem;
    }

    .stories .header p {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Mobile Scroll Snap for Cards */
    .stories .card-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 6vw 2rem 6vw; /* Bottom padding for scrollbar spacing */
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Show 1.2 cards visible to encourage scrolling */
    .stories .card-slider > div.card {
        min-width: 75vw; 
        width: 75vw;
        scroll-snap-align: start;
    }
    
    .stories .card-slider > div.card h4 {
        font-size: 1.25rem;
    }

    .stories .stories-nav-buttons {
        display: none;
    }

    .heart-of-family {
        padding: 4rem 6vw;
    }

    .heart-of-family .content-asset h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .heart-of-family .content-asset p {
        text-align: left !important; /* Override inline style if necessary */
    }

    .heart-of-family .content-asset .asset-top img {
        width: 25%;
    }
    
    .heart-of-family .content-asset .asset-bottom img {
        width: 20%;
    }

    /* --- CONTRIBUTION SECTION --- */
    .contribution-content {
        padding: 2rem 6vw;
    }
    
    .contribution-content h1 {
        font-size: 2rem;
    }

    .contribution .hero-nav {
        display: none !important; /* Hide custom arrows on mobile */
    }

    /* Slider dots/pagination visibility */
    .sow-slider-pagination {

        bottom: 1rem;
    }
	.asset-content img {
		max-width: 30%;
	}
}