/* =================================================
   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).
     Capped at a standard centered width; fluid below that. */
  --content-max: min(100% - (var(--page-gutter) * 2), 1280px);

  /* Same vertical rhythm between sections + horizontal padding (aligned with .container) */
  --section-gap: 48px;
  --page-gutter: clamp(20px, 3vw, 56px);
  /* 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: 100%; 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 {
  width: min(100%, var(--content-max));
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  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;
  background: var(--beige);
  /* Aligned with every other .container â€” symmetric gutters so the
     header starts/ends at the same x-position as sections below. */
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !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;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-start: 12px;
  height: 56px;
}

.header-logo img {
  display: block !important;
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 56px !important;
  min-width: 56px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .header-logo { height: 44px; }
  .header-logo img {
    height: 44px !important;
    max-height: 44px !important;
    min-width: 44px;
  }
}

.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;
  background: var(--cream-light);
  border-radius: 30px;
  /* Outer alignment now provided by the wrapping .container (see
     breaking.blade.php) â€” the cream pill ends exactly where every
     other section ends. */
  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 ;

}

a.media-block,
a.media-block:hover,
a.media-block:visited {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.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) 0;
  background: #8b6b55;
  box-sizing: border-box;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, var(--content-max));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}

.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 {
  width: min(100%, var(--content-max));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-gap) var(--page-gutter);
  box-sizing: border-box;
  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;
}

/* =================================================
   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: 40px;
    --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);
  }

  .newsletter-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 36px;
    --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) 0;
  }
}

@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 (compact height â†’ more sections visible above the fold) ----- */
.np-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
  padding-bottom: 4px;
}

.np-banner {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
  /* Shorter than 16/7 so first view shows mosaic + panels sooner */
  aspect-ratio: 21 / 5;
  max-height: 120px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  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: 14px;
  bottom: 10px;
  left: 14px;
  margin: 0;
  font-size: clamp(12px, 1.6vw, 15px);
  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.35;
  z-index: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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: 12px;
}

.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;
}

a.np-page {
  text-decoration: none;
  color: inherit;
}

.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);
}

.np-page--nav {
  width: 40px;
}
.np-page--nav i { font-size: 12px; line-height: 1; }
.np-page--nav:hover { background: var(--brown-mid, #8b7355); color: #fff; border-color: var(--brown-mid, #8b7355); }
.np-page.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.np-page--ellipsis {
  border: none;
  background: transparent;
  width: auto;
  min-width: 20px;
}

/* 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;
  /* Width/centering handled by parent .container so this section
     starts/ends at the same x as every other section on the site. */
}

.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;
  /* Width/centering handled by parent .container. */
}

.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%;
  margin: 0 0 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;
  /* Width/centering handled by parent .container. */
  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;
  /* Width/centering handled by parent .container. */
  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;
  }
}

/* =================================================
   DETAIL PAGES â€” news / events (shared, responsive)
   ================================================= */
.detail-view-section {
  padding: clamp(24px, 5vw, 56px) 0 clamp(40px, 8vw, 80px);
  width: 100%;
}

.detail-view-wrap {
  display: flex;
  justify-content: center;
}

.detail-view {
  width: 100%;
  max-width: 880px;
}

.detail-view__inner {
  background: var(--white);
  border-radius: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(86, 60, 47, 0.08);
  padding: clamp(22px, 4vw, 44px) clamp(18px, 3.5vw, 40px) clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.detail-view__ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(14px, 2.5vw, 22px);
}

.detail-view__ornament::before,
.detail-view__ornament::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brown-light);
  opacity: 0.85;
}

.detail-view__ornament::after {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--brown-mid);
  opacity: 1;
}

.detail-view__head {
  text-align: right;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.detail-view__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.detail-view__date {
  display: inline-block;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 700;
  color: var(--brown-mid);
  letter-spacing: 0.02em;
}

.detail-view__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--cream);
  color: var(--brown-dark);
  border: 1px solid var(--brown-pale);
}

.detail-view__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  text-wrap: balance;
}

.detail-view__subtitle {
  margin: clamp(12px, 2vw, 18px) 0 0;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.65;
  color: var(--gray);
  font-weight: 600;
}

.detail-view__subtitle i {
  margin-left: 6px;
  opacity: 0.85;
  color: var(--brown-mid);
}

.detail-view__lead {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.85;
  color: var(--dark);
  opacity: 0.92;
}

.detail-view__media {
  margin: 0 0 clamp(22px, 3vw, 32px);
  border-radius: clamp(14px, 2vw, 20px);
  overflow: hidden;
  background: var(--cream-light);
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 520px);
}

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

.detail-view__body {
  font-size: clamp(16px, 2.1vw, 18px);
  line-height: 1.95;
  color: var(--dark);
  text-align: justify;
  text-justify: inter-word;
}

