@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Prompt:wght@300;400;500;600&display=swap');

body { margin: 0; padding: 0; }

.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', 'Prompt', serif;
}
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: blur(2px); 
  transform: scale(1.05); 
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: center;
  padding: 0 20px; 
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}
.glass-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: transparent;
  box-sizing: border-box;
  font-family: 'Cinzel', 'Prompt', serif;
}
.logo img { height: 60px; width: auto; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.glass-navbar .nav-menu {
  list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; align-items: center;
}
.glass-navbar .nav-menu li { position: relative; }
.glass-navbar .nav-menu a {
  text-decoration: none; color: #ffffff; font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; padding-bottom: 5px; transition: all 0.3s ease;
}
.glass-navbar .nav-menu a:hover, .glass-navbar .nav-menu a.active {
  color: #ffffff; border-bottom: 2px solid #ffffff;
}
.glass-navbar .dropdown-content {
  display: none; position: absolute; top: 100%; left: 0; background: rgba(0, 0, 0, 0.8);
  list-style: none; padding: 15px 0; min-width: 220px; border-radius: 6px; margin-top: 15px; z-index: 100;
}
.glass-navbar .dropdown:hover .dropdown-content { display: block; }
.glass-navbar .dropdown-content li { padding: 8px 20px; }
.glass-navbar .dropdown-content a { font-size: 14px; font-weight: 400; border-bottom: none; }
.glass-navbar .dropdown-content a:hover { color: #cccccc; }
.mobile-menu-toggle {
  display: none; background: transparent; border: none; color: white; font-size: 28px; cursor: pointer;
}
.main-section-title {
  font-family: 'Cinzel', serif; color: #8b0000; font-size: 32px; font-weight: 700;
  text-align: center; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase;
}
.announcement-card {
  background-color: #fcfcfc; border: 1px solid #f0f0f0; border-radius: 12px;
  padding: 30px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); font-family: 'Prompt', sans-serif; max-width: 100%;
}
.announcement-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin-top: 0; margin-bottom: 15px; }
.announcement-divider { border-top: 1px solid #e0e0e0; margin-bottom: 25px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: flex; align-items: flex-start; margin-bottom: 20px; gap: 15px; }
.news-icon { color: #c82333; font-size: 18px; margin-top: 3px; }
.news-text {
  font-size: 15px; color: #4a4a4a; text-decoration: none; line-height: 1.6; font-weight: 400; transition: color 0.3s ease;
}
.news-text:hover { color: #c82333; text-decoration: none; }
.pagination-container {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e0e0e0; padding-top: 15px;
}
.page-btn {
  background: none; border: none; color: #c82333; font-family: 'Cinzel', serif;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.page-btn:hover:not(:disabled) { color: #8b0000; transform: scale(1.05); }
.page-btn:disabled { color: #cccccc; cursor: not-allowed; }


/* ==================================================
   Premium Hall of Fame - Fluid Aspect Ratio 511:341
================================================== */
.outstand-carousel .owl-item .premium-fame-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  
  /* ล็อกสัดส่วนการ์ดให้เป็น 511:341 เสมอ (ปรับความสูงอัตโนมัติตามความกว้าง) */
  width: 100%;
  aspect-ratio: 511 / 341;
  height: auto; 
  margin: 0 auto;
  
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  
  /* ให้รูปด้านซ้ายและขวาย่อตัวเล็กลง 25% ไม่ให้ขอบเบียดหรือโดนตัด */
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(0.75); 
  opacity: 0.4;
  filter: grayscale(40%); 
}

/* เมื่อรูปเลื่อนมาอยู่ตรงกลางจะขยายใหญ่เต็ม 100% สว่างชัด */
.outstand-carousel .owl-item.center .premium-fame-card {
  transform: scale(1); 
  opacity: 1; 
  filter: grayscale(0%);
  box-shadow: 0 15px 40px rgba(200, 35, 51, 0.3); 
  z-index: 10;
}

/* บังคับรูปภาพให้ฟิตพอดีกับกรอบ 511:341 เสมอ โดยไม่บิดเบี้ยว */
.premium-fame-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* ซูมภาพเฉพาะเวลาเอาเมาส์ชี้ตัวตรงกลาง */
.outstand-carousel .owl-item.center .premium-fame-card:hover img {
  transform: scale(1.08); 
}

/* ส่วนของ Overlay เงาดำด้านล่าง */
.premium-fame-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 25px 20px;
}

/* ตัวหนังสืออธิบายผลงาน */
.premium-fame-caption {
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 15px; 
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.6s ease;
}

.premium-fame-caption i {
  color: #ffd700;
  margin-right: 8px;
  font-size: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* ปุ่มลูกศรซ้าย-ขวา ให้อยู่ริมจอสุด */
.outstand-carousel .owl-nav button.owl-prev,
.outstand-carousel .owl-nav button.owl-next {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(200, 35, 51, 0.9) !important;
  color: white !important; 
  width: 48px !important; 
  height: 48px !important; 
  border-radius: 50% !important;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 18px !important; 
  transition: all 0.3s ease; 
  outline: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 100;
}
.outstand-carousel .owl-nav button.owl-prev { left: 3%; }
.outstand-carousel .owl-nav button.owl-next { right: 3%; }
.outstand-carousel .owl-nav button:hover { 
  background: rgba(139, 0, 0, 1) !important; 
  transform: translateY(-50%) scale(1.1); 
}
.outstand-carousel .owl-dots .owl-dot span { background: #e0e0e0 !important; }
.outstand-carousel .owl-dots .owl-dot.active span { background: #c82333 !important; }

/* ================================================== */


.gallery-item {
  background-color: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; border: 1px solid #f0f0f0;
}
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); }
.gallery-img-wrapper { width: 100%; padding-top: 66.7%; position: relative; overflow: hidden; }
.gallery-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-title {
  font-family: 'Prompt', sans-serif; font-size: 14px; color: #333; padding: 15px;
  text-align: center; font-weight: 500; line-height: 1.4; min-height: 60px; display: flex; align-items: center; justify-content: center;
}

.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.25); z-index: 1; transition: background 0.3s ease;
}
.gallery-item:hover .video-overlay { background: rgba(0, 0, 0, 0.5); }
.video-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9); font-size: 45px; z-index: 2; transition: all 0.3s ease;
}
.gallery-item:hover .video-play-icon { color: #c82333; transform: translate(-50%, -50%) scale(1.15); }

#footer {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  padding-top: 60px;
}
#footer .footer-top {
  padding-bottom: 30px;
}
#footer .footer-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  margin: 0 0 20px 0;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c82333;
}
#footer .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: #cccccc;
}
#footer .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  line-height: 1;
  margin-right: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  text-decoration: none;
}
#footer .social-links a:hover {
  background: #c82333;
  color: #fff;
}
#footer .footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
#footer .footer-links h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: #c82333;
  bottom: 0;
  left: 0;
}
#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#footer .footer-links ul li:first-child {
  padding-top: 0;
}
#footer .footer-links ul li:last-child {
  border-bottom: none;
}
#footer .footer-links ul i {
  padding-right: 8px;
  color: #c82333;
  font-size: 12px;
  line-height: 1.5; 
  margin-top: 4px;
}
#footer .footer-links ul a {
  color: #cccccc;
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
#footer .footer-links ul a:hover {
  color: #c82333;
}
.copyright-wrap {
  background: #0d0d0d;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #999;
}
.copyright-wrap strong span {
  color: #c82333;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 991px) {
  .glass-navbar { padding: 15px 30px; }
  .mobile-menu-toggle { display: block; }
  .glass-navbar .nav-menu {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
    width: 100%; background: rgba(0, 0, 0, 0.9); padding: 20px 0; gap: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }
  .glass-navbar .nav-menu.active { display: flex; }
  .glass-navbar .dropdown-content { position: static; background: rgba(255, 255, 255, 0.1); box-shadow: none; margin-top: 10px; width: 100%; text-align: center; }
  .hero-content h1 { font-size: 2.8rem; }
  
  #footer .footer-links, #footer .footer-info { margin-bottom: 30px; } 
}
@media (max-width: 768px) {
  .glass-navbar { padding: 15px 20px; }
  .logo img { height: 45px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1.2rem; }
  .main-section-title { font-size: 26px; }
  .announcement-card { padding: 20px; }
  .announcement-title { font-size: 20px; }
  .gallery-img-wrapper { padding-top: 75%; }
}
@media (max-width: 576px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
}
/* ==================================================
   AC Student Site Banner 
================================================== */
/* ==================================================
   AC Student Site Banner 
================================================== */
.student-banner-wrapper {
  border-radius: 12px;
  overflow: hidden;
  display: block; /* เปลี่ยนให้เป็น Block ธรรมดา */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  background-color: #fcfcfc;
}

