/* News & Events Page Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Page Container */
.news-events-page {
  font-family: 'Poppins', sans-serif;
  background: #FFFFFF;
  margin: 0;
  padding: 0;
}

/* Main Content */
.news-events-main {
  width: 100%;
  overflow-x: hidden;
}

.main-content-wrapper {
  width: 100%;
  max-width: 1440px;
  display: flex;
  margin: 83px auto 0;
  position: relative;
  flex-direction: row;
  justify-content: space-between;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 861px;
  flex-shrink: 0;
  margin-left: 48px;
}

.hero-slider {
  position: relative;
  height: 567px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 861px;
  height: 567px;
  border-radius: 10px;
  background: rgba(39, 68, 114, 0.36);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
}

.hero-slide.active {
  opacity: 1;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  z-index: 2;
  padding: 20px;
  box-sizing: border-box;
}

.hero-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 140%;
  letter-spacing: 0%;
  margin: 0;
  color: #333333;
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 3;
}

.slider-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

.slide-button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.left-slide {
  transform: rotate(180deg);
}

.left-slide {
  transform: rotate(180deg);
}

.slider-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 36px;
  height: 10px;
  border-radius: 2px;
  background-color: #CCCCCC;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #274472;
}

/* Custom Scrollbar */
.scrollbar-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.scrollbar-track {
  position: relative;
  width: 6px;
  height: 100%;
  border-radius: 10px;
  background: rgba(39, 68, 114, 0.36);
}

.scrollbar-thumb {
  position: absolute;
  top: 0;
  width: 6px;
  height: 120px;
  border-radius: 10px;
  background: #274472;
}

/* Latest News Section */
.latest-news-section {
  position: relative;
  width: 450px;
  flex-shrink: 0;
  margin-right: 48px;
  overflow: hidden;
}

.latest-news-title {
  width: 167px;
  height: 41px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #274472;
  position: relative;
  margin: 0 0 15px 0;
  z-index: 100;
}

.news-container {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 526px;
}

.news-divider {
  width: 1px;
  height: 526px;
  background: #274472;
  border-radius: 5px;
  border-width: 2px;
  position: absolute;
  left: 0;
}

.news-list {
  position: relative;
  margin-left: 20px;
  width: 384px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 25px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  display: block;
  box-sizing: border-box;
}

.news-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.news-item {
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}

.news-heading {
  width: 100%;
  height: auto;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #333333;
  margin: 0 0 8px 0;
  overflow-wrap: break-word;
  display: block;
}

.news-description {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0%;
  color: #000000;
  margin: 0 0 8px 0;
  overflow-wrap: break-word;
  display: block;
}

.read-more {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #274472;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
}

.read-more:hover {
  text-decoration: underline;
  color: #1a2f4c;
}

.news-scrollbar {
  position: absolute;
  right: 30px;
  top: 106px;
  width: 6px;
  height: 526px;
  border-radius: 10px;
  background-color: rgba(39, 68, 114, 0.36);
}

.scrollbar-thumb {
  width: 6px;
  height: 120px;
  border-radius: 10px;
  background-color: #274472;
  position: absolute;
  top: 0;
}

/* Events Section */
.events-section {
  margin-top: 150px;
  padding: 40px 0;
}

.events-title {
  width: 627px;
  height: 83px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: #274472;
  margin: 0 auto 50px;
}

.events-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.event-span {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
  position: relative;
}

.event-span.active {
  display: block;
  opacity: 1;
}

.event-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 20px;
  width: 100%;
}

.event-card {
  width: 334px;
  height: 370px;
  border: 3px solid #274472;
  position: relative;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.event-header {
  width: 100%;
  height: 129px;
  background-color: #274472;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px 5px 0 0;
  position: absolute;
  top: 0;
  left: 0;
}

.event-badge {
  width: 127px;
  height: 46px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  background-color: #B8CCEB;
  color: #333333;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-info {
  position: absolute;
  top: 129px;
  left: 0;
  width: 100%;
  height: calc(100% - 129px);
  padding: 15px;
  box-sizing: border-box;
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  width: calc(100% - 30px);
}

.event-location {
  position: absolute;
  top: 45px;
  left: 15px;
  display: flex;
  align-items: center;
  width: calc(100% - 30px);
}

.event-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

.event-date span, .event-location span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #274472;
}

