/* =================================================
   Rawasi Display Arabic (local)
   ================================================= */
@font-face {
  font-family: 'Rawasi Display Arabic';
  src: url("Font Used/Rawasi Display/RawasiDisplayArabic-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rawasi Display Arabic';
  src: url("Font Used/Rawasi Display/RawasiDisplayArabic-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rawasi Display Arabic';
  src: url("Font Used/Rawasi Display/RawasiDisplayArabic-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rawasi Display Arabic';
  src: url("Font Used/Rawasi Display/RawasiDisplayArabic-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rawasi Display Arabic';
  src: url("Font Used/Rawasi Display/RawasiDisplayArabic-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =================================================
   DESIGN SYSTEM – Figma Color Palette
   ================================================= */
:root {
  --brown-dark: #563C2F;
  --brown-mid: #88664D;
  --brown-light: #BBA188;
  --brown-pale: #DBCEBE;
  --cream: #F1E9D6;
  --cream-light: #FCFBF7;
  --beige: #F4F3EF;
  --dark: #252525;
  --gray: #8B8E8D;
  --white: #FFFFFF;

  --font-main: 'Rawasi Display Arabic', 'Tahoma', sans-serif;
  --font-serif: 'Rawasi Display Arabic', 'Tahoma', serif;

  --shadow-sm: 0 2px 8px rgba(86, 60, 47, 0.08);
  --shadow-md: 0 4px 20px rgba(86, 60, 47, 0.12);
  --shadow-lg: 0 8px 40px rgba(86, 60, 47, 0.16);
  --shadow-xl: 0 16px 60px rgba(86, 60, 47, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --glow: 0 0 20px rgba(187, 161, 136, 0.3);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* One column width for all main content (aligned start + width) */
  --content-max: 1400px;

  /* Same vertical rhythm between sections + horizontal padding (aligned with .container) */
  --section-gap: 96px;
  --page-gutter: 20px;
  /* Newsletter pulls into footer; padding-top must clear this overlap */
  --footer-overlap: 130px;

  /* Event cards — active / hover (tan panel + white CTA) */
  --event-card-accent: #bfa38a;

  /* Dark brown section — vertical band (match reference) */
  --family-events-gradient: linear-gradient(
    180deg,
    #1a1310 0%,
    #2d211b 18%,
    #4a3b32 38%,
    #9a8478 50%,
    #bcb9b7 62%,
    #c1bfbe 82%,
    #fcfbf7 100%
  );
  --family-events-surface: rgba(255, 255, 255, 0.07);
  --media-header-tan: #e8dfd6;
  /* Media showcase — Figma */
  --media-showcase-pad: 18px;
  --media-showcase-surface: rgba(255, 255, 255, 0.1);
  --media-showcase-border: rgba(255, 255, 255, 0.14);
  --media-card-bg: linear-gradient(165deg, #c4b5a3 0%, #a8947e 55%, #957f6a 100%);
  --media-card-head-bg: rgba(44, 36, 30, 0.22);
  --media-article-inner-bg: #ffffff;
  --media-video-placeholder: #f3e8df;

  /* Landmarks — tan field + brown accent + white corner (reference) */
  --landmark-field: #c2a68e;
  --landmark-accent: #8c7360;
  --landmark-scrolltop: #5d4a3c;
}

::selection {
  background: var(--brown-light);
  color: var(--white);
}

/* =================================================
   SCROLL PROGRESS BAR
   ================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brown-light), var(--brown-dark), var(--brown-mid));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* =================================================
   CUSTOM CURSOR
   ================================================= */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--brown-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(86, 60, 47, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.08s ease;
  opacity: 0;
}

body:hover .cursor-dot,
body:hover .cursor-ring { opacity: 1; }

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--brown-mid);
  background: rgba(136, 102, 77, 0.06);
}

@media (max-width: 992px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* =================================================
   GLOBAL RESET & BASE
   ================================================= */
* {
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--beige);
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 130%; height: auto; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--brown-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =================================================
   ANIMATIONS
   ================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

@keyframes breaking-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes slideInCards {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(187, 161, 136, 0.2); }
  50% { box-shadow: 0 0 20px rgba(187, 161, 136, 0.5); }
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--brown-pale); }
  50% { border-color: var(--brown-light); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes revealText {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes floatParticle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 60% 40% / 70% 40% 50% 60%; }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(187, 161, 136, 0.2); }
  50% { text-shadow: 0 0 20px rgba(187, 161, 136, 0.4), 0 0 40px rgba(187, 161, 136, 0.1); }
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

[data-animate].animated {
  animation-fill-mode: both;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"].animated { animation-name: fadeUp; }
[data-animate="fade-down"].animated { animation-name: fadeDown; }
[data-animate="fade-left"].animated { animation-name: fadeLeft; }
[data-animate="fade-right"].animated { animation-name: fadeRight; }
[data-animate="scale-in"].animated { animation-name: scaleIn; }

[data-animate][data-delay="100"].animated { animation-delay: 0.1s; }
[data-animate][data-delay="200"].animated { animation-delay: 0.2s; }
[data-animate][data-delay="300"].animated { animation-delay: 0.3s; }
[data-animate][data-delay="400"].animated { animation-delay: 0.4s; }
[data-animate][data-delay="500"].animated { animation-delay: 0.5s; }

/* =================================================
   CONTAINER
   ================================================= */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  width: 100%;
  box-sizing: border-box;
}

/* =================================================
   PAGE LOAD ANIMATION
   ================================================= */
body.loaded .top-ornament,
body.loaded .header {
  animation: slideUp 0.6s ease forwards;
}

/* =================================================
   TOP ORNAMENT
   ================================================= */
.top-ornament {
  width: 100%;
  display: block;
  will-change: transform, opacity;
}

/* =================================================
   HEADER
   ================================================= */
header.header.container {
  border-bottom: 2px solid var(--brown-pale);
  padding-bottom: 0;
  max-width: 100%;
  background: var(--beige);
  padding-left: 127px !important;
  padding-right: 146px !important;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

header.header.container.scrolled {
  box-shadow: 0 4px 30px rgba(86, 60, 47, 0.12);
  border-color: transparent;
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--beige);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: space-evenly;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.nav a {
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  position: relative;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.nav a:hover {
  background: rgba(86, 60, 47, 0.05);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brown-mid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover { color: var(--brown-dark); background: rgba(86, 60, 47, 0.05); }
.nav a:hover::after { transform: scaleX(1); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =================================================
   TOOLS
   ================================================= */
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Search Wrapper ---- */
.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--gray);
  pointer-events: none;
  z-index: 1;
}

.search {
  border-radius: 20px;
  border: 1.5px solid var(--brown-light);
  padding: 8px 16px 8px 16px;
  padding-right: 34px;
  font-size: 14px;
  outline: none;
  background: var(--cream-light);
  transition: var(--transition);
  color: var(--dark);
  width: 180px;
}

.search:focus {
  border-color: var(--brown-dark);
  box-shadow: 0 0 0 3px rgba(86, 60, 47, 0.1);
  background: var(--white);
  width: 240px;
}

.search::placeholder { color: var(--gray); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--brown-pale);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(86,60,47,0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  padding: 0;
}

.search-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown .sd-title {
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--brown-pale);
}

.search-dropdown .sd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  color: var(--dark);
}

.search-dropdown .sd-item:hover {
  background: var(--cream-light);
}

.search-dropdown .sd-item i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cream), var(--brown-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--brown-dark);
  flex-shrink: 0;
}

.search-dropdown .sd-item .sd-text {
  flex: 1;
  min-width: 0;
}

.search-dropdown .sd-item .sd-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown .sd-item .sd-text small {
  font-size: 11px;
  color: var(--gray);
}

.search-dropdown .sd-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}

.search-dropdown .sd-empty i {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.3;
}

mark {
  background: rgba(136,102,77,0.2);
  color: var(--dark);
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- Language Wrapper ---- */
.lang-wrapper {
  position: relative;
}

.globe-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-light);
  border: 1.5px solid var(--brown-light);
  color: var(--brown-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.globe-btn:hover, .globe-btn.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: #fff;
  border-color: var(--brown-dark);
  transform: scale(1.08);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--brown-pale);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(86,60,47,0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  padding: 6px;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  cursor: default;
  transition: background 0.2s ease;
}

.lang-option.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: #fff;
}

.lang-option i {
  font-size: 12px;
}

/* =================================================
   BREAKING NEWS
   ================================================= */
.breaking {
  display: flex;
  align-items: center;
  gap: 47px;
  margin-top: 49px;
  margin-bottom: 49px;
  margin-left: auto;
  margin-right: auto;
  background: var(--cream-light);
  border-radius: 30px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 0px solid var(--brown-pale);
}

.badge {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 18px;
  white-space: nowrap;
  font-weight: 600;
  animation: glowPulse 3s ease-in-out infinite;
  position: relative;
}

.breaking-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.breaking-track {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: breaking-scroll 25s linear infinite;
  color: var(--brown-dark);
  font-size: 15px;
  font-weight: 600;
}

.breaking-track:hover { animation-play-state: paused; }

/* =================================================
   ORNAMENT BACK (removed from HTML)
   ================================================= */
.ornament {
  display: none;
}

/* =================================================
   HERO SLIDER
   ================================================= */
.hero {
  margin-top: 0 !important;
  margin-bottom: var(--section-gap);
}

.hero-image {
  position: relative;
  max-width: 100%;
  height: 540px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.5s ease;
}

.hero-image:hover {
  box-shadow: var(--shadow-xl);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(86, 60, 47, 0.08) 0%, transparent 40%, transparent 60%, rgba(37, 37, 37, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-xl);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slider { position: relative; }

.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
}

.hero-slider .slide.active {
  opacity: 1;
  position: relative;
  transform: scale(1);
}

.date {
  position: absolute;
  top: 1px;
  left: 216px;
  background: #BBA188;
  color: var(--white);
  padding: 16px 56px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  z-index: 1000;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.slider-dots span:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.slider-dots span.active {
  background: var(--white);
  width: 32px;
  border-radius: 5px;
  border-color: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* =================================================
   EVENTS SECTION
   ================================================= */
.family-events {
  background: var(--family-events-gradient);
  color: rgba(255, 255, 255, 0.94);
  /* +50px preserves overlap with hero for event cards (was 150px at 96px gap) */
  margin-top: calc(var(--section-gap) + 54px);
  border-radius: 66px 66px 0 0;
  position: relative;
  overflow: visible;
  padding-top: 60px;
  padding-bottom: 24px;
}

.family-events::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 30% 30%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, var(--white) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.family-events > .container {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.events-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: calc(var(--section-gap) * 0.625);
  position: relative;
  bottom: 86px;
  z-index: 1;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.event-card {
  background: var(--white);
  color: var(--dark);
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius-lg);
  text-align: start;
  box-shadow: var(--shadow-lg);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  cursor: pointer;
}

/* .event-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--cream) 0%, transparent 70%);
  border-radius: 0 var(--radius-lg) 0 80px;
  transition: var(--transition);
} */

/* Hover matches .active — tan panel, white copy, inverted pill button */
.event-card:hover {
  background: var(--event-card-accent);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card:hover h3,
.event-card:hover p {
  color: var(--white);
}

.event-card:hover .event-date {
  color: rgba(255, 255, 255, 0.95);
}

.event-card:hover .event-btn {
  background: var(--white);
  color: var(--event-card-accent);
}

.event-card:hover p {
  opacity: 1;
}

.event-card.dark {
  background: var(--dark);
  color: var(--white);
  border: 2px solid var(--brown-light);
}

.event-card.dark h3 {
  margin: 8px 0 4px;
  color: var(--white);
  font-size: 28px;
  font-weight: 300;
  line-height: 30px;
}

.event-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 14px 0;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.event-card.active img,
.event-card:hover img {
  transform: scale(1.03);
}

.event-card .event-date {
  text-align: end;
  display: block;
  color: var(--brown-mid);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.event-card h3 {
  margin: 8px 0 4px;
  color: #563C2F;
  text-align: right;
  font-size: 28px;
  font-weight: 300;
  line-height: 30px;
  transition: var(--transition);
}

.event-card p {
  font-size: 14px;
  opacity: 0.85;
  transition: var(--transition);
  color: #563C2F;
}

.event-card .event-btn {
  margin-top: auto;
  align-self: flex-start;
}

.event-btn {
  gap: 73px;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 19px;
  background: #BBA188;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.event-btn img.btn-icon {
  height: 18px;
  width: auto;
}

.event-btn:hover {
  background: var(--white);
  color: #BBA188;
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.event-card:hover .event-btn:hover,
.event-card.active .event-btn:hover {
  background: var(--white);
  color: var(--event-card-accent);
  box-shadow: var(--shadow-md);
}

.event-btn:hover img.btn-icon {
  /* transform: translateX(-3px); */
  transition: transform 0.3s ease;
}

/* Events carousel — dark brown circle, white chevron (match design reference) */
.events-row .arrow {
  align-self: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background:var(--white) ;
  color: var(--brown-dark);
  border: 2px solid var(--brown-dark);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(86, 60, 47, 0.35);
  z-index: 2;
}

.events-row .arrow i {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.events-row .arrow:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
  color: var(--white);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(86, 60, 47, 0.4);
}

.events-row .arrow:focus-visible {
  outline: 2px solid var(--brown-light);
  outline-offset: 3px;
}

/* ACTIVE — tan surface, white type, white pill + tan label (reference) */
.event-card.active {
  background: var(--event-card-accent);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card.active h3,
.event-card.active p {
  color: var(--white);
}

.event-card.active .event-date {
  color: rgba(255, 255, 255, 0.95);
}

.event-card.active .event-btn {
  background: var(--white);
  color: var(--event-card-accent);
}

.event-card.active p {
  opacity: 1;
}

.event-card.active .event-btn img,
.event-card:hover .event-btn img {
  content: url("img/arrow-left-brown.svg");
}

/* =================================================
   FAMILY DESCRIPTION
   ================================================= */
.family-desc {
  padding: var(--section-gap) 0;
  color: var(--white);
  position: relative;
}

.family-desc::before {
  content: '"';
  position: absolute;
  top: 30px;
  right: 60px;
  font-size: 180px;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.family-desc-inner {
  display: flex;
  justify-content: space-between;
  gap: 200px;
}

.family-title h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 300px;
  font-family: var(--font-serif);
  position: relative;
}

.family-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--cream);
  border-radius: 2px;
  margin-top: 16px;
}

.family-text p {
  font-size: 16px;
  line-height: 1.9;
}

.article-text {
  position: relative;
  font-size: 17px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  padding-right: 20px;
  border-right: 3px solid rgba(255, 255, 255, 0.15);
}

/* =================================================
   MEDIA SHOWCASE
   ================================================= */
.media-showcase {
  padding: var(--section-gap) 0 calc(var(--section-gap) - 8px);
  margin-bottom: 0;
}

.media-wrapper {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /* background: var(--media-showcase-surface); */
  /* border: 1px solid var(--media-showcase-border); */
  /* border-radius: 22px; */
  /* padding: var(--media-showcase-pad); */
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: var(--media-showcase-pad); */
  align-items: stretch;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.media-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.media-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0px;
  overflow: hidden;
  background:#BBA188 ;

}

.media-head {
  margin: 0;
  flex-shrink: 0;
  padding: 47px 63px 30px;
  background:#BBA188 ;
}

.media-head h3 {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: right;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.articles-image {
  position: relative;
  margin: 0 14px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--media-article-inner-bg);
  aspect-ratio: 16 / 10;
  width: auto;
}

.articles-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.articles-image:hover img {
  transform: scale(1.03);
}

.video-box {
  margin: 0 14px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--media-video-placeholder);
  aspect-ratio: 16 / 10;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s ease;
}

.video-box:hover {
  box-shadow: inset 0 0 0 1px rgba(86, 60, 47, 0.08);
}

.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #ece0d1;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(86, 60, 47, 0.18);
  position: relative;
}

.play-btn::before {
  display: none;
}

.play-btn:hover {
  transform: scale(1.06);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(86, 60, 47, 0.22);
}

/* =================================================
   VIDEO MODAL
   ================================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.video-modal.active { display: block; }

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.video-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 5% auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 2;
  box-shadow: var(--shadow-xl);
}

.video-content iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* =================================================
   ACTIVITIES SECTION
   ================================================= */
.section-title {
  padding: calc(var(--section-gap) * 0.625) 0;
  color: var(--dark);
  text-align: center;
}

.family-events .section-title {
  padding: calc(var(--section-gap) * 0.5) var(--page-gutter) calc(var(--section-gap) * 0.375);
  color: rgba(255, 255, 255, 0.95);
}

.title-wrapper {
  max-width: var(--content-max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.title-wrapper .line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brown-pale), var(--brown-light), var(--brown-pale), transparent);
  border-radius: 42px;
}

.family-events .title-wrapper .line {
  height: 5px;
  background: var(--white);
}

.title-wrapper h2 {
  margin: 0;
  white-space: nowrap;
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
}

/* .family-events .title-wrapper h2.gradient-text {
  background: none;
  -webkit-text-fill-color: #f7f3ec;
  color: #f7f3ec;
  animation: none; 
} */

/* ACTIVITIES ROW */
.activites-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: calc(var(--section-gap) * 0.75);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}

.activity-card {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 394px;
  height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, box-shadow 0.5s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.activity-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.activity-card:hover .activity-img { transform: scale(1.06); }

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 19, 16, 0) 45%, rgba(26, 19, 16, 0.35) 100%);
  z-index: 2;
  pointer-events: none;
}

