/* ==========================================================================
   Raunaq-e-Islam Schools — PMWES
   Design system: heritage emerald + aged gold on warm ivory
   Fonts: Fraunces (display) · Figtree (body)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ri-green-950: #072a1f;
  --ri-green-900: #0b3b2c;
  --ri-green-800: #0e4a37;
  --ri-green-700: #135c44;
  --ri-green-600: #1a7455;
  --ri-green-100: #dcebe2;
  --ri-green-50:  #eef5f0;
  --ri-gold-700:  #a97e22;
  --ri-gold:      #c49a3c;
  --ri-gold-300:  #e6d3a3;
  --ri-gold-100:  #f4ecd8;
  --ri-cream:     #faf7f0;
  --ri-cream-2:   #f2ede1;
  --ri-ink:       #16241d;
  --ri-body-clr:  #43524a;
  --ri-line:      #e4ded0;
  --ri-white:     #ffffff;

  --ri-radius:    1rem;
  --ri-radius-lg: 1.5rem;
  --ri-shadow-sm: 0 1px 2px rgba(11, 59, 44, .06), 0 4px 12px rgba(11, 59, 44, .05);
  --ri-shadow:    0 2px 6px rgba(11, 59, 44, .07), 0 14px 34px rgba(11, 59, 44, .09);
  --ri-shadow-lg: 0 8px 20px rgba(11, 59, 44, .10), 0 28px 60px rgba(11, 59, 44, .14);

  --ri-font-display: "Fraunces", Georgia, serif;
  --ri-font-body: "Figtree", "Segoe UI", sans-serif;

  /* Islamic eight-point star lattice, ultra subtle */
  --ri-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c49a3c' stroke-opacity='.14'%3E%3Cpath d='M36 6l7.5 22.5L66 36l-22.5 7.5L36 66l-7.5-22.5L6 36l22.5-7.5z'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3C/g%3E%3C/svg%3E");

  --bs-border-radius: var(--ri-radius);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html, body { overflow-x: clip; }

body {
  font-family: var(--ri-font-body);
  color: var(--ri-body-clr);
  background-color: var(--ri-cream);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--ri-font-display);
  font-weight: 600;
  color: var(--ri-ink);
  line-height: 1.18;
  letter-spacing: -.01em;
}

a { color: var(--ri-green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ri-green-600); }

::selection { background: var(--ri-gold-300); color: var(--ri-green-950); }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; z-index: 2000; top: .5rem; left: .5rem;
  background: var(--ri-green-900); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
}

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

/* Fluid type scale */
.h-hero   { font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem); font-weight: 700; }
.h-section{ font-size: clamp(1.65rem, 1.1rem + 2.4vw, 2.6rem); }
.lead     { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }

