/* ==========================================================================
   Rewyra.ai brand layer — loads after the Nexin template styles.
   Implements the Rewyra.ai Brand, Colour & Typography Guide v1.0 (Oct 2026).
   Change brand colours/fonts here; never edit the template CSS directly.
   ========================================================================== */
:root {
  /* Brand (guide §8) */
  --brand-navy: #102C3C;
  --brand-teal: #217E88;
  --brand-teal-hover: #17616A;
  --brand-bronze: #C7A477;
  --brand-aqua: #A6D8D5;
  --surface-white: #FFFFFF;
  --surface-ivory: #F6F4EF;
  --border-subtle: #DCE5E5;
  --text-primary: #102C3C;
  --text-body: #344852;
  --text-secondary: #52636B;
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius-button: 8px;
  --radius-card: 16px;
  --transition-standard: 200ms ease;
  --brand-gradient: linear-gradient(135deg, #102C3C 0%, #17616A 55%, #217E88 100%);

  /* Template variables mapped onto the brand */
  --nexin-font: var(--font-body);
  --nexin-font-two: var(--font-heading);
  --nexin-base: var(--brand-teal);           /* interactive accent */
  --nexin-base-rgb: 33, 126, 136;
  --rw-on-base: #FFFFFF;                      /* text on accent fills */
  --nexin-black: var(--brand-navy);
  --nexin-black-rgb: 16, 44, 60;
  --nexin-gray: var(--text-secondary);
  --nexin-gray-rgb: 82, 99, 107;
  --nexin-primary: var(--surface-ivory);
  --nexin-primary-rgb: 246, 244, 239;
  --nexin-bdr-color: var(--border-subtle);
  --nexin-bdr-color-rgb: 220, 229, 229;
  --rw-ink-soft: var(--text-body);
  --rw-surface: var(--surface-ivory);
}
/* On navy/photo backgrounds teal drops below 4.5:1, so the accent becomes Soft Aqua (≈9:1 on navy). */
.rw-dark, .rw-cta, .page-header, .explore-one, .rw-partners__item--cta, .rw-prose blockquote, .rw-other-caps__link:hover {
  --nexin-base: var(--brand-aqua);
  --nexin-base-rgb: 166, 216, 213;
  --rw-on-base: var(--brand-navy);
}

html { scroll-padding-top: 110px; }
body { color: var(--text-body); font-family: var(--font-body); font-size: 16px; line-height: 1.6; background: var(--surface-white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); letter-spacing: -0.025em; }
img { max-width: 100%; height: auto; }

/* accessibility helpers */
.rw-skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--brand-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-button);
}
.rw-skip-link:focus { top: 12px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand-teal); outline-offset: 3px;
}
.rw-dark a:focus-visible, .rw-cta a:focus-visible, .page-header a:focus-visible, .explore-one a:focus-visible { outline-color: var(--brand-aqua); }
.rw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Logo (approved raster artwork; light backgrounds only) ---------- */
.rw-logo { display: inline-flex; align-items: center; line-height: 0; }
.rw-logo img { height: 46px; width: auto; display: block; }
.stricky-header .rw-logo img { height: 40px; }
.mobile-nav__content .logo-box .rw-logo img { height: 38px; }
.footer-widget-two__logo .rw-logo img { height: 52px; }
@media (max-width: 575px) { .rw-logo img { height: 38px; } }

/* nav */
.main-menu__list > li > a, .main-menu-four .main-menu__list > li > a { white-space: nowrap; }

/* ---------- Typography tweaks ---------- */
.section-title__title { letter-spacing: -0.01em; }
.rw-eyebrow {
  font-family: var(--nexin-font-two); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; color: var(--brand-teal); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.rw-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bronze); }
.rw-lead { font-size: 18px; line-height: 1.65; color: var(--rw-ink-soft); }
.rw-mt-30 { margin-top: 30px; }
.rw-page-title {
  font-size: 56px; color: var(--nexin-white); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 12px;
  font-family: var(--nexin-font-two);
}
@media (max-width: 767px) { .rw-page-title { font-size: 40px; } }
.page-header__bg { background-size: cover; background-position: center; }
.page-header__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,44,60,.88), rgba(16,44,60,.74)); }
.page-header .container { position: relative; z-index: 2; }

