﻿/* =========================================================
   SECTION NOTICE (Thông báo) - Swiper 轮播样式
========================================================= */

.section-notice-wrapper {
  padding: 10px 0px 0px 0px;
  position: relative;
  /* background-image: 
    linear-gradient(135deg, rgba(1, 122, 72, 0.03) 0%, rgba(255, 170, 46, 0.03) 100%),
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(1,122,72,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
  background-size: cover, 20px 20px;
  background-position: center, 0 0;
  border-radius: 12px;
}

/* Cắt chiều cao Thông báo = chiều cao Sự kiện (desktop, JS set .section-notice-wrapper height) */
@media (min-width: 992px) {
  .section-notice-event-row {
    align-items: flex-start;
  }
  .section-notice-event-row .section-notice-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .section-notice-event-row .section-event-wrapper {
    display: flex;
    flex-direction: column;
  }
  .section-notice-event-row .notice-swiper-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .section-notice-event-row .notice-scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
  }
}

/* Notice Header */
.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.notice-header-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.notice-header-icon svg {
  width: 100%;
  height: 100%;
}

.notice-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--hos-green, #017A48);
  margin: 0;
  line-height: 1.2;
}

/* Notice Banner */
.notice-banner {
  position: relative;
  background: linear-gradient(135deg, #00a86c 0%, #015a36 100%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  /* box-shadow: 0 4px 15px rgba(1, 122, 72, 0.2); */
}

/* Title area: icon + chữ căn trái, căn giữa theo chiều dọc */
.notice-banner .title-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.notice-banner .sec-title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.notice-banner .sec-title .icon {
  flex-shrink: 0;
  display: block;
}

.notice-banner-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, 
      transparent 0px, 
      transparent 8px, 
      rgba(255,255,255,0.15) 8px, 
      rgba(255,255,255,0.15) 12px,
      transparent 12px,
      transparent 20px),
    repeating-linear-gradient(-45deg, 
      transparent 0px, 
      transparent 8px, 
      rgba(255,170,46,0.25) 8px, 
      rgba(255,170,46,0.25) 12px,
      transparent 12px,
      transparent 20px);
  opacity: 0.4;
  border-top: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  background-image: url("/Media/counter-bg-shape2-124.png") !important;
  background-color:#0cae74 !important;
  background-image: url("/Media/counter-bg-shape2-12.png") !important;
  background-color: #07875A !important;
}

.notice-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.notice-banner-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.notice-banner-logo svg {
  width: 100%;
  height: 100%;
}

.notice-banner-text {
  color: #fff;
  text-align: center;
}

.notice-banner-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

/* Swiper Wrapper */
.notice-swiper-wrapper {
  position: relative;
  /* padding-bottom: 10px; */
}

.notice-swiper {
  /* height: 500px; */
  overflow: hidden;
}

.notice-swiper .swiper-wrapper {
  height: auto;
}

/* Scroll container: hiển thị ~4 tin, cuộn xem thêm */
.notice-scroll-container {
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--hos-green, #0CAE74) #f0f0f0;
}
.notice-scroll-container::-webkit-scrollbar {
  width: 5px;
}
.notice-scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.notice-scroll-container::-webkit-scrollbar-thumb {
  background: var(--hos-green, #0CAE74);
  border-radius: 10px;
}
.notice-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #017A48;
}
.notice-scroll-item {
  margin-bottom: 8px;
}
.notice-scroll-item:last-child {
  margin-bottom: 0;
}

/* Notice Item */
.notice-item {
  display: flex;
  gap: 10px;
  padding: 15px;
  /* border-bottom: 1px solid rgba(224, 224, 224, 0.5); */
  transition: all 0.3s ease;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-direction: column;
  border: 1px solid #e0e0e0;
  /* font-family: var(--body-font); */
}

.notice-item:last-child {
  /* border-bottom: none; */
  margin-bottom: 0;
}

.notice-item:hover {
  /* background: linear-gradient(135deg, #f8fff9 0%, #fffbf0 100%); */
  transform: translateX(5px);
  /* box-shadow: 0 4px 12px rgba(1, 122, 72, 0.15); */
  border-left: 3px solid var(--hos-orange, #ffbf00);
}

/* Notice Date */
.notice-item-date {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 120px;
}

.notice-calendar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notice-date-text {
  font-size: 14px;
  color: #424242;
  font-weight: 500;
}

/* Notice Content */
.notice-item-content {
  flex: 1;
  min-width: 0;
}

.notice-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notice-item-meta::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #9e9e9e;
  border-radius: 50%;
}