/* ---------- 3. Utilities ---------- */
.section     { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section-sm  { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.bg-cream    { background-color: var(--ri-cream); }
.bg-cream-2  { background-color: #f3eee2; }
.bg-green-50 { background-color: var(--ri-green-50); }
.bg-deep     { background-color: var(--ri-green-900); color: #cfe0d7; }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4, .bg-deep h5 { color: #fff; }
.bg-pattern  { background-image: var(--ri-pattern); }
.text-gold   { color: var(--ri-gold-700); }
.text-green  { color: var(--ri-green-800); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ri-gold-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--ri-gold); border-radius: 2px; }
.bg-deep .eyebrow { color: var(--ri-gold-300); }

.divider-flourish {
  width: 120px; height: 12px; margin: .75rem auto 0; opacity: .85;
  background: radial-gradient(circle 3px at 50% 50%, var(--ri-gold) 98%, transparent),
              linear-gradient(var(--ri-gold), var(--ri-gold)) 0 50%/40px 1px no-repeat,
              linear-gradient(var(--ri-gold), var(--ri-gold)) 100% 50%/40px 1px no-repeat;
}

/* ---------- 4. Buttons ---------- */
.btn { border-radius: 100px; font-weight: 600; padding: .6rem 1.4rem; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .8rem 1.8rem; }
.btn-sm { padding: .4rem 1rem; }

.btn-ri {
  background: var(--ri-green-800); border: 1px solid var(--ri-green-800); color: #fff;
}
.btn-ri:hover, .btn-ri:focus { background: var(--ri-green-700); border-color: var(--ri-green-700); color: #fff; box-shadow: var(--ri-shadow); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(140deg, #d3ab52, var(--ri-gold) 55%, var(--ri-gold-700));
  border: 1px solid var(--ri-gold-700); color: var(--ri-green-950);
}
.btn-gold:hover, .btn-gold:focus { color: var(--ri-green-950); box-shadow: 0 10px 24px rgba(196, 154, 60, .4); transform: translateY(-2px); }

.btn-outline-ri { border: 1.5px solid var(--ri-green-800); color: var(--ri-green-800); background: transparent; }
.btn-outline-ri:hover, .btn-outline-ri:focus { background: var(--ri-green-800); color: #fff; }

.btn-outline-cream { border: 1.5px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-cream:hover, .btn-outline-cream:focus { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- 5. Topbar + navbar ---------- */
.topbar {
  background: var(--ri-green-950); color: #b9cfc5; font-size: .82rem; padding-block: .45rem;
}
.topbar a { color: #dbe8e1; text-decoration: none; }
.topbar a:hover { color: var(--ri-gold-300); }
.topbar .bi { color: var(--ri-gold); margin-right: .25rem; }
.topbar-list .list-inline-item:not(:last-child) { margin-right: 1.4rem; }
.topbar-social a { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255,255,255,.12); }

.navbar-ri {
  background: var(--ri-cream);
  border-bottom: 1px solid var(--ri-line);
  padding-block: .55rem;
  transition: box-shadow .25s ease;
}
/* Glass effect only on desktop: below lg the offcanvas is a fixed descendant,
   and backdrop-filter would make the navbar its containing block */
@media (min-width: 992px) {
  .navbar-ri {
    background: rgba(250, 247, 240, .88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
}
.navbar-ri.is-scrolled { box-shadow: var(--ri-shadow-sm); }

.brand-text { line-height: 1.15; min-width: 0; }
.brand-name { display: block; font-family: var(--ri-font-display); font-weight: 700; font-size: 1.08rem; color: var(--ri-green-900); }
.brand-tag  { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ri-gold-700); font-weight: 600; }
@media (max-width: 575.98px) {
  .navbar-brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .95rem; }
  .brand-tag { font-size: .52rem; letter-spacing: .04em; }
}
@media (max-width: 479.98px) {
  .brand-tag { display: none; }
}

.navbar-ri .nav-link {
  font-weight: 600; font-size: .93rem; color: var(--ri-ink);
  padding-inline: .85rem; border-radius: .5rem;
}
.navbar-ri .nav-link:hover, .navbar-ri .nav-link:focus { color: var(--ri-green-700); }
.navbar-ri .nav-link.active { color: var(--ri-green-700); }

@media (min-width: 992px) {
  .navbar-ri .nav-link.active { position: relative; }
  .navbar-ri .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
    height: 2px; background: var(--ri-gold); border-radius: 2px;
  }
  .navbar-ri .dropdown-menu { margin-top: .75rem; }
  .navbar-ri .dropdown:hover > .dropdown-menu { display: block; }
}

.dropdown-menu {
  border: 1px solid var(--ri-line); border-radius: .9rem; box-shadow: var(--ri-shadow);
  padding: .5rem; background: var(--ri-cream);
}
.dropdown-item { border-radius: .55rem; font-weight: 500; font-size: .92rem; padding: .5rem .85rem; color: var(--ri-ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ri-green-50); color: var(--ri-green-800); }

.offcanvas { background: var(--ri-cream); }
@media (max-width: 991.98px) {
  .offcanvas .nav-link { font-size: 1.05rem; padding-block: .6rem; border-bottom: 1px solid var(--ri-line); }
  .offcanvas .dropdown-menu { box-shadow: none; border: 0; background: var(--ri-green-50); }
}

/* ---------- 6. Heroes ---------- */
.hero-home {
  position: relative; color: #e8f0ec; overflow: hidden;
  background: linear-gradient(115deg, var(--ri-green-950) 8%, var(--ri-green-900) 45%, var(--ri-green-800));
}
.hero-home::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--ri-pattern); opacity: .5; pointer-events: none;
}
.hero-home::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -22vw; top: -22vw;
  background: radial-gradient(closest-side, rgba(196,154,60,.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.hero-home h1 { color: #fff; }
.hero-home .hero-highlight {
  font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, #ecd9a8, var(--ri-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-home .lead { color: #c8dcd2; max-width: 40rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(230,211,163,.4);
  color: var(--ri-gold-300); font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  padding: .45rem 1.1rem; border-radius: 100px; margin-bottom: 1.4rem;
}

.hero-media { position: relative; }
.hero-media .hero-photo {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 46% 46% var(--ri-radius-lg) var(--ri-radius-lg) / 34% 34% var(--ri-radius-lg) var(--ri-radius-lg);
  border: 6px solid rgba(230,211,163,.35);
  box-shadow: var(--ri-shadow-lg);
}
.hero-chip {
  position: absolute; display: flex; gap: .7rem; align-items: center;
  background: rgba(250,247,240,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ri-ink); border-radius: .9rem; box-shadow: var(--ri-shadow);
  padding: .65rem .95rem; font-size: .85rem; font-weight: 600; line-height: 1.3;
}
.hero-chip .bi { font-size: 1.4rem; color: var(--ri-gold-700); }
.hero-chip small { display: block; font-weight: 500; color: var(--ri-body-clr); }
.hero-chip-1 { top: 8%; left: -1.25rem; }
.hero-chip-2 { bottom: 10%; right: -.75rem; }
@media (max-width: 991.98px) {
  .hero-chip-1 { left: 0; } .hero-chip-2 { right: 0; }
}

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden; color: #dfeae4;
  background: linear-gradient(115deg, var(--ri-green-950), var(--ri-green-800) 90%);
  padding-block: clamp(3.25rem, 2.5rem + 4vw, 5.5rem);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--ri-pattern); opacity: .45; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); font-weight: 700; }
.page-hero .lead { color: #c4d8ce; max-width: 46rem; }

.breadcrumb { --bs-breadcrumb-divider-color: rgba(230,211,163,.6); margin-bottom: 1rem; font-size: .85rem; }
.breadcrumb-item a { color: var(--ri-gold-300); text-decoration: none; }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,.75); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(230,211,163,.6); }

/* ---------- 7. Cards ---------- */
.card-ri {
  background: var(--ri-white); border: 1px solid var(--ri-line); border-radius: var(--ri-radius-lg);
  box-shadow: var(--ri-shadow-sm); height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-ri:hover { transform: translateY(-6px); box-shadow: var(--ri-shadow); border-color: var(--ri-gold-300); }
.card-ri .card-body { padding: 1.6rem; }
.card-ri .card-img-top { border-radius: calc(var(--ri-radius-lg) - 1px) calc(var(--ri-radius-lg) - 1px) 0 0; aspect-ratio: 16/10; object-fit: cover; }

.icon-tile {
  display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem;
  border-radius: 1.05rem; font-size: 1.5rem; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--ri-green-50), var(--ri-green-100));
  color: var(--ri-green-700); border: 1px solid var(--ri-green-100);
}
.card-ri:hover .icon-tile { background: linear-gradient(140deg, var(--ri-gold-100), var(--ri-gold-300)); color: var(--ri-gold-700); border-color: var(--ri-gold-300); }

.card-title-sm { font-size: 1.12rem; margin-bottom: .5rem; }

/* Feature list checks */
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 1.9rem; position: relative; margin-bottom: .55rem; }
.list-check li::before {
  content: "\f26a"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
  color: var(--ri-gold-700);
}