/* ---------- Home hero ---------- */
.rw-hero { overflow: hidden; }
.rw-hero .rw-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.rw-hero .container { position: relative; z-index: 2; }
.rw-hero__title { margin: 0; font-weight: inherit; display: block; }
.rw-hero__title > span { display: block; }
.rw-hero .banner-one__content-two { display: flex; }
.rw-hero .banner-one__content-two-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.rw-hero .banner-one__big-title-one,
.rw-hero .banner-one__big-title-two { display: block; color: var(--nexin-black); letter-spacing: -0.03em; font-weight: 500; }
.rw-hero .banner-one__big-title-one { font-size: 180px; }
.rw-hero .banner-one__big-title-two { font-size: 150px; line-height: 1em; }
.rw-hero__pill { display: block; font-family: var(--nexin-font-two); font-size: 22px; line-height: 1.15; font-weight: 600; color: var(--nexin-black); letter-spacing: .02em; }
.rw-hero .banner-one__content-two-single { display: flex; align-items: center; }
.rw-hero__mark { display: flex; align-items: center; justify-content: center; color: var(--nexin-base); }
.rw-hero__mark .rw-symbol { width: 64px; height: auto; }
.rw-hero .banner-one__text-box-one p { font-size: 18px; line-height: 1.6; color: var(--rw-ink-soft); max-width: 460px; }
.rw-hero .banner-one__details-box { justify-content: flex-end; }
.rw-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px; }
.rw-link-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  color: var(--brand-navy); background: transparent; border: 1.5px solid var(--brand-navy); border-radius: var(--radius-button);
  padding: 12px 24px; line-height: 1.4; transition: background var(--transition-standard), color var(--transition-standard);
}
.rw-link-btn:hover { color: var(--brand-navy); background: var(--surface-ivory); }
@media (max-width: 1399px) {
  .rw-hero .banner-one__big-title-one { font-size: 150px; }
  .rw-hero .banner-one__big-title-two { font-size: 120px; }
}
@media (max-width: 1199px) {
  .rw-hero .banner-one__big-title-one { font-size: 120px; }
  .rw-hero .banner-one__big-title-two { font-size: 96px; }
}
@media (max-width: 991px) {
  .rw-hero .banner-one__big-title-one { font-size: 92px; }
  .rw-hero .banner-one__big-title-two { font-size: 72px; }
  .rw-hero .banner-one__content-two { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .rw-hero .banner-one__big-title-one { font-size: 64px; }
  .rw-hero .banner-one__big-title-two { font-size: 50px; }
  .rw-hero__pill { font-size: 16px; }
}
@media (max-width: 400px) {
  .rw-hero .banner-one__big-title-one { font-size: 54px; }
  .rw-hero .banner-one__big-title-two { font-size: 42px; }
}

/* explore image band */
.explore-one__bg { background-size: cover; background-position: center 40%; }

/* platforms row (replaces template brand logos) */
.rw-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.rw-platforms__item {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; transition: all .3s ease;
}
.rw-platforms__item:hover { border-color: var(--nexin-base); background: rgba(255,255,255,.04); }
.rw-platforms__name { font-family: var(--nexin-font-two); font-size: 26px; color: var(--nexin-white); font-weight: 500; }
.rw-platforms__kind { font-size: 14px; color: rgba(255,255,255,.75); }
.rw-flywheel { padding-top: 40px; }
@media (max-width: 767px) { .rw-platforms { grid-template-columns: 1fr; } }

/* home solutions list */
.rw-solutions-home { padding-bottom: 120px; }
.rw-solution-list { margin: 0; padding: 0; border-top: 1px solid var(--nexin-bdr-color); }
.rw-solution-list li { border-bottom: 1px solid var(--nexin-bdr-color); }
.rw-solution-list__item { display: flex; align-items: center; gap: 28px; padding: 26px 8px; color: var(--nexin-black); transition: all var(--transition-standard); }
.rw-solution-list__num { font-family: var(--nexin-font-two); font-size: 16px; color: var(--nexin-gray); min-width: 28px; }
.rw-solution-list__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rw-solution-list__title { font-family: var(--nexin-font-two); font-size: 24px; font-weight: 600; line-height: 1.2; }
.rw-solution-list__text { font-size: 16px; color: var(--nexin-gray); }
.rw-solution-list__arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--nexin-bdr-color);
  display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .3s ease; flex: 0 0 52px;
}
.rw-solution-list__item:hover { color: var(--brand-teal); }
.rw-solution-list__item:hover .rw-solution-list__arrow { background: var(--nexin-base); border-color: var(--nexin-base); color: var(--rw-on-base); }
@media (max-width: 1199px) { .rw-solution-list { margin-top: 50px; } }
@media (max-width: 575px) {
  .rw-solution-list__item { gap: 14px; }
  .rw-solution-list__title { font-size: 22px; }
  .rw-solution-list__arrow { width: 40px; height: 40px; flex-basis: 40px; }
}
.portfolio-one__list-title h4 small { font-size: .6em; color: var(--nexin-gray); font-family: var(--nexin-font); font-weight: 400; }
.portfolio-one__img img, .portfolio-one__img-2 img, .why-choose-one__img-1 img { width: 100%; object-fit: cover; }
.portfolio-one__img img { aspect-ratio: 3 / 4; }
.portfolio-one__img-2 img { aspect-ratio: 1 / 1; }
.why-choose-one__img-1 img { aspect-ratio: 16 / 10; border-radius: 14px; }
.blog-one__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- CTA band (above footer) ---------- */
.rw-cta { background: var(--brand-gradient); padding: 104px 0 96px; position: relative; }
.rw-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  }
.rw-cta__title { font-size: 44px; line-height: 1.15; color: var(--nexin-white); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.rw-cta__text { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 0; }
@media (max-width: 767px) { .rw-cta { padding: 64px 0; } .rw-cta__title { font-size: 32px; } }
.site-footer-two { margin-top: 0; }
.rw-footer-pitch { color: var(--text-secondary); margin: 22px 0 26px; max-width: 340px; }
.footer-widget-two__place-text a { color: inherit; }
.footer-widget-two__place-text a:hover { color: var(--nexin-base); }

/* ---------- Capabilities ---------- */
.rw-intro { padding-bottom: 0; }
.rw-intro .services-details__top { margin-bottom: 0; }
.rw-cap-grid { padding-top: 60px; }
.rw-cap-grid .services-three__single { border-color: var(--nexin-bdr-color); border-radius: 16px; }
.rw-cap-grid .services-three__single:hover .rw-mini-list li, .rw-cap-grid .services-three__single:hover .services-three__text strong { color: rgba(255,255,255,.8); }
.rw-mini-list { margin: 18px 0 24px; padding: 0; }
.rw-mini-list li { position: relative; padding-left: 18px; font-size: 15px; margin-bottom: 6px; }
.rw-mini-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--nexin-base); }
.services-details__img img, .portfolio-details__img img, .about-four__img-1 img, .blog-details__img img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px;
}
.blog-details__img img { aspect-ratio: 16 / 9; }
.services-details__img-box-img img, .services-details__img-box-img-2 img,
.portfolio-details__img-box-img-1 img, .portfolio-details__img-box-img-2 img {
  width: 100%; height: 420px; object-fit: cover; border-radius: 16px;
}
.about-four__bottom-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.rw-service-cards { margin: 10px 0 50px; row-gap: 24px; }
.rw-service-card { height: 100%; border: 1px solid var(--nexin-bdr-color); border-radius: 16px; padding: 32px; transition: all var(--transition-standard); background: var(--nexin-white); }
.rw-service-card:hover { border-color: var(--brand-aqua); box-shadow: 0 12px 32px rgba(16,44,60,.08); transform: translateY(-3px); }
.rw-service-card__num { font-family: var(--nexin-font-two); color: var(--nexin-gray); font-size: 14px; }
.rw-service-card__title { font-size: 22px; font-weight: 600; margin: 10px 0 10px; }
.rw-service-card__text { margin: 0; }
.rw-points { columns: 1; }
.rw-points li p { color: var(--rw-ink-soft); font-size: 17px; }
.services-details__points-box .rw-points, .portfolio-details__points-box .rw-points { width: 100%; }
.rw-related { padding-top: 0; }
.rw-related .section-title { margin-bottom: 40px; }
.rw-other-caps { padding: 0 0 120px; }
.rw-other-caps__inner { border-top: 1px solid var(--nexin-bdr-color); padding-top: 50px; }
.rw-other-caps__links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rw-other-caps__link {
  display: flex; align-items: center; gap: 20px; padding: 26px 30px; border-radius: 16px; background: var(--rw-surface);
  color: var(--nexin-gray); transition: all .3s ease;
}
.rw-other-caps__link strong { font-family: var(--nexin-font-two); font-size: 22px; color: var(--nexin-black); font-weight: 600; }
.rw-other-caps__link > span:first-child { font-size: 40px; color: var(--brand-teal); }
.rw-other-caps__link > span:nth-child(2) { flex: 1; }
.rw-other-caps__link:hover { background: var(--nexin-black); color: rgba(255,255,255,.85); }
.rw-other-caps__link:hover strong, .rw-other-caps__link:hover > span:first-child { color: var(--nexin-base); }
@media (max-width: 767px) { .rw-other-caps__links { grid-template-columns: 1fr; } }