.detail-view__body p {
  margin: 0 0 1.15em;
}

.detail-view__body p:last-child {
  margin-bottom: 0;
}

.detail-view__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.25em 0;
}

.detail-view__body h2,
.detail-view__body h3,
.detail-view__body h4 {
  font-family: var(--font-serif);
  margin: 1.5em 0 0.65em;
  color: var(--brown-dark);
  line-height: 1.35;
}

.detail-view__body h2 { font-size: 1.35em; }
.detail-view__body h3 { font-size: 1.2em; }
.detail-view__body ul,
.detail-view__body ol {
  margin: 0.75em 0 1em;
  padding-right: 1.25em;
}

.detail-view__body a {
  color: var(--brown-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-view__body a:hover {
  color: var(--brown-dark);
}

.detail-view__footer {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 1px solid var(--brown-pale);
}

.detail-view__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 700;
  color: var(--brown-dark);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brown-pale);
  background: var(--cream-light);
  transition: background var(--transition), border-color var(--transition), transform 0.2s ease;
}

.detail-view__back:hover {
  background: var(--white);
  border-color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
}

.detail-view__extra {
  margin-top: 20px;
}

.detail-view__extra a {
  font-weight: 700;
  color: var(--brown-mid);
}

@media (max-width: 600px) {
  .detail-view__inner {
    border-radius: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-view__body {
    text-align: right;
  }

  .detail-view__media {
    border-radius: 14px;
    margin-left: -4px;
    margin-right: -4px;
    width: calc(100% + 8px);
    max-width: none;
  }
}

/* =================================================
   FULL RESPONSIVE PATCHES â€” catch-all for every page
   ================================================= */

/* Kill horizontal overflow triggered by any rogue wide element */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* Tablet and below */
@media (max-width: 992px) {
  /* News show + Event show â€” sidebar drops below, share becomes wrap-friendly */
  .news-show-layout, .event-show-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .news-show__aside, .event-show__aside { position: static !important; }
  .news-show, .event-show { padding: 22px clamp(14px, 3vw, 28px); }
  .news-show__share, .event-show__share { padding: 14px; }

  /* Album inline grid â€” force auto-fit even when inline styles set fixed column size */
  .gallery-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
}

/* Phone landscape */
@media (max-width: 768px) {
  /* News index banners / mosaic already handled â€” tighten cards */
  .np-list-card { grid-template-columns: 110px 1fr; }
  .np-list-body h4 { font-size: 14px; }

  /* Album pills wrap with equal widths */
  .album-cat-pill { font-size: 13px; padding: 7px 12px; }

  /* Social page category grid: 2 cols on tablets/phones */
  .soc-pills-row { gap: 10px; }
  .soc-pill { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }

  /* Personalities card: stack photo above text earlier */
  .pers-card { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .pers-card-photo { min-height: 220px; order: -1; }
  .pers-card-text { text-align: center; }
  .pers-card-name, .pers-card-line { justify-content: center; }

  /* Home activities/events rows: keep horizontal scroll snap but tighter */
  .event-card, .activity-card { min-width: min(88%, 340px) !important; }

  /* Family tree sidebar collapses */
  .tree-layout { grid-template-columns: 1fr !important; }
  .tree-sidebar { position: static !important; width: 100% !important; max-height: none !important; }
  .tree-tabs { flex-wrap: wrap; gap: 6px; }
  .tree-tabs .tree-tab { flex: 1 1 calc(50% - 6px); font-size: 13px; padding: 10px; }

  /* Search page */
  .search-page-form { flex-direction: column !important; }

  /* Home form */
  .form-box { grid-template-columns: 1fr !important; padding: 20px !important; }
  .type-buttons { flex-wrap: wrap; gap: 6px; }
}

/* Small phones */
@media (max-width: 600px) {
  /* Share buttons smaller */
  .share-btn { width: 36px; height: 36px; font-size: 13px; }
  .news-show__share-buttons, .event-show__share-buttons { gap: 6px; }
  .news-show__share-label, .event-show__share-label { font-size: 13px; }

  /* News latest sidebar â€” tighter thumb */
  .news-latest__row, .event-latest__row { grid-template-columns: 68px 1fr; gap: 10px; }
  .news-latest__thumb, .event-latest__thumb { width: 68px; height: 68px; }

  /* Album inline grid even smaller */
  .gallery-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px !important;
  }
  .gallery-card img[style] { height: 170px !important; }

  /* News index grid */
  .np-grid { grid-template-columns: 1fr !important; }
  .np-banner { aspect-ratio: 2 / 1; }

  /* Events index cards */
  .evt-grid { grid-template-columns: 1fr !important; }

  /* Title sizes bound */
  h1, .hero-title, .page-title { font-size: clamp(22px, 6vw, 32px) !important; }
  h2 { font-size: clamp(20px, 5vw, 28px); }

  /* Breaking news row */
  .breaking { padding: 12px !important; }
  .breaking .badge { font-size: 14px !important; }

  /* Home hero height */
  .hero-image { height: 240px !important; }

  /* About / personalities framed containers: tighten padding */
  .pers-hero-frame { padding: 40px 16px !important; }
  .pers-list-frame { padding: 16px !important; }
  .pers-intro { margin-top: 12px !important; }

  /* Inline-styled search form */
  section > form[action*="search"] { flex-direction: column; gap: 10px !important; }
}

/* Ultra narrow phones */
@media (max-width: 380px) {
  .soc-pill { min-width: 100% !important; flex: 1 1 100% !important; }
  .share-btn { width: 34px; height: 34px; }
  .tree-tabs .tree-tab { flex: 1 1 100%; }
}

/* =================================================
   HOME GALLERY + NEWS + EVENTS â€” targeted mobile
   ================================================= */

/* Gallery (home index) â€” side gutter handled by .gallery-wrapper to stay
   aligned with other .container sections. */
@media (max-width: 992px) {
  .gallery-section { padding: 48px 0 !important; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
}
@media (max-width: 768px) {
  .gallery-section { padding: 40px 0 !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .gallery-text.grid-text { grid-column: span 2 !important; text-align: center !important; align-items: center !important; padding: 0 0 8px !important; }
  .gallery-text h2 { font-size: clamp(22px, 5vw, 30px) !important; }
  .gallery-card { border-radius: 14px !important; }
}
@media (max-width: 480px) {
  .gallery-section { padding: 32px 0 !important; }
  .gallery-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .gallery-text.grid-text { grid-column: span 1 !important; }
  .gallery-card { aspect-ratio: 4 / 3 !important; border-radius: 12px !important; }
}

/* News index */
@media (max-width: 992px) {
  .np-banners { grid-template-columns: 1fr !important; }
  .np-banner { aspect-ratio: 21 / 8 !important; max-height: 180px !important; }
  .np-mosaic { grid-template-columns: 1fr !important; gap: 14px !important; }
  .np-panels { grid-template-columns: 1fr !important; gap: 16px !important; }
  .np-tile--hero { aspect-ratio: 16 / 9 !important; min-height: 0 !important; }
}
@media (max-width: 768px) {
  .np-grid-section { padding-left: 0 !important; padding-right: 0 !important; }
  .np-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .np-mosaic-pair { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .np-tile--mid, .np-tile--sm { aspect-ratio: 16 / 10 !important; }
  .np-tile-body { padding: 14px !important; }
  .np-tile-title { font-size: clamp(14px, 3vw, 18px) !important; line-height: 1.35 !important; }
  .np-tile-meta { font-size: 12px !important; }
  .np-tile-tag { font-size: 11px !important; padding: 4px 10px !important; }
  .np-panel { padding: 14px !important; }
  .np-panel-head { margin-bottom: 10px !important; }
  .np-panel-title { font-size: 16px !important; }
  .np-panel-feature-media { aspect-ratio: 16 / 9 !important; }
  .np-panel-feature-title { font-size: 15px !important; }
  .np-panel-list { gap: 10px !important; }
  .np-panel-row { grid-template-columns: 72px 1fr !important; gap: 10px !important; }
  .np-panel-row-media { width: 72px !important; height: 72px !important; }
  .np-panel-row-title { font-size: 13px !important; line-height: 1.4 !important; }
  .np-list-card { grid-template-columns: 100px 1fr !important; gap: 10px !important; padding: 8px !important; }
  .np-list-thumb { width: 100px !important; height: 100px !important; }
  .np-list-body h4 { font-size: 13px !important; line-height: 1.4 !important; }
  .np-list-meta { font-size: 11px !important; }
}
@media (max-width: 480px) {
  .np-banner { aspect-ratio: 16 / 9 !important; max-height: none !important; }
  .np-banner-caption { font-size: 12px !important; right: 10px; left: 10px; bottom: 8px; }
  .np-mosaic-pair { grid-template-columns: 1fr !important; }
  .np-grid { grid-template-columns: 1fr !important; }
  .np-list-card { grid-template-columns: 88px 1fr !important; }
  .np-list-thumb { width: 88px !important; height: 88px !important; }
}

/* Events index */
@media (max-width: 992px) {
  .evt-intro { padding: 28px 0 0 !important; }
  .evt-desc { font-size: 16px !important; line-height: 1.9 !important; margin-bottom: 14px !important; }
  .evt-title { font-size: 24px !important; }
  .evt-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .evt-browse-title-wrap { margin: 28px auto 18px !important; }
}
@media (max-width: 768px) {
  .evt-intro { padding: 22px 0 0 !important; }
  .evt-desc { font-size: 15px !important; line-height: 1.85 !important; max-width: 100% !important; padding: 0 4px !important; }
  .evt-title { font-size: 22px !important; }
  .evt-grid-wrap { gap: 0 !important; padding: 0 !important; }
  .evt-grid { gap: 12px !important; }
  .evt-card { aspect-ratio: 4 / 5 !important; min-height: 260px !important; }
  .evt-card-copy h3 { font-size: 15px !important; line-height: 1.4 !important; }
  .evt-card-date { font-size: 12px !important; }
  .evt-card-arrow-icon { width: 40px !important; height: 40px !important; }
  .evt-card-overlay { padding: 12px !important; }
}
@media (max-width: 480px) {
  .evt-intro { padding: 16px 0 0 !important; }
  .evt-desc { font-size: 14px !important; line-height: 1.8 !important; }
  .evt-title { font-size: 20px !important; }
  .evt-grid { grid-template-columns: 1fr !important; max-width: 420px !important; margin: 0 auto !important; }
  .evt-card { aspect-ratio: 3 / 3.2 !important; min-height: 240px !important; }
  .evt-card-copy h3 { font-size: 14px !important; }
  .evt-pagination { gap: 6px !important; margin-top: 20px !important; }
  .evt-page-num, .evt-page-arrow { width: 32px !important; height: 32px !important; font-size: 12px !important; }
}

/* ============================================================
   Site footer — Figma export (scoped to .about-us)
   ============================================================ */
.about-us {
  position: relative;
  width: 100%;
  height: 655px;
  margin: 0 auto;
  overflow: visible;
}

.about-us .group {
  position: absolute;
  width: 100%;
  height: 655px;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.about-us .group-2 {
  width: 1472px;
  max-width: 100%;
  height: 655px;
  margin: 0;
  position: relative;
}

.about-us .rectangle-10 {
  position: absolute;
  top: 89px;
  left: 0;
  right: 0;
  width: 100%;
  height: 566px;
  background-color: #bba188;
  border-radius: 40px 40px 0px 0px;
}

@media (min-width: 1441px) {
  .about-us .rectangle-10 {
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
  }
}

.about-us .vector-5 {
  position: absolute;
  top: 558px;
  left: 205px;
  width: 1px;
  height: 20px;
}

.about-us .rectangle-11 {
  position: absolute;
  top: -2px;
  left: 322px;
  width: 995px;
  height: 181px;
  background-color: #f4f3ef;
  border-radius: 16px;
  border: 1.5px solid;
  border-color: #bba188;
}

.about-us .rectangle-12 {
  position: absolute;
  top: 313px;
  left: 125px;
  width: 534px;
  height: 126px;
  background-color: #dbcebe;
  border-radius: 16px;
}

.about-us .rectangle-13 {
  position: absolute;
  top: 454px;
  left: 125px;
  width: 178px;
  height: 29px;
  background-color: #ffffff;
  border-radius: 16px;
}

.about-us .rectangle-14 {
  position: absolute;
  top: 313px;
  left: 678px;
  width: 252px;
  height: 54px;
  background-color: #dbcebe;
  border-radius: 16px;
}

.about-us .rectangle-15 {
  position: absolute;
  top: 385px;
  left: 678px;
  width: 252px;
  height: 54px;
  background-color: #dbcebe;
  border-radius: 16px;
}

.about-us .rectangle-16 {
  position: absolute;
  top: 0;
  left: 125px;
  width: 178px;
  height: 178px;
  background-color: #88664d;
  border-radius: 16px;
}

.about-us .rectangle-17 {
  position: absolute;
  top: 59px;
  left: 430px;
  width: 346px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 9px;
}

.about-us .text-wrapper-5 {
  position: absolute;
  top: 46px;
  left: 820px;
  font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
  font-weight: 400;
  color: #88664d;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 44px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .div-3 {
  position: absolute;
  top: 100px;
  left: 814px;
  width: 349px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #252525;
  font-size: 17.2px;
  letter-spacing: 0;
  line-height: 26px;
  direction: rtl;
}

.about-us .span {
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #252525;
  font-size: 17.2px;
  letter-spacing: 0;
  line-height: 26px;
}

.about-us .text-wrapper-6 {
  font-family: "Rawasi Display Arabic-Regular", Helvetica;
}

.about-us .rectangle-18 {
  position: absolute;
  top: 59px;
  left: 430px;
  width: 95px;
  height: 60px;
  background-color: #88664d;
  border-radius: 9px;
}

.about-us .text-wrapper-7 {
  position: absolute;
  top: 74px;
  left: 622px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #dbcebe;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 50px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-8 {
  position: absolute;
  top: 326px;
  left: 837px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #88664d;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 50px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-9 {
  position: absolute;
  top: 326px;
  left: 542px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #88664d;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 50px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-10 {
  position: absolute;
  top: 398px;
  left: 839px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #88664d;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 50px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-11 {
  position: absolute;
  top: 68px;
  left: 452px;
  font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 50px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .rectangle-19 {
  position: absolute;
  top: 56px;
  left: 1204px;
  width: 4px;
  height: 67px;
  background-color: #88664d;
  border-radius: 39px;
}

.about-us .div-4 {
    position: absolute;
    top: 100px;
    left: 125px;
    width: 178px;
    text-align: center;
    font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 24px;
    line-height: 29px;
    direction: rtl;
}

.about-us .text-wrapper-12 { letter-spacing: 0; }
.about-us .text-wrapper-13 { letter-spacing: -0.23px; }

.about-us .text-wrapper-14 {
  position: absolute;
  top: 304px;
  left: 1218px;
  font-family: "Rawasi Display Arabic-Regular", Helvetica;
  font-weight: 400;
  color: #fcfbf7;
  font-size: 25px;
  text-align: justify;
  letter-spacing: 0;
  line-height: 37px;
  direction: rtl;
}

.about-us .element {
  position: absolute;
  top: 576px;
  left: 1110px;
  font-family: "Rawasi Display Arabic-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 37px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-15 {
  position: absolute;
  top: 450px;
  left: 192px;
  font-family: "Rawasi Display Arabic-Regular", Helvetica;
  font-weight: 400;
  color: #88664d;
  font-size: 25px;
  text-align: justify;
  letter-spacing: 0;
  line-height: 37px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-16 {
  position: absolute;
  top: 304px;
  left: 1060px;
  font-family: "Rawasi Display Arabic-Regular", Helvetica;
  font-weight: 400;
  color: #fcfbf7;
  font-size: 25px;
  text-align: justify;
  letter-spacing: 0;
  line-height: 37px;
  direction: rtl;
}

.about-us .text-wrapper-17 {
  position: absolute;
  top: 242px;
  left: 1183px;
  font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
  font-weight: 400;
  color: #563c2f;
  font-size: 35px;
  letter-spacing: 0;
  line-height: 37px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-18 {
  position: absolute;
  top: 242px;
  left: 800px;
  font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
  font-weight: 400;
  color: #563c2f;
  font-size: 35px;
  letter-spacing: 0;
  line-height: 37px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .vector-6 {
  position: absolute;
  top: 276px;
  left: 1062px;
  width: 110px;
  height: 3px;
}

.about-us .vector-7 {
  position: absolute;
  top: 276px;
  left: 677px;
  width: 110px;
  height: 3px;
}

.about-us .vector-8 {
  position: absolute;
  top: 590px;
  left: 124px;
  width: 806px;
  height: 3px;
  background-color: #ffffff;
}

.about-us .social-icons {
  position: absolute;
  top: 28px;
  left: 183px;
  width: 61px;
  height: 61px;
}

.about-us .group-3 {
  position: absolute;
  width: 20.52%;
  height: 3.05%;
  top: 39.24%;
  left: 8.49%;
}

.about-us .vector-9 {
  position: absolute;
  width: 5.63%;
  height: 100%;
  top: 0;
  left: 94.37%;
}

.about-us .social-icons-2 { position: absolute; top: 0;  left: 114px; width: 20px; height: 20px; }
.about-us .social-icons-3 { position: absolute; top: 1px; left: 58px;  width: 18px; height: 18px; }
.about-us .social-icons-4 { position: absolute; top: 0;  left: 172px; width: 20px; height: 20px; }
.about-us .social-icons-5 { position: absolute; top: 0;  left: 0;     width: 20px; height: 20px; }
.about-us .social-icons-6 { position: absolute; top: 0;  left: 230px; width: 20px; height: 20px; }

.about-us .div-5 {
  position: absolute;
  top: 551px;
  left: 1121px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #563c2f;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 37px;
  white-space: nowrap;
  direction: rtl;
}

.about-us .text-wrapper-19 { text-decoration: underline; }

.about-us .text-wrapper-20 {
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #563c2f;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 37px;
}

.about-us .div-6 {
  position: absolute;
  top: 555px;
  left: 226px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-weight: 400;
  color: #f1e9d6;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 11px;
  direction: rtl;
}

.about-us .text-wrapper-21 { color: #ffffff; }
.about-us .text-wrapper-22 { color: #ffffff; text-decoration: underline; }

.about-us .group-4 {
  position: absolute;
  top: 420px;
  left: 135px;
  width: 10px;
  height: 10px;
  display: flex;
}

.about-us .vector-10 {
  margin-top: -0.5px;
  width: 9.42px;
  height: 9.42px;
  margin-left: 1.3px;
}

.about-us .image-2 {
  position: absolute;
  top: 556px;
  left: 125px;
  width: 59px;
  height: 21px;
  aspect-ratio: 2.85;
}

/* ============================================================
   Footer — link styles (CMS integration)
   ============================================================ */
.about-us .text-wrapper-14 a,
.about-us .text-wrapper-16 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about-us .text-wrapper-14 a:hover,
.about-us .text-wrapper-16 a:hover {
  color: #563c2f;
}

.about-us .text-wrapper-19 {
  color: #563c2f;
  text-decoration: underline;
}

.about-us .div-4-link,
.about-us .social-icons-link,
.about-us .social-link {
  text-decoration: none;
  cursor: pointer;
}

/* ============================================================
   Footer — real form elements overlaid on Figma decorative divs
   ============================================================ */
.about-us .newsletter-figma-form {
  position: absolute;
  top: 59px;
  left: 430px;
  width: 346px;
  height: 60px;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.about-us .newsletter-figma-input {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 95px);
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-size: 18px;
  color: #252525;
  direction: rtl;
  text-align: right;
  padding: 0 20px;
}
.about-us .newsletter-figma-input::placeholder { color: transparent; }
.about-us .newsletter-figma-input:focus + .text-wrapper-7,
.about-us .newsletter-figma-input:not(:placeholder-shown) ~ .text-wrapper-7 { display: none; }
.about-us .newsletter-figma-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 95px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
}

.about-us .contact-figma-form {
  position: absolute;
  top: 313px;
  left: 125px;
  width: 805px;
  height: 170px;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.about-us .contact-figma-name,
.about-us .contact-figma-phone,
.about-us .contact-figma-message {
  position: absolute;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 16px;
  font-family: "Rawasi Display Arabic Light-Regular", Helvetica;
  font-size: 18px;
  color: #563c2f;
  direction: rtl;
  text-align: right;
}
.about-us .contact-figma-name { top: 0; left: 553px; width: 252px; height: 54px; padding: 0 20px; }
.about-us .contact-figma-phone { top: 72px; left: 553px; width: 252px; height: 54px; padding: 0 20px; }
.about-us .contact-figma-message { top: 0; left: 0; width: 534px; height: 126px; padding: 14px 20px; resize: none; }
.about-us .contact-figma-name::placeholder,
.about-us .contact-figma-phone::placeholder,
.about-us .contact-figma-message::placeholder { color: #88664d; opacity: 1; }
.about-us .contact-figma-name:-webkit-autofill,
.about-us .contact-figma-phone:-webkit-autofill,
.about-us .contact-figma-message:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 1000px #dbcebe;
  -webkit-text-fill-color: #563c2f;
  caret-color: #563c2f;
  transition: background-color 9999s ease-out 0s;
}
.about-us .contact-figma-submit {
  position: absolute;
  top: 141px;
  left: 0;
  width: 178px;
  height: 29px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Lift the social-row anchors above the brown band */
.about-us .group-3 .social-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   Footer — RESPONSIVE (≤1024px): flex column with explicit
   `order` per element so visual sequence is deterministic.
   ============================================================ */
@media (max-width: 1024px) {
  .about-us {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .about-us .group {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .about-us .group-2 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 28px 16px 20px !important;
    background-color: #bba188;
    border-radius: 24px 24px 0 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* Hide pure decoration */
  .about-us .rectangle-10,
  .about-us .vector-5,
  .about-us .vector-6,
  .about-us .vector-7,
  .about-us .vector-8,
  .about-us .rectangle-19,
  .about-us .rectangle-11,
  .about-us .rectangle-12,
  .about-us .rectangle-13,
  .about-us .rectangle-14,
  .about-us .rectangle-15,
  .about-us .rectangle-17,
  .about-us .rectangle-18,
  .about-us .text-wrapper-7,
  .about-us .text-wrapper-8,
  .about-us .text-wrapper-9,
  .about-us .text-wrapper-10,
  .about-us .text-wrapper-11,
  .about-us .text-wrapper-15,
  .about-us .group-4 {
    display: none !important;
  }

  /* Reset all kept elements out of absolute positioning (including form children) */
  .about-us .group-2 > *,
  .about-us .group-2 form > *,
  .about-us .group-2 nav > *,
  .about-us .newsletter-figma-input,
  .about-us .newsletter-figma-button,
  .about-us .contact-figma-name,
  .about-us .contact-figma-phone,
  .about-us .contact-figma-message,
  .about-us .contact-figma-submit {
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  /* Explicit visual order */
  .about-us .text-wrapper-5         { order: 1; }
  .about-us .div-3                  { order: 2; }
  .about-us .newsletter-figma-form  { order: 3; }
  .about-us .rectangle-16           { order: 10; }
  .about-us .div-4-link             { order: 11; display: none; }
  .about-us .social-icons-link      { order: 12; display: none; }
  .about-us .text-wrapper-18        { order: 20; }
  .about-us .contact-figma-form     { order: 21; }
  .about-us .text-wrapper-17        { order: 30; }
  .about-us .text-wrapper-14        { order: 31; }
  .about-us .text-wrapper-16        { order: 32; }
  .about-us .group-3                { order: 40; }
  .about-us .element                { order: 50; }
  .about-us .div-5                  { order: 51; }
  .about-us .div-6                  { order: 52; }
  .about-us .image-2                { order: 53; }

  /* Newsletter card (title + subtitle + form share one visual card) */
  .about-us .text-wrapper-5 {
    background: #f4f3ef;
    border: 1.5px solid #bba188;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px 4px !important;
    font-size: clamp(18px, 4.5vw, 26px);
    line-height: 1.25;
    text-align: right;
    color: #88664d;
    margin: 0 0 -8px 0 !important;
  }
  .about-us .div-3 {
    background: #f4f3ef;
    border-left: 1.5px solid #bba188;
    border-right: 1.5px solid #bba188;
    padding: 0 16px 10px !important;
    font-size: 13px;
    line-height: 1.55;
    text-align: right;
    color: #252525;
    margin: 0 0 -8px 0 !important;
  }
  .about-us .div-3 .span,
  .about-us .div-3 .text-wrapper-6 { font-size: 13px; line-height: 1.55; }
  .about-us .newsletter-figma-form {
    display: flex !important;
    background: #f4f3ef;
    border: 1.5px solid #bba188;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 10px 12px 12px !important;
    gap: 8px;
    margin: 0 0 6px 0 !important;
  }
  .about-us .newsletter-figma-input {
    flex: 1;
    height: 40px;
    background: #ffffff;
    border-radius: 9px;
    border: 1px solid #dbcebe;
    padding: 0 12px;
    font-size: 14px;
    color: #252525;
  }
  .about-us .newsletter-figma-input::placeholder { color: #88664d !important; }
  .about-us .newsletter-figma-button {
    height: 40px;
    width: 80px;
    background: #88664d;
    border-radius: 9px;
    cursor: pointer;
    color: #fff;
    font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
    font-size: 15px;
  }
  .about-us .newsletter-figma-button::before {
    content: 'إشتراك';
    color: #fff;
  }

  /* WhatsApp CTA — one horizontal brown bar with icon + text via pseudo-elements */
  .about-us .rectangle-16 {
    background-color: #88664d;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px !important;
    padding: 12px 16px !important;
    text-decoration: none;
    color: #fff;
    width: 100% !important;
  }
  .about-us .rectangle-16::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url('img/whatsapp-big.svg') center/contain no-repeat;
    flex-shrink: 0;
  }
  .about-us .rectangle-16::after {
    content: 'للانضمام في مجموعة واتساب';
    font-family: "Rawasi Display Arabic Med-Regular", Helvetica;
    font-size: 15px;
    color: #fff;
    direction: rtl;
  }

  /* Contact form (full width, real inputs) */
  .about-us .text-wrapper-18 {
    font-size: clamp(18px, 4vw, 22px) !important;
    line-height: 1.2 !important;
    text-align: right;
    color: #563c2f;
    margin: 8px 0 4px 0 !important;
  }
  .about-us .contact-figma-form {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  .about-us .contact-figma-name,
  .about-us .contact-figma-phone,
  .about-us .contact-figma-message {
    background: #dbcebe !important;
    color: #563c2f !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    width: 100% !important;
  }
  .about-us .contact-figma-name { height: 38px !important; }
  .about-us .contact-figma-phone { height: 38px !important; }
  .about-us .contact-figma-message { height: 80px !important; min-height: 80px; resize: vertical; }
  .about-us .contact-figma-name::placeholder,
  .about-us .contact-figma-phone::placeholder,
  .about-us .contact-figma-message::placeholder { color: #88664d !important; }
  .about-us .contact-figma-submit {
    width: 110px !important;
    height: 34px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    cursor: pointer;
    align-self: flex-end;
    font-family: "Rawasi Display Arabic-Regular", Helvetica;
    font-size: 14px;
    color: #88664d;
  }
  .about-us .contact-figma-submit::before {
    content: 'إرسال';
    color: #88664d;
  }

  /* Quick links: 2 columns side by side */
  .about-us .text-wrapper-17 {
    font-size: clamp(18px, 4vw, 22px) !important;
    line-height: 1.2 !important;
    text-align: right;
    color: #563c2f;
    margin: 8px 0 4px 0 !important;
  }
  .about-us .text-wrapper-14,
  .about-us .text-wrapper-16 {
    width: 50% !important;
    display: inline-block !important;
    vertical-align: top;
    font-size: 13px !important;
    line-height: 1.9 !important;
    text-align: right;
    color: #fcfbf7;
    padding: 0 !important;
  }
  .about-us .text-wrapper-14 a,
  .about-us .text-wrapper-16 a { color: #fcfbf7; text-decoration: none; }

  /* Social row */
  .about-us .group-3 {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0 !important;
    margin: 8px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    width: 100% !important;
  }
  .about-us .group-3 .social-link {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border-radius: 50%;
  }
  .about-us .group-3 img {
    width: 14px !important;
    height: 14px !important;
  }

  /* Bottom bar */
  .about-us .element,
  .about-us .div-5,
  .about-us .div-6 {
    text-align: center !important;
    width: 100% !important;
  }
  .about-us .element {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    padding-top: 8px !important;
  }
  .about-us .div-5 {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
  }
  .about-us .div-5 .text-wrapper-19,
  .about-us .div-5 .text-wrapper-20 { color: #ffffff !important; font-size: 11px !important; }
  .about-us .div-6 {
    font-size: 10px !important;
    line-height: 1.4 !important;
    color: #f1e9d6 !important;
  }
  .about-us .image-2 {
    width: 50px !important;
    height: auto !important;
    margin: 4px auto 0 !important;
    display: block !important;
  }
}

/* =================================================
   RESPONSIVE FIXES — standard section sizing on
   tablet & mobile (appended; overrides rules above)
   ================================================= */

/* Home — remove the desktop-only overlap gap under wide stat cards once the
   landmark card no longer overlaps them (<=992). */
@media (max-width: 992px) {
  .stats-wide .wide-card { margin-bottom: 24px; }
  .stats-wide .wide-card:last-child { margin-bottom: 0; }
}

/* Home — neutralize the events carousel's upward overlap on small screens. */
@media (max-width: 900px) {
  .family-events .events-row { position: static; bottom: auto; }
}

/* Social — category pills have a rigid 88px inner gap that can't shrink;
   relax it so the 2-up pill grid fits phones without clipping. */
@media (max-width: 768px) {
  .soc-pill { gap: 16px; }
}
@media (max-width: 480px) {
  .soc-pill { gap: 10px; justify-content: space-between; }
}

/* Album — figures reuse the square home .gallery-card; let them size to their
   content (image + caption) instead of being clipped to a square. */
.album-page .gallery-card {
  aspect-ratio: auto !important;
  overflow: visible !important;
  background: transparent;
  box-shadow: none;
}
.album-page .gallery-card img { border-radius: 12px; }

/* Pagination — allow wrapping so it never overflows narrow phones. */
.np-pagination { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 480px) {
  .np-pagination { gap: 6px; }
  .np-page { width: 32px; height: 32px; }
  .np-page--nav { width: 34px; }
}

/* Footer — keep social-network icons inside their circles on tablet/mobile
   (base rules absolutely-position them; the mobile reset never reached them). */
@media (max-width: 1024px) {
  .about-us .group-3 .social-link img,
  .about-us .group-3 .vector-9,
  .about-us .group-3 .social-icons-2,
  .about-us .group-3 .social-icons-3,
  .about-us .group-3 .social-icons-4,
  .about-us .group-3 .social-icons-5,
  .about-us .group-3 .social-icons-6 {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 14px !important;
    height: 14px !important;
  }
}

/* Header — keep the search dropdown within the viewport on narrow phones. */
@media (max-width: 480px) {
  .search-dropdown {
    width: min(280px, calc(100vw - 24px));
    right: 0;
    left: auto;
  }
}

/* ============================================================
   HOME — uniform section spacing + aligned start/end edges
   ============================================================ */
/* Remove the hero/events overlap so each section's top & bottom spacing
   is uniform (no floating cards leaving an extra gap). */
.family-events { margin-top: var(--section-gap) !important; }
.events-row { bottom: 0 !important; }

/* Align EVERY home content row to the same left/right edges (the standard
   single-gutter container content). These rows set max-width:var(--content-max)
   or sat inside a nested .container, which subtracted the page gutter again at
   each level and progressively inset them (123 -> 166 -> 253px). */
.events-row,
.activites-row,
.media-wrapper,
.family-desc-inner,
.landmark-section,
.landmark-card { max-width: none !important; width: 100% !important; }
.family-desc-inner,
.media-showcase > .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