/* Program cards */
.program-card { position: relative; overflow: hidden; }
.program-card .program-num {
  position: absolute; top: .8rem; right: 1.2rem; font-family: var(--ri-font-display);
  font-size: 3.2rem; font-weight: 700; color: var(--ri-green-50); z-index: 0; line-height: 1;
}
.program-card .card-body { position: relative; z-index: 1; }

/* Campus cards */
.campus-card .campus-img { position: relative; overflow: hidden; border-radius: calc(var(--ri-radius-lg) - 1px) calc(var(--ri-radius-lg) - 1px) 0 0; }
.campus-card .campus-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .5s ease; }
.campus-card:hover .campus-img img { transform: scale(1.06); }
.campus-card .campus-badge { position: absolute; top: .9rem; left: .9rem; }

.badge-ri {
  background: var(--ri-green-800); color: #fff; font-weight: 600; letter-spacing: .04em;
  padding: .45em .9em; border-radius: 100px;
}
.badge-gold { background: var(--ri-gold-100); color: var(--ri-gold-700); border: 1px solid var(--ri-gold-300); font-weight: 600; padding: .45em .9em; border-radius: 100px; }
.badge-soft { background: var(--ri-green-50); color: var(--ri-green-700); font-weight: 600; padding: .45em .9em; border-radius: 100px; }