.activity-info {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  background: rgba(245, 238, 230, 0.88);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  z-index: 3;
  color: var(--brown-dark);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.activity-info h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--brown-dark);
}

.activity-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 19px;
  background: rgba(86, 60, 47, 0.07);
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.activity-meta .activity-date {
  font-size: 14px;
  font-weight: 700;
}

.activity-meta .activity-arrow {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

.activity-meta:hover {
  background: rgba(86, 60, 47, 0.12);
  transform: translateX(-2px);
}

.activity-card.active .activity-info {
  background: rgba(252, 248, 243, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.activity-card:not(.active) {
  transform: scale(0.94);
  opacity: 0.82;
}

.activity-card.active {
  transform: scale(1.05);
  z-index: 3;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.activity-card:hover {
  transform: scale(1.05);
  z-index: 4;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.38);
}

.activity-card.active:hover {
  transform: scale(1.07);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42);
}

.activity-card:not(.active):hover {
  opacity: 0.95;
}

/* Carousel nav: dark + white chevron | white + brown chevron (match mockup) */
.arrow-activty {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 14px rgba(86, 60, 47, 0.35);
}

.arrow-activty i {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.activites-row .arrow-activty.right {
  background: var(--brown-dark);
  color: var(--white);
  border: 2px solid var(--brown-dark);
}

.activites-row .arrow-activty.right:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
  color: var(--white);
  transform: scale(1.06);
}

.activites-row .arrow-activty.left {
  background: var(--white);
  color: var(--brown-dark);
  border: 2px solid var(--brown-dark);
}

.activites-row .arrow-activty.left:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(86, 60, 47, 0.3);
}

.arrow-activty:focus-visible {
  outline: 2px solid var(--brown-light);
  outline-offset: 3px;
}

/* =================================================
   FAMILY STATS
   ================================================= */
.family-stats {
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--beige) 50%, var(--cream-light) 100%);
  padding: var(--section-gap) 0 calc(var(--section-gap) + 4px);
  direction: rtl;
  position: relative;
  overflow: hidden;
}

