:root {
  --primary: #f72200;
  /* --secondary: rgb(245, 221, 173); */
  /* --secondary: #FABA5F; */
  --secondary: #f06933;
  --primary-home-bg: #fce8bb;
}

#LP2 {
  background-color:  #f0f0f0;
}


.landingPageDesc.bg-primary-g {
  background-color:  var(--secondary) !important;
}

.learn-more-section {
  background-color: var(--primary-home-bg); /* your yellow */
}

.learn-more-section {
  overflow: auto;
}

.red-strip-bottom {
  position: relative;
  overflow: hidden; /* clips the curve neatly */
}

/* White border layer */
.red-strip-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 12px;                 /* border thickness + strip */
  background-color: white;     /* border color */
  border-radius: 0 0 12px 12px;
  z-index: 1;
}

/* Red strip */
.red-strip-bottom::after {
  content: "";
  position: absolute;
  left: 2px;                   /* creates white border */
  bottom: 2px;
  width: calc(100% - 4px);     /* keeps border visible */
  height: 8px;                 /* actual strip thickness */
  background-color: var(--primary);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}


#LP3 {
  background-color: white;
}

.learn-card {
  padding: 1rem;
  background-color: transparent; /* SAME BG */
}


#LP5 {
  position: relative;
  background:
    url("../img/index/mg-bg.jpeg") left center repeat-y,
    url("../img/index/mg-bg.jpeg") right center repeat-y;
  background-size: 450px auto;
  overflow: hidden;
}



#LP5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: min(100%, 960px); /* matches text width */
  height: 100%;

  background-color: var(--primary-home-bg); /* SAME as earlier bg */
  z-index: 0;
}

#LP5 > .container-fluid {
  position: relative;
  z-index: 1;
}

#studentexp{
  position: relative;
  background:
    url("../img/index/mg-bg.jpeg") left center repeat-y,
    url("../img/index/mg-bg.jpeg") right center repeat-y;
  background-size: min(30vw, 450px) auto;
  overflow: hidden;
}

#studentexp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1140px);
  height: 100%;
  background-color: var(--primary-home-bg);
  z-index: 0;
}

#studentexp > .container {
  position: relative;
  z-index: 1;
}



/* header */
.fixed-navbar {
  height: 80px;
}
.fixed-top {
  z-index: 99999;
}

