.carousel-inner img {
  /* width: 100%; */
  height: auto;
}

@media (max-width: 768px) {
  .carousel-inner {
    margin-top: 0 !important;
  }
}

/* important updates styling */
.important-updates {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  /* border: 1px solid #ccc; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  width: 100%;
  flex-wrap: nowrap;
  position: relative;
  overflow: hidden;
}

.important-updates .title {
  background-color: rgb(226, 222, 222);
  color: black;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.important-updates .updates {
  background-color: #2d4697;
  padding: 10px;
  overflow: hidden;
  width: 100%;
}

.important-updates marquee {
  display: block;
  width: 100%;
}

.important-updates .updates div {
  display: inline-block;
  margin-right: 50px;
  white-space: nowrap;
}

.important-updates .updates span img {
  width: 50px;
  height: 25px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .important-updates {
    flex-wrap: wrap;
  }

  .important-updates .title {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .important-updates .updates {
    width: 100%;
    padding: 5px;
  }

  .update {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
  }
}

.update a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.highlights-container {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 10px 20px;
  background-color: black;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background-color: #df9d00;
  display: inline-block;
  padding: 10px 20px;
}

.highlights-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
  max-height: 450px;
  overflow: hidden;
  padding: 10px;
}

.left-column {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow-y: visible;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 2px 10px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(253, 253, 253, 0.85);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-number {
  font-size: 3.3rem;
  font-weight: 900;
  color: #df9d00;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #000;
}

.video-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .highlights-section {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .left-column {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    margin-bottom: 30px;
  }

  .video-section {
    max-height: none;
    height: auto;
  }

  .logo-section h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-text {
    font-size: 0.9rem;
  }
}
.main-section {
  min-height: 100vh;
  display: table;
  width: 100%;
  position: relative;
}

.main-section::before {
  content: "";
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    /* Black overlay with 70% opacity */
      url("/Latest-events-Images/I-love-nist.jpg");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.left-content,
.right-content {
  display: table-cell;
  vertical-align: middle;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -1;
}

.left-content {
  width: 30%;
  padding: 60px;
  /* background-color: #2d4697; */
  /* background: url("./Latest-events-Images/galleraia (1).jpg"); */
  position: relative;
  overflow: hidden;
  vertical-align: top;
}

.left-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
}

.main-title {
  font-size: 3.7rem;
  font-weight: 700;
  color: rgb(223 157 0);
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.3); */
  margin-bottom: 10px;
  /* letter-spacing: -3px; */
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.subtitle {
  font-size: 2.2rem;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.description {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.nav-btn {
  padding: 5px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.6rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 200px;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn:hover {
  background: #df9d00;
  border-color: #df9d00;
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  color: black;
}

.right-content {
  /* width: 50%; */
  padding: 20px 0 20px 0;
  /* background: rgba(248, 249, 250, 0.95); */
  /* background: url("./Latest-events-Images/Bengaluru_Chapter_optimized_500.jpg"); */
  position: relative;
}

.events-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.events-columns {
  width: 100%;
  height: 200vh;
  animation: verticalScroll 20s linear infinite;
}

.events-column {
  width: 48%;
  float: left;
  margin-right: 4%;
}

.events-column:last-child {
  margin-right: 0;
}

.events-column:nth-child(2) {
  margin-top: 100px;
}

@keyframes verticalScroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* UPDATED EVENT CARD STYLES */
.event-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 280px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  /* Stack children vertically */
  position: relative;
}

.event-image {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 1;
}

.event-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  margin-top: auto;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, transparent 100%);
}

.event-date {
  position: absolute;
  top: -160px;
  right: 15px;
  background: #df9d00;
  backdrop-filter: blur(10px);
  border-radius: 0 0 8px 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  min-width: 60px;
}

.event-date .date-day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: rgb(14, 8, 6);
  line-height: 1;
  margin-bottom: 2px;
}

.event-date .date-month {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* text-shadow: 0 1px 3px rgba(0,0,0,0.5); */
  margin-bottom: 0;
}

/* Hover effects */
.event-card:hover .event-image {
  opacity: 0.7;
  transform: scale(1.05);
}

.event-card:hover .event-title {
  color: rgb(255, 212, 22);
}

.event-image.img-2 {
  /* background-image: url('./Latest-events-Images/1750171514639.jpg'); */
  background-image: url("/Latest-events-Images/1756907325689.jpeg");
}

.event-image.img-3 {
  background-image: url("/Latest-events-Images/1756996305100.jpeg");
}

.event-image.img-4 {
  background-image: url("/Latest-events-Images/1757081711476.jpeg");
}

.event-image.img-5 {
  background-image: url("/Latest-events-Images/1757423579431.jpeg");
}

.event-image.img-6 {
  background-image: url("/Latest-events-Images/1757576341295.jpeg");
}

.event-image.img-7 {
  background-image: url("/Latest-events-Images/1757513325179.jpeg");
}

.event-image.img-8 {
  background-image: url("/Latest-events-Images/1757765386058.jpeg");
}

.event-image.img-9 {
  background-image: url("/Latest-events-Images/1757955220908.jpeg");
}

.event-image.img-10 {
  background-image: url("/Latest-events-Images/1755081120716.jpg");
}
.event-image.img-11 {
  background-image: url("/Latest-events-Images/biswkarma.jpeg");
}
.event-image.img-12 {
  background-image: url("/Latest-events-Images/sparcs.jpeg");
}
.event-image.img-13 {
  background-image: url("/Latest-events-Images/sih-hackthon.jpeg");
}
.event-image.img-14 {
  background-image: url("/Latest-events-Images/1759923685582.jpg");
}

.event-image.img-15 {
  background-image: url("/Latest-events-Images/1759305603251.jpg");
}