.family-stats::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(187, 161, 136, 0.08) 0%, transparent 70%);
  animation: morphBlob 15s ease-in-out infinite;
  pointer-events: none;
}

.family-stats::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(136, 102, 77, 0.06) 0%, transparent 70%);
  animation: morphBlob 20s ease-in-out infinite reverse;
  pointer-events: none;
}

.stats-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 40px;
  line-height: 50px;
  position: relative;
  z-index: 1;
  animation: textGlow 4s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--beige) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--brown-pale);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brown-light), var(--brown-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: none;
}

.stat-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

.stat-label {
  display: block;
  margin-bottom: 14px;
  font-size: 23px;
  line-height: 1.2;
  color: var(--brown-dark);;
  font-weight: 500;
  font-family: var(--font-serif);
}

.stat-number {
  font-size: 52px;
  font-weight: 800;
  color: #88664D;
  font-family: var(--font-serif);
  transition: color 0.3s ease, transform 0.4s ease;
  display: block;
}

.stat-card:hover .stat-number {
  color: var(--brown-mid);
  transform: scale(1.05);
}

/* WIDE STATS */
.stats-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wide-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--beige) 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--brown-pale);
  margin-bottom: 165px;
  transition: all 0.4s ease;
}

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

.wide-label {
  display: block;
  color: var(--brown-dark);
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 23px;
  line-height: 50px;
  font-family: var(--font-serif);
}

.wide-value {
  font-size: 32px;
  color: var(--dark);
  font-weight: 800;
}
/* =================================================
   LANDMARKS SECTION
   ================================================= */
   .library-images {
    background:#8b6b55;
    border-radius: 66px 66px 0 0;
  }
  
  .landmark-section {
    padding: var(--section-gap) 0;
    display: flex;
    justify-content: center;
  }
  
  .landmark-card {
    position: relative;
    width: 100%;
    max-width: var(--content-max);
    background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    top: -196px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #BBA188;
  }
  
  .landmark-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
      radial-gradient(circle at 20% 50%, var(--white) 1px, transparent 1px),
      radial-gradient(circle at 80% 20%, var(--white) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  
  .nav-arrow {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
  }
  
  .landmark-image {
    flex: 0 0 42%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  
  .landmark-image img {
    max-height: 460px;
    width: auto;
    transition: transform 0.6s ease;
  }
  
  .landmark-card:hover .landmark-image img {
    transform: scale(1.06) translateY(-6px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  }
  
  .landmark-content {
    flex: 1;
    color: var(--white);
    padding-right: 137px;
    position: relative;
    z-index: 1;
    padding-bottom: 35px;
    
  }
  
  .landmark-title {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-serif);
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  }
  
  .landmark-title .dash {
    width: 135px;
    height: 11px;
    background: #563c2f;
    border-radius: 12px;
    margin-top: 30px;
  }
  
  .landmark-content p {
    font-size: 20px;
    line-height: 1.9;
    opacity: 0.92;
    margin-bottom: 14px;
    max-width: 520px;
  }
  
  .more-btn {
    display: inline-flex;
    align-items: center;
    gap: 96px;
    margin-top: 18px;
    padding: 10px 32px;
    background: #88664D;
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  
  .more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .more-btn:hover {
    background: #563C2F;
    transform: translateX(-6px);
    box-shadow: var(--shadow-lg);
  }
  
  .more-btn:hover::before { opacity: 1; }
  
  .more-btn:hover .btn-arrow {
    transform: translateX(-4px);
    transition: transform 0.3s ease;
  }
  
  .btn-arrow { font-size: 20px; }
  
/* =================================================
   GALLERY
   ================================================= */
.gallery-section {
  width: 100%;
  padding: var(--section-gap) var(--page-gutter);
  background: #8b6b55;
  box-sizing: border-box;
  margin-top:-232px;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  text-align: center;
}

.gallery-text.grid-text {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
  padding: 8px 0;
  min-height: 0;
}

.gallery-text h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-serif);
}

.gallery-more {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  font-size: 0.95em;
  text-decoration: none;
  transition: var(--transition);
}

.gallery-more:hover {
  color: var(--white);
}

.gallery-card {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  animation: slideInCards 0.6s ease forwards;
  opacity: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gallery-card:hover img { transform: scale(1.06); }

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(86, 60, 47, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-card:hover::after { opacity: 1; }

.gallery-card::before {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  color: var(--white);
  font-size: 20px;
  z-index: 2;
  opacity: 0;
  transition: all 0.35s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(86, 60, 47, 0.5);
  backdrop-filter: blur(4px);
}

.gallery-card:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card.active {
  outline: 3px solid var(--brown-light);
  transform: scale(1.03);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.show img {
  transform: scale(1);
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 34px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox .close:hover { transform: scale(1.2) rotate(90deg); }

/* =================================================
   FORM SECTION
   ================================================= */
.form-section {
  max-width: var(--content-max);
  margin: var(--section-gap) auto;
  padding: 0 var(--page-gutter);
  width: 100%;
  box-sizing: border-box;
}

.form-box {
  border: 2px solid var(--brown-pale);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.form-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(187, 161, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.form-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
}

.form-info h2 {
  font-size: 38px;
  margin-bottom: 10px;
  font-weight: 800;
  font-family: var(--font-serif);
  background: #8b6b55;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  color: #8b6b55;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.form-info p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 25px;
}

.type-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.type-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: 2px solid var(--brown-mid);
  background: transparent;
  color: var(--brown-mid);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.type-btn:hover {
  background: #8b6b55;
  color: var(--white);
  transform: translateY(-2px);
}

.type-btn.active {
  background:#8b6b55;
  color: var(--white);
  border-color: var(--brown-dark);
  box-shadow: 0 4px 12px rgba(86, 60, 47, 0.25);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  transition: transform 0.3s ease;
}

.field label {
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
  display: block;
  font-size: 15px;
  transition: color 0.3s ease;
}

.field:focus-within label {
  color: var(--brown-mid);
}

.field span { color: var(--brown-mid); }

.field input,
.field select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brown-pale);
  background: var(--cream-light);
  font-size: 15px;
  outline: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--dark);
}

.field input::placeholder { color: var(--gray); }

.field input:focus,
.field select:focus {
  border-color: var(--brown-mid);
  box-shadow: 0 0 0 3px rgba(136, 102, 77, 0.1);
  background: var(--white);
}

.phone-input {
  display: flex;
  gap: 8px;
}

.phone-input select {
  width: 100px;
  text-align: center;
}

.submit-btn {
  width: 180px;
  padding: 14px;
  border-radius: 24px;
  border: none;
  background: #8b6b55;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(86, 60, 47, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(86, 60, 47, 0.35);
}

.submit-btn:hover::after {
  width: 300px;
  height: 300px;
}

.submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* =================================================
   NEWS SECTION
   ================================================= */
.news-section {
  max-width: var(--content-max);
  margin: var(--section-gap) auto;
  padding: 0 var(--page-gutter);
  width: 100%;
  box-sizing: border-box;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--cream-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--brown-pale);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--brown-mid), var(--brown-dark));
  border-radius: 0 0 0 4px;
  transition: height 0.4s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
}

