/* Default: desktop */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-links {
    display: flex;
    gap: 20px;
  }
  
  .hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }
    
    * {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    
    img, iframe, video, object, embed {
      max-width: 100%;
      height: auto;
    }
    .header-links {
      display: none;
      flex-direction: column;
      gap: 10px;
      background-color: white;
      position: absolute;
      top: 60px;
      right: 10px;
      padding: 15px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      z-index: 10;
    }
  
    .header-links.active {
      display: flex;
    }
  
    .hamburger {
      display: block;
    }
  }
 
  @media (max-width: 768px) {
    .slider-image {
      margin-top: 30px !important;
      object-fit: contain;
      width: 90%; 
      height: auto;
      display: block;
      margin: 0 auto; 
    }
  }


@media (min-width: 769px) and (max-width: 1024px) {
  .slider-image {
    object-fit: contain;
    width: 95%; 
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
  /* /////////////////////////////mission vision responsive */
  @media (max-width: 768px) {
    .mission-vision {
      padding: 32px 16px;
      margin-top: -1px;
    }
  
    .mission-vision-container {
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
  
    .mission-card,
    .vision-card {
      width: 100%;
      height: auto;
    }
  
    .card-content {
      flex-direction: column;
      align-items: center;
      height: auto;
      padding-top: 36px;
    }
  
    .card-text {
      position: relative;
      top: 0;
      height: auto;
      padding: 40px 20px 24px;
    }
  
    .card-heading {
      font-size: 20px;
      margin-bottom: 16px;
    }
  
    .card-separator {
      width: 180px;
      height: 3px;
      margin-bottom: 16px;
    }
  
    .card-description {
      font-size: 16px;
      line-height: 24px;
      max-width: 100%;
    }
  
    .card-icon {
      position: absolute;
      top: -20px;
      width: 50px;
      height: 50px;
    }
  
    .mission-card .card-icon {
      left: 16px;
    }
  
    .vision-card .card-icon {
      right: 16px;
    }
  }

  /* Header Mobile Styles */
  @media screen and (max-width: 767px) {
    .header {
      --bs-navbar-padding-y: 0.25rem;
      --bs-navbar-brand-padding-y: 0.125rem;
      --bs-navbar-brand-margin-end: 0.5rem;
      padding: 0;
      margin-bottom: 0;
    }
    
    .header-container {
      padding: 0 15px;
      min-height: 48px;
    }
    
    .header-navbar {
      padding: var(--bs-navbar-padding-y) 0;
    }

    .header-navbar .navbar-logo {
      max-width: 200px !important;
      height: auto !important;
      width: auto !important;
    }
}
@media (max-width: 768px) {
  .black-background {
    min-height: 500px;
    margin-top: -35px;
  }
    
    .timeline-section {
      padding: 0 20px;
      overflow: visible;
      border-top: none;
    }
  
    .timeline-container {
      /* height: auto; */
      padding: 40px 0;
      min-height: 600px;
      background: linear-gradient(90deg, rgba(10, 9, 12, 0), #1c1919 50%, rgba(10, 9, 12, 0));
      border-radius: 24px;
    }
  
    .timeline-heading {
      font-size: 32px;
      top: 40px;
    }
  
    .timeline-image {
      position: static; 
      display: block;
      background-image: url('https://image.ballebaazi.com/emailer_images/timeline-mob.png');
      background-size: contain;
      background-position: 50% 0;
      background-repeat: no-repeat;
      width: 100%;
      max-width: 90%; 
      height: 50vh;
      margin: 80px auto 20px; 
      transform: none;
      padding: 0;
    }
    .timeline-image img#timeline-gif {
      display: none !important; /* Increased specificity and !important to override */
    }
  }
  /* <!-- Life at SportsBaazi Section --> */
  /* Existing desktop styles remain unchanged */

/* --------------------- Mobile Media Queries --------------------- */
@media (max-width: 768px) {
  .decorative-elements {
    height: auto !important;
    position: relative;
    bottom: 465px;
    left: 39px;
}
  .decorative-line {
    display: block;
    width: 14px;
}
.decorative-line.new-line1 {
  position: absolute;
  right: 95px;
  top: 200px;
  width: 13.38px;
  height: 94.4px;
  background-color: #ffedeb;
  border-radius: 67.3px;
  transform: rotate(-21.7deg);
  transform-origin: 0 0;
  z-index: 1;
}
.decorative-line.new-line2 {
  position: absolute;
  right: 51px;
  top: 300px;
  width: 13.38px;
  height: 207.4px;
  background-color: #ffedeb;
  border-radius: 67.3px;
  transform: rotate(-21.7deg);
  transform-origin: 0 0;
  z-index: 1;
}
    .decorative-elements{
        height: auto !important;
    }
    .section-heading {
      position: absolute;
      top: 0px;
      left: 50%;                          
      transform: translateX(-50%);     
      font-size: 30px;
      text-align: center;
      font-weight: 800;
      margin: 0;
      z-index: 2;
      white-space: nowrap;               
      width: max-content;               
      padding: 0 10px;                  
    }
    
.culture {
  position: absolute;
  top: 100px;
  left: 41px;
  width: 100%;
  background-color: #f7f8f9;
  border-radius: 24px;
  box-sizing: border-box;
  max-width: 80%;
  padding: 20px 40px;
  margin-top: 30px;
  min-height: 695px; 
}

.culture-body {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin-top: 190px;
  margin-bottom: 41px;
}

.activities {
    display: inline;
    height: auto;
    margin-top: 300px !important;
left: 0px;
right: 0px;
width: 100%;
margin:auto;
max-width: 90%;
}}

  /* nnnnnnnnnnnnnnnnnn */
  @media (max-width: 768px) {
    .activities-wrapper {
      overflow: hidden;
      position: relative;
      padding-top: 50px;
      padding-bottom: 40px;
    }
  
    .activities {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      gap: 16px;
      padding-left: 16px;
      padding-right: 16px;
      scroll-behavior: smooth;
    }
  
    .activity-card {
      height: 200px !important;
      min-height: 200px !important;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 0;
      box-sizing: border-box;
      overflow: hidden;
    }
  
    .activity-image {
      width: 100%;
      height: auto !important;
      max-height: 140px; /* adjust as needed so image + title fit in 200px */
      object-fit: cover !important;
      border-radius: 12px 12px 0 0;
      display: block;
      flex-shrink: 1;
    }
  
    .activity-title {
      margin-top: 0;
      margin-bottom: 0;
      padding: 0 10px;
      font-size: 14px !important;
      width: 100%;
      text-align: center;
      flex-shrink: 0;
    }
  
    .slider-dots {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      gap: 0px !important;
    }
  
    .dot {
      width: 10px;
      height: 10px;
      background-color: #ccc;
      border-radius: 50%;
      display: inline-block;
      transition: background-color 0.3s;
    }
  
    .dot.active {
      background-color: #222;
    }
  
    /* Override desktop absolute positioning */
    .activities {
      position: static;
    }
    .life-at-sportsbaazi{
      height: auto;
      margin-top: 65px;
      display: flex
;
      flex-direction: column;
      justify-content: center;
      gap: 90px;
      padding: 160px 0px 10px 0px;
    }
  }

  /* ////////////////////////////perks////////////////////////// */


  @media (max-width: 768px) {
    .perks{
        height: 680px;
        padding: 50px 0px;
    }
/*     
    .meetTheLeaders h2 {
        font-size: 34px;
        font-weight: 800;
        margin: 0;
        padding: 0;
        line-height: 1.2;
        display: inline-block;
        text-align: center; 
    }*/

    .leader-1 {
      order: 2;
    }
  
    .leader-2 {
      order: 1;
    }
  
    .leader-3 {
      order: 3;
    }
    .perks-container {
      width: 90%;
      max-width: 95%;
      margin: auto;
      display: flex;
      height: 480px;
      flex-direction: column;
      font-size: 2px;
      justify-content: space-between;
      backdrop-filter: blur(100px);
      border-radius: 24px;
      background-color: rgba(255, 255, 255, 0.05);
      border: 1px solid #40414a;
      padding-top: 31px;
      padding-bottom: 31px;
      padding-left: 16px;
      padding-right: 16px;
      gap: 20px;
  }

  .perk-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--Tokens-Colors-Background-White-Background, #FFF);
    font-family: Roboto !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    position: relative;
    min-height: 40px;
    padding-left: 56px;
  }


.perks-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  color: #ef5c48;
  text-align: center;
  margin-bottom: 35px;
  font-weight: 700;
}
  }



  /* //////////////////////////////leader section/////////////////////////// */
  @media (max-width: 768px) {
    .meetTheLeaders {
      padding: 44px 16px 100px;
      font-size: 24px !important;
      font-weight: 800 !important;
      text-align: center;
    }
  
    .meetTheLeadersContainer {
      position: relative;
      top: 0;
      left: 0;
      transform: none;
      padding: 0;
      max-width: 100%; /* CHANGED: Reduced from 100% to 90% to shrink container width */
    }
  
    .listOfLeaders {
      position: relative;
      top: 0;
      left: 0;
      transform: none;
      width: 100%;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 70px;
      padding: 0;
      margin-top: 35px;
    }
  
    .leader {
      width: 100%;
      max-width: 340px;
      height: auto;
      padding-top: 0;
    }
  
    /* .leader .container {
      height: 350px;
      overflow: visible;
      position: relative;
      top: 10px;
    } */
  
    /* .details {
      position: relative;
      top: -35px;
      left: 0;
      width: auto;
      padding: 4px 20px 0;;
      align-items: flex-start;
      text-align: left;
    } */
  
    /* .linkedin-circle {
      position: relative;
      top: -95px;
      right: 0;
      margin: 12px 20px;
      align-self: flex-end;
      float: right;
    } */
  }
  
  /* //////////////////////////////testonomials/////////////////////////// */
  @media (max-width: 768px) {
    .growth-section {
      flex-direction: column;
      padding: 40px 16px;
      min-height: auto;
      align-items: flex-start;
    }
  
    .growth-content {
      flex-direction: column;
      align-items: flex-start;
      padding-right: 0;
    }
  
    .growth-text {
      width: 100%;
      margin-bottom: 30px;
    }
  
    .growth-heading {
      font-size: 24px;
      line-height: 32px;
    }
  
    .growth-body {
      font-size: 14px;
      line-height: 22px;
    }
  
    .culture_img {
      position: relative;
      width: 100%;
      left: 0;
      top: 0;
      margin-bottom: 30px;
    }
  
    .culture_img img {
      width: 100%;
      border-radius: 12px;
      position: relative;
      bottom: 670px;
      width: 224px;
      left: 41px;
  }
  
    .testimonials {
      position: relative;
      left: 0;
      top: 0;
      transform: none;
      flex-direction: row;
      overflow-x: auto;
      gap: 16px;
      scroll-snap-type: x mandatory;
      padding-bottom: 20px;
    }
  
    .testimonial-card {
      width: 280px;
      min-width: 280px;
      flex-shrink: 0;
      margin-left: 0;
      scroll-snap-align: start;
      border-bottom: 1px solid #576773 !important;
    }
  
    .testimonial-text {
      width: 100%;
      padding: 0 12px;
      font-size: 13px;
      line-height: 18px;
    }
  
    .section-title {
      font-size: 20px;
      margin-bottom: 24px;
    }
  
    .gallery-nav {
      gap: 10px;
      margin: 40px 0 24px;
    }
  
    .nav-arrow {
      width: 32px;
      height: 32px;
    }
  
    .arrow-icon {
      width: 10px;
      height: 10px;
    }
   .accordina_section{
    display: flex;
    flex-direction: column;
    align-items: center;    
    
   }
}

.section-container {
  position: relative;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 54px;
    color: #22272b;
    margin-bottom: 120px;
}

.section-title .values {
    color: #ef5c48;
}

/* Cards Container */
.cards-container {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 17px;
    margin: 0 auto;
    padding-bottom: 192px;
    width: 100%;
    max-width: 1270px;
}

/* Base Card Styling */
.core-value-card {
    width: 240px;
    height: 255px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #dee4ea;
    box-sizing: border-box;
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.core-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #c5d0e0;
}

/* Card Content */
.core-value-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: #212020;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.core-value-icon img {
    width: 32px;
    height: 32px;
}