.event-title {
  position: absolute;
  top: 85px;
  left: 15px;
  right: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #333333;
  margin: 0;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-description {
  position: absolute;
  top: 138px;
  left: 15px;
  right: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-style: Light;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 0%;
  color: #333333;
  /* margin: 0; */
  margin-top: -7px;
  height: 60px;
  overflow: hidden;
  padding-bottom: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

.event-read-more {
  position: absolute;
  bottom: 15px;
  left: 15px;
  max-width: 160px;
  height: 24px;
  display: inline-block;
  border-radius: 10px;
  border: 3px solid #274472;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  color: #274472;
  text-decoration: none;
  padding: 2px 8px;
}

.event-read-more:hover {
  background-color: #274472;
  color: white;
}

.events-slider-controls {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.events-indicators {
  display: flex;
  gap: 10px;
}

.events-indicator {
  width: 36px;
  height: 10px;
  border-radius: 2px;
  background-color: rgba(39, 68, 114, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.events-indicator.active {
  background-color: #274472;
}

.past-events-section {
  margin-top: 50px;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
  .main-content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-section {
    margin-left: 0;
    width: 90%;
    max-width: 861px;
  }
  
  .hero-slide {
    width: 100%;
    margin-left: 0;
  }
  
  .latest-news-section {
    margin-right: 0;
    width: 90%;
    max-width: 450px;
    margin-top: 40px;
  }
  
  .news-divider {
    left: 0%;
  }
  
  .news-list {
    /* margin-left: calc(70% + 18px); */
    width: 100%;
  }
  
  .news-heading, .news-description {
    width: 100%;
  }
  
  .news-scrollbar {
    right: 2%;
  }
}

@media screen and (max-width: 1220px) {
  .main-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .hero-section {
    margin-left: 0;
    width: 95%;
    max-width: 861px;
  }
  
  .hero-slide {
    width: 100%;
  }
  
  /* Fix slider arrows positioning */
  .slider-arrow.prev {
    left: 8px;
  }
  
  .slider-arrow.next {
    right: 8px;
  }
  
  .latest-news-section {
    margin-right: 0;
    width: 95%;
    max-width: 450px;
    overflow: hidden;
  }
  
  .news-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 450px;
  }
  
  .news-list {
    width: 85%;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 15px;
    box-sizing: border-box;
  }
  
  .news-divider {
    height: 450px;
  }
  
  .event-cards {
    justify-content: center;
  }
  
  .event-card {
    margin: 0 10px 30px;
  }
}

@media screen and (max-width: 1200px) {
  .main-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .hero-section {
    margin-left: 0;
    width: 95%;
    max-width: 861px;
  }
  
  .hero-slide {
    width: 100%;
  }
  
  /* Fix slider arrows positioning */
  .slider-arrow.prev {
    left: 6px;
  }
  
  .slider-arrow.next {
    right: 6px;
  }
  
  .latest-news-section {
    margin-right: 0;
    width: 95%;
    max-width: 450px;
    overflow: hidden;
  }
  
  .news-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 400px;
  }
  
  .news-list {
    width: 88%;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 15px;
    box-sizing: border-box;
  }
  
  .news-divider {
    height: 400px;
  }
  
  .event-cards {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    margin-top: 60px;
    width: 98%;
  }
  
  .hero-slide {
    /* height: 400px; */
    width: 100%;
  }
  
  .hero-content {
    bottom: 60px;
    width: 85%;
    padding: 15px;
  }
  
  .hero-text {
    font-size: 18px;
  }
  
  .slider-controls {
    bottom: 15px;
    gap: 15px;
  }
  
  /* Fix slider arrows positioning for smaller screens */
  .slider-arrow {
    width: 35px;
    height: 35px;
  }
  
  .slider-arrow.prev {
    left: 8px;
  }
  
  .slider-arrow.next {
    right: 8px;
  }
  
  .slide-button-icon {
    width: 18px;
    height: 18px;
  }
  
  .events-title {
    font-size: 40px;
    width: 90%;
    height: auto;
  }
  
  .event-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .event-card {
    width: 90%;
    max-width: 334px;
  }
  
  .event-header {
    width: 100%;
  }
  
  .latest-news-section {
    width: 98%;
    overflow: hidden;
  }
  
  .news-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 380px;
  }
  
  .news-list {
    width: 85%;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 15px;
    box-sizing: border-box;
  }
  
  .news-divider {
    height: 380px;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-slide {
    /* height: 350px; */
    margin-top: 30px;
    width: 100%;
  }
  
  .hero-content {
    bottom: 50px;
    width: 90%;
    padding: 10px;
  }
  
  .hero-text {
    font-size: 16px;
    margin-bottom: 33px;
  }
  
  .slider-controls {
    bottom: 12px;
    gap: 12px;
  }
  
  /* Further adjust slider arrows for very small screens */
  .slider-arrow {
    width: 30px;
    height: 30px;
  }
  
  .slider-arrow.prev {
    left: 5px;
  }
  
  .slider-arrow.next {
    right: 5px;
  }
  
  .slide-button-icon {
    width: 15px;
    height: 15px;
  }
  
  .slider-controls {
    gap: 10px;
    bottom: 30px;
  }
  
  .indicator {
    width: 30px;
    height: 8px;
  }
  
  .events-title {
    font-size: 30px;
  }
  
  .event-badge {
    font-size: 24px;
    width: 100px;
    height: 30px;
  }
  
  .event-title {
    font-size: 16px;
    top: 75px;
    height: 40px;
  }
  
  .event-description {
    font-size: 11px;
    top: 125px;
    height: 55px;
  }
  
  .event-date, .event-location {
    font-size: 10px;
  }
  
  .event-icon {
    width: 20px;
    height: 20px;
  }
  
  .event-read-more {
    font-size: 10px;
    
  }
  
  .event-card {
    width: 95%;
    max-width: 300px;
  }
  
  /* Latest news section fixes for mobile */
  .latest-news-section {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .news-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px;
  }
  
  .news-list {
    width: 82%;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 12px;
    box-sizing: border-box;
  }
  
  .news-divider {
    height: 300px;
  }
  
  .news-item {
    margin-bottom: 20px;
  }
  
  .news-heading {
    font-size: 14px;
    line-height: 110%;
  }
  
  .news-description {
    font-size: 10px;
    line-height: 130%;
  }
  
  .read-more {
    font-size: 12px;
  }
}

@media screen and (max-width: 320px) {
  /* .hero-slide {
    height: 300px;
  } */
  
  .hero-content {
    bottom: 40px;
    width: 95%;
    padding: 8px;
  }
  
  .hero-text {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .slider-controls {
    bottom: 8px;
    gap: 8px;
  }
  
  .slider-arrow {
    width: 25px;
    height: 25px;
  }
  
  .slider-arrow.prev {
    left: 3px;
  }
  
  .slider-arrow.next {
    right: 3px;
  }
  
  .slide-button-icon {
    width: 12px;
    height: 12px;
  }
  
  .indicator {
    width: 24px;
    height: 8px;
  }
  
  .latest-news-section {
    overflow: hidden;
  }
  
  .news-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
  }
  
  .news-list {
    width: 78%;
    max-height: 230px;
    margin-left: 8px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .news-divider {
    height: 250px;
  }
}

/* Large screens 1700px+ */
@media screen and (min-width: 1700px) {
  .main-content-wrapper {
    max-width: 1600px;
    margin: 100px auto 0;
  }
  
  .hero-section {
    width: 950px;
    margin-left: 60px;
  }
  
  .hero-slider {
    height: 630px;
  }
  
  .hero-slide {
    width: 950px;
    height: 630px;
  }
  
  .hero-text {
    font-size: 26px;
  }
  
  .latest-news-section {
    width: 520px;
    margin-right: 60px;
  }
  
  .latest-news-title {
    font-size: 30px;
  }
  
  .news-heading {
    font-size: 20px;
  }
  
  .news-description {
    font-size: 16px;
  }
}

/* Extra Large screens 2000px+ */
@media screen and (min-width: 2000px) {
  .main-content-wrapper {
    max-width: 1900px;
    margin: 120px auto 0;
  }
  
  .hero-section {
    width: 1150px;
    margin-left: 80px;
  }
  
  .hero-slider {
    height: 760px;
  }
  
  .hero-slide {
    width: 1150px;
    height: 760px;
    border-radius: 14px;
  }
  
  .hero-text {
    font-size: 30px;
    line-height: 150%;
  }
  
  .slider-arrow {
    width: 50px;
    height: 50px;
  }
  
  .slide-button-icon {
    width: 26px;
    height: 26px;
  }
  
  .indicator {
    width: 46px;
    height: 14px;
  }
  
  .latest-news-section {
    width: 620px;
    margin-right: 80px;
  }
  
  .latest-news-title {
    font-size: 36px;
  }
  
  .news-heading {
    font-size: 24px;
  }
  
  .news-description {
    font-size: 18px;
  }
}

/* Ultra Large screens 2400px+ */
@media screen and (min-width: 2400px) {
  .main-content-wrapper {
    max-width: 2300px;
    margin: 140px auto 0;
  }
  
  .hero-section {
    width: 1400px;
    margin-left: 100px;
  }
  
  .hero-slider {
    height: 920px;
  }
  
  .hero-slide {
    width: 1400px;
    height: 920px;
    border-radius: 18px;
  }
  
  .hero-text {
    font-size: 36px;
    line-height: 150%;
  }
  
  .slider-arrow {
    width: 60px;
    height: 60px;
  }
  
  .slide-button-icon {
    width: 32px;
    height: 32px;
  }
  
  .indicator {
    width: 56px;
    height: 16px;
  }
  
  .latest-news-section {
    width: 750px;
    margin-right: 100px;
  }
  
  .latest-news-title {
    font-size: 44px;
    min-width: 300px;
    margin-bottom: 20px;
    margin-left: 20px;
  }
  
  .news-container {
    height: 840px;
  }
  
  .news-divider {
    height: 840px;
  }
  
  .news-list {
    max-height: 820px;
  }
  
  .scrollbar-container {
    height: 820px;
  }
  
  .scrollbar-thumb {
    height: 200px;
  }
  
  .news-heading {
    font-size: 28px;
  }
  
  .news-description {
    font-size: 22px;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media screen and (min-width: 2800px) {
  .main-content-wrapper {
    max-width: 2700px;
    margin: 160px auto 0;
  }
  
  .hero-section {
    width: 1700px;
    margin-left: 120px;
  }
  
  .hero-slider {
    height: 1120px;
  }
  
  .hero-slide {
    width: 1700px;
    height: 1120px;
    border-radius: 24px;
  }
  
  .hero-content {
    bottom: 120px;
    padding: 30px;
  }
  
  .hero-text {
    font-size: 44px;
    line-height: 160%;
  }
  
  .slider-arrow {
    width: 75px;
    height: 75px;
  }
  
  .slider-arrow.prev {
    left: 25px;
  }
  
  .slider-arrow.next {
    right: 25px;
  }
  
  .slide-button-icon {
    width: 40px;
    height: 40px;
  }
  
  .indicator {
    width: 70px;
    height: 20px;
    border-radius: 4px;
  }
  
  .latest-news-section {
    width: 900px;
    margin-right: 120px;
  }
  
  .latest-news-title {
    font-size: 54px;
    margin-bottom: 25px;
    min-width: 350px;
  }
  
  .news-container {
    height: 1050px;
  }
  
  .news-divider {
    height: 1050px;
  }
  
  .news-list {
    max-height: 1020px;
  }
  
  .scrollbar-container {
    height: 1020px;
  }
  
  .scrollbar-thumb {
    height: 250px;
  }
  
  .news-heading {
    font-size: 34px;
    line-height: 140%;
  }
  
  .news-description {
    font-size: 26px;
    line-height: 150%;
  }
  
  .news-date {
    font-size: 20px;
  }
}