/* ===== BANNER ===== */
.banner {
  width: 100%;
  position: relative;
  height: 100dvh;
  cursor: grab;
}

.hero-slider {
  width: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100dvh;
  object-fit: cover;
}

/* Slide buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.slide-btn:hover {
  opacity: 1;
}
.slide-btn.prev {
  left: 15px;
}
.slide-btn.next {
  right: 15px;
}

/* Banner content */
.bannerCont {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
}

.bannerCont .btn-primary {
  background: #c50b11;
  border-radius: 0;
}

.bannerCont .btn-primary:hover {
  background: #053d7a;
}

/* ===== WELCOME SECTION ===== */
.welcomeSec {
  margin-top: -50px;
  position: relative;
  z-index: 2;
  clip-path: polygon(50% 5%, 100% 0, 100% 95%, 50% 100%, 0 95%, 0 0);
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.welcome-item .item {
  padding: 120px 40px;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.welcome-item .item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #023145;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.welcome-item:nth-child(2) .item::before {
  background: #b4a82d;
}
.welcome-item:nth-child(3) .item::before {
  background: #2e99bd;
}
.welcome-item:nth-child(4) .item::before {
  background: #212121;
}

.welcome-item .item:hover {
  transform: scale(1.1);
}

.welcome-item .item:hover::before {
  opacity: 0.95;
}

.itemCont {
  position: relative;
  z-index: 1;
}

.itemCont * {
  color: #fff;
}

.icon img {
  width: 50px;
  margin-bottom: 20px;
}

.itemCont h3 {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 15px;
  position: relative;
}

.itemCont h3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: #fff;
}

.itemCont p {
  font-size: 14px;
  margin-bottom: 20px;
  height: 68px;
  overflow: hidden;
}

/* ===== PLACEMENT SLIDER ===== */

.placementSec {
  padding-block: 70px;
  text-align: center;
}

.placementSec .container {
  overflow: visible;
}

.placement-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 50px 0 40px;
  position: relative;
  overflow: visible;
}