.student-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.student-banner-img {
  width: 100%;
  height: auto; /* ตั้งค่า Auto เพื่อรักษาสัดส่วนรูปให้สมดุล 100% ไม่ถูกตัดขอบ */
  display: block;
  transition: transform 0.5s ease;
}

/* เอฟเฟกต์ Hover เมื่อเอาเมาส์ชี้ หรือ กดคลิก */
.student-banner-wrapper:hover {
  transform: translateY(-8px); 
  box-shadow: 0 15px 35px rgba(200, 35, 51, 0.25); 
}

.student-banner-wrapper:hover .student-banner-img {
  transform: scale(1.05); 
}
/* ==================================================
   AC Student Site Banner 
================================================== */
.student-banner-wrapper {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  background-color: #fcfcfc;
}

.student-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.student-banner-img {
  width: 100%;
  height: auto; 
  display: block;
  transition: transform 0.5s ease;
}

.student-banner-wrapper:hover {
  transform: translateY(-8px); 
  box-shadow: 0 15px 35px rgba(200, 35, 51, 0.25); 
}

.student-banner-wrapper:hover .student-banner-img {
  transform: scale(1.05); 
}
/* ==================================================
   Calendar Section (บีบอัดความสูงให้พอดีกับคอลัมน์ซ้าย)
================================================== */
.calendar-card {
  background-color: #fcfcfc;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 15px 20px; /* ลด Padding ขอบบน-ล่างให้บางลง */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.calendar-nav { 
  display: flex; 
  align-items: center; 
  gap: 30px; 
  margin-bottom: 10px; /* ลดระยะห่าง */
  justify-content: center; 
}
.cal-nav-btn { 
  color: #0000ff; 
  font-size: 18px; 
  font-weight: bold; 
  text-decoration: none; 
  transition: transform 0.3s; 
}
.cal-nav-btn:hover { color: #0000cc; text-decoration: none; }
.cal-month-year { 
  font-family: 'Prompt', sans-serif; 
  font-weight: 600; 
  font-size: 15px; 
  color: #000; 
}

/* ปรับ Grid ให้ขยายเต็มความกว้าง 100% แบบสมส่วน */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); 
  gap: 2px; /* ลดระยะห่างระหว่างวัน */
  text-align: center;
  width: 100%; 
  margin-bottom: 10px; /* ลดระยะห่างด้านล่างตาราง */
}

