* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.notice-board-section {
  width: 100%;
  background: url("../images/Rectangle\ 194\ \(2\).png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* .notice-board {
        background: white;
        padding: 30px 20px;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
      } */

.notice-board-div {
  display: flex;
  gap: 30px;
  /* background-color: burlywood; */
  padding: 70px 70px;
  border-radius: 10px;
  flex-wrap: wrap;
  height: 700px;
}

/* LEFT SIDE */
.left-layout-notice-board {
  flex: 1;
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 70%;
  justify-content: space-between;
}
.left-layout-notice-board h5 {
}
.welcome-to {
  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  color: #1c3f94;

  line-height: 100%;
  letter-spacing: 1%;
}
.learn-more {
  border: 2px solid #ee1b22;
  background: transparent;
  padding: 10px 25px;
  border-radius: 5px;
  color: #ee1b22;
}
.welcome-to-span {
  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 36px;
  color: #ee1b22;

  line-height: 100%;
  letter-spacing: 1%;
}
.left-layout-notice-board p {
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  color: #1c3f94;
  line-height: 25px;
  letter-spacing: 0%;
  vertical-align: middle;
}

.left-layout-notice-board ul {
  padding-left: 20px;
}

.left-layout-notice-board ul li {
  font-family: Poppins;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  leading-trim: CAP_HEIGHT;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #1c3f94;
}

.left-layout-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* gap: 10px; */
}

.left-layout-image img {
  max-width: 100%;
  width: 450px;
  height: 335px;
}
/* RIGHT SIDE */
.right-layout-notice-board {
  width: 30%;

  background-color: rgb(248, 246, 249);
}

.notice-board {
  padding: 29px 20px 0px 10px;

  border-radius: 10px;
  height: 100%;
  position: relative;
  overflow: hidden; /* IMPORTANT */
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.15);
}
.notice-board-btn {
  padding: 3px 15px;
  color: #ee1b22;
  border: none;
  background: transparent;
  font-family: Poppins;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 16px;

  line-height: 100%;
  letter-spacing: 1%;
}

.academic {
  display: flex;
  justify-content: space-between;
}
.academic li {
  list-style: none;
}

.left-layout-notice-board-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----------- AUTO SCROLL FIX ----------- */

.scroll-area {
  max-height: 400px; /* leave space for padding */
  overflow: hidden;
  margin-top: 20px;
}

.scroll-area ul {
  animation: scrollUp 18s linear infinite;
}

.scroll-area li {
  margin-bottom: 15px;
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;

  line-height: 26px;
  letter-spacing: 1%;
  color: #1c3f94;
}

/*@keyframes scrollUp {*/
/*  0% {*/
/*    transform: translateY(0);*/
/*  }*/
/*  100% {*/
/*    transform: translateY(-100%);*/
/*  }*/
/*}*/

.notice-img-wrapper {
  position: relative;
  display: inline-block;
}

.notice-title-overlay {
  position: absolute;
  top: 8px; /* distance from top of image */
  left: 15px; /* distance from left */
  font-size: 20px;
  font-weight: 700;
  color: white;
  font-family: "Poppins", sans-serif;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); /* improves visibility */
}

/* Responsive */
/* ============================
   RESPONSIVE FIXES
============================ */

/* ============================
   STACK LEFT ABOVE RIGHT (0–1200px)
============================ */
@media (max-width: 1300px) {
  .notice-board-div {
    flex-direction: column !important;
    padding: 40px 25px;
    height: auto !important;
  }

  .left-layout-notice-board {
    width: 100% !important;
    order: 1 !important;
  }

  .right-layout-notice-board {
    width: 100% !important;
    order: 2 !important;
  }

  .left-layout-image {
    flex-direction: column !important;
    gap: 15px;
  }

  .left-layout-image img {
    width: 100% !important;
    height: auto !important;
  }

  .notice-board {
    height: auto !important;
  }
}

/* Tablet Size */
@media (max-width: 992px) {
  .left-layout-notice-board p {
    text-align: justify;
  }
  .notice-board-div {
    flex-direction: column;
    height: auto;
    padding: 30px 20px;
  }

  .left-layout-notice-board,
  .right-layout-notice-board {
    width: 100%;
  }

  .left-layout-notice-board {
    gap: 25px;
  }

  .left-layout-image {
    flex-direction: column;
    gap: 15px;
  }

  .left-layout-image img {
    width: 100%;
    height: auto;
  }

  .notice-board {
    padding: 20px;
    height: auto;
  }

  .scroll-area {
    max-height: 280px;
  }

  .academic {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================
   Mobile Screens
============================ */
@media (max-width: 576px) {
  .left-layout-notice-board p {
    text-align: justify;
  }
  .notice-board-div {
    padding: 50px 15px;
  }

  .welcome-to {
    font-size: 18px;
  }

  .welcome-to-span {
    font-size: 26px;
  }

  .learn-more {
    padding: 6px 14px;
    font-size: 14px;
  }

  .left-layout-notice-board p {
    font-size: 14px;
    line-height: 22px;
  }

  .academic {
    flex-direction: column;
    gap: 10px;
  }

  .academic li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .academic img {
    width: 22px;
  }

  .left-layout-image img {
    width: 100%;
    height: auto;
  }

  /* Notice board right side */
  .right-layout-notice-board {
    padding: 0 10px;
  }

  .notice-board {
    padding: 20px 10px 0 10px;
  }

  /* Notice Board Title Overlay Responsiveness */
  .notice-title-overlay {
    font-size: 16px;
    top: 12px;
    left: 37px;
  }

  .notice-img-wrapper img {
    width: 100%;
    height: auto;
  }

  .scroll-area {
    max-height: 240px;
  }

  .scroll-area li {
    font-size: 14px;
    line-height: 22px;
  }

  .notice-board-btn {
    font-size: 14px;
    padding: 4px 0px;
  }
}

/* ============================
   Very Small Screens
============================ */
@media (max-width: 400px) {
  .left-layout-notice-board p {
    text-align: justify;
  }
  .notice-board-div {
    padding: 50px 15px;
  }
  .welcome-to {
    font-size: 16px;
  }

  .welcome-to-span {
    font-size: 22px;
  }

  .notice-title-overlay {
    font-size: 14px;
  }

  .scroll-area {
    max-height: 200px;
  }
}