.news-card:hover::before {
  height: 100%;
}

.news-text { order: 2; text-align: right; }
.news-image { order: 1; }

.news-date {
  display: block;
  font-size: 13px;
  color: #8b6b55;
  margin-bottom: 6px;
  font-weight: 600;
}

.news-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #8b6b55;
  line-height: 1.5;
  margin: 0 0 10px;
}

.news-text p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

.news-image {
  background: linear-gradient(135deg, var(--brown-pale), var(--cream));
  border-radius: var(--radius-lg);
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.news-image i {
  font-size: 2rem;
  color: var(--brown-light);
}

.news-card:hover .news-image {
  background: linear-gradient(135deg, var(--brown-light), var(--brown-mid));
}

.news-card:hover .news-image i { color: var(--white); }

/* =================================================
   NEWSLETTER
   ================================================= */
.newsletter-wrapper {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-gap) var(--page-gutter);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 10;
  margin-bottom: calc(-1 * var(--footer-overlap));
  width: 100%;
  box-sizing: border-box;
}

.whatsapp-box {
  width: 222px;
  height: 188px;
  background: #8b6b55;
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.whatsapp-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.whatsapp-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: var(--brown-light);
}

.whatsapp-box:hover::after { opacity: 1; }

.whatsapp-box img { width: 36px; height: 36px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.whatsapp-box p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.newsletter-box {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 50px;
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.newsletter-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
  transform: translateY(-4px);
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.newsletter-content h2 {
  color: #8b6b55;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
}

.newsletter-content p {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--brown-pale);
}

.newsletter-form input {
  height: 78px;
  width: 356px;
  padding: 0 16px;
  border: none;
  font-size: 15px;
  background: var(--white);
  outline: none;
  color: var(--dark);
}

.newsletter-form input::placeholder { color: var(--gray); }

.newsletter-form input:focus {
  background: var(--cream-light);
}

.newsletter-form button {
  height: 78px;
  padding: 0 28px;
  border: none;
  background: #8b6b55;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--brown-dark), #3d2a20);
  padding: 0 32px;
}

/* =================================================
   FOOTER
   ================================================= */
.footer {
  background: linear-gradient(160deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  color: var(--white);
  padding: calc(var(--footer-overlap) + var(--section-gap)) var(--page-gutter) 30px;
  border-radius: 66px 66px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 66px 66px 0 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 40%, var(--white) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-message { flex: 1.2; }

.social-icons {
  display: flex;
  gap: 20px;
  font-size: 18px;
  justify-content: end;
}

.social-icons i {
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icons i:hover {
  background: var(--white);
  color: var(--brown-dark);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.footer-message textarea {
    background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px;
  height: 110px;
  color:  #8b6b55;
  resize: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-message textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

.footer-message textarea:focus {
  border-color:   var(--white);
  background:   var(--white);
  outline: none;
}

.footer-message button {
  align-self: flex-start;
  background: var(--white);
  color: var(--brown-dark);
  border: none;
  border-radius: 30px;
  padding: 10px 32px;
  font-weight: 700;
  transition: var(--transition);
}

.footer-message button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.footer-contact { flex: 0.9; }

.footer-contact h3,
.footer-links h3 {
  font-size: 20px;
  margin-bottom: 14px;
  position: relative;
  font-family: var(--font-serif);
}

.footer-contact h3::after,
.footer-links h3::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--brown-light);
  display: block;
  margin-top: 8px;
}

.footer-contact input {
  background: #FFFFFF;
  border: 1px solid rgba(186, 186, 186, 0.15);
  border-radius: 20px;
  padding: 12px 16px;
  color: #8b6b55;
  width: 100%;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.footer-contact input::placeholder { color:  #8b6b55; }

.footer-contact input:focus {
  border-color:  #8b6b55;
  background:  #8b6b55;
}

.footer-links { flex: 1; }

.links-columns {
  display: flex;
  gap: 40px;
}

.links-columns ul { list-style: none; }

.links-columns li {
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-right: 0;
}

.links-columns li::before {
  content: '←';
  position: absolute;
  right: -16px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px;
}

.links-columns li:hover {
  opacity: 1;
  padding-right: 14px;
  color: var(--cream);
}

.links-columns li:hover::before {
  right: 0;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* =================================================
   SCROLL TO TOP
   ================================================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--landmark-scrolltop);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.scroll-top::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(187, 161, 136, 0.25);
  animation: pulse-ring 2.5s ease-in-out infinite;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 12px 30px rgba(86, 60, 47, 0.3);
}

.scroll-top:active {
  transform: translateY(-2px) scale(0.95);
}

/* =================================================
   RIPPLE EFFECT (buttons)
   ================================================= */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* =================================================
   GLASSMORPHISM CARD
   ================================================= */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* =================================================
   GRADIENT TEXT UTILITY
   ================================================= */
.gradient-text {
  /* background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid), var(--brown-light)); */
  background-size: 200% 200%;
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
h2.gradient-text {
  
  color: #8b6b55;
  font-size: 50px !important;
 
}
/* =================================================
   ACTIVE NAV LINK
   ================================================= */
.nav a.active {
  color: var(--brown-dark);
  position: relative;
}

.nav a.active::after {
  transform: scaleX(1);
}

/* =================================================
   PAGE HERO (inner pages)
   ================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--brown-dark) 0%, var(--brown-mid) 50%, #7a5c47 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: var(--radius-xl);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 30% 30%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, var(--white) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-serif);
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

.page-hero .breadcrumb .separator {
  font-size: 12px;
  opacity: 0.5;
}

.page-hero .breadcrumb .current {
  color: var(--white);
  font-weight: 700;
}

.page-hero .page-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.8;
}

/* =================================================
   INNER PAGE CONTENT
   ================================================= */
.page-content {
  max-width: var(--content-max);
  margin: 60px auto;
  padding: 0 20px;
}

.page-section {
  margin-bottom: 80px;
}

.page-section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-section-title .title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brown-pale), transparent);
}

.page-section-title h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 800;
  color: var(--brown-dark);
  white-space: nowrap;
}

/* =================================================
   ABOUT PAGE
   ================================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-intro-text h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

.about-intro-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--gray);
  text-align: justify;
}

.about-intro-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-intro-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-intro-image:hover img {
  transform: scale(1.05);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brown-light), var(--brown-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

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

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--brown-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: var(--brown-dark);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

.timeline {
  position: relative;
  padding-right: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brown-light), var(--brown-dark));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 40px 50px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brown-mid);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--brown-light);
  z-index: 1;
}

.timeline-item .year {
  display: inline-block;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
}

/* =================================================
   NEWS PAGE
   ================================================= */
.news-featured {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 50px;
  border: 1px solid var(--brown-pale);
  transition: all 0.4s ease;
}

.news-featured:hover {
  box-shadow: var(--shadow-xl);
}

.news-featured-img {
  height: 380px;
  background: linear-gradient(135deg, var(--brown-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-featured-img i {
  font-size: 4rem;
  color: var(--brown-light);
}

.news-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-body .news-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  width: fit-content;
}

.news-featured-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.news-featured-body p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.news-featured-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brown-dark);
  font-weight: 700;
  transition: all 0.3s ease;
}

.news-featured-body .read-more:hover {
  gap: 14px;
  color: var(--brown-mid);
}

.news-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--brown-pale);
  background: transparent;
  color: var(--brown-mid);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.news-filter-btn:hover,
.news-filter-btn.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  border-color: var(--brown-dark);
}

