@media (min-width: 1024px) and (max-width: 1440px) {
  body {
    scroll-behavior: smooth;
  }

  .mainbanner-fluid-container video {
    width: 100%;
    height: 550px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10%;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  .fluid-container-left {
    margin-top: 120px;
    justify-content: space-between;
    /* This pushes items to opposite sides */
    align-items: center;
    margin-left: -5%;
    /* Space between the box and the text */
    height: 200px;
    /* Set the height of the container */
    background: transparent;
    /* Optional: Background color for the container */
  }

  .fluid-container-right {
    margin-top: 120px;
    justify-content: space-between;
    /* This pushes items to opposite sides */
    align-items: center;
    margin-right: -5%;
    /* Space between the box and the text */
    height: 200px;
    /* Set the height of the container */
    background: transparent;
    /* Optional: Background color for the container */
  }

  .box-shape {
    width: 100px;
    /* Width of the box */
    height: 130px;
    /* Height of the box */
    background: linear-gradient(to right, #b18a27, #c79601);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    /* Optional: Shadow for the box */
  }

  .about-heading {
    padding-left: 300px;
    margin-right: 100px;
    font-family: 'Tahoma';
  }

  .about-image {
    height: auto;
  }

  .main-grid h4 {
    font-size: 24px;
    font-family: 'Tahoma';
  }

  .main-grid h1 {
    margin-right: 15%;
    font-size: 38px;
    font-family: 'Tahoma';
  }

  .main-image {
    padding: 120px;
    padding-top: 30px;
    width: 100%;
    height: 100vh;
    object-fit: contain;
  }

  #customCarousel {

    height: 530px;
  }

  .thumbnail-carousel {
    background: transparent;
    display: flex;
    width: 100%;
    /* Full width */
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 11;
    overflow: visible;
    /* Space from the bottom */
  }

  .thumbnail-carousels {
    background: transparent;
    top: 0;
    /* Place it at the top of the carousel */
    left: 0;
    display: flex;
    width: 100%;
    /* Full width */
    align-items: center;
    height: 100%;
    margin-top: -370px;
    position: relative;
    z-index: 11;
    overflow: visible;
    direction: rtl;
    /* Helps with RTL rendering */
    /* Space from the bottom */
  }

  .thumbnail-carousel img {
    width: 220px;
    height: 150px;
    margin-top: -230px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid rgb(165, 124, 19);
    cursor: pointer;
    transition: border 0.2s;
    transition: transform 0.3s ease, filter 0.1s ease;
    /* Faster transition */

    z-index: 1;
  }

  .thumbnail-carousels img {
    margin-top: -30px;
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid rgb(165, 124, 19);
    cursor: pointer;
    transition: border 0.2s;
    transition: transform 0.3s ease, filter 0.1s ease;
    /* Faster transition */
    z-index: 1;
  }

  .campusbanner-fluid-container {
    height: 550px;
    background-size: 130%;
    background-position: center 600px;
    /* Center the image */
  }

  .parallax-content {
    width: 450px;
    padding: 20px;
  }

  .parallax-content::before {
    width: 90%;
  }

  .parallax-contents {
    height: 680px;
  }

  .parallax-contents::before {
    height: 56.5%;
    /* Full height of the container */
  }

  .main-content {
    padding-top: 30px;
  }

  .main-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
    /* Space below the heading */
    text-align: left;
    /* Align text to the left */
    text-shadow: #000000 0px 3px 1px;
    /* Add text shadow for better readability */
  }

  .main-content p {
    font-size: 14px;
    margin-bottom: 20px;
    /* Space below the heading */
    text-align: left;
    /* Align text to the left */
  }

  .rizal-content {
    padding-top: 40px;
    /* Inner spacing for the content */
  }

  .parallax-pamp-branch {
    background-position: -95vh 600px;
  }

  .pampanga-content h1 {
    font-size: 45px;
    margin-bottom: 10px;
    /* Space below the heading */
    text-align: left;
    /* Align text to the left */
    text-shadow: #000000 0px 3px 1px;
    /* Add text shadow for better readability */
  }

  .pampanga-content p {
    font-size: 16px;
    margin-bottom: 20px;
    /* Space below the heading */
    text-align: left;
    /* Align text to the left */
  }

  .parallax-rizal-campus {
    background-position: 600px -40px;
  }

  .rizal-content {
    padding-top: 80px;
    /* Inner spacing for the content */
  }

  .rizal-content p {
    font-size: 16px;
  }

  /** General Santos branch **/
  .parallax-gensan-branch {

    height: 500px;
    /* Set a fixed height for the parallax effect */
    clip-path: polygon(0 0, 53% 0, 51.6% 13.7%, 100% 5.5%, 100% 100%, 0 100%);
  }

  .gensan-content {
    padding-top: 70px;
  }

  .parallax-gensan-branch::before {
    clip-path: polygon(28.7% 11.0%, 100% 0, 100% 100%, 0 100%, 10% 96%);
    /* Slant the right side */
  }

  .gensan-content h1 {
    font-size: 30px;
  }

  .gensan-content p {
    font-size: 14px;
  }

  /*Lipa Branch*/
  .lipa-campus {
    height: 500px;
    background-position: 700px;
  }

  .lipa-content h1 {
    font-size: 30px;
  }

  .lipa-content p {
    font-size: 14px;
  }



  /* Article page */
  .article-fluid-container {
    height: 480px;
    /* Set a fixed height for the parallax effect */
  }

  .parallax-text {
    padding: 100px;
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    font-family: sans-serif;
    font-size: 1rem;
    overflow-y: auto;
    text-align: center;
    font-weight: bold;

  }

  .parallax-image-inner {
    margin-top: -350px;
    width: 450px;
    height: 500px;
  }

  .caption {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
    text-align: left;
    width: 80%;
    /* optional: ensures full width if inside a centered container */
  }

  .article-container {
    height: 450px;
  }

  .carousel-article {
    margin: 20px auto;
  }

  .carousel-article-slide {
    min-width: 100%;
    height: 370px;
    background-size: cover;
    background-position: center;
  }

  .cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: center;
  padding: 30px;
}
.card- {
  width: 20%;
  height: 500px;
}
.card- img {
  height: 325px;
}
.container-event {
  padding: 10px 16px;
  margin-top: 10px;
}

}