.core-value-content {
    position: absolute;
    top: 92px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.core-value-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #22272b;
    font-weight: 700;
    margin: 0;
}

.core-value-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #8590a2;
    margin: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Accordion-specific styles */
.core-value-card .accordion-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 30px;
    width: 24px;
    height: 24px;
    background: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    transition: transform 0.3s ease;
}

/* Active card styles for accordion */
.core-value-card.active {
    height: auto;
    min-height: 165px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #ffd2cc;
}

.core-value-card.active .core-value-description {
    opacity: 1;
}

.core-value-card.active .accordion-toggle {
    transform: rotate(180deg);
}

.core-value-card .core-value-icon {
    background-color: #FFEDEB;
}
/* 
.core-value-card .core-value-icon img {
    filter: brightness(0) invert(1);
} */

.core-value-card.active .core-value-icon {
    background-color: #FFD2CC;
}
/* 
.core-value-card.active .core-value-icon img {
    filter: brightness(0) invert(1);
} */

/* new added - 25 june */
.core-value-card .core-value-icon img,
.core-value-card.active .core-value-icon img {
    
    flex-shrink: 0;
    filter: none !important; /* Show original color, keep sharpness */
    object-fit: contain;     /* Ensures sharp edges for SVG/PNG */
}

/* Media Queries for Responsive Accordion */
@media (max-width: 1024px) {
    .cards-container {
        position: relative;
        top: -45px;
        left: 0;
        transform: none;
        flex-direction: column;
        align-items: center;
        padding-bottom: 60px;
        margin-top: 40px;
    }
    
    .section-title {
        margin-bottom: 60px;
        font-size: 42px;
    }
    
    .core-value-card {
        width: 100%;
        max-width: 500px;
        height: 80px;
        overflow: hidden;
        transition: height 0.4s ease, background 0.3s ease;
    }
    
    .core-value-card:hover {
        transform: none;
    }
    
    .core-value-icon {
        top: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
    }
    
    .core-value-content {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        padding: 0px;
    }
    
    .core-value-description {
        opacity: 0;
        padding-top: 10px;
    }
    
    .core-value-card .accordion-toggle {
        display: block;
    }
    
    .core-value-card.active {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .core-value-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .core-value-card.active {
      border-color: #ffd2cc !important;
      height: 100px !important;
      min-height: unset;
      padding-bottom: 0;
    }
    .core-value-card .accordion-toggle {
      color: #000 !important;
      top: 16px;
    }
    .core-value-description {
      white-space: unset;
      word-break: unset;
      padding-bottom: 0;
    }
   
    .core-value-card {
        height: 63px;
        background-color: #ffedeb;
        border: 1px solid #ffd2cc;
    }
    
    .core-value-icon {
        top: 12px;
        left: 12px;
        width: 42px;
        height: 42px;
        background: #000;
        border-radius: 50px;
    }
    
    .core-value-icon img {
        width: 26px;
        height: 26px;
    }
    
    .core-value-content {
        padding: 0px;
    }
    
    .core-value-title {
        margin-left: 50px !important;
        font-size: 14px;
        font-weight: 600 !important;
        font-family: Montserrat !important;
    }
    
    .core-value-card.active .core-value-title {
        margin-left: 70px !important;
    }
    
    .core-value-description {
      font-size: 13px;
      line-height: 18px;
      color: #8590A2;
      opacity: 1;
      background: #fff;
      width: 100%;
      max-width: 100%;
      margin-top: 16px;
      padding: 10px 10px 30px 20px;
  }
    
    .core-value-card.active {
        height: 100px !important;
        padding: 22px 0px 120px 0px;
    }
  }

  /* 2n3////////////////////////slider//////////////////// */
  .section-container_growth {
    position: relative;
    background-color: #252424;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 0;
    overflow: hidden;
}


.section-container_growth::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://image.ballebaazi.com/emailer_images/Real-events.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25; /* Set to 0.2 for 20% opacity or 0.3 for 30% */
    z-index: 0;
}