/* =================================================
   SOCIAL PAGE
   ================================================= */
.social-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brown-pale);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.social-tab {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--brown-mid);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.social-tab:hover {
  background: rgba(136, 102, 77, 0.06);
}

.social-tab.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.social-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.social-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--brown-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.social-card-img i {
  font-size: 2.5rem;
  color: var(--brown-light);
}

.social-card-img .social-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.social-card-body {
  padding: 20px;
}

.social-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.social-card-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.social-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--brown-mid);
  font-weight: 600;
}

/* =================================================
   DEGREES PAGE
   ================================================= */
.degrees-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.degree-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.degree-stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.degree-stat .deg-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--brown-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: var(--brown-dark);
}

.degree-stat h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
}

.degree-stat p {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.graduates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.graduate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

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

.graduate-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--brown-dark);
}

.graduate-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.graduate-card .degree-name {
  font-size: 14px;
  color: var(--brown-mid);
  font-weight: 600;
  margin-bottom: 4px;
}

.graduate-card .university {
  font-size: 13px;
  color: var(--gray);
}

.graduate-card .grad-year {
  display: inline-block;
  margin-top: 12px;
  background: var(--cream);
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--brown-dark);
  font-weight: 600;
}

/* Old FAMILY TREE styles moved to tree.css */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--brown-pale);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
}

.branch-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--white);
}

.branch-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.branch-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.branch-card .branch-count {
  display: inline-block;
  margin-top: 14px;
  background: var(--cream);
  padding: 4px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-dark);
}

/* =================================================
   COLLECTIONS PAGE
   ================================================= */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.collection-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.collection-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--brown-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.collection-card-img i {
  font-size: 3rem;
  color: var(--brown-light);
  transition: transform 0.4s ease;
}

.collection-card:hover .collection-card-img i {
  transform: scale(1.15);
}

.collection-card-body {
  padding: 24px;
}

.collection-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.collection-card-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.collection-card-body .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.collection-card-body .view-btn:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

/* =================================================
   ARCHIVE PAGE
   ================================================= */
.archive-search {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.archive-search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid var(--brown-pale);
  background: var(--white);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  color: var(--dark);
}

.archive-search input:focus {
  border-color: var(--brown-mid);
  box-shadow: 0 0 0 4px rgba(136, 102, 77, 0.1);
}

.archive-search button {
  padding: 14px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.archive-search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.archive-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.archive-cat-btn {
  padding: 10px 22px;
  border-radius: 20px;
  border: 2px solid var(--brown-pale);
  background: var(--white);
  color: var(--brown-mid);
  font-weight: 600;
  transition: var(--transition);
}

.archive-cat-btn:hover,
.archive-cat-btn.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: var(--white);
  border-color: var(--brown-dark);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.archive-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brown-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  cursor: pointer;
}

.archive-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.archive-item-img {
  height: 180px;
  background: linear-gradient(135deg, var(--cream), var(--brown-pale));
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-item-img i {
  font-size: 2.5rem;
  color: var(--brown-light);
}

.archive-item-body {
  padding: 16px;
}

.archive-item-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.archive-item-body span {
  font-size: 13px;
  color: var(--gray);
}

/* =================================================
   INNER PAGE RESPONSIVE
   ================================================= */
@media (max-width: 992px) {
  .page-hero h1 { font-size: 36px; }
  .about-intro { grid-template-columns: 1fr; gap: 30px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .degrees-stats { grid-template-columns: repeat(2, 1fr); }
  .graduates-grid { grid-template-columns: repeat(2, 1fr); }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { height: 250px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 50px 20px 40px; margin-top: 10px; }
  .page-hero h1 { font-size: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .social-tabs { flex-wrap: wrap; }
  .social-grid { grid-template-columns: 1fr; }
  .degrees-stats { grid-template-columns: 1fr; }
  .graduates-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-search { flex-direction: column; }
  .timeline { padding-right: 30px; }
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 992px) {
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 999;
    gap: 4px;
  }
  .nav.active a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
  .nav.active a:hover { background: var(--cream-light); }

  .mobile-toggle { display: flex; }
  .header { justify-content: space-between; }
  header.header.container { padding-left: 20px !important; padding-right: 20px !important; }

  .tools { gap: 6px; }
  .search { width: 120px; }
  .search:focus { width: 160px; }
  .search-dropdown { width: 280px; right: -40px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-wide { grid-template-columns: 1fr; }

  .landmark-card {
    flex-direction: column;
    top: 0;
    padding: 28px 18px 32px;
    border-radius: 24px;
    min-height: 0;
  }

  .landmark-card::before {
    top: 20px;
    left: 20px;
  }

  .landmark-card::after {
    width: 92%;
    height: 36%;
    min-height: 150px;
    border-top-left-radius: 48px;
  }

  .landmark-image {
    order: -1;
    margin: 0 0 16px;
    max-width: 100%;
    padding-left: 0;
  }

  .landmark-image img {
    max-height: 280px;
  }

  .landmark-content {
    padding: 8px 8px 16px;
    text-align: center;
    align-items: center;
  }

  .landmark-title {
    justify-content: center;
    font-size: 28px;
  }

  .nav-arrow {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --section-gap: 64px;
    --footer-overlap: 100px;
  }

  .events-row {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* gap: 16px; */
    padding: 0 var(--page-gutter);
    -webkit-overflow-scrolling: touch;
  }
  .events-row .arrow {
    display: none;
  }
  .event-card {
    flex: 0 0 min(85%, 360px);
    min-width: min(85%, 360px);
    width: auto;
    height: auto;
    scroll-snap-align: center;
  }

  .family-desc-inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .family-title h2 { max-width: 100%; font-size: 30px; }
  .article-text { font-size: 15px; }

  .media-wrapper {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .media-head h3 { font-size: 18px; }
  .articles-image,
  .video-box {
    min-height: 200px;
  }

  .activites-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px var(--page-gutter);
  }
  .activity-card {
    min-width: 85%;
    height: 420px;
    scroll-snap-align: center;
  }
  .arrow-activty { display: none; }
  .activity-info h3 { font-size: 18px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gallery-text.grid-text {
    grid-column: span 2;
    text-align: center;
  }
  .gallery-text h2 { font-size: 28px; }

  .form-box {
    grid-template-columns: 1fr;
    padding: 25px;
  }
  .form-info h2 { font-size: 30px; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 20px; }
  .news-image { height: 180px; }

  .newsletter-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .newsletter-box {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }
  .newsletter-content h2 { font-size: 28px; }
  .newsletter-form {
    flex-direction: column;
    border: none;
    gap: 12px;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .newsletter-form input {
    border: 1.5px solid var(--brown-pale);
  }

  .footer {
    padding: calc(var(--footer-overlap) + var(--section-gap)) var(--page-gutter) 24px;
  }
  .footer-top { flex-direction: column; gap: 30px; }
  .social-icons { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 48px;
    --page-gutter: 16px;
    --footer-overlap: 88px;
  }

  .hero { margin-top: 0 !important; }
  .hero-image { height: 280px; border-radius: var(--radius-lg); }
  .date { left: 12px; font-size: 14px; padding: 10px 12px; }

  .breaking {
    flex-direction: column;
    gap: 10px;
    padding: 14px !important;
  }
  .badge { width: auto; font-size: 16px; text-align: center; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-label { font-size: 26px; }
  .stat-number { font-size: 40px; }
  .wide-label { font-size: 26px; }

  .gallery-section {
    padding: var(--section-gap) var(--page-gutter);
  }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-text.grid-text { grid-column: span 1; }
}

/* =================================================
   ALBUM PAGE
   ================================================= */
/* ===== Album Page ===== */
.album-hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.album-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-serif);
  margin-bottom: 12px;
}

.album-hero p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto;
}

.album-section {
  padding-bottom: 50px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--cream-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--brown-pale);
  padding: 20px;
}

.album-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--brown-mid), var(--brown-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.album-thumb i {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.12);
  transition: all 0.4s ease;
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.album-caption {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(86, 60, 47, 0.2);
}

.album-card:hover .album-thumb {
  transform: scale(1.08);
}

.album-card:hover .album-thumb i {
  color: rgba(255, 255, 255, 0.25);
  transform: scale(1.2);
}

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

.album-card:hover .album-caption {
  transform: translateY(0);
}

.album-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.album-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brown-pale);
  border: 2px solid var(--brown-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.album-dot:hover {
  background: var(--brown-light);
}

.album-dot.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: scale(1.2);
}

.album-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.album-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.album-lb-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.album-lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.album-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.album-lb-prev { right: 24px; }
.album-lb-next { left: 24px; }

.album-lb-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.album-lb-content {
  text-align: center;
}

.album-lb-placeholder {
  width: min(80vw, 700px);
  height: min(60vh, 480px);
  background: linear-gradient(145deg, var(--brown-mid), var(--brown-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.album-lb-placeholder i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.12);
}

.album-lb-caption {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
  .album-hero h1 { font-size: 28px; }
  .album-hero { padding: 40px 16px 30px; }
  .album-lb-placeholder { width: 90vw; height: 50vh; }
}

@media (max-width: 480px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
  .album-card { aspect-ratio: 4 / 3; }
  .album-hero h1 { font-size: 24px; }
  .album-lb-arrow { width: 36px; height: 36px; font-size: 14px; }
  .album-lb-prev { right: 12px; }
  .album-lb-next { left: 12px; }
}

/* ===== Informations Page (inf-) ===== */
.inf-section {
  padding: 40px 20px 50px;
}

.inf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
  background: var(--cream-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--brown-pale);
  padding: 32px 28px;
}

.inf-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  border-radius: var(--radius-md);
  padding: 6px;
}