.cal-day { 
  font-family: 'Prompt', sans-serif; 
  font-weight: 600; 
  font-size: 14px; 
  margin-bottom: 4px; /* ลดช่องว่างใต้ตัวหนังสือวัน */
}
.cal-day.text-red { color: #c82333; } 
.cal-day.text-blue { color: #4285f4; }
.cal-date { 
  font-family: 'Times New Roman', serif; 
  font-size: 14px; /* ปรับฟอนต์เล็กลงนิดนึง */
  line-height: 26px; /* บีบความสูงวงกลมจาก 30px เป็น 26px */
  height: 26px; 
  width: 26px; 
  margin: 0 auto; 
  color: #000; 
  border-radius: 50%; 
}
.cal-date.active { 
  background-color: #c82333; 
  color: #fff; 
  font-weight: bold; 
} 

.cal-links { list-style: none; padding: 0; margin: 0; }
.cal-footer-link { 
  font-family: 'Prompt', sans-serif; 
  font-weight: 600; 
  color: #1a1a1a; 
  font-size: 13px; 
  text-decoration: none; 
  transition: color 0.3s; 
}
.cal-footer-link:hover { color: #c82333; text-decoration: none; }
.cal-footer-update { 
  font-family: 'Prompt', sans-serif; 
  color: #666; 
  font-size: 12px; 
  margin-top: 5px; 
}