/* Make sure content stays on top of the background image */
.section-container_growth > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
  .section-container_growth {
    padding: 24px 0 !important;   /* Reduce top/bottom padding */
    min-height: 556px !important; /* Remove any min-height if set */
    height: auto !important;      /* Let it shrink to fit content */
  }
}

.core_title{
    text-align: center !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 54px;
    color: #22272b !important;
    margin-bottom: 40px;
}
.section-header {
  position: relative;
  margin-bottom: 180px;
  padding: 0 0px 0px 114px;
  width: 534px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700 !important;
  text-align: left;
  color: #fff;
  line-height: 1.2;
  max-width: 650px;  
  margin-bottom: -25px;
  margin-top: 75px;
  white-space: nowrap;
}

.values {
    color: #ef5c48;
}

.section-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 20px; 
  color: #fff;
  margin-top: 24px;
  width: 500px;
  line-height: 1.6;
}
/* Testimonials container */
.testimonials {
    display: flex;
    gap: 0px;
    position: absolute;
    left: 728px;
    top: 50%;
    transform: translateY(-50%);
}

/* Testimonial card */
.testimonial-card {
    width: 304px;
    height: 400px;
    background-color: #252424;
    border: 0.5px solid #596773;
    border-radius: 24px;
    padding: 34px 0 20px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #ef5c48;
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid #fff;
}