.inf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(86, 60, 47, 0.1);
}

.inf-card-img {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-md);
  background: var(--brown-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.inf-card-img i {
  font-size: 28px;
  color: var(--brown-light);
  opacity: 0.4;
}

.inf-card:hover .inf-card-img {
  background: var(--brown-light);
}

.inf-card:hover .inf-card-img i {
  color: #fff;
  opacity: 0.5;
}

.inf-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inf-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.7;
  font-family: var(--font-main);
}

.inf-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--brown-mid);
  color: var(--brown-dark);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  cursor: pointer;
}

.inf-card-btn:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: #fff;
}

.inf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.inf-page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
  border: 1.5px solid var(--brown-pale);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.inf-page-num:hover {
  border-color: var(--brown-mid);
  background: var(--brown-pale);
}

.inf-page-num.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: #fff;
}

.inf-page-dots {
  font-size: 14px;
  color: var(--brown-mid);
  letter-spacing: 2px;
  padding: 0 4px;
}

.inf-page-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--brown-dark);
  text-decoration: none;
  border: 1.5px solid var(--brown-pale);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.inf-page-arrow:hover {
  border-color: var(--brown-mid);
  background: var(--brown-pale);
}

@media (max-width: 768px) {
  .inf-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .inf-card-img { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
  .inf-section { padding: 24px 10px 40px; }
  .inf-grid { padding: 16px 12px; gap: 14px; }
  .inf-card { gap: 12px; padding: 4px; }
  .inf-card-img { width: 90px; height: 90px; }
  .inf-card-title { font-size: 13px; }
  .inf-card-btn { font-size: 11px; padding: 5px 14px; }
}

/* =================================================
   NEWS PAGE (np- prefix) — Figma-style grid + panels
   ================================================= */

body.news-page {
  background: #f5f3ed;
}

.news-page .header,
.news-page .breaking {
  background: #f5f3ed;
}

.news-page .breaking {
  box-shadow: var(--shadow-sm);
}

/* ----- Top promo banners (same image fill + row alignment as mosaic tiles) ----- */
.np-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  padding-bottom: 8px;
}

.np-banner {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 140px;
  aspect-ratio: 16 / 7;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.np-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

/* Same fill behavior as .np-tile-img / mosaic hero */
.np-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 0.5s ease;
}

.np-banner:hover .np-banner-img {
  transform: scale(1.04);
}

.np-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(245, 240, 230, 0.92) 0%,
    rgba(245, 240, 230, 0.35) 45%,
    rgba(86, 60, 47, 0.15) 100%
  );
  pointer-events: none;
}

.np-banner-overlay--dark {
  background: linear-gradient(
    105deg,
    rgba(20, 18, 16, 0.75) 0%,
    rgba(20, 18, 16, 0.35) 50%,
    rgba(86, 60, 47, 0.2) 100%
  );
}

.np-banner-caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--brown-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  z-index: 2;
}

.np-banner--dark .np-banner-caption {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ----- Mosaic: one row, two columns — hero stretches to full side height; bottom lines up with event2 row ----- */
.np-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

.np-tile--hero {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-height: 420px;
  height: 100%;
}

.np-mosaic-side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.np-mosaic-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.np-tile--mid {
  flex: 0 0 auto;
  min-height: 180px;
  aspect-ratio: 16 / 9;
}

/* Shared tile */
.np-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--brown-pale);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.np-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.np-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.np-tile:hover .np-tile-img {
  transform: scale(1.04);
}

.np-tile--hero .np-tile-img {
  position: absolute;
  inset: 0;
}

.np-tile--mid .np-tile-img {
  position: absolute;
  inset: 0;
}

.np-tile--sm {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.np-tile--sm .np-tile-img {
  position: absolute;
  inset: 0;
}

.np-tile-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c4a574, #8b6914);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.np-tile-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.25) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.np-tile-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 18px 18px 20px;
  text-align: right;
}

.np-tile-title {
  margin: 0 0 8px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 800;
  line-height: 1.55;
  color: #fff;
  font-family: var(--font-serif);
}

.np-tile-meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.np-tile-meta i {
  opacity: 0.9;
}

/* ----- Panels: أخبار الساعة + أهم الأخبار ----- */
.np-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 36px;
}

.np-panel {
  background: #faf8f4;
  border: 1px solid rgba(86, 60, 47, 0.12);
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 4px 20px rgba(86, 60, 47, 0.06);
}

/* «أخبار الساعة»: image fills remaining height of article (matches sibling column) */
.np-panel--featured {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.np-panel--featured .np-panel-head {
  flex-shrink: 0;
}

.np-panel--featured .np-panel-feature {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.np-panel--featured .np-panel-feature-media {
  flex: 1;
  min-height: 180px;
  margin-bottom: 14px;
  aspect-ratio: unset;
}

.np-panel--featured .np-panel-feature-title,
.np-panel--featured .np-panel-feature-meta {
  flex-shrink: 0;
}

.np-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.np-panel-head--split {
  justify-content: space-between;
}

.np-panel-head-start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.np-panel-accent {
  width: 4px;
  min-height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c4a574, #8b6914);
  flex-shrink: 0;
}

.np-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
}

.np-panel-doc {
  font-size: 22px;
  color: var(--brown-mid);
  opacity: 0.85;
}

.np-panel-feature {
  display: block;
  text-decoration: none;
  color: inherit;
}

.np-panel-feature-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: var(--brown-pale);
}

