/**
 * Template Name: Day (Cleaned & Optimized)
 * Modern CCT District 20 Core Stylesheet
 */

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors */
:root { 
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #191919;
  --accent-color: #cc1616;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Color Presets */
.light-background {
  --background-color: #f6f6f6;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/*--------------------------------------------------------------
# Sacred Preloader (Tin Lanh CCT Phak 20: Nhip tho - Sau lang - Trang sang)
--------------------------------------------------------------*/
:root {
  --preloader-pulse-duration: 3.2s;
  --preloader-neon-pink: rgba(255, 55, 255, 0.45);
  --preloader-neon-glow: rgba(255, 55, 255, 0.20);
  --preloader-neon-soft: rgba(255, 55, 255, 0.08);
  --preloader-sacred-gold: #d97706;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader .preloader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  max-width: 480px;
  width: 90%;
}

#preloader .logo-sacred-pod {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Logo con dấu: ảnh thuần, KHÔNG viền / KHÔNG glow / KHÔNG nền phụ.
   Bản thân file logo đã có nền trắng bên trong vòng tròn và trong suốt ra ngoài,
   nên mọi khung CSS thêm vào chỉ làm bẩn hình. */
#preloader .sacred-logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  position: relative;
  z-index: 5;
  animation: sacredBreathing var(--preloader-pulse-duration) ease-in-out infinite;
}

@keyframes sacredBreathing {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

/* (ĐÃ GỠ) Ripple rings quanh logo preloader.
   Ba vòng tròn hồng/vàng do CSS vẽ quanh con dấu là "viền màu nhân tạo" —
   Sếp yêu cầu logo phải thuần, không khung. Bản trước khi gỡ:
   backup_archive/pre_logo_pure_20261111/ */

#preloader .preloader-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #141a3e;
  margin-bottom: 4px;
  line-height: 1.3;
}

#preloader .preloader-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--preloader-sacred-gold);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  line-height: 1.3;
}

#preloader .luminous-progress-bar {
  width: 140px;
  height: 3px;
  background: rgba(20, 26, 62, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  margin: 2px auto 0;
}

#preloader .luminous-progress-fill {
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--preloader-neon-pink), #f59e0b, transparent);
  border-radius: 99px;
  animation: luminousFlow 2s ease-in-out infinite;
}

@keyframes luminousFlow {
  0% { left: -40%; }
  100% { left: 100%; }
}

#preloader .scripture-verse {
  font-size: 0.82rem;
  font-style: italic;
  color: #475569;
  margin-top: 14px;
  max-width: 380px;
  line-height: 1.5;
}

#preloader .scripture-ref {
  font-size: 0.75rem;
  color: var(--preloader-sacred-gold);
  margin-top: 4px;
  font-style: normal;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

body.modal-open .scroll-top,
body.modal-open .scroll-top.active {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/*--------------------------------------------------------------
# AOS animation delay on mobile devices
# Độ trễ được gỡ ở tầng JS (aosInit trong assets/js/main.js) vì AOS ghi
# transition-delay trực tiếp vào inline style, CSS không thắng được nếu
# không dùng !important.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  position: relative;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.section-title span {
  position: absolute;
  top: 4px;
  color: color-mix(in srgb, var(--heading-color), transparent 95%);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 1;
}

.section-title p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-title span {
    font-size: 38px;
  }
}

/*--------------------------------------------------------------
# Call To Action / Contact Background Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

/*--------------------------------------------------------------
# Contact Info Cards
--------------------------------------------------------------*/
.contact .info-item,
.info-item {
  background-color: var(--surface-color);
  padding: 20px 0 30px 0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.contact .info-item i,
.info-item i {
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3,
.info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p,
.info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

/*--------------------------------------------------------------
# WebP progressive enhancement
--------------------------------------------------------------*/
/* <picture> chỉ là wrapper: display:contents để <img> vẫn là con trực tiếp của
   container (giữ nguyên flex/grid/absolute sizing khi trình duyệt chọn WebP). */
picture {
  display: contents;
}