.placement-slider-outer {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.placement-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.pslide {
  flex-shrink: 0;
  padding: 10px 12px;
  box-sizing: border-box;
}

.pslide figure {
  margin: 0;
  /* box-shadow: 0 0 20px -6px rgba(0, 0, 0, 0.5); */
  border-radius: 8px;
  overflow: hidden;
}

.pslide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* .about-sec */

.aboutSec {
  background-size: cover !important;
  background-attachment: fixed !important;
  position: relative;
  padding-block: 70px;
}

.aboutSec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.aboutSec .container {
  position: relative;
  z-index: 1;
}

.aboutSec .aboutCont {
  padding: 40px;
  background: #fff;
  max-width: 600px;
  border-left: 7px solid #023145;
}

.aboutSec .aboutCont p {
  text-align: justify;
  font-size: 15px;
  margin-bottom: 20px;
}

.aboutSec .aboutCont .headingsec {
  text-align: left;
  margin-bottom: 20px;
}
.aboutSec .aboutCont .headingsec h2 {
  line-height: 40px;
}
.aboutSec .aboutCont .headingsec h2::before {
  margin: 0;
  bottom: 2px;
}

/* campus */
/* ===== CAMPUS STUDENT LIFE ===== */
.campusStudentLife {
  position: relative;
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

/* Left - Image Grid */
.campus-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 6px;
}

.campus-left figure {
  margin: 0;
  overflow: hidden;
}

.campus-left figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.campus-left figure:hover img {
  transform: scale(1.05);
}

/* Right - Content */
.campus-right {
  /* background: #053d7a; */
  padding: 60px 50px;
  position: relative;
  display: flex;
  align-items: center;
}

.dotted-planeimg {
  position: absolute;
  top: 10%;
  right: 0;
  width: 120px;
  opacity: 0.3;
}

.lifeInnerCont h2 {
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.lifeInnerCont h2::before {
  margin: 0;
  bottom: 0;
}

.lifeInnerCont p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Blogs Section */

/* ===== BLOG SECTION ===== */
.blogSec {
  background: #023145;
  position: relative;
  padding-block: 70px;
}

.blogSec .dotted-plane-img {
  position: absolute;
  top: 10%;
  right: 0;
  filter: brightness(0) invert(1);
  width: 120px;
}

.blogSec .planeimg2 {
  position: absolute;
  bottom: 0;
  left: 0;
  filter: brightness(0) invert(1);
  width: 150px;
}

.blogSec .headingsec h2,
.blogSec .headingsec p {
  color: #fff;
  text-align: center;
}
.blogSec .headingsec p {
  margin-bottom: 30px;
}
.blogSec .headingsec h2::before {
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.blog-item .item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.blog-item figure {
  margin: 0;
  overflow: hidden;
}

.blog-item figure a {
  display: block;
  overflow: hidden;
}

.blog-item figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
}

.blog-item figure a:hover img {
  transform: scale(1.05);
}

.blog-item .itemCont {
  padding: 20px 15px;
}

.blog-item .itemCont h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0px;
  padding-bottom: 5px;
  line-height: 24px;
}

.blog-item .itemCont h3 a {
  color: #051e30;
  text-decoration: none;
}

.blog-item .itemCont h3 a:hover {
  color: #053d7a;
}

.blog-item .itemCont h4 {
  font-size: 13px;
  font-weight: 500;
  color: #053d7a;
  margin-bottom: 4px;
}

.blog-item .itemCont p {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

.viewMore {
  text-align: center;
}

/* ===== TESTIMONIAL ===== */
.testimonialSec {
  position: relative;
  overflow: hidden;
  padding-block: 70px;
}

.testimonialSec .dotted-plane-img {
  position: absolute;
  top: 10%;
  right: 0;
  width: 120px;
}
.testimonialSec .headingsec {
  text-align: center;
  margin-bottom: 30px;
}
.testimonialSec .planeimg2 {
  position: absolute;
  bottom: -5%;
  left: 0;
  width: 200px;
}
.tslide {
  flex-shrink: 0;
  padding: 10px 8px;
  box-sizing: border-box; /* already there, but ensure it's present */
}

.testimonial-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible; /* changed from hidden to allow buttons */
  gap: 10px;
}

.testimonial-slider-outer {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.tslide .item figure {
  margin: 0;
  box-shadow: 0 0 20px -6px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.tslide .item figure img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcomeSec {
    clip-path: polygon(50% 3%, 100% 0, 100% 98%, 50% 100%, 0 98%, 0 0);
  }

  .welcome-item .item {
    padding: 80px 20px;
  }
  .placement-slider-wrapper {
    padding: 0px 0 20px;
  }

  .placement-slider-wrapper .slide-btn {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
  }

  .placement-slider-wrapper .slide-btn.prev {
    left: -15px;
  }

  .placement-slider-wrapper .slide-btn.next {
    right: -15px;
  }

  .placement-slider-outer {
    width: 100%;
  }
  .campus-grid {
    grid-template-columns: 1fr;
  }

  .campus-left {
    grid-template-rows: repeat(2, 150px);
  }

  .campus-right {
    padding: 40px 30px;
  }

  .lifeInnerCont h2 {
    font-size: 24px;
    text-align: center;
  }
  .lifeInnerCont h2::before {
    margin: 0 auto;
  }
  .lifeInnerCont p {
    text-align: center;
  }
  .lifeInnerCont {
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tslide .item figure img {
    height: max-content;
  }
  .testimonialSec {
    padding-block: 30px;
  }
  .testimonialSec .headingsec {
    margin-bottom: 8px;
  }
  .blogSec {
    padding-block: 50px;
  }
  .placementSec {
    padding-block: 40px;
  }
}

@media (max-width: 767px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .welcomeSec {
    clip-path: polygon(50% 1%, 100% 0, 100% 98%, 50% 100%, 0 98%, 0 0);
  }

  .welcome-item .item {
    padding: 80px 15px;
    clip-path: polygon(50% 3%, 100% 0, 100% 100%, 0 100%, 0 0);
    margin-top: -40px;
  }

  .aboutSec .aboutCont {
    padding: 20px;
  }
  .aboutSec {
    padding-block: 40px;
  }
  .aboutSec .aboutCont .headingsec h2 {
    line-height: 27px;
    text-align: center;
    font-size: 19px;
  }
  .aboutSec .aboutCont .headingsec h2::before {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
  }
  .aboutSec .aboutCont p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .aboutSec .btn {
    display: flex;
  }

  .campus-left {
    grid-template-rows: repeat(2, 120px);
    grid-row: 2/3;
  }

  .campus-right {
    padding: 30px 20px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