.np-panel-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.np-panel-feature:hover .np-panel-feature-media img {
  transform: scale(1.03);
}

.np-panel-feature-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  color: #1a1512;
  font-family: var(--font-serif);
}

.np-panel-feature-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6d635c;
  font-weight: 600;
}

.np-panel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.np-panel-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(86, 60, 47, 0.1);
  transition: opacity 0.25s ease;
}

.np-panel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.np-panel-row:hover {
  opacity: 0.92;
}

.np-panel-row-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  background: var(--brown-pale);
}

.np-panel-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-panel-row-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  color: #1a1512;
}

.np-panel-row-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6d635c;
  font-weight: 600;
}

/* ----- Bottom grid: thumb (right) + text (left) in RTL ----- */
.np-grid-section {
  margin-top: 40px;
  padding-bottom: 8px;
}

.np-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.np-list-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #faf8f4;
  border: 1px solid rgba(86, 60, 47, 0.1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.np-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(86, 60, 47, 0.1);
}

/* RTL: first flex item = start = right → thumbnail */
.np-list-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--brown-pale);
}

.np-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-list-body {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.np-list-body h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  color: #1a1512;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-list-meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  color: #6d635c;
  font-weight: 600;
}

.np-list-meta i {
  opacity: 0.85;
}

/* Pagination */
.np-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.np-page {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream-light);
  border: 1px solid var(--brown-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.np-page:hover {
  background: var(--cream);
}

.np-page.active {
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  color: #fff;
  border-color: var(--brown-dark);
}

/* News Page Responsive */
@media (max-width: 1200px) {
  .np-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .np-mosaic {
    grid-template-columns: 1fr;
  }

  .np-tile--hero,
  .np-mosaic-side {
    grid-column: 1;
    grid-row: auto;
    height: auto;
  }

  .np-tile--hero {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .np-mosaic-pair {
    flex: none;
  }

  .np-panels {
    grid-template-columns: 1fr;
  }

  .np-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .np-banners {
    grid-template-columns: 1fr;
  }

  .np-mosaic-pair {
    grid-template-columns: 1fr;
  }

  .np-tile--mid {
    aspect-ratio: 16 / 10;
  }

  .np-tile--sm {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .np-grid {
    grid-template-columns: 1fr;
  }

  .np-list-thumb {
    width: 76px;
    height: 76px;
  }
}

/* =================================================
   SOCIAL PAGE (soc- prefix)
   ================================================= */

body.social-page {
  background: #f5f3ed;
}

.social-page .header,
.social-page .breaking {
  background: #f5f3ed;
}

.social-page .breaking {
  box-shadow: var(--shadow-sm);
}

/* Hero — photo + blue gradient frame + bottom title */
.soc-hero {
  margin: 24px auto 0;
  max-width: min(1370px, 100%);
  padding: 0;
  box-sizing: border-box;
}

.soc-hero-frame {
  padding: 4px;
  border-radius: 20px;
  /* background: linear-gradient(
    145deg,
    #1e5a8a 0%,
    #3d8ec9 35%,
    #7ec8f0 70%,
    #c5e8fb 100%
  );
  box-shadow: 0 14px 40px rgba(30, 90, 138, 0.18); */
}

.soc-hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* aspect-ratio: 21 / 9; */
  min-height: 220px;
  max-height: 440px;
  background: var(--brown-pale);
}

.soc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.soc-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 20px 36px;
  background: linear-gradient(
    to top,
    rgba(20, 24, 28, 0.72) 0%,
    rgba(20, 24, 28, 0.2) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.soc-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  font-family: var(--font-serif);
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Category grid — beige tiles, brown border */
.soc-categories {
  padding: 44px 0 56px;
  max-width: min(1370px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.soc-pills-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.soc-pills-row:last-child {
  margin-bottom: 0;
}

.soc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 88px;
  padding: 23px 26px;
  border-radius: 16px;
  border: 1px solid rgba(93, 74, 62, 0.38);
  background: #f0ebe4;
  color: #5d4a3e;
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  min-width: 132px;
  flex: 0 1 auto;
}

.soc-pill i {
  font-size: 20px;
  color: #5d4a3e;
  transition: color 0.25s ease;
}

.soc-pill:hover {
  background: #e8dfd6;
  border-color: rgba(86, 60, 47, 0.45);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(86, 60, 47, 0.12);
}

.soc-pill:hover i {
  color: var(--brown-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .soc-hero {
    margin-top: 16px;
  }

  .soc-hero-media {
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 360px;
  }

  .soc-hero-frame {
    border-radius: 16px;
  }

  .soc-hero-media {
    border-radius: 12px;
  }

  .soc-categories {
    padding: 32px 0 44px;
  }

  .soc-pill {
    padding: 14px 18px;
    font-size: 15px;
    min-width: 118px;
  }

  .soc-pill i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .soc-hero-caption {
    padding: 20px 16px 28px;
  }

  .soc-pills-row {
    gap: 10px;
  }

  .soc-pill {
    padding: 12px 14px;
    font-size: 14px;
    min-width: calc(50% - 8px);
    flex: 1 1 calc(50% - 8px);
  }

  .soc-pill i {
    font-size: 17px;
  }
}

/* =================================================
   PERSONALITIES PAGE (pers- prefix)
   ================================================= */

body.personalities-page {
  background: var(--beige);
}

.personalities-page .header,
.personalities-page .breaking {
  background: var(--beige);
}

.personalities-page .breaking {
  box-shadow: var(--shadow-sm);
}

/* Title panel (bordered box, right-aligned) */
.pers-title-panel {
  max-width: min(1370px, 100%);
  margin: 28px auto 0;
  padding: 22px 26px;
  background: var(--cream-light);
  border: 1px solid rgba(86, 60, 47, 0.14);
  border-radius: 14px;
  box-sizing: border-box;
}

.pers-page-title {
  margin: 27px;
  text-align: right;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--brown-dark);
  line-height: 1.35;
}

/* Main bordered container */
.pers-section {
  padding: 20px 0 40px;
}

.pers-container {
  max-width: min(1370px, 100%);
  margin: 0 auto;
  background: #f3f0ea;
  border: 1px solid rgba(86, 60, 47, 0.14);
  border-radius: 16px;
  padding: 28px 26px 22px;
  box-sizing: border-box;
}

/* Grid — two columns */
.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Card: photo on right (RTL), details left */
.pers-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  padding: 18px 16px;
  /* background: var(--white); */
  /* border: 1px solid rgba(86, 60, 47, 0.12); */
  border-radius: 12px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pers-card:hover {
  box-shadow: 0 8px 26px rgba(86, 60, 47, 0.09);
  border-color: rgba(86, 60, 47, 0.2);
}

.pers-photo-wrap {
  flex-shrink: 0;
  width: 132px;
  align-self: center;
}

.pers-photo {
  display: block;
  width: 132px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--brown-pale);
}

.pers-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: right;
}

.pers-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #171717;
}

.pers-row i {
  flex-shrink: 0;
  width: 18px;
  margin-top: 3px;
  text-align: center;
  font-size: 13px;
  color: #BBA188;
}

.pers-row span {
  flex: 1;
  min-width: 0;
}

.pers-row-name span {
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  line-height: 1.45;
}

/* Pagination */
.pers-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(86, 60, 47, 0.12);
}