.testimonial-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.testimonial-designation {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    /* display: none; */
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-text {
  font-size: 14px;
  width: 272px;
  line-height: 20px;
  color: #8590a2;
  padding: 0 16px;
  margin: 0 auto; /* Center the text block within the card */
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}


/* Mobile slider styles */
.mobile-slider-container {
    display: none;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #596773;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ef5c48;
    transform: scale(1.2);
}

/* Media queries for responsive slider */
@media (max-width: 1200px) {
    .section-header {
        margin-bottom: 100px;
    }
    
    .testimonials {
        left: 600px;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 42px;
    }
    
    .testimonials {
        left: 500px;
    }
}

@media (max-width: 900px) {
    .section-title {
        font-size: 36px;
    }
    
    .testimonials {
        left: 450px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        display: none;
    }

    
    .mobile-slider-container {
        display: block;
    }
    
    .section-header {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .section-title {
      font-size: 32px;
      max-width: 100%;
      text-align: center;
      margin-top: 0 !important;        
      margin-bottom: 24px !important;
  }
    
    .section-subtitle {
        margin-top: -20px !important;   
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 26px;
        padding-top: 44px;
    }
    
    .testimonial-card {
      width: 100%;
      max-width: 300px;
      height: 400px;
      padding: 30px 0 20px;
      margin: auto;
  }
    
    .testimonial-text {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-header {
      margin-bottom: 30px;
        width: 100%;
        padding: 20px 40px;
    }
  }

@media (max-width: 992px) {
  .slider-indicators {
    display: flex;
  }
}

/* Animation for mobile slider */
@keyframes slideIn {
  from { opacity: 0.5; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.gallery-item {
  animation: slideIn 0.5s ease-out;
}

/* new code - 17 june */
@media (max-width: 768px) {
/* General Reset and Wrapper */
.activities-wrapper {
  overflow: hidden;
  position: relative;
}

/* Horizontal Scroll on Mobile */
.activities {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.activity-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
  text-align: center;
}

.activity-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Dots */


.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}


.activity-title-first {
  position: absolute;
  top: 200px; 
  left: 0;
  right: 0;
  bottom: 0; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  font-size: 20px !important; 
  font-weight: 700 !important;
  margin: 0;
  color: #22272b;
  z-index: 1;
  }

.dot.active {
  background-color: #333;
}

/* Hide scroll bar (optional) */
.activities::-webkit-scrollbar {
  display: none;
}

.activities {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Desktop adjustments (optional) */
@media (min-width: 769px) {
  .activities {
    overflow: visible;
    scroll-snap-type: none;
    flex-wrap: wrap;
  }

  .activity-card {
    flex: 0 0 33.33%;
  }

  .slider-dots {
    display: none;
  }
}
}

@media (max-width: 768px) {
  .decorative-line,
  .decorative-line.new-line1,
  .decorative-line.new-line2 {
    width: 20px;
    height: 160px;
    transform: rotate(-21.7deg);
    transform-origin: 0 0;
    position: absolute;
    background-color: #ffedeb;
    border-radius: 67.3px;
    opacity: 0.9;
    z-index: 2;
  }

  .decorative-line {
    top: 100px;
    right: 75px;
    background-color: #ff9c8f; /* main pink line */
  }

  .decorative-line.new-line1 {
    top: 80px;
    right: 120px;
  }

  .decorative-line.new-line2 {
    top: 250px;
    right: 50px;
  }
}
@media screen and (max-width: 786px) {
  .meetTheLeaders h2 {
    /* margin-top: -60px; 
    margin-bottom: 20px; */
    font-size: 24px !important;
    /* font-weight: 700 !important; */
    margin: 2vh auto; /* Center and add vertical space */
    position: relative;
    top: -2vh; /* Fine-tune position */
  }
  
  .leader .container {
    position: relative;
    width: 100%;
    height: 320px;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 0 16px 0;
    margin: 0;
  }

  .leader .image1Icon {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 270px;
    object-fit: cover;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 12px 12px 0px 0px;
    margin-top: -32px;
  }

  .name {
    position: relative;
    font-size: 16px !important; /* Reduced font size for mobile */
    line-height: 18px; /* Adjusted for better readability */
    font-weight: 700 !important;
    top: 20px; /* Adjusted margin for mobile layout */
    text-align: left; /* Ensure alignment matches container */
  }

  .designation {
    position: relative;
    font-size: 14px !important; /* Updated to match your preference */
    line-height: 14px !important; /* Match mobile layout */
    text-transform: uppercase;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    top: 20px;
  }

  .details {
    position: absolute;
    top: 250px;
    left: 20px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
  }

  .linkedin-circle {
    position: absolute;
    right: 16px;
    top: 255px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #0077B5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    box-sizing: border-box;
  }
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .activities-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .activities {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .activities::-webkit-scrollbar {
    display: none;
  }

  .activity-card {
    display: block; /* All cards in layout for swiping */
  }

  .slider-dots {
    display: flex;
    justify-content: center;
    margin: 25px 0 10px 0; /* Increased top and bottom margin */
    padding-top: 15px; /* Additional spacing */
    width: 100%;
    position: static; /* Ensure it's not absolutely positioned */
  }

  .dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    display: block;
    cursor: pointer;
  }

  /* Highlight dot when card is targeted via click */
  #slide-1:target ~ .slider-dots a:nth-child(1) .dot,
  #slide-2:target ~ .slider-dots a:nth-child(2) .dot,
  #slide-3:target ~ .slider-dots a:nth-child(3) .dot {
    background-color: #333;
  }

  /* Default first dot active */
  .slider-dots a:nth-child(1) .dot {
    background-color: #333;
  }
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .activities {
    overflow: visible;
    scroll-snap-type: none;
    flex-wrap: wrap;
  }

  .activity-card {
    flex: 0 0 33.33%;
    scroll-snap-align: none;
  }

  .slider-dots {
    display: none;
  }
}

@media (max-width: 786px) {
  .section-subtitle {
    font-size: 16px;
    width: 100%;
    color: var(--Colors-Dark-Neutrals-700, #8C9BAB);
    margin-top: 16px; 
    line-height: 1.4;
  }
}

/* Mobile view adjustments for activity slider */
@media (max-width: 768px) {
  .activity-card {
    height: 220px !important;
    min-height: 200px !important;
    max-width: 100%;
    margin: 0 auto;
  
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; 
    position: relative;
  }
  
  .activity-image {
    width: 100%;
    height: auto !important;
    max-height: 160px;
    object-fit: cover !important;;
    object-position: top; /* Keep top always visible */
    border-radius: 12px 12px 0 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Specific adjustment for slide 2 */
/* 

  #slide-2 {
    padding: 0;
  }
  #slide-2 .activity-image {
    max-height: 180px;
    width: 100%;
    object-fit: contain !important;
    margin: 0 auto;
    padding: 0;
  }
  #slide-2 .activity-title {
    margin-top: 10px;
    position: static;
    transform: none; 
  }
  
  /* Adjust title styles for all cards */
  .activity-title {
    position: relative;
    top: auto;
    margin-top: 170px;
    font-size: 14px !important;
    padding: 0 10px;
    text-align: center;
    width: 100%;
    font-weight: 500;
  }
  
  /* Remove any specific slide overrides */
  #slide-1,
  #slide-2,
  #slide-3 {
    height: auto !important;
  }
}

/* Mobile Timeline Heading */
@media (max-width: 768px) {
  .timeline-heading {
    color: #D9D9D9;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1px;
    text-align: center;
    margin: 24px 0;
  }
}

/* Hide careers link on careers page */
body.careers-page .careers-link {
    display: none !important;
}

/* Samsung Galaxy S8+ and similar devices */
@media screen and (width: 1440px) and (height: 2960px),
       screen and (width: 2960px) and (height: 1440px),
       screen and (min-width: 360px) and (max-width: 400px) and (min-height: 700px) and (max-height: 800px) {
        .perks{
          height: 600px;
          padding: 50px 0px;
      }
  .perks-container {
    height: 420px;  /* Reduced height for S8+ */
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 16px;
    overflow: hidden;
  }
  
  .perk-item {
    margin-bottom: 16px;  /* Reduced margin */
    font-size: 13px;      /* Slightly smaller font */
    line-height: 18px;    /* Tighter line height */
    min-height: 36px;     /* Reduced min-height */
  }
  
  .perks-heading {
    font-size: 24px;      /* Smaller heading */
    margin-bottom: 24px;  /* Reduced margin */
  }
}

@media (max-width: 768px) {
  .core-values {
    height: 550px;
  }
  .core-values:has(.core-value-card.active) {
    height: 620px;
  }
}

@media (max-width: 768px) {
  .core-value-card .core-value-icon {
    background-color: #FFD2CC !important;
  }
  .core-value-card .core-value-icon img {
    /* width: 17.28px !important;
    height: 17.28px !important; */
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .perk-item {
    margin-bottom: 20px !important;
  }
  .perks-column .perk-item:last-child {
    margin-bottom: 0 !important;
  }
  .perks-column {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
