/* =======================
   Giáo xứ Phúc Long
   Style dùng chung (đa trang)
   ======================= */

:root{
  --blue: #1E73BE;
  --blue-light: #4FA3E3;
  --gold: #F4C542;
  --white: #FFFFFF;

  --text: #0b1a2b;
  --muted: #5b6b7a;
  --bg: #f6f9fc;
  --card: #ffffff;
  --border: rgba(30,115,190,0.18);

  --shadow-sm: 0 10px 24px rgba(11,26,43,0.08);
  --shadow-md: 0 16px 40px rgba(11,26,43,0.12);

  --radius: 16px;
  --container: 1120px;
  --header-h: 72px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 60%, #ffffff 100%);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* =======================
   Header (Sticky)
   ======================= */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,115,190,0.12);
  height: var(--header-h);
  transition: box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.header.is-elevated{
  box-shadow: 0 10px 28px rgba(11,26,43,0.10);
  background: rgba(255,255,255,0.96);
}
.nav{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--blue);
  white-space: nowrap;
}
.brand-logo{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(30,115,190,0.18);
  flex: 0 0 auto;
}
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, var(--blue-light), var(--blue));
  box-shadow: 0 10px 22px rgba(30,115,190,0.22);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after{
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.brand-mark::before{ width: 18px; height: 3px; }
.brand-mark::after{ width: 3px; height: 18px; }
.brand-text small{
  display: block;
  font-weight: 600;
  color: rgba(30,115,190,0.8);
  font-size: 12px;
  margin-top: 2px;
}

.menu{
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu a{
  font-weight: 600;
  color: rgba(11,26,43,0.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.menu a:hover{
  background: rgba(79,163,227,0.14);
  color: var(--blue);
  transform: translateY(-1px);
}
.menu a.is-active{
  color: var(--blue);
  background: rgba(30,115,190,0.10);
  box-shadow: inset 0 0 0 1px rgba(30,115,190,0.16);
}
.menu-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(30,115,190,0.18);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
  font-weight: 700;
}
.menu-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30,115,190,0.24);
}
.menu-cta span.dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(244,197,66,0.18);
  display: inline-block;
}
.menu-toggle{
  display: none;
  border: 0;
  background: rgba(30,115,190,0.10);
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.menu-toggle:hover { background: rgba(30,115,190,0.14); transform: translateY(-1px); }
.menu-toggle:active { transform: translateY(0); }

/* =======================
   Hero (dùng chung)
   ======================= */
.hero{
  position: relative;
  min-height: calc(80vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(30,115,190,0.10);
}
.hero-bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(11,26,43,0.25), rgba(11,26,43,0.18)),
    url("605113345_853724637452319_7622706487267339379_n.jpg")
    center/cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(79,163,227,0.35), rgba(30,115,190,0.22) 45%, rgba(30,115,190,0.12) 70%, rgba(11,26,43,0.18));
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-content{
  position: relative;
  padding: 72px 0 80px;
  text-align: left;
  color: var(--white);
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.12;
  letter-spacing: 0.2px;
  text-shadow: 0 18px 46px rgba(0,0,0,0.35);
}
.hero p{
  margin: 0 0 22px;
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(255,255,255,0.90);
  max-width: 70ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
  user-select: none;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold) 0%, #ffd76a 100%);
  color: #2a1d00;
  box-shadow: 0 16px 38px rgba(244,197,66,0.28);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 44px rgba(244,197,66,0.34); }
.btn-ghost{
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.18); }

.hero-side{
  justify-self: end;
  width: min(360px, 100%);
}
.hero-badge{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 16px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.hero-badge h3{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.hero-badge ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hero-badge li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,115,190,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
}
.pill i{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(244,197,66,0.14);
  display: inline-block;
}
.pill small{
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* Hero cho trang con */
.hero.hero--page{
  min-height: calc(46vh - var(--header-h));
}
.hero.hero--page .hero-content{
  padding: 56px 0 60px;
  grid-template-columns: 1fr;
}
.hero.hero--page .hero-side{ display: none; }
.breadcrumbs{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.88);
  font-weight: 800;
}
.breadcrumbs a{
  color: rgba(255,255,255,0.88);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.breadcrumbs a:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.18); }
.breadcrumbs span{
  color: rgba(255,255,255,0.82);
}

/* =======================
   Section + Card
   ======================= */
.section{ padding: 64px 0; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(30,115,190,0.90);
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}
.kicker::before{
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.section-title{
  margin: 6px 0 0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.section-desc{
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 75ch;
}

.grid{ display: grid; gap: 16px; }
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,115,190,0.28);
}
.card-body{ padding: 18px; }
.meta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(30,115,190,0.90);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meta .tag{
  background: rgba(244,197,66,0.18);
  color: #7a5600;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
}
.card h3{
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.card p{ margin: 0; color: var(--muted); }

/* About */
.about{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.about .panel{
  background: linear-gradient(180deg, #ffffff 0%, rgba(79,163,227,0.08) 100%);
  border: 1px solid rgba(30,115,190,0.16);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.about .panel h3{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: rgba(11,26,43,0.9);
}
.about .facts{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact{
  display: flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(30,115,190,0.06);
  border: 1px solid rgba(30,115,190,0.12);
}
.fact b{ color: rgba(11,26,43,0.88); }
.fact span{ color: var(--muted); }

/* Lịch lễ */
.mass-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mass-card{ position: relative; overflow: hidden; }
.mass-card::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto -40%;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(79,163,227,0.35), rgba(30,115,190,0.0) 60%);
  transform: rotate(-8deg);
  pointer-events:none;
}
.mass-time{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(30,115,190,0.06);
  border: 1px solid rgba(30,115,190,0.14);
}
.mass-time .label{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mass-time .label b{ font-size: 14px; }
.mass-time .label small{ color: var(--muted); font-weight: 700; }
.mass-time .clock{
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.8px;
}

.schedule{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(30,115,190,0.14);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.schedule th,
.schedule td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(30,115,190,0.10);
  text-align: left;
  vertical-align: top;
}
.schedule th{
  background: rgba(30,115,190,0.06);
  color: rgba(11,26,43,0.88);
  font-weight: 900;
}
.schedule tr:last-child td{ border-bottom: 0; }
.schedule td b{ color: rgba(11,26,43,0.88); }
.schedule td small{ color: var(--muted); font-weight: 700; }

/* Lịch lễ (carousel ảnh) */
.schedule-carousel{
  width: 40%;
  max-width: 560px;
  min-width: 320px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(30,115,190,0.16);
  background: rgba(30,115,190,0.04);
  box-shadow: var(--shadow-sm);
}
.schedule-carousel--compact{
  width: 40%;
  max-width: 320px;
  min-width: 280px;
}
.schedule-track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.schedule-track::-webkit-scrollbar{ height: 8px; }
.schedule-track::-webkit-scrollbar-thumb{
  background: rgba(30,115,190,0.18);
  border-radius: 999px;
}
.schedule-card{
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30,115,190,0.14);
  background: #fff;
  cursor: pointer;
  position: relative;
  box-shadow: 0 16px 46px rgba(11,26,43,0.08);
}
.schedule-card:focus{
  outline: 3px solid rgba(30,115,190,0.16);
  outline-offset: 3px;
}
.schedule-card img{
  width: 100%;
  height: auto;
  display: block;
}
.schedule-meta{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 2px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(11,26,43,0.58);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.schedule-meta b{
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
}
.schedule-meta small{
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}
.schedule-card.is-expired{
  opacity: 0.55;
  filter: grayscale(0.6);
  box-shadow: 0 12px 34px rgba(11,26,43,0.06);
}
.schedule-card.is-active{
  box-shadow: 0 18px 56px rgba(30,115,190,0.18);
}
.schedule-empty{
  padding: 16px;
  color: rgba(11,26,43,0.62);
  font-weight: 800;
}
.schedule-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 10px 12px;
}
.schedule-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(30,115,190,0.22);
  cursor: pointer;
  padding: 0;
}
.schedule-dot.is-active{
  width: 22px;
  background: rgba(30,115,190,0.65);
}

@media (max-width: 980px){
  .schedule-carousel{ width: 70%; max-width: 480px; min-width: 300px; border-radius: 16px; }
  .schedule-empty{ padding: 14px; }
}

@media (max-width: 720px){
  .schedule-carousel{ width: 100%; max-width: 380px; min-width: 0; border-radius: 14px; }
  .schedule-empty{ padding: 12px; }
  .schedule-card{ border-radius: 14px; }
  .schedule-meta{ left: 8px; right: 8px; bottom: 8px; }
}

/* Tin tức */
.news-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumb{
  height: 160px;
  background: linear-gradient(135deg, rgba(30,115,190,0.18), rgba(79,163,227,0.10)),
    url("https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1600&q=70")
    center/cover no-repeat;
}
.thumb.t2{
  background: linear-gradient(135deg, rgba(244,197,66,0.18), rgba(30,115,190,0.10)),
    url("https://images.unsplash.com/photo-1520975682031-ae7b0ea0fda0?auto=format&fit=crop&w=1600&q=70")
    center/cover no-repeat;
}
.thumb.t3{
  background: linear-gradient(135deg, rgba(79,163,227,0.16), rgba(30,115,190,0.12)),
    url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1600&q=70")
    center/cover no-repeat;
}
.readmore{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30,115,190,0.08);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.readmore:hover{ transform: translateY(-1px); background: rgba(30,115,190,0.12); }

.news-excerpt{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-detail-modal{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.news-detail-modal.is-open{ display: block; }
.news-detail-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,26,43,0.72);
  backdrop-filter: blur(8px);
}
.news-detail-panel{
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.news-detail-card{
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 80px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.98);
  display: flex;
  flex-direction: column;
}
.news-detail-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(30,115,190,0.12);
}
.news-detail-head strong{ color: rgba(11,26,43,0.9); }
.news-detail-close{
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,115,190,0.10);
  color: rgba(11,26,43,0.88);
  font-weight: 900;
}
.news-detail-body{
  padding: 14px 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 10px;
}
.news-detail-meta{
  color: rgba(11,26,43,0.62);
  font-weight: 800;
}
.news-detail-image{
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(30,115,190,0.14);
}
.news-detail-text{
  color: rgba(11,26,43,0.86);
  font-weight: 700;
  line-height: 1.65;
}

/* Video */
.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.video-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-card .card-body {
  padding: 14px 16px;
}
.video-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  overflow: hidden;
  margin-bottom: 4px;
}
.video-card p {
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1; /* Giới hạn 1 dòng */
  overflow: hidden;
  opacity: 0.8;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thư viện */
.gallery{
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.g-item{
  grid-column: span 4;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(30,115,190,0.16);
  box-shadow: var(--shadow-sm);
  background: #dfefff;
  min-height: 170px;
  transform: translateY(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
}
.g-item:hover{
  transform: translateY(-4px);
  border-color: rgba(30,115,190,0.28);
  box-shadow: var(--shadow-md);
}
.g-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
  transition: transform 300ms var(--ease);
}
.g-item:hover img{ transform: scale(1.07); }
.g-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(11,26,43,0.0) 55%, rgba(11,26,43,0.28));
  pointer-events:none;
  opacity: 0.9;
}
.g-caption{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow: 0 10px 26px rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.g-caption small{
  font-weight: 800;
  color: rgba(255,255,255,0.82);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.lightbox.is-open{ display: block; }
.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,26,43,0.72);
  backdrop-filter: blur(6px);
  z-index: 0;
}
.lightbox-panel{
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.lightbox-figure{
  margin: 0;
  width: min(860px, 100%);
  max-height: calc(100vh - 72px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 80px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.06);
  pointer-events: auto;
}
.lightbox-figure img{
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  height: auto;
  margin: 0 auto;
  display: block;
}
.lightbox-caption{
  padding: 12px 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 800;
}
.lightbox-close{
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  font-weight: 900;
  z-index: 2;
  touch-action: manipulation;
}

/* Liên hệ */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.contact .card-body p{ margin-top: 6px; }
.contact-list{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.contact-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(30,115,190,0.06);
  border: 1px solid rgba(30,115,190,0.12);
}
.contact-item b{ color: rgba(11,26,43,0.88); }
.contact-item a{
  color: var(--blue);
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(30,115,190,0.08);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.contact-item a:hover{
  background: rgba(30,115,190,0.12);
  transform: translateY(-1px);
}
.field{
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: rgba(11,26,43,0.84);
}
.input,
.textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(30,115,190,0.16);
  outline: none;
  background: #fff;
}
.textarea{ resize: vertical; }
.map{
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,115,190,0.14);
}