.pers-pagination-hint {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.pers-pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pers-page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--white);
  border: 1px solid rgba(86, 60, 47, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pers-page-num:hover {
  background: var(--cream);
}

.pers-page-num.active {
  background: var(--brown-mid);
  color: #fff;
  border-color: var(--brown-dark);
  box-shadow: 0 2px 8px rgba(86, 60, 47, 0.2);
}

.pers-page-dots {
  font-size: 14px;
  color: var(--gray);
  padding: 0 6px;
  user-select: none;
}

.pers-page-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--brown-dark);
  background: var(--white);
  border: 1px solid rgba(86, 60, 47, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pers-page-arrow:hover {
  background: var(--brown-dark);
  color: #fff;
  border-color: var(--brown-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .pers-grid {
    grid-template-columns: 1fr;
  }

  .pers-card {
    flex-direction: column;
    align-items: center;
  }

  .pers-photo-wrap {
    width: 160px;
  }

  .pers-photo {
    width: 160px;
    height: 182px;
  }

  .pers-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pers-title-panel {
    padding: 18px 18px;
    margin-top: 20px;
  }

  .pers-container {
    padding: 20px 16px 18px;
  }

  .pers-card {
    padding: 14px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .pers-page-title {
    font-size: 22px;
  }

  .pers-row-name span {
    font-size: 14px;
  }

  .pers-pagination-controls {
    gap: 6px;
  }

  .pers-page-num,
  .pers-page-arrow {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* =================================================
   ABOUT PAGE (abt- prefix) — Figma-aligned layout
   ================================================= */

body.about-page {
  background: var(--beige);
}

.about-page .header,
.about-page .breaking {
  background: var(--beige);
}

.about-page .breaking {
  box-shadow: var(--shadow-sm);
}

/* Title + intro */
.abt-title-section {
  text-align: center;
  padding: 48px 0 0;
  max-width: min(1370px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.abt-main-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  margin: 0 0 12px;
  line-height: 1.35;
}

.abt-subtitle {
  font-size: 16px;
  color: var(--gray);
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.abt-title-rule {
  height: 1px;
  max-width: 100%;
  margin: 0 auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(86, 60, 47, 0.35) 12%,
    rgba(86, 60, 47, 0.45) 50%,
    rgba(86, 60, 47, 0.35) 88%,
    transparent
  );
}

/* Body copy */
.abt-text-section {
  padding: 36px 0 0;
  max-width: min(1370px, 100%);
  margin: 0 auto;
}

.abt-text-section p {
  font-size: 20px;
  line-height: 2;
  color: var(--dark);
  margin: 0 0 20px;
  text-align: justify;
  opacity: 0.92;
}

.abt-text-section p:last-child {
  margin-bottom: 0;
}

/* Section heading: lines + centered title */
.abt-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: min(1370px, 100%);
  margin: 0 auto 24px;
  padding: 0;
  box-sizing: border-box;
}

.abt-section-heading-line {
  flex: 1;
  height: 3px;
  background: #8b6b55;
  min-width: 24px;
}

.abt-section-heading-line:last-of-type {
  background: #8b6b55;
}

.abt-section-heading-text {
  flex-shrink: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

/* Branches */
.abt-branches {
  padding: 72px 0 0;
  max-width: min(1370px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.abt-branches .abt-section-heading {
  padding: 0;
  margin-bottom: 22px;
}

.abt-branches-box {
  background: #ebe6df;
  border: 2px solid #8b6b55;
  border-radius: 14px;
  padding: 32px 28px 36px;
  text-align: center;
}

.abt-branches-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.abt-branch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.abt-branch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  border: 2px solid #8b6b55;
  background: #ffffff;
  color: var(--brown-dark);
  font-size: 20px;
  font-weight: 700;
  min-width: 108px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  margin: 13px;
}

.abt-branch-pill:hover {
  background: #c9b5a2;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(86, 60, 47, 0.12);
}

/* Famous members */
.abt-famous {
  padding: 72px 0 48px;
  max-width: min(1370px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.abt-famous .abt-section-heading {
  padding: 0;
  margin-bottom: 28px;
}

.abt-famous-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.abt-famous-card {
  padding: 22px 20px;
  background: var(--white);
  border: 2px solid #8b6b55;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.abt-famous-card:hover {
  box-shadow: 0 10px 28px rgba(86, 60, 47, 0.08);
  border-color: rgba(86, 60, 47, 0.22);
}

.abt-famous-info {
  text-align: right;
}

.abt-famous-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brown-dark);
  line-height: 1.45;
  margin: 0 0 10px;
  font-family: var(--font-serif);
}

.abt-famous-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brown-mid);
  box-shadow: 0 0 0 2px rgba(136, 102, 77, 0.2);
}

.abt-famous-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
  margin:4px 19px 6px;
}

.abt-famous-info p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .abt-famous-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .abt-section-heading {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .abt-title-section {
    padding-top: 36px;
  }

  .abt-text-section {
    padding-top: 28px;
  }

  .abt-branches,
  .abt-famous {
    padding-top: 56px;
  }

  .abt-branch-pill {
    padding: 9px 20px;
    font-size: 14px;
    min-width: 96px;
  }

  .abt-branches-box {
    padding: 26px 18px 30px;
  }

  .abt-section-heading-text {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .abt-famous-grid {
    grid-template-columns: 1fr;
  }

  .abt-branch-row {
    gap: 10px;
  }

  .abt-branch-pill {
    min-width: auto;
    padding: 8px 18px;
    font-size: 13px;
  }

  .abt-section-heading-line {
    min-width: 12px;
  }
}

/* =================================================
   EVENTS PAGE (evt- prefix) — index activity-card pattern
   ================================================= */

body.events-page {
  background: #f5f3ed;
}

.events-page .header,
.events-page .breaking {
  background: #f5f3ed;
}

.events-page .breaking {
  box-shadow: var(--shadow-sm);
}

/* Intro */
.evt-intro {
  padding: 36px 0 0;
  text-align: center;
  max-width: min(1370px, 100%);
  margin: 0 auto;
}

.evt-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: #8b6b55;
  font-family: var(--font-serif);
  margin: 0 0 20px;
  line-height: 1.45;
}

.evt-desc {
  font-size: 21px;
  line-height: 3;
  color: #6d635c;
  margin: 0 auto 18px;
  text-align: center;
  max-width: 71em;
}

.evt-desc:last-of-type {
  margin-bottom: 28px;
}

.evt-intro-rule {
  height: 3px;
  width: 100%;
  max-width: min(1370px, 100%);
  margin: 0 auto 8px;
  background: #8b6b55;
}

/* Section title — same component as index .title-wrapper */
.evt-browse-title-wrap {
  margin: 40px auto 28px;
  max-width: min(1370px, 100%);
}

.evt-browse-title-wrap .gradient-text {
  font-size: clamp(22px, 2.8vw, 30px);
}

/* Browse + grid */
.evt-browse {
  padding: 0 0 48px;
}

.evt-grid-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(1370px, 100%);
  margin: 0 auto;
}

.evt-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Nav arrows (match index .arrow-activty) */
.evt-nav-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(86, 60, 47, 0.35);
  border: none;
}

.evt-nav-arrow.evt-nav-prev {
  background: var(--brown-dark);
  color: var(--white);
  border: 2px solid var(--brown-dark);
}

.evt-nav-arrow.evt-nav-prev:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
  transform: scale(1.06);
}

.evt-nav-arrow.evt-nav-next {
  background: var(--white);
  color: var(--brown-dark);
  border: 2px solid var(--brown-dark);
}

.evt-nav-arrow.evt-nav-next:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(86, 60, 47, 0.3);
}

/* Card — full-bleed image + brown bottom overlay (index activity-style) */
.evt-card {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  min-height: 260px;
  background: var(--brown-pale);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
}

.evt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.evt-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.evt-card:hover .evt-card-img {
  transform: scale(1.05);
}

.evt-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 18px 20px;
  background: rgba(86, 60, 47, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.evt-card-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.evt-card-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  font-family: var(--font-serif);
}

.evt-card-date {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.evt-card-arrow-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  align-self: center;
}

.evt-card-arrow-icon img {
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Pagination */
.evt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 8px;
}

.evt-page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--white);
  border: 1px solid rgba(86, 60, 47, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.evt-page-num:hover {
  background: var(--cream);
}

.evt-page-num.active {
  background: var(--brown-mid);
  color: #fff;
  border-color: var(--brown-dark);
  box-shadow: 0 2px 8px rgba(86, 60, 47, 0.2);
}

.evt-page-dots {
  font-size: 14px;
  color: var(--gray);
  padding: 0 6px;
  user-select: none;
}

.evt-page-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--brown-dark);
  background: var(--white);
  border: 1px solid rgba(86, 60, 47, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.evt-page-arrow:hover {
  background: var(--brown-dark);
  color: #fff;
  border-color: var(--brown-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .evt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .evt-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .evt-nav-arrow {
    display: none;
  }

  .evt-grid-wrap {
    gap: 0;
  }
}

@media (max-width: 600px) {
  .evt-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .evt-title {
    font-size: 22px;
  }

  .evt-desc {
    font-size: 14px;
  }

  .evt-card {
    min-height: 300px;
  }
}