.event-image.img-16 {
  background-image: url("/Latest-events-Images/Screenshot 2025-10-15 111401.png");
}

.event-image.img-17 {
  background-image: url("/Latest-events-Images/Screenshot 2025-10-15 121236.png");
}

.event-image.img-18 {
  background-image: url("/Latest-events-Images/1758887299136.jpg");
}
/* Pause animation on hover */
.events-container:hover .events-columns {
  animation-play-state: paused;
}

@media (max-width: 991px) {
  .main-section {
    display: block;
  }

  .left-content,
  .right-content {
    display: block;
    width: 100%;
  }

  .left-content {
    min-height: 60vh;
    padding: 60px 40px;
  }

  .main-title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.8rem;
  }

  .nav-buttons {
    display: block;
  }

  .nav-btn {
    width: 160px;
    padding: 15px 25px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: inline-block;
    margin-right: 15px;
  }

  .right-content {
    min-height: 40vh;
  }

  .events-container {
    height: 40vh;
  }
}

@media (max-width: 767px) {
  .left-content {
    padding: 40px 30px;
  }

  .main-title {
    font-size: 2.8rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .nav-btn {
    display: block;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .events-column {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .events-column:nth-child(2) {
    margin-top: 0;
  }

  .right-content {
    padding: 20px 15px;
  }
}

/* General Styling */
.paddingtop {
  padding-top: 50px;
  padding-bottom: 70px;
  background-color: #f8f9fa;
}

/* Testimonial Heading */
h1 {
  font-weight: 600;
  /* color:rgb(255, 255, 255); */
  margin-bottom: 30px;
  /* position: relative;
			text-align: center; */
  /* display: inline-block; */
}

h1:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  /* background-color:rgb(255, 255, 255); */
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Tab Buttons */
.tablink {
  background-color: rgba(56, 62, 65, 0.38);
  color: rgb(255, 255, 255);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 8px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.tablink:hover {
  background-color: rgba(8, 37, 53, 0.2);
  transform: translateY(-2px);
}

.tablink:active {
  transform: translateY(0);
}

/* Active Tab Button */
.tablink.active {
  background-color: rgb(22, 26, 37);
  color: white;
  box-shadow: 0 4px 10px rgba(8, 37, 53, 0.3);
}

/* Tab Content */
.tabcontent {
  display: none;
  padding: 40px 0 60px;
  width: 100%;
  clear: both;
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Testimonial Container */
.testimonial-slider {
  padding: 20px 15px;
}

/* Carousel Item Height */
.testimonialheight {
  min-height: 400px;
  padding: 20px;
}

/* Testimonial Image */
.testimonialsimg {
  width: 120px;
  height: 120px;
  border: 5px solid #f8f9fa;
  margin-bottom: 15px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-caption:hover .testimonialsimg {
  transform: scale(1.05);
}

/* Carousel Caption Styling */
.carousel-caption {
  position: static;
  padding: 30px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.carousel-caption:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.carousel-caption h3 {
  color: #082535;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 22px;
}

.carousel-caption h4 {
  color: #6c757d;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.carousel-caption h4:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: rgba(8, 37, 53, 0.3);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.carousel-caption p {
  color: #495057;
  line-height: 1.8;
  font-size: 16px;
  position: relative;
  padding: 0 15px;
}

.carousel-caption p:before,
.carousel-caption p:after {
  content: '"';
  font-size: 50px;
  line-height: 0;
  color: rgba(8, 37, 53, 0.1);
  position: absolute;
}

.carousel-caption p:before {
  top: 15px;
  left: -5px;
}

.carousel-caption p:after {
  bottom: -10px;
  right: -5px;
}

/* Carousel Controls */
.carousel-control {
  background-image: none !important;
  opacity: 1;
  width: 8%;
}

.carousel-control .glyphicon {
  font-size: 20px;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #082535;
  transition: all 0.3s ease;
}

.carousel-control .glyphicon:hover {
  background-color: rgba(8, 37, 53, 0.52);
  color: white;
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .carousel-caption {
    max-width: 90%;
  }
}

@media (max-width: 991px) {
  h1 {
    margin-bottom: 40px;
  }

  .tablink {
    padding: 10px 18px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .carousel-caption {
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .paddingtop {
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .testimonial-mob {
    padding: 10px;
  }

  .testimonialsimg {
    width: 100px;
    height: 100px;
  }

  .carousel-caption {
    padding: 20px;
  }

  .carousel-caption h3 {
    font-size: 20px;
  }

  .carousel-caption h4 {
    font-size: 15px;
  }

  .carousel-caption p {
    font-size: 15px;
    line-height: 1.6;
  }

  .testimonialheight {
    min-height: 430px;
  }

  .tablink {
    width: 31%;
    margin-right: 1%;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .carousel-control .glyphicon {
    padding: 10px;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 24px;
  }

  h1:after {
    width: 50px;
    height: 3px;
  }

  .testimonialheight {
    min-height: 480px;
    padding: 10px;
  }

  .carousel-caption {
    padding: 15px;
  }

  .carousel-caption h3 {
    font-size: 18px;
  }

  .carousel-caption h4 {
    font-size: 14px;
  }

  .carousel-caption p {
    font-size: 14px;
    padding: 0 10px;
  }

  .tablink {
    width: 31%;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 15px;
  }

  .carousel-control {
    width: 10%;
  }

  .carousel-caption p:before,
  .carousel-caption p:after {
    font-size: 35px;
  }
}

@media (max-width: 400px) {
  .tablink {
    width: 100%;
    margin-bottom: 5px;
    border-radius: 8px;
  }

  .testimonialheight {
    min-height: 520px;
  }

  .testimonialsimg {
    width: 80px;
    height: 80px;
  }
}