/* ---------- Solutions page ---------- */
.rw-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rw-jump a, .rw-filter a, .rw-filter button {
  border: 1px solid var(--nexin-bdr-color); border-radius: 999px; padding: 8px 18px; font-size: 15px;
  color: var(--nexin-black); background: transparent; transition: all var(--transition-standard); line-height: 1.4;
}
.rw-jump a:hover, .rw-filter a:hover, .rw-filter button:hover,
.rw-filter .is-active { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.rw-solution { padding: 112px 0; }
.rw-solution--alt { background: var(--rw-surface); }
.rw-solution__img { position: relative; }
.rw-solution__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.rw-solution__num {
  position: absolute; left: 24px; bottom: 24px; width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand-navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--nexin-font-two); font-size: 28px; font-weight: 700; box-shadow: 0 0 0 4px var(--brand-bronze);
}
.rw-solution__content { padding-left: 30px; }
.flex-row-reverse .rw-solution__content { padding-left: 0; padding-right: 30px; }
.rw-solution__title { font-size: 44px; font-weight: 700; line-height: 1.15; margin: 10px 0 12px; }
.rw-solution__summary { font-size: 18px; color: var(--nexin-black); margin-bottom: 26px; }
.rw-solution__label { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--nexin-black); margin: 22px 0 6px; font-family: var(--nexin-font-two); font-weight: 500; }
.rw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; }
.rw-tags li { background: var(--nexin-white); border: 1px solid var(--nexin-bdr-color); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--nexin-black); }
.rw-solution__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.rw-solution__caps { font-size: 15px; }
.rw-solution__caps a { color: var(--nexin-black); text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 991px) {
  .rw-solution { padding: 80px 0; }
  .rw-solution__content, .flex-row-reverse .rw-solution__content { padding: 0; }
  .rw-solution__title { font-size: 32px; }
}
.rw-faq { padding-top: 120px; }

/* ---------- Work ---------- */
.rw-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.rw-section-head .section-title { margin-bottom: 0; }
.rw-section-head__text { max-width: 480px; margin: 0; }
.portfolio-page__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rw-card-text { margin: 18px 0 10px; }
.rw-ext-link { font-family: var(--nexin-font-two); font-weight: 600; color: var(--brand-teal); font-size: 15px; }
.rw-ext-link:hover { color: var(--brand-teal-hover); text-decoration: underline; text-decoration-color: var(--nexin-base); text-decoration-thickness: 2px; }
.rw-case-section { padding: 112px 0; background: var(--rw-surface); }
.rw-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.rw-case-card {
  display: flex; flex-direction: column; height: 100%; background: var(--nexin-white); border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--nexin-bdr-color); transition: all var(--transition-standard); color: var(--nexin-gray);
}
.rw-case-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(16,44,60,.08); color: var(--nexin-gray); }
.rw-case-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rw-case-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px; flex: 1; }
.rw-case-card__cat { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-teal); }
.rw-case-card__title { font-family: var(--nexin-font-two); font-size: 22px; line-height: 1.3; color: var(--nexin-black); font-weight: 600; }
.rw-case-card__caps { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.rw-case-card__caps em { font-style: normal; font-size: 13px; background: rgba(166, 216, 213, .45); color: var(--nexin-black); padding: 3px 10px; border-radius: 999px; }
.rw-case-grid > [hidden] { display: none !important; }
.rw-partners { padding: 120px 0; }
.rw-partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rw-partners__item {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 140px; padding: 26px; border-radius: 16px;
  border: 1px dashed var(--nexin-bdr-color); transition: all .3s ease;
}
.rw-partners__item:hover { border-style: solid; border-color: var(--nexin-black); }
.rw-partners__name { font-family: var(--nexin-font-two); font-size: 22px; color: var(--nexin-black); font-weight: 600; }
.rw-partners__kind { font-size: 14px; color: var(--nexin-gray); }
.rw-partners__item--cta { background: var(--nexin-black); border-color: var(--nexin-black); border-style: solid; }
.rw-partners__item--cta .rw-partners__name { color: var(--nexin-base); }
.rw-partners__item--cta .rw-partners__kind { color: rgba(255,255,255,.85); }
@media (max-width: 991px) { .rw-partners__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .rw-partners__grid { grid-template-columns: 1fr; } }

/* case study facts */
.rw-facts li { display: flex; flex-direction: column; gap: 2px; }
.rw-facts li span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--nexin-gray); }
.rw-facts li p { color: var(--nexin-black); margin: 0; display: block; font-size: 18px; }
.rw-facts li p a { color: var(--brand-teal); text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; }

