/* Tailwind CSS custom colors */
.bg-blue-700 {
    background-color: #006bb8;
  }
  .bg-blue-500 {
    background-color: #2fa0df;
  }
  .bg-yellow-400 {
    background-color: #ffc973;
  }
  .bg-yellow-200 {
    background-color: #fee3b3;
  }
  
  /* Hero section */
  .hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }
  
  .bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  nav.fixed {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
  }
  
  /* Media queries for large devices */
  @media (min-width: 1024px) {
    .lg\:ml-4 {
      margin-left: 0.7rem;
    }
    *{
      font-size: 14px;
    }
    #menu {
      display: flex !important;
    }
    .lg-font{
        font-size: 14px;
    }
    .h-btn{
        font-size: 16px;
        padding: 10px 22px;
    }
  }
 
/* notice board */

.notice-section {
    max-width: 80%;
    margin: 20px auto;
    background: linear-gradient(135deg, #006bb8, #2fa0df);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notice-header {
    background-color: #006bb8;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.notice-header h2 {
    margin: 0;
    font-size: 24px;
}

.notice-content {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
}

/* Custom Scrollbar Styling */
.notice-content::-webkit-scrollbar {
    width: 12px;
}

.notice-content::-webkit-scrollbar-thumb {
    background-color: #006bb8;
    border-radius: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background-color: #e0e0e0;
    border-radius: 6px;
}

.notice-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.notice-content li {
    background: #b3dcfe;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column; /* Ensure date is below the content */
}

.notice-content li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notice-content li span {
    width: 100%;
    text-align: left;
}

.new-icon {
    width: 30px;
    height: auto;
    margin-top: 5px;
}

.notice-date {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Carousel */
.swiper {
    width: 90%;
    height: auto;
    max-width: 1140px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
  }
  
  .swiper-slide {
    position: relative;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .overlay-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    color: #006bb8;
  }
  
  .swiper-pagination-bullet {
    background: #2fa0df;
  }
  
  @media (min-width: 1024px) {
    .swiper {
      width: 70%;
      height: 500px;
    }
  
    .overlay-text {
      font-size: 20px;
    }
  }
  
  /* message */

  .line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    overflow: hidden;
}

/* Other Pages */
.accordion-button.active svg {
  transform: rotate(180deg);
}

/* Gallery*/

.gallery-item {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  flex-basis: 100%; /* Default to full width for smaller screens */
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-item img,
.gallery-item .video-wrapper iframe {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .gallery-item {
    flex-basis: calc(50% - 16px); /* Half width for medium screens */
  }
}

@media (min-width: 1024px) {
  .gallery-item {
    flex-basis: calc(33.333% - 16px); /* Third width for large screens */
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Preamble */

.preamble-section {
  background-color: #f9fafb;
  padding: 3rem 1rem;
}

.preamble-container {
  max-width: 1200px;
  margin: 0 auto;
}

.preamble-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  word-wrap: break-word;
}

.preamble-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  color: #006bb8;
}

.preamble-text {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 640px) {
  .preamble-title {
    font-size: 3rem;
  }

  .preamble-text {
    font-size: 1.25rem;
    line-height: 1.85rem;
  }
}

@media (min-width: 1024px) {
  .preamble-title {
    font-size: 3.5rem;
  }

  .preamble-text {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}