/* ---------- 8. Stats ---------- */
.stats-band { position: relative; }
.stat { text-align: center; padding: 1.2rem .5rem; }
.stat-value {
  font-family: var(--ri-font-display); font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); color: var(--ri-green-900); line-height: 1;
}
.bg-deep .stat-value, .hero-home .stat-value { color: var(--ri-gold-300); }
.stat-label { font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .5rem; color: var(--ri-body-clr); }
.bg-deep .stat-label, .hero-home .stat-label { color: #b9cfc5; }

/* ---------- 9. Timeline ---------- */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.05rem;
  width: 2px; background: linear-gradient(var(--ri-gold-300), var(--ri-green-100));
}
.timeline-item { position: relative; padding-left: 3.2rem; padding-bottom: 2.4rem; }
.timeline-item:last-child { padding-bottom: .5rem; }
.timeline-dot {
  position: absolute; left: 0; top: .1rem; width: 2.15rem; height: 2.15rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ri-cream); border: 2px solid var(--ri-gold);
  color: var(--ri-gold-700); font-size: .95rem;
}
.timeline-year {
  font-family: var(--ri-font-display); font-weight: 700; font-size: 1.35rem; color: var(--ri-green-800);
}
.timeline-item h3 { font-size: 1.15rem; margin: .15rem 0 .4rem; }

@media (min-width: 992px) {
  .timeline-center::before { left: 50%; transform: translateX(-50%); }
  .timeline-center .timeline-item { width: 50%; padding-left: 0; }
  .timeline-center .timeline-item:nth-child(odd)  { padding-right: 3.4rem; text-align: right; }
  .timeline-center .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 3.4rem; }
  .timeline-center .timeline-item:nth-child(odd) .timeline-dot  { left: auto; right: -1.1rem; }
  .timeline-center .timeline-item:nth-child(even) .timeline-dot { left: -1.05rem; }
  .timeline-center .timeline-item:nth-child(odd) .list-check li { padding-left: 0; padding-right: 1.9rem; }
  .timeline-center .timeline-item:nth-child(odd) .list-check li::before { left: auto; right: 0; }
}

/* ---------- 10. Testimonials ---------- */
.testimonial-card { position: relative; }
.testimonial-card::before {
  content: "\201C"; position: absolute; top: -.6rem; left: 1.4rem;
  font-family: var(--ri-font-display); font-size: 4.6rem; line-height: 1; color: var(--ri-gold-300);
}
.testimonial-card .card-body { padding-top: 2.4rem; }
.testimonial-avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--ri-gold-300); }
.testimonial-name { font-weight: 700; color: var(--ri-ink); font-size: .95rem; }
.testimonial-role { font-size: .8rem; color: var(--ri-gold-700); font-weight: 600; }

/* Scroll-snap slider (no JS library) */
.snap-row {
  display: grid; grid-auto-flow: column; gap: 1.25rem;
  grid-auto-columns: min(85%, 21rem);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--ri-gold-300) transparent;
}
.snap-row > * { scroll-snap-align: start; }
@media (min-width: 768px)  { .snap-row { grid-auto-columns: 21rem; } }