.notificationText {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 45px;
}
#notification {
  height: 45px;
  background-color: var(--primary);
}
#mobNotification {
  background-color: var(--primary);
}
.notification_apply_now {
  line-height: 45px;
}
.google-translator {
  height: 30px;
}
.skiptranslate {
  visibility: hidden !important;
}
.translation-lang {
  font: normal normal normal 14px/16px Helvetica Neue;
  letter-spacing: 0px;
  color: #707070;
  overflow: auto;
}
.active-lang {
  text-decoration: underline !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
p,
a {
  font-size: 1rem;
}

html {
  scroll-behavior: smooth;
}

.scrollToTop {
  display: none;
  position: fixed;
  right: 30px;
  bottom: 20px;
  z-index: 99;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 10px;
  padding: 15px;
  outline: none;
  border: none;
}

.mediaButton {
  color: white;
  background-color: #363636;
  border-radius: 5px;
  border: none;
  font-size: 1.25rem;
  margin-right: 0.5rem;
  width: 32px;
  height: 32px;
  text-align: center;
}

.mediaButton:hover {
  color: gray;
}

.landingVideo {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.landingVideo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.expand {
  font-size: 1rem;
}

.center-xs {
  align-items: start;
}

.keyFeatureImage {
  padding-bottom: 0.5rem;
}

.directorImage {
  display: flex;
  justify-content: start;
}

.directorImage img {
  border-radius: 8%;
  width: 100%;
  height: 100%;
}

.directorText {
  text-align: start;
}

.faqQuestion {
  margin-top: 1rem;
  margin-bottom: 0;
}

.faqAnswer {
  margin-bottom: 0;
  margin-top: 0.3rem;
}

.faqContent {
  padding: 0 1rem;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.footer-text {
  font-size: 0.9rem;
}

.xl\+notification {
  display: block;
}

.xl-notification {
  display: none;
}

.text-small {
  font-size: 0.8rem;
}

/* Slider for Learners */

.learner_slideshow {
  max-width: 1000px;
  position: relative;
  margin: auto;
  -webkit-animation: linear infinite;
  -webkit-animation-name: run;
  -webkit-animation-duration: 2s;
}

/* Hide the images by default */

.learner_slides {
  display: none;
  transition: all 0.6s ease;
}

.learner_blockquote {
  font-size: 50px;
  color: var(--secondary);
}

/* The learner_slides_dots/bullets/indicators */

.learner_slides_dot {
  height: 15px;
  width: 15px;
  border: 0.2px solid black;
  margin: 0 2px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.learner_slides_dot:hover {
  /* background-color: #a0332d; */
}

.learner_slide_fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.modalVideoContainer {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.modalVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.siteLink {
  color: #323232;
  line-height: 1.5rem;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.siteLink:hover {
  color: #d6a64f;
}

.titleLink {
  color: #d6a64f;
}

.titleLink:hover {
  color: #a0332d;
}

.dropdown-item {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Expert reviews feature */

.expert-profile {
  height: 70px;
}

.expert-profile > img {
  height: 70px;
  width: 70px;
}

.expert-details {
  letter-spacing: 1px;
}

.expert-video {
  cursor: pointer;
}

.expert-details > * {
  margin: 0;
  padding: 0;
}

h5.expert-name {
  margin-bottom: 5px;
}

.expert-designation {
  line-height: 1.3rem;
}

a.expert-action,
a.expert-action:active,
a.expert-action:visited,
a.expert-action:hover {
  color: #a0332d;
  cursor: pointer;
  text-decoration: underline;
  font-weight: normal;
}

/* Latest update and announcments*/

.latest-updates {
  /* background-color:  #F5F5F5; */
}

.latest-updates-item {
  font-weight: 600;
}

a.latest-updates-more {
  color: #a0332d;
  cursor: pointer;
}

a.latest-updates-more:hover {
  color: #d6a64f;
}

.latest-updates-bedge {
  color: white;
}

/* Fee structure */

.custom-table td {
  color: #6a6a6a;
}

/* Animations - text */

.text-highlights {
  animation: zoom-in-zoom-out 3s 1s infinite ease-out;
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1.05, 1.05);
  }
  50% {
    transform: scale(1.1, 1.1);
  }
  75% {
    transform: scale(1.05, 1.05);
  }
  100% {
    transform: scale(1, 1);
  }
}

/* Apply now cards */

.apply_now--card {
}

.apply_now--top {
  border-radius: 12px 12px 0 0;
}

.apply_now--body {
  background-color: #f0f0f0;
  border-radius: 0 0 12px 12px;
  position: relative;
}

.apply_now--logo {
  position: absolute;
  top: -7%;
  right: 10%;
}

.apply_now--btn {
  background-color: #c1302e;
  background-color: #6a6a6a;
  font-size: 14px;
}

/* Student life */

.student_life_cover {
  top: 41px;
  padding: 40px 145px 0;
}
.student_life_cover_text {
  top: 35px;
  font: normal normal normal 26px/32px Open Sans;
  letter-spacing: 0px;
  color: #ffffff;
  text-shadow: 0px 3px 6px #00000099;
}
.student_life_cover_heading {
  top: 0px;
  font: normal normal 600 16px/43px Open Sans;
  letter-spacing: 0px;
  color: #ffffff;
  text-shadow: 0px 3px 6px #00000099;
}
.student_life_goals {
  border-right: 2px solid #e2e2e2;
}
.student_life_headline {
  padding: 40px 0;
}
.student_life_house_structure {
  padding-left: 30px !important;
}

/* Partnership */
.partnership_main {
  background: #20283b 0% 0% no-repeat padding-box;
  height: 245px;
}
.partnership_cover_heading,
.partnership_cover_text,
.partnership_cover_contact {
  font: normal normal normal 24px/29px Open Sans;
  letter-spacing: 0px;
  color: #ffffff;
}
.partnership_cover_heading {
  font: normal normal 600 16px/43px Open Sans;
}
.partnership_cover_contact {
  font: normal normal normal 17px/29px Open Sans;
}
@media screen and (max-width: 768px) {
  /* Student life */
  .student_life_cover {
    top: 15px;
    padding: 10px;
  }
  .student_life_cover_text {
    top: 12px;
    font: normal normal normal 12px/30px Open Sans;
  }
  .student_life_cover_heading {
    top: 0px;
    font: normal normal 600 10px/22px Open Sans;
  }
  .student_life_house_structure {
    padding-left: 0px !important;
  }

  .student_life_headline {
    padding: 18px 0;
  }

  .partnership_cover_heading {
    font: normal normal 600 10px/22px Open Sans;
  }
  .partnership_cover_text {
    font: normal normal normal 12px/30px Open Sans;
  }
  .partnership_cover_contact {
    font: normal normal normal 9px/29px Open Sans;
  }
  .partnership_main {
    height: 200px;
  }

  .translation-lang {
    font: normal normal normal 11px Helvetica Neue;
  }
  .landingVideoOverlay {
    height: 25vh;
  }
  .directorImage {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
  }
  .learner_blockquote {
    font-size: 40px;
  }
  /* The learner_slides_dots/bullets/indicators */
  .learner_slides_dot {
    height: 13px;
    width: 13px;
  }
  .notificationText {
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  .apply_now--logo {
    position: absolute;
    /* top: -45%; */
    top: -7%;
    right: 10%;
  }
  .apply_now_arrows {
    display: none;
  }
}

.paragraph {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

@media screen and (max-width: 573px) {
  p,
  a,
  b,
  span,
  button,
  td,
  div {
    font-size: 1.2rem;
    line-height: 2.04rem;
  }
  .paragraph {
    font-size: 1.2rem;
    line-height: 2.04rem;
  }
  .text-small {
    font-size: 1rem;
  }
  .directorImage img {
    border-radius: 8%;
    width: 50%;
  }
  .notificationText {
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  .xl\+notification {
    display: none;
  }
  .xl-notification {
    display: block;
  }
  .remindMe {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .directorText {
    text-align: center;
  }
  .center-xs {
    align-items: center;
  }
  .keyFeatureImage {
    padding-bottom: 1rem;
  }
  .directorImage {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
  }
  .footer-text {
    font-size: 1rem;
  }
  .footer-text-small {
    font-size: 0.9rem;
  }
  .remindText {
    text-align: center;
    width: 100%;
  }
  .footer-hidden {
    display: block;
  }

  .apply_now--logo {
    position: absolute;
    /* top: -40%; */
    top: -7%;
    right: 10%;
  }
}

/* Styling */
#landingPage {
  margin-top: 0px;
  width: 100%;
  min-height: 459px;
}
#landingPageBackground {
  position: relative;
}
.landingPageBackgroundImg {
  height: 530px;
  background: transparent url("/assets/img/index/background.jpg") center no-repeat padding-box;
  background-size: cover;
}
.landingPageBackgroundContent {
  position: absolute;
  top: 100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* justify-content: space-around; */
}
.lpContentHeading {
  float: left;
}
.lpContentHeadingSub {
  background-color: white;
  /* margin-bottom: 1.2rem !important; */
  padding: 0 20px;
}
.lpContentCard {
  margin-right: 30px;
}
.landingPageDisclaimerContent {
  position: absolute;
  top: 490px;
  width: 100%;
  display: flex;
  justify-content: right;
  padding-right: 30px;
}
.lpContentHeading {
}
.lpContentCard {
  max-width: 640px;
  /* height: 280px; */
  background: var(--primary) 0% 0% no-repeat padding-box;
  /* border-radius: 8px; */
  opacity: 1;
  margin-left: clamp(12px, 5.85vw, 80px);
}
/* .landingPageDesc {
  background-color: var(--primary);
} */
.landingDescHighlights {
  justify-content: center;
  position: relative;
}
.ldHighlights {
  top: -50px;
  width: 500px;
  font-weight: 500;
  line-height: 1.5;
  margin-left: 0px;
}
.ldHighlights p {
  line-height: 1.5;
}
.landingDescSections {
}


.whiteback {
  background-color: white;
  border-radius: 10px; /* round ALL corners */
  padding: 20px;
  height: 100%;
  position: relative;
}


#aboutDiploma {
  background: #f7f7f7 0% 0% no-repeat padding-box;
}
.aboutDiplomaDesc {
}
.aboutDiplomaCert {
}
.adCertImg {
  position: relative;
}
.adCertImgSection {
  position: absolute;
}
.adCertImgSection img {
  box-shadow: 0px 3px 6px #00000029;
}

#diplomaLabel {
}
.arrow-right {
  width: 0;
  height: 0;
  border-top: 80px solid transparent;
  border-bottom: 90px solid transparent; /* 40px height (100+100) */
  border-left: 10px solid white;
  position: absolute;
  right: -20px;
}

@media screen and (max-width: 768px) {
  .lpContentCard {
    z-index: 9999;
  }

  .lpContentHeadingSub {
    background-color: white;
    margin-bottom: 0 !important;
    padding: 0;
    display: block;
  }
}
/* Navbar main links (Academics, Admissions, Resources, etc.) */
.navbar-nav .nav-link {
  color: var(--primary) !important; /* orange */
}

.navbar-nav .nav-link i {
  color: var(--primary);
}

.navbar-nav .nav-link:hover {
  color: #d61e00 !important; /* slightly darker orange */
}

@media screen and (max-width: 573px) {
  .landingPageBackgroundContent {
    top: 40px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    display: block;
    /* justify-content: space-around; */
  }
  .lpContentHeading {
    width: 100%;
    text-align: left;
  }

  .lpContentHeadingSub {
    background-color: white;
    margin-bottom: 0 !important;
    padding: 0;
    display: block;
  }
  .lpContentCard {
    z-index: 9999;
    position: absolute;
    /* top: 350px; */
    top: 80px;
    width: 92%;
    margin-left: 0;
    /* height: 240px; */
  }
  .landingPageDisclaimerContent {
    top: 350px;
    padding-right: 15px;
  }
  .landingPageBackgroundImg {
    background: transparent url("https://study.iitm.ac.in/es/assets/img/IITMadrasCampus.jpg") 100% 0% no-repeat padding-box;
  }
  /* #landingPageBackground {
            position: relative;
        }
            .landingPageBackgroundImg {
                height: 259px;
                background: transparent url('../img/IITMadrasCampus.jpg') 0% 0% no-repeat padding-box;
            }
            .landingPageBackgroundContent {
                position: relative;
                top: 30px;
                width: 100%;
                display: flex;
                justify-content: space-around;
            } */

  #landingPageDesc {
  }
  .landingDescHighlights {
    display: block;
    margin-top: -8px;
    width: 100%;
  }
  .ldHighlights {
    margin-left: 15px;

    /* top: 270px; */
    top: 48px;
    width: 100%;
    background-color: white;
    border-radius: 10px 10px 0px 0px;
  }

  .landingDescSections {
    /* padding-top: 290px; */
    padding-top: 120px;
  }

  .adCertImg {
    position: relative;
    padding-top: 15px;
  }
  .adCertImgSection {
    position: relative;

    width: 80%;
  }
  .programCard {
    width: 92%;
    margin-left: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}


.hero {
  width: 100%;
  padding: 60px 40px;
  position: relative;
  /*background: var(--primary-home-bg);*/
  background-image: url("../img/index/mg-bg.jpeg");
  color: var(--primary);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 500px;
}

.hero-content {
  flex: 1;
  max-width: 550px;
  padding: 50px 40px;
  background-color: var(--white);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 550px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero {
    gap: 40px;
    padding: 50px 30px;
  }

  .hero-content {
    padding: 40px 30px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 770px) {
  .hero {
    flex-direction: column;
    margin-top: 105px;
    padding: 40px 20px;
    min-height: auto;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
    padding: 30px 25px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 100%;
    width: 100%;
  }
}