/* Footer */
.footer{
  background: linear-gradient(180deg, rgba(30,115,190,0.08), rgba(30,115,190,0.14));
  border-top: 1px solid rgba(30,115,190,0.16);
  padding: 28px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer strong{
  color: rgba(11,26,43,0.9);
  letter-spacing: 0.2px;
}
.footer small{
  color: rgba(11,26,43,0.68);
  font-weight: 700;
}

/* Fade-in on scroll */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .g-item, .btn, .menu a { transition: none; }
}

/* Responsive */
@media (max-width: 980px){
  .hero-content{ grid-template-columns: 1fr; }
  .hero-side{ justify-self: start; }
  .news-grid{ grid-template-columns: 1fr; }
  .video-grid{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .mass-grid{ grid-template-columns: 1fr; }
  .g-item{ grid-column: span 6; }
}
@media (max-width: 720px){
  .menu{ display: none; }
  .menu-toggle{ display: inline-flex; align-items: center; gap: 10px; }
  .hero{ min-height: calc(78vh - var(--header-h)); }
  .hero.hero--page{ min-height: calc(44vh - var(--header-h)); }
  .section{ padding: 54px 0; }
  .g-item{ grid-column: span 12; min-height: 190px; }
  .lightbox-panel{ inset: 14px; }
}

/* Mobile Drawer */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.drawer.is-open{
  pointer-events: auto;
  opacity: 1;
}
.drawer-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,26,43,0.55);
  backdrop-filter: blur(4px);
}
.drawer-panel{
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(30,115,190,0.16);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(11,26,43,0.22);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 240ms var(--ease);
}
.drawer.is-open .drawer-panel{ transform: translateY(0); }
.drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(30,115,190,0.12);
}
.drawer-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.drawer-brand .brand-logo{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(30,115,190,0.14);
}
.drawer-head strong{ color: var(--blue); letter-spacing: 0.2px; }
.drawer-close{
  border: 0;
  background: rgba(30,115,190,0.10);
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}
.drawer-nav{
  display: grid;
  padding: 10px;
  gap: 8px;
}
.drawer-nav a{
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 800;
  color: rgba(11,26,43,0.82);
  background: rgba(30,115,190,0.06);
  border: 1px solid rgba(30,115,190,0.10);
  transition: background 180ms var(--ease), transform 180ms var(--ease), color 180ms var(--ease);
}
.drawer-nav a:hover{
  background: rgba(79,163,227,0.14);
  transform: translateY(-1px);
  color: var(--blue);
}
.drawer-nav a.is-active{
  color: var(--blue);
  background: rgba(30,115,190,0.10);
  box-shadow: inset 0 0 0 1px rgba(30,115,190,0.16);
}

/* Anchor offset */
section[id]{ scroll-margin-top: calc(var(--header-h) + 16px); }