/* prose (markdown bodies) */
.rw-prose { font-size: 18px; line-height: 1.7; color: var(--rw-ink-soft); }
.rw-prose h2 { font-size: 30px; font-weight: 600; margin: 40px 0 14px; }
.rw-prose h3 { font-size: 22px; font-weight: 600; margin: 30px 0 12px; }
.rw-prose p { margin-bottom: 18px; }
.rw-prose ul, .rw-prose ol { margin: 0 0 22px; padding-left: 22px; }
.rw-prose li { margin-bottom: 8px; }
.rw-prose a { color: var(--brand-teal); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rw-prose strong { color: var(--nexin-black); }
.rw-prose blockquote {
  margin: 32px 0; padding: 28px 32px; background: var(--surface-ivory); color: var(--brand-navy); border-radius: var(--radius-card);
  font-family: var(--nexin-font-two); font-size: 24px; font-weight: 600; line-height: 1.35; border-left: 4px solid var(--brand-bronze);
}
.rw-prose blockquote p { margin: 0; }

/* ---------- Insights ---------- */
.blog-two__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.blog-two__comment a { color: inherit; }
.rw-filter--links { margin-bottom: 50px; }
.blog-details__tag-list span {
  display: inline-block; font-size: 14px; padding: 4px 14px; border-radius: 999px; background: var(--rw-surface);
  color: var(--nexin-black); margin: 0 6px 6px 0;
}
.blog-details__title-1 { font-size: 44px; font-weight: 700; line-height: 1.15; }
@media (max-width: 767px) { .blog-details__title-1 { font-size: 32px; } }
.rw-author { display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: 16px; background: var(--rw-surface); margin-top: 40px; }
.rw-author__avatar .rw-symbol { width: 60px; height: auto; display: block; }
.rw-author__name { font-family: var(--nexin-font-two); color: var(--nexin-black); font-size: 20px; margin: 0; }
.rw-author__bio { margin: 0; }
.sidebar__post-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.rw-sidebar-text { margin-bottom: 20px; }

/* ---------- About ---------- */
.rw-principles .about-four__count-text { font-family: var(--nexin-font-two); font-weight: 700; font-size: 26px; color: var(--nexin-black); }
.rw-careers { padding: 0 0 120px; }
.rw-careers__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 56px; border-radius: var(--radius-card); background: var(--brand-gradient);
}
.rw-careers__inner .rw-eyebrow { color: var(--brand-aqua); }
.rw-careers__title { font-size: 44px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.rw-careers__inner p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0; }
@media (max-width: 767px) { .rw-careers__inner { padding: 32px 24px; } .rw-careers__title { font-size: 32px; } }
.rw-partners--about { padding-top: 40px; }

/* ---------- Contact ---------- */
.rw-contact-aside img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 30px; }
.rw-contact-aside h3 { font-size: 28px; margin-bottom: 16px; }
.rw-steps { padding-left: 20px; }
.rw-steps li { margin-bottom: 12px; }
.rw-steps strong { color: var(--nexin-black); }
.rw-select {
  width: 100%; height: 60px; border: 1px solid var(--nexin-bdr-color); border-radius: 10px; padding: 0 20px;
  background: var(--nexin-white); color: var(--nexin-black); font-size: 16px; appearance: auto;
}
.rw-form-note { font-size: 14px; margin-top: 12px; }
.rw-alert { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.rw-alert--ok { background: rgba(166, 216, 213, .45); color: var(--nexin-black); }
.rw-alert--error { background: #fdecea; color: #8a1c12; }
.contact-page__bottom-right label.error { color: #b3261e; font-size: 13px; margin-top: 4px; display: block; }
.rw-social { display: flex; gap: 12px; }
.rw-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--nexin-bdr-color); display: flex; align-items: center; justify-content: center; color: var(--nexin-black); }

/* ---------- 404 ---------- */
.rw-404 { font-family: var(--nexin-font-two); font-size: 160px; line-height: 1; color: var(--brand-teal); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.04em; }
.rw-404-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rw-hero .rw-network { display: none; }
}

/* The template title-cases body copy; Rewyra copy is written in sentence case. */
.about-four__bottom-text-1, .about-four__bottom-text-2, .about-four__count-list-text, .about-four__text,
.about-four__title-1, .about-four__top-text, .about-four__top-title, .about-one__text, .about-one__title,
.blog-details__title-1, .blog-one__text, .blog-one__title, .blog-two__title, .contact-one__text, .contact-page__top-title,
.error-page__title, .faq-one__inner .faq-one-accrodion .accrodion-content p,
.faq-one__inner .faq-one-accrodion .accrodion-title h4, .footer-widget__text, .portfolio-one__text,
.portfolio-details__top-title, .services-details__points-list li p, .services-details__top-title,
.service-one__text, .service-one__top-text, .services-three__text, .why-choose-one__text-1, .sidebar__post-title,
.rw-page-title, .portfolio-details__points li p { text-transform: none; }
.blog-one__shape-1 { display: none; }

/* ==========================================================================
   Brand guide v1.0 — template component overrides
   ========================================================================== */