/* ---------- 11. Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--ri-radius); display: block; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.07); }
.gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(7,42,31,.85));
  color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption { opacity: 1; transform: none; }

/* ---------- 12. Forms ---------- */
.form-control, .form-select {
  border-radius: .8rem; border-color: var(--ri-line); padding: .7rem 1rem; background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ri-green-600); box-shadow: 0 0 0 .25rem rgba(26, 116, 85, .15);
}
.form-floating > label { color: #7d8a83; }
.form-panel {
  background: #fff; border: 1px solid var(--ri-line); border-radius: var(--ri-radius-lg);
  box-shadow: var(--ri-shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

/* ---------- 13. Accordion / tabs / tables ---------- */
.accordion-ri .accordion-item { border: 1px solid var(--ri-line); border-radius: var(--ri-radius) !important; overflow: hidden; margin-bottom: .8rem; background: #fff; }
.accordion-ri .accordion-button { font-weight: 600; color: var(--ri-ink); background: #fff; padding: 1.05rem 1.3rem; }
.accordion-ri .accordion-button:not(.collapsed) { background: var(--ri-green-50); color: var(--ri-green-800); box-shadow: none; }
.accordion-ri .accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(26,116,85,.15); }
.accordion-ri .accordion-body { color: var(--ri-body-clr); }

.nav-pills-ri { gap: .5rem; }
.nav-pills-ri .nav-link {
  border-radius: 100px; font-weight: 600; color: var(--ri-green-800);
  border: 1.5px solid var(--ri-green-100); padding: .55rem 1.3rem; background: #fff;
}
.nav-pills-ri .nav-link.active { background: var(--ri-green-800); border-color: var(--ri-green-800); color: #fff; }

.table-ri { --bs-table-bg: #fff; border-radius: var(--ri-radius); overflow: hidden; box-shadow: var(--ri-shadow-sm); }
.table-ri thead { background: var(--ri-green-900); color: #fff; }
.table-ri thead th { font-weight: 600; letter-spacing: .03em; border: 0; padding: .9rem 1.1rem; }
.table-ri tbody td { padding: .85rem 1.1rem; border-color: var(--ri-line); }

.progress { height: .65rem; border-radius: 100px; background: var(--ri-green-50); }
.progress-bar { background: linear-gradient(90deg, var(--ri-green-700), var(--ri-gold)); border-radius: 100px; }

/* ---------- 14. News / blog ---------- */
.news-card .news-meta { font-size: .8rem; font-weight: 600; color: var(--ri-gold-700); letter-spacing: .05em; text-transform: uppercase; }
.news-card .card-title a { color: var(--ri-ink); text-decoration: none; }
.news-card .card-title a:hover { color: var(--ri-green-700); }

.pagination .page-link { color: var(--ri-green-800); border-color: var(--ri-line); border-radius: .6rem; margin-inline: .18rem; font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--ri-green-800); border-color: var(--ri-green-800); }

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--ri-radius-lg);
  background: linear-gradient(120deg, var(--ri-green-900), var(--ri-green-700));
  color: #dcece4; padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  box-shadow: var(--ri-shadow-lg);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--ri-pattern); opacity: .4; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }

/* ---------- 16. Footer ---------- */
.footer-mega { background: var(--ri-green-950); color: #a9c1b6; font-size: .93rem; }
.footer-cta {
  background: linear-gradient(120deg, var(--ri-green-900), var(--ri-green-700));
  border-bottom: 1px solid rgba(230,211,163,.25); padding-block: 2.6rem; color: #d7e6de;
}
.footer-cta-title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: .35rem; }
.footer-main { padding-block: 3.5rem 2.5rem; }
.footer-brand { text-decoration: none; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--ri-font-display); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-brand-tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ri-gold-300); }
.footer-about { margin-top: 1rem; max-width: 24rem; }
.footer-heading { font-family: var(--ri-font-body); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ri-gold-300); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #a9c1b6; text-decoration: none; }
.footer-links a:hover { color: var(--ri-gold-300); }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact .bi { color: var(--ri-gold); margin-top: .2rem; }
.footer-social a {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #d7e6de; font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--ri-gold); color: var(--ri-green-950); transform: translateY(-3px); }
.footer-newsletter { border-top: 1px solid rgba(255,255,255,.09); margin-top: 2.5rem; padding-top: 2.5rem; }
.footer-newsletter .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.footer-newsletter .form-control::placeholder { color: #7f9a8d; }
.footer-newsletter .form-control:focus { background: rgba(255,255,255,.1); border-color: var(--ri-gold); box-shadow: 0 0 0 .25rem rgba(196,154,60,.18); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-block: 1.2rem; font-size: .84rem; color: #7f9a8d; }
.footer-bottom-links a { color: #a9c1b6; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--ri-gold-300); }
.footer-bottom-links .list-inline-item:not(:last-child) { margin-right: 1.2rem; }

/* ---------- 17. Floating actions ---------- */
.floating-actions {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
  display: flex; flex-direction: column; gap: .7rem;
}
.floating-contact, .back-to-top {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  font-size: 1.25rem; border: 0; box-shadow: var(--ri-shadow);
  transition: transform .2s ease, opacity .3s ease, visibility .3s ease;
}
.floating-contact { background: var(--ri-gold); color: var(--ri-green-950); }
.floating-contact:hover { transform: translateY(-3px) scale(1.04); color: var(--ri-green-950); }
.back-to-top { background: var(--ri-green-900); color: #fff; opacity: 0; visibility: hidden; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 18. Reveal animations (JS adds .revealed) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Hero load-in */
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.anim-rise { animation: riseIn .8s ease both; }
.anim-rise-2 { animation: riseIn .8s .15s ease both; }
.anim-rise-3 { animation: riseIn .8s .3s ease both; }
.anim-rise-4 { animation: riseIn .8s .45s ease both; }

/* ---------- 19. Misc ---------- */
.photo-frame { border-radius: var(--ri-radius-lg); box-shadow: var(--ri-shadow-lg); object-fit: cover; width: 100%; }
.photo-offset { position: relative; }
.photo-offset::after {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; z-index: -1;
  border: 2px solid var(--ri-gold-300); border-radius: var(--ri-radius-lg);
}
@media (max-width: 575.98px) { .photo-offset::after { inset: 1rem -0.5rem -1rem 1rem; } }

.ratio-map { border-radius: var(--ri-radius-lg); overflow: hidden; box-shadow: var(--ri-shadow-sm); border: 1px solid var(--ri-line); }

.tooltip-inner { background: var(--ri-green-900); }

.text-balance { text-wrap: balance; }
