
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-primary:      #1a6b5e;
  --c-primary-l:    #2a9d8f;
  --c-secondary:    #e76f51;
  --c-accent:       #f4a261;
  --c-gold:         #e9c46a;
  --c-dark:         #0d1b2a;
  --c-mid:          #1c2b3a;
  --c-gray:         #64748b;
  --c-gray-l:       #e2e8f0;
  --c-light:        #f8fafc;
  --c-white:        #ffffff;
  --radius:         20px;
  --radius-sm:      12px;
  --shadow:         0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:      0 20px 60px rgba(0,0,0,.14);
  --transition:     all .35s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--c-light);
  color: var(--c-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background: url('../image/3sirac.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 28, 45, 0.96) 0%,
    rgba(42, 157, 143, 0.85) 60%,
    rgba(42, 157, 143, 0.75) 100%
  ),
  radial-gradient(circle at 20% 30%, rgba(42, 157, 143, 0.4) 0%, transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(233, 196, 106, 0.2) 0%, transparent 40%);
  z-index: 1;
}

/* Animated mesh dots overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .4px;
  animation: slideDown .8s ease both;
}

.hero-badge i { color: var(--c-gold); }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: scaleIn .9s ease .15s both;
}

.hero-title .highlight {
  color: var(--c-gold);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 10px;
  background: rgba(233,196,106,.25);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
  animation: fadeUp .9s ease .3s both;
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; overflow: hidden;
  line-height: 0; z-index: 2;
}
.hero-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  fill: var(--c-light);
}

/* ─── SECTION COMMON ─────────────────────────────────────── */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 14px;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-gray);
  max-width: 560px;
  margin: 20px auto 0;
}

/* ─── NEWS GRID ──────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 12px;
}

/* ─── NEWS CARD ──────────────────────────────────────────── */
.news-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
  transform: scaleX(0);
  transition: transform .4s ease;
  transform-origin: left;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42,157,143,.12);
}

.news-card:hover::before { transform: scaleX(1); }

/* Image */
.news-image {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.news-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.news-card:hover .news-image img { transform: scale(1.08); }

.news-category {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-accent));
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Content */
.news-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  font-size: .82rem;
  color: var(--c-gray);
}

.news-meta i {
  color: var(--c-primary-l);
  margin-right: 5px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color .3s ease;
}

.news-card:hover .news-title { color: var(--c-primary); }

.news-excerpt {
  font-size: .92rem;
  color: var(--c-gray);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: var(--c-gray-l);
  color: var(--c-dark);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}

.tag:hover {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-gray-l);
}

.read-more {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(42,157,143,.3);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,157,143,.45);
}

.share-btn {
  background: var(--c-gray-l);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--c-gray);
  font-size: .9rem;
}

.share-btn:hover {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: white;
  transform: rotate(20deg);
}

/* Expand */
.news-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, opacity .4s ease;
  opacity: 0;
}

.news-full.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--c-gray-l);
}

.news-full p { margin-bottom: 10px; font-size: .92rem; }

/* ─── CALENDAR SECTION ───────────────────────────────────── */
.calendar-section {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
  padding: 80px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 12px;
}

.calendar-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.calendar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
}

.calendar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42,157,143,.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-gray-l);
}

.calendar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-dark);
}

.event-count {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(42,157,143,.3);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--c-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.event-item:hover {
  background: white;
  border-left-color: var(--c-primary-l);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.event-item.highlight {
  background: linear-gradient(135deg, rgba(233,196,106,.10), rgba(244,162,97,.08));
  border-left: 3px solid var(--c-secondary);
}

.event-date {
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  min-width: 64px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  flex-shrink: 0;
}

.event-day {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1;
}

.event-month {
  font-size: .72rem;
  color: var(--c-gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

.event-details { flex-grow: 1; }

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 6px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--c-gray);
}

.event-meta i { color: var(--c-primary-l); margin-right: 4px; }

/* ─── VIDEO SECTION ──────────────────────────────────────── */
.videos {
  background: white;
  padding: 80px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 12px;
}

.video-card {
  background: var(--c-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.video-card.is-playing {
  border: 2px solid var(--c-primary-l);
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(42,157,143,.25);
  z-index: 5;
}

.yt-video {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.video-card:hover .yt-thumb { transform: scale(1.05); }

/* Play icon overlay */
.yt-video::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--c-secondary);
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.video-card:hover .yt-video::after { opacity: 1; animation: pulse 1.4s infinite; }
.video-card.is-playing .yt-video::after { display: none; }

.video-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.7));
  z-index: 1;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.video-card:hover::before { opacity: 1; }
.video-card.is-playing::before { opacity: 0 !important; }

/* ─── PHOTO GALLERY ──────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: var(--shadow);
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.photo-card:hover img { transform: scale(1.12); }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(13,27,42,.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease;
}

.photo-card:hover .photo-overlay { opacity: 1; }

.photo-icon {
  font-size: 1.4rem;
  color: white;
  background: rgba(42,157,143,.9);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.7) rotate(-180deg);
  transition: all .4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.photo-card:hover .photo-icon { transform: scale(1) rotate(0deg); }

/* ─── LIGHTBOX MODAL ─────────────────────────────────────── */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active { display: flex; }

.modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 80px rgba(0,0,0,.8);
  animation: scaleIn .3s ease;
}

.modal-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.12);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.modal-close:hover { background: var(--c-secondary); transform: rotate(90deg); }

/* ─── ANIMATE UTILITIES ──────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero { min-height: 60vh; }
  .hero-title { font-size: 3.2rem; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .calendar-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .calendar-section { padding: 56px 0; }
  .videos { padding: 56px 0; }
  .hero { min-height: 55vh; padding: 100px 0 80px; }
  .hero-title { font-size: 2.6rem; }
  .hero-description { font-size: 1rem; }
  .section-title { font-size: 2rem; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .news-content { padding: 22px; }
  .calendar-card { padding: 24px 20px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .photo-card { height: 200px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-badge { font-size: .8rem; padding: 8px 16px; }
  .news-image { height: 200px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card { height: 220px; }
  .event-meta { flex-direction: column; gap: 6px; }
  .calendar-grid { grid-template-columns: 1fr; }
}