/* Buttons (§5): teal fill, white text, 8px radius, quiet 200ms colour change */
.thm-btn, .footer-widget__btn a {
  background-color: var(--nexin-base); color: var(--rw-on-base); border-radius: var(--radius-button);
  font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: 0;
  padding: 13px 26px; transition: background-color var(--transition-standard), color var(--transition-standard);
}
.thm-btn span, .footer-widget__btn a span { font-size: 15px; font-weight: 600; }
.thm-btn::before, .thm-btn::after, .footer-widget__btn a::before, .footer-widget__btn a::after { display: none !important; }
.thm-btn:hover, .thm-btn:focus-visible, .footer-widget__btn a:hover { background-color: var(--brand-teal-hover); color: #fff; }
.rw-dark .thm-btn:hover, .rw-cta .footer-widget__btn a:hover, .page-header .thm-btn:hover { background-color: #fff; color: var(--brand-navy); }
.main-menu-four__btn-box .thm-btn:hover { color: #fff; }

/* Headings: guide weights and tighter tracking (template uses 400–500) */
.section-title__title, .services-details__top-title, .portfolio-details__top-title, .about-four__top-title,
.contact-page__top-title, .error-page__title, .faq-one__inner .faq-one-accrodion .accrodion-title h4 {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary);
}
.section-title__title { font-size: 44px; line-height: 1.15; }
@media (max-width: 767px) { .section-title__title { font-size: 32px; } .rw-page-title { font-size: 40px; } }
.section-title__tagline { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-teal); }
.section-title__tagline-shape { background-color: var(--brand-bronze); }
.service-one__title, .services-three__title, .portfolio-one__list-title h4, .portfolio-page__title, .blog-one__title,
.blog-two__title, .sidebar__title, .why-choose-one__title, .process-one__title, .about-one__title {
  font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em;
}

/* Inner header: a solid white bar so the full-colour logo sits on a light background (§2) */
.main-menu-four__wrapper-inner {
  background-color: var(--surface-white); border-radius: var(--radius-card); box-shadow: 0 8px 30px rgba(16,44,60,.12);
}
.stricky-header.main-menu-four, .stricky-header .main-menu-four__wrapper-inner { background-color: var(--surface-white); }
.stricky-header.main-menu-four { box-shadow: 0 4px 20px rgba(16,44,60,.08); }
.stricky-header .main-menu-four__wrapper-inner { box-shadow: none; border-radius: 0; }
.main-menu-four .main-menu__list > li > a, .stricky-header.main-menu-four .main-menu__list > li > a,
.main-menu-four .main-menu__list > li.dropdown > a:after { color: var(--brand-navy); }
.main-menu-four .main-menu__list > li.current > a, .main-menu-four .main-menu__list > li:hover > a,
.stricky-header.main-menu-four .main-menu__list > li.current > a, .stricky-header.main-menu-four .main-menu__list > li:hover > a,
.main-menu-four .main-menu__list > li.current > a::after, .main-menu-four .main-menu__list > li:hover > a::after { color: var(--brand-teal); }
.main-menu .main-menu__list > li > a { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.main-menu .mobile-nav__toggler { color: var(--brand-navy); font-size: 22px; }
.main-menu .mobile-nav__toggler:hover { color: var(--brand-teal); }
.main-menu__list > li > ul > li > a { font-family: var(--font-body); }

/* Footer: ivory, so the full-colour logo stays on a light background */
.site-footer-two { background-color: var(--surface-ivory); border-top: 1px solid var(--border-subtle); }
.site-footer-two, .site-footer-two p, .site-footer-two a, .site-footer-two li, .site-footer-two span:not([class^="icon-"]) { color: var(--text-secondary); }
.site-footer-two h2, .site-footer-two h3, .site-footer-two h4, .site-footer-two .footer-widget-two__title { color: var(--text-primary); font-family: var(--font-heading); font-weight: 700; }
.site-footer-two a:hover, .footer-widget-two__place-text a:hover { color: var(--brand-teal); }
.site-footer-two [class*="__bottom"] { border-color: var(--border-subtle); }

/* Mobile menu: light panel, matching the header */
.mobile-nav__content { background-color: var(--surface-white); }
.mobile-nav__content .main-menu__list > li > a, .mobile-nav__content .main-menu__list > li > ul > li > a,
.mobile-nav__content .main-menu__list > li > ul > li > ul > li > a { color: var(--brand-navy); border-color: var(--border-subtle); font-family: var(--font-heading); font-weight: 600; }
.mobile-nav__content .main-menu__list li a.expanded, .mobile-nav__content .main-menu__list > li > a[aria-current] { color: var(--brand-teal); }
.mobile-nav__content .main-menu__list > li > a > button, .mobile-nav__content .main-menu__list > li > ul > li > a > button {
  background-color: var(--brand-teal); color: #fff;
}
.mobile-nav__content .main-menu__list > li > a > button.expanded { background-color: var(--brand-navy); color: #fff; }
.mobile-nav__close { color: var(--brand-navy); }
.mobile-nav__content .main-menu__list li:not(:last-child) { border-bottom-color: var(--border-subtle); }
.mobile-nav__contact li, .mobile-nav__contact li a { color: var(--text-secondary); }
.mobile-nav__contact li > i { background-color: var(--brand-teal); color: #fff; }
.mobile-nav__overlay { background-color: var(--brand-navy); }

/* Accent fills that carried dark text on lime now carry white text on teal */
.portfolio-one__arrow > a:hover, .portfolio-page__arrow a:hover, .sidebar__search-form:hover button[type="submit"],
.chat-icon button, .blog-three__date p { color: var(--rw-on-base); }
.scroll-to-top__wrapper { background-color: var(--brand-teal); }
.scroll-to-top__inner { color: #fff; }

/* Home hero (§4 type scale: 64px desktop / 40px mobile) */
.rw-hero .banner-one__big-title-one, .rw-hero .banner-one__big-title-two {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--brand-navy);
}
.rw-hero__pill { font-family: var(--font-heading); font-weight: 700; color: var(--brand-navy); letter-spacing: 0; }
.rw-hero .banner-one__content-two-single { background-color: var(--brand-teal); }
.rw-hero .banner-one__content-two-single .rw-hero__pill { color: #fff; }
.rw-hero__mark { background-color: var(--surface-ivory) !important; border: 1px solid var(--border-subtle); }

/* Heading weights per guide §4 (template classes default to 400–500) */
main h2[class*="title"] { font-weight: 700; }
main h3[class*="title"], main h4[class*="title"] { font-weight: 600; }

/* Inner header bar keeps a gutter at every width so its rounded corners never touch the viewport edge */
@media (max-width: 1599px) { .main-menu-four__wrapper-inner { margin: 0 24px; } }
@media (max-width: 767px) { .main-header-four { top: 12px; } .main-menu-four__wrapper-inner { margin: 0 12px; padding: 0 16px; } }
.stricky-header .main-menu-four__wrapper-inner { margin: 0; }

/* Template sets dark text on several button wrappers; keep text on accent fills legible */
.thm-btn, .thm-btn span, .footer-widget__btn a, .footer-widget__btn a span { color: var(--rw-on-base) !important; }
.thm-btn:hover, .thm-btn:hover span, .footer-widget__btn a:hover, .footer-widget__btn a:hover span { color: #fff !important; }
.rw-dark .thm-btn:hover, .rw-dark .thm-btn:hover span, .rw-cta .footer-widget__btn a:hover, .rw-cta .footer-widget__btn a:hover span,
.page-header .thm-btn:hover, .page-header .thm-btn:hover span { color: var(--brand-navy) !important; }
.footer-widget__btn a { width: auto; height: auto; border-radius: var(--radius-button); }
.rw-careers__inner { --nexin-base: var(--brand-aqua); --rw-on-base: var(--brand-navy); }
.rw-careers .thm-btn:hover, .rw-careers .thm-btn:hover span { background-color: #fff; color: var(--brand-navy) !important; }

/* Footer bottom bar on ivory */
.site-footer-two__bottom-text, .site-footer-two__bottom-text a, .site-footer-two__bottom-menu li a { color: var(--text-secondary); }
.site-footer-two__bottom-text a:hover, .site-footer-two__bottom-menu li a:hover { color: var(--brand-teal); }
.site-footer-two__bottom-menu li span { background-color: var(--border-subtle); }
.blog-details__title-1 { margin-bottom: 20px; }
/* Small teal labels can sit on ivory, where #217E88 is 4.3:1; the darker teal clears AA on both surfaces */
.section-title__tagline, .rw-eyebrow { color: var(--brand-teal-hover); }

/* Hero: below 1400px the template pins the intro + buttons over the headline's line; Manrope's wider
   "We Help" collides with it, so put them in normal flow under the headline instead. */
@media (max-width: 1399px) {
  .rw-hero .banner-one__details-box {
    position: static; max-width: 640px; margin: 40px 0 0; justify-content: flex-start; align-items: flex-start;
  }
}
/* ≥1400px keeps the side-by-side layout; trim the first line so there's a clear gap to the intro text */
@media (min-width: 1400px) and (max-width: 1919px) {
  .rw-hero .banner-one__big-title-one { font-size: 140px; }
}

/* ==========================================================================
   Community section (/community and sub-pages)
   ========================================================================== */
.rw-section { padding: 112px 0; }
.rw-section--ivory { background: var(--surface-ivory); }
.rw-section--flush { padding: 0 0 112px; }
@media (max-width: 767px) { .rw-section { padding: 64px 0; } .rw-section--flush { padding-bottom: 64px; } }
.rw-h2 { font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 18px; }
.rw-h3 { font-size: 24px; font-weight: 600; margin: 0 0 20px; }
@media (max-width: 767px) { .rw-h2 { font-size: 32px; } }
.rw-mt-60 { margin-top: 60px; }
.rw-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.rw-text-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--brand-teal-hover); }
.rw-text-link:hover { color: var(--brand-navy); text-decoration: underline; text-underline-offset: 4px; }
.rw-dark .rw-text-link { color: var(--brand-aqua); }
.rw-dark .rw-text-link:hover { color: #fff; }
.rw-link-btn--light { color: #fff; border-color: rgba(255,255,255,.7); }
.rw-link-btn--light:hover { color: var(--brand-navy); background: #fff; border-color: #fff; }
.rw-address { display: flex; gap: 10px; align-items: baseline; font-weight: 600; color: var(--brand-navy); margin-top: 18px; }
.rw-address span { color: var(--brand-teal); }
.rw-rounded { border-radius: var(--radius-card); width: 100%; height: auto; }
.rw-label { display: block; font-size: 14px; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.rw-dark { color: rgba(255,255,255,.88); }
.rw-dark h1, .rw-dark h2, .rw-dark h3, .rw-dark .rw-h2 { color: #fff; }
.rw-dark .rw-eyebrow { color: var(--brand-aqua); }

/* CTA band with several buttons */
.rw-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.rw-chero { background: var(--brand-gradient); padding: 220px 0 120px; overflow: hidden; }
.rw-chero__title { font-size: 64px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 22px; }
.rw-chero__text { font-size: 18px; line-height: 1.65; max-width: 560px; }
.rw-chero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.rw-chero__photos { position: relative; height: 460px; margin-top: 20px; }
.rw-chero__photo { position: absolute; border-radius: var(--radius-card); object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rw-chero__photo--1 { width: 62%; aspect-ratio: 3 / 2; top: 0; right: 0; }
.rw-chero__photo--2 { width: 56%; aspect-ratio: 16 / 10; bottom: 0; left: 0; border: 4px solid var(--brand-navy); }
.rw-chero__photo--3 { width: 40%; aspect-ratio: 3 / 2; bottom: 30px; right: 4%; border: 4px solid var(--brand-navy); }
@media (max-width: 991px) {
  .rw-chero { padding: 170px 0 72px; }
  .rw-chero__title { font-size: 48px; }
  .rw-chero__photos { height: 360px; margin-top: 48px; }
}
@media (max-width: 575px) {
  .rw-chero__title { font-size: 40px; }
  .rw-chero__photos { height: 260px; }
}

/* Pillars */
.rw-pillars { row-gap: 24px; margin-top: 10px; }
.rw-pillar { height: 100%; padding: 36px 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: #fff; display: flex; flex-direction: column; gap: 4px; }
.rw-pillar__icon { width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--brand-teal); background: rgba(166,216,213,.35); margin-bottom: 18px; }
.rw-pillar__num { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--brand-bronze); margin-bottom: 10px; }
.rw-pillar__title { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.rw-pillar p { margin-bottom: 12px; }
.rw-pillar__note { font-weight: 600; color: var(--brand-navy); }
.rw-pillar .rw-text-link { margin-top: auto; }

/* DNEXA feature */
.rw-dnexa { position: relative; overflow: hidden; padding: 112px 0; background: linear-gradient(140deg, #0B1F2B 0%, #102C3C 60%, #17414F 100%); }
.rw-dnexa .container { position: relative; z-index: 2; }
.rw-dnexa__mark { position: absolute; right: -140px; top: -80px; width: 560px; opacity: .08; pointer-events: none; z-index: 1; }
.rw-dnexa__brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rw-dnexa__wordmark { width: 167px; height: auto; }
.rw-dnexa__by { font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-navy); background: var(--brand-aqua); padding: 5px 12px; border-radius: 999px; }
.rw-dnexa__text { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.88); }
.rw-dnexa__facts { display: grid; gap: 0; margin: 26px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.rw-dnexa__facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.rw-dnexa__facts dt { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-aqua); }
.rw-dnexa__facts dd { margin: 0; color: #fff; }
.rw-dnexa__facts--light { border-color: var(--border-subtle); margin: 40px 0 0; }
.rw-dnexa__facts--light > div { border-color: var(--border-subtle); }
.rw-dnexa__facts--light dt { color: var(--brand-teal-hover); }
.rw-dnexa__facts--light dd { color: var(--brand-navy); }
.rw-dnexa__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rw-dnexa__mosaic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.rw-dnexa__mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 575px) { .rw-dnexa__facts > div { grid-template-columns: 1fr; gap: 2px; } .rw-dnexa { padding: 64px 0; } }
.rw-dnexa-panel { position: relative; overflow: hidden; padding: 40px; border-radius: var(--radius-card); background: linear-gradient(140deg, #0B1F2B, #17414F); min-height: 360px; }
.rw-dnexa-panel .rw-dnexa__by { display: inline-block; margin: 16px 0 0; }
.rw-dnexa-panel__mark { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .9; }
.rw-dnexa-panel__next { position: relative; margin-top: 90px; max-width: 260px; padding: 18px 20px; border-radius: 12px; background: rgba(11,31,43,.82); backdrop-filter: blur(4px); }
.rw-dnexa-panel__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-aqua); margin: 0; }
.rw-dnexa-panel__date { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #fff; margin: 4px 0; }
.rw-dnexa-panel__next p { color: rgba(255,255,255,.88); }

/* Ecosystem cards */
.rw-eco-grid { row-gap: 24px; margin-top: 10px; }
.rw-eco-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 32px 28px; border-radius: var(--radius-card); border: 1px solid var(--border-subtle); background: #fff; color: var(--text-body); transition: border-color var(--transition-standard), box-shadow var(--transition-standard), transform var(--transition-standard); }
a.rw-eco-card:hover { color: var(--text-body); border-color: var(--brand-aqua); box-shadow: 0 12px 32px rgba(16,44,60,.08); transform: translateY(-3px); }
.rw-eco-card__icon { font-size: 26px; color: var(--brand-teal); margin-bottom: 8px; }
.rw-eco-card__title { font-size: 21px; font-weight: 600; margin: 0; }
.rw-eco-card p { margin: 0; }
.rw-eco-card .rw-text-link { margin-top: auto; padding-top: 10px; }
.rw-eco__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 14px; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: var(--brand-teal); margin-bottom: 22px; }
.rw-eco { scroll-margin-top: 100px; }

/* Venue */
.rw-venue-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.rw-venue-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
.rw-venue-mosaic img:first-child { grid-row: 1 / 3; aspect-ratio: auto; min-height: 320px; }
.rw-space-card { height: 100%; border-radius: var(--radius-card); overflow: hidden; background: #fff; border: 1px solid var(--border-subtle); }
.rw-space-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rw-space-card__body { padding: 22px 24px 24px; }
.rw-space-card__title { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.rw-space-card__body p { margin: 0; }
.rw-space-card--info { padding: 28px; background: var(--brand-navy); border-color: var(--brand-navy); color: rgba(255,255,255,.88); }
.rw-space-card--info .rw-space-card__title { color: #fff; }
.rw-space-card--info .rw-mini-list li::before { background: var(--brand-aqua); }
.rw-space-card--info strong { color: #fff; }
.rw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rw-gallery figure { margin: 0; }
.rw-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.rw-gallery--dnexa { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rw-map { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-navy); margin: 24px 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.rw-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.rw-map .thm-btn, .rw-map__note { position: relative; }
.rw-map__note { color: #fff; font-size: 14px; margin: 0; }
.rw-map iframe { width: 100%; height: 100%; border: 0; }

/* Events */
.rw-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.rw-event-grid--two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 400px) { .rw-event-grid, .rw-event-grid--two { grid-template-columns: 1fr; } }
.rw-event-grid > [hidden], .rw-month[hidden], .rw-month__event[hidden] { display: none !important; }
.rw-event-card { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; background: #fff; border: 1px solid var(--border-subtle); transition: box-shadow var(--transition-standard), transform var(--transition-standard); }
.rw-event-card:hover { box-shadow: 0 12px 32px rgba(16,44,60,.08); transform: translateY(-3px); }
.rw-event-card--featured { border-color: var(--brand-bronze); box-shadow: inset 0 4px 0 var(--brand-bronze); }
.rw-event-card__img { position: relative; display: block; }
.rw-event-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rw-event-card__date { position: absolute; left: 16px; top: 16px; width: 64px; padding: 8px 0; border-radius: 10px; background: #fff; text-align: center; font-family: var(--font-heading); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--brand-teal-hover); line-height: 1.1; box-shadow: 0 6px 18px rgba(16,44,60,.15); }
.rw-event-card__date strong { display: block; font-size: 24px; color: var(--brand-navy); }
.rw-event-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.rw-event-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rw-event-card__title { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0; }
.rw-event-card__title a { color: var(--brand-navy); }
.rw-event-card__title a:hover { color: var(--brand-teal-hover); }
.rw-event-card__facts { margin: 0; font-size: 15px; display: grid; gap: 4px; }
.rw-event-card__facts span { color: var(--brand-teal); width: 18px; display: inline-block; }
.rw-event-card__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 8px; }
.rw-chip { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: rgba(166,216,213,.45); color: var(--brand-navy); }
.rw-chip--bronze { background: rgba(199,164,119,.3); color: #5C4423; }
.rw-chip--alert { background: #fdecea; color: #8a1c12; }
a.rw-chip--link:hover { background: var(--brand-aqua); color: var(--brand-navy); }
.rw-empty { padding: 40px; border: 1px dashed var(--border-subtle); border-radius: var(--radius-card); text-align: center; background: #fff; }
.rw-empty p { margin: 0 0 18px; }
.rw-empty--compact { padding: 24px; text-align: left; }
.rw-empty--compact p { margin-bottom: 10px; }
.rw-events-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 36px; }
.rw-events-toolbar .rw-filter { margin: 0; }
.rw-view-toggle { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: var(--radius-button); overflow: hidden; }
.rw-view-toggle button { border: 0; background: #fff; padding: 9px 16px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--brand-navy); display: inline-flex; gap: 8px; align-items: center; }
.rw-view-toggle button + button { border-left: 1px solid var(--border-subtle); }
.rw-view-toggle button.is-active { background: var(--brand-navy); color: #fff; }
.rw-filter button[aria-pressed] { cursor: pointer; }
.rw-month { margin-bottom: 48px; }
.rw-month__title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.rw-month__grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.rw-month__grid th { font-family: var(--font-heading); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); padding: 8px; text-align: left; }
.rw-month__grid td { vertical-align: top; height: 110px; padding: 8px; border: 1px solid var(--border-subtle); background: #fff; }
.rw-month__grid td.is-out { background: var(--surface-ivory); }
.rw-month__grid td.has-events { background: rgba(166,216,213,.18); }
.rw-month__day { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--brand-navy); margin-bottom: 6px; }
.rw-month__event { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; padding: 5px 7px; border-radius: 6px; background: var(--brand-teal); color: #fff; margin-bottom: 4px; overflow-wrap: anywhere; }
.rw-month__event:hover { background: var(--brand-teal-hover); color: #fff; }
@media (max-width: 767px) {
  .rw-month__grid td { height: 64px; padding: 4px; }
  .rw-month__grid th { padding: 4px; font-size: 11px; }
  .rw-month__event { font-size: 0; height: 8px; padding: 0; border-radius: 4px; }
  .rw-month__event::after { content: ""; }
  .rw-month__day { font-size: 13px; }
}
.rw-event-hero img { width: 100%; height: auto; border-radius: var(--radius-card); margin-bottom: 24px; }
.rw-event-past-note { padding: 14px 18px; border-radius: 10px; background: var(--surface-ivory); border-left: 4px solid var(--brand-bronze); margin: 16px 0 0; }
.rw-event-past-note a { color: var(--brand-teal-hover); text-decoration: underline; }
.rw-event-hero + .rw-event-card__meta { margin-bottom: 24px; }
.rw-event-aside { position: sticky; top: 120px; padding: 32px; border-radius: var(--radius-card); background: var(--surface-ivory); }
.rw-event-aside__title { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.rw-event-aside__list { margin: 0; }
.rw-event-aside__list > div { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.rw-event-aside__list dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-teal-hover); }
.rw-event-aside__list dd { margin: 2px 0 0; color: var(--brand-navy); font-weight: 500; }
.rw-event-aside__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.rw-event-aside__actions [hidden] { display: none !important; }

/* EdgeMaker */
.rw-em__subtitle { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--brand-teal-hover); margin: -6px 0 18px; }
.rw-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.rw-feature { padding: 26px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-subtle); }
.rw-feature__icon { font-size: 22px; color: var(--brand-teal); margin-bottom: 14px; display: block; }
.rw-feature__title { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.rw-feature p { margin: 0; font-size: 15px; }
@media (max-width: 575px) { .rw-features { grid-template-columns: 1fr; } }
.rw-visit { max-width: 720px; }
.rw-visit .thm-btn { margin-top: 18px; }
.rw-crosslink { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 0 0 40px; padding: 22px 28px; border-radius: var(--radius-card); background: var(--surface-ivory); border-left: 4px solid var(--brand-bronze); color: var(--text-body); }
.rw-crosslink strong { color: var(--brand-navy); }
.rw-crosslink:hover { color: var(--text-body); background: rgba(166,216,213,.25); }
.rw-section p + p, .rw-dnexa p + p, .rw-chero p + p { margin-top: 14px; }
.rw-gallery--dnexa { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 991px) { .rw-gallery--dnexa { grid-template-columns: repeat(3, 1fr); } .rw-gallery--dnexa figure:first-child { grid-column: span 2; } }
@media (max-width: 575px) { .rw-gallery--dnexa { grid-template-columns: 1fr 1fr; } .rw-gallery--dnexa figure:first-child { grid-column: 1 / -1; } }
.contact-page__btn-box .thm-btn { background-color: var(--brand-teal); }
.contact-page__btn-box .thm-btn:hover { background-color: var(--brand-teal-hover); }
.thm-btn, .footer-widget__btn a { text-transform: none; }
/* Eight menu items: tighten spacing on narrower desktops so the menu never runs into the CTA */
@media (min-width: 1200px) and (max-width: 1439px) {
  .main-menu .main-menu__list > li + li, .stricky-header .main-menu__list > li + li { margin-left: 26px; }
  .main-menu-four__wrapper-inner { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .main-menu .main-menu__list > li + li, .stricky-header .main-menu__list > li + li { margin-left: 20px; }
  .main-menu .main-menu__list > li > a { font-size: 14px; }
  .main-header-four .rw-logo img { height: 38px; }
}
.rw-month__list { display: none; margin: 14px 0 0; }
.rw-month__list li { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.rw-month__list li[hidden] { display: none; }
.rw-month__list strong { display: inline-block; min-width: 64px; color: var(--brand-teal-hover); font-family: var(--font-heading); }
.rw-month__list a { color: var(--brand-navy); font-weight: 600; }
@media (max-width: 767px) { .rw-month__list { display: block; } }
.rw-pillar__num { color: var(--brand-teal-hover); border-bottom: 3px solid var(--brand-bronze); align-self: flex-start; padding-bottom: 4px; }

/* The HTML hidden attribute must win over component display rules (used for past events, filters, views) */
[hidden] { display: none !important; }
/* Teal end of the brand gradient: only solid white passes AA for small text (4.8:1) — aqua is 3.0:1, 85% white 3.9:1 */
.rw-chero, .rw-chero p, .rw-cta__text, .rw-careers__inner p { color: #fff; }
.rw-chero .rw-eyebrow, .rw-careers__inner .rw-eyebrow, .rw-cta .rw-eyebrow { color: #fff; }