.notice-category {
  font-size: 13px;
  color: var(--hos-green, #017A48);
  font-weight: 500;
  background: rgba(1, 122, 72, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.notice-item-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

.notice-item-title a {
  color: #212121;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.notice-item-title a:hover {
  color: var(--hos-green, #017A48);
}

/* Swiper Pagination - 自定义导航点样式 */
.notice-pagination {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.notice-bullet {
  width: 10px;
  height: 10px;
  background: rgba(1, 122, 72, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 4px;
}

.notice-bullet-active {
  background: var(--hos-green, #0CAE74);
  width: 24px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(1, 122, 72, 0.4);
}

/* =========================================================
   SECTION EVENT (Sự kiện) - 紧凑间距，移动端卡片样式
========================================================= */

.section-event-wrapper {
  /* padding: 20px 0; */
  position: relative;
  /* background-image: 
    linear-gradient(135deg, rgba(255, 170, 46, 0.02) 0%, rgba(1, 122, 72, 0.02) 100%); */
  background-size: cover;
  border-radius: 12px;
}

/* Event list scrollbar khi equal height */
.section-notice-event-row .event-list-container::-webkit-scrollbar {
  width: 5px;
}
.section-notice-event-row .event-list-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.section-notice-event-row .event-list-container::-webkit-scrollbar-thumb {
  background: var(--hos-green, #0CAE74);
  border-radius: 10px;
}
.section-notice-event-row .event-list-container {
  scrollbar-width: thin;
  scrollbar-color: var(--hos-green, #0CAE74) #f0f0f0;
}

/* Event Header */
.event-header {
  margin-bottom: 20px;
  padding: 0 10px;
}

.event-header-icon {
  display: inline-block;
  width: 35px;
  height: 35px;
  vertical-align: middle;
  margin-right: 0px;
}

.event-header-icon svg {
  width: 100%;
  height: 100%;
}

.event-title {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--hos-green, #017A48);
  margin: 0 0 0 0;
  vertical-align: middle;
  text-transform: uppercase;
  font-weight: 900;
  font-family: var(--title-font);
}

.event-subtitle {
  /* font-size: 14px; */
  color: #757575;
  margin: 0;
  line-height: 1.5;
  margin: 0px 0px 20px;
  /* font-size: 16px; */
  color: rgb(17, 61, 72);
  line-height: 1.625;
  font-weight: 600;
}

/* Event List Container */
.event-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Event Item - Desktop: 左侧图片，右侧内容 */
.event-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-color: rgb(1 122 72 / 28%);
}

.event-item:hover {
  box-shadow: 0 6px 20px rgba(1, 122, 72, 0.15);
  border-color: var(--hos-orange, #ffbf00);
  transform: translateY(-3px);
}

/* Event Image */
.event-item-image {
  flex-shrink: 0;
  width: 260px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.event-item-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 122, 72, 0.1) 0%, rgba(255, 170, 46, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-item:hover .event-item-image::after {
  opacity: 1;
}

.event-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-item:hover .event-item-image img {
  transform: scale(1.05);
}

/* Event Content */
.event-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.event-item-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.event-calendar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.event-date-text {
  font-size: 14px;
  color: #424242;
  font-weight: 500;
}

.event-item-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.event-item-title a {
  color: var(--hos-green, #017A48);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 500;
  font-weight: 600;
  font-family: var(--body-font);
}

.event-item-title a:hover {
  color: var(--hos-orange, #ffbf00);
}

.event-item-description {
  margin: 0;
  font-size: 14px;
  color: #757575;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE - Mobile Styles (移动端样式)
========================================================= */

/* Tablet */
@media (max-width: 991px) {
  .notice-title {
    font-size: 24px;
  }

  .notice-swiper {
    height: 400px;
  }

  .event-item {
    gap: 15px;
  }

  .event-item-image {
    width: 200px;
    height: 150px;
  }

  .event-item-title {
    font-size: 16px;
  }
}

/* Mobile Phone - 卡片式布局（图片2的样式） */
@media (max-width: 767px) {
  /* Notice Section Mobile */
  .section-notice-wrapper {
    padding: 15px 0;
  }

  .notice-header {
    margin-bottom: 15px;
  }

  .notice-header-icon {
    width: 40px;
    height: 40px;
  }

  .notice-title {
    font-size: 22px;
  }

  .notice-banner {
    padding: 15px;
    margin-bottom: 15px;
  }

  .notice-banner-logo {
    width: 50px;
    height: 50px;
  }

  .notice-banner-name {
    font-size: 14px;
  }

  .notice-swiper {
    height: 350px;
  }

  /* Giới hạn chiều cao list thông báo trên mobile để có scroll (desktop dùng flex/JS) */
  .section-notice-wrapper .notice-swiper-wrapper {
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .section-notice-wrapper .notice-scroll-container {
    max-height: 320px;
    overflow-y: auto !important;
    min-height: 0;
  }

  .notice-item {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .notice-item-date {
    min-width: auto;
  }

  .notice-pagination {
    bottom: -5px;
  }

  /* Event Section Mobile - 卡片式布局 */
  .section-event-wrapper {
    padding: 15px 0;
  }

  .event-header {
    margin-bottom: 15px;
  }

  .event-header-icon {
    width: 30px;
    height: 30px;
  }

  .event-title {
    font-size: 20px;
  }

  .event-subtitle {
    font-size: 13px;
  }

  .event-list-container {
    gap: 12px;
  }

  /* 移动端：卡片式布局 - 图片在上，内容在下 */
  .event-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .event-item-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
  }

  .event-item-content {
    gap: 10px;
  }

  .event-item-date {
    margin-bottom: 8px;
  }

  .event-item-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .event-item-title a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .event-item-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Small Mobile */
@media (max-width: 575px) {
  .notice-title {
    font-size: 20px;
  }

  .notice-banner {
    padding: 12px;
  }

  .notice-banner-content {
    flex-direction: column;
    gap: 10px;
  }

  .notice-banner-name {
    font-size: 13px;
  }

  .notice-swiper {
    height: 300px;
  }

  .notice-item {
    padding: 10px;
  }

  .notice-item-date {
    gap: 6px;
  }

  .notice-calendar-icon {
    width: 18px;
    height: 18px;
  }

  .notice-date-text {
    font-size: 13px;
  }

  .notice-item-title {
    font-size: 14px;
  }

  .notice-bullet {
    width: 8px;
    height: 8px;
  }

  .notice-bullet-active {
    width: 20px;
  }

  .event-title {
    font-size: 18px;
  }

  .event-item-image {
    height: 180px;
  }

  .event-item-title {
    font-size: 15px;
  }

  .event-item-description {
    font-size: 12px;
  }
}
