/* --------------------------------------------------
   Horizons-inspired Cassiopeia theme
   For Joomla Cassiopeia child template /css/user.css
-------------------------------------------------- */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

/* --------------------------------------------------
   Design tokens
-------------------------------------------------- */
:root {
  --site-bg: #2d1b4e;
  --site-bg-dark: #22113e;
  --site-surface: rgba(58, 35, 95, 0.78);
  --site-surface-strong: rgba(70, 42, 112, 0.92);

  --text-main: #f7f1fb;
  --text-soft: #d5c8e3;
  --text-muted: #b8aac8;

  --primary: #ffbf00;
  --secondary: #ff0080;
  --accent: #00ffff;

  --border-soft: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(255, 191, 0, 0.24);

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --shadow-glow-gold: 0 0 18px rgba(255, 191, 0, 0.20);
  --shadow-glow-pink: 0 0 18px rgba(255, 0, 128, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --container-max: 1540px;
  --content-max: 1540px;
  --content-pad: clamp(1rem, 2vw, 1.75rem);
  --sidebar-width: 360px;
  --header-height: 96px;
}

@media (max-width: 1199.98px) {
  :root {
    --sidebar-width: 320px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 82px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 72px;
  }
}

/* --------------------------------------------------
   Base page
-------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body.site {
  background:
    radial-gradient(circle at top center, rgba(255, 191, 0, 0.10), transparent 30%),
    linear-gradient(180deg, var(--site-bg-dark) 0%, var(--site-bg) 100%);
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  line-height: 1.65;
}
.container-component>:first-child, .container-sidebar-left>:first-child, .container-sidebar-right>:first-child, .container-component>*+*, .container-sidebar-left>*+*, .container-sidebar-right>*+* {
    margin-top: 0!important;
}
/* --------------------------------------------------
   Typography
-------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.brand-logo,
.navbar-brand {
  font-family: "Righteous", cursive;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--primary);
}

p,
li,
.com-content-article__body {
  color: var(--text-soft);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover,
a:focus {
  color: #ffd95a;
  text-shadow: 0 0 10px rgba(255, 191, 0, 0.25);
}  

.text-muted
 {
    --text-opacity: 1;
    color: var(--text-muted) !important;
}

/* --------------------------------------------------
   HEADER - sticky full-width version
   For your actual Joomla output
-------------------------------------------------- */

header.container-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 !important;
  margin: 0;
  background: rgba(45, 27, 78, 0.88) !important;
  border-bottom: 1px solid rgba(255, 191, 0, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Main header row */
.container-header .container-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Remove spacing from header children */
.container-header .mod-custom,
.container-header .container-search,
.container-header nav.navbar {
  margin: 0;
  padding: 0;
}

/* Logo module */
.container-header #mod-custom111 {
  flex: 0 0 auto;
}

.container-header .site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.container-header .site-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.container-header .site-logo-link img {
  display: block;
  max-height: 68px;
  width: auto;
  height: auto;
  border-radius: 0 !important;
}

.container-header .site-logo-text {
  margin: 0;
  font-family: "Righteous", cursive;
  font-size: clamp(1.05rem, 1.5vw, 1.6rem);
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Navbar wrapper */
.container-header nav.navbar {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent !important;
}

.container-header .navbar-expand-md {
  justify-content: flex-end;
}

/* Desktop menu layout */
@media (min-width: 768px) {
  .container-header .navbar-expand-md {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .container-header .navbar-expand-md .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    justify-content: center;
  }

  .container-header #mod-menu1.header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

/* Menu links */
.container-header #mod-menu1 > li {
  margin: 0;
}

.container-header #mod-menu1 > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e7dff0;
  font-weight: 500;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
  white-space: nowrap;
}

.container-header #mod-menu1 > li > a:hover,
.container-header #mod-menu1 > li.current > a,
.container-header #mod-menu1 > li.active > a {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 10px rgba(255, 191, 0, 0.18);
}

/* CTA */
.container-header .container-search {
  flex: 0 0 auto;
}

.container-header .header-actions-wrap {
  margin: 0;
}

.container-header .header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: #2d1b4e !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 0 14px rgba(255, 191, 0, 0.20),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.container-header .header-cta-btn:hover,
.container-header .header-cta-btn:focus {
  background: #ffd24d;
  color: #2d1b4e !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.container-header .navbar-toggler {
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  box-shadow: none;
}

.container-header .navbar-toggler:hover,
.container-header .navbar-toggler:focus {
  border-color: rgba(255, 191, 0, 0.45);
  box-shadow: 0 0 16px rgba(255, 191, 0, 0.16);
}

/* Tablet */
@media (max-width: 991.98px) {
  .container-header .container-nav {
    gap: 0.85rem;
    padding: 0.8rem 1rem !important;
  }

  .container-header .site-logo-link img {
    max-height: 56px;
  }

  .container-header .site-logo-text {
    font-size: 1.05rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .container-header .site-logo-link img {
    max-height: 48px;
  }

  .container-header .site-logo-text {
    display: none;
  }

  .container-header .container-search {
    display: none;
  }

  .container-header nav.navbar {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .container-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(45, 27, 78, 0.97);
    border: 1px solid rgba(255, 191, 0, 0.14);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  }

  .container-header #mod-menu1.header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .container-header #mod-menu1 > li > a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }
}

/* --------------------------------------------------
   Site should be full width
-------------------------------------------------- */


/* Full-width site shell */
.site-grid {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  column-gap: 0;
  row-gap: 0;
}

/* Inner content areas */
.container-component,
.bottom-a,
.bottom-b,
.footer .grid-child {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--content-pad) !important;
  padding-right: var(--content-pad) !important;
  box-sizing: border-box;
}

/* If using sidebar layout, constrain that internal layout only */
body.has-sidebar-right .site-grid {
  grid-template-columns: 1fr;
}

/* Create a proper inner grid when sidebar exists */
body.has-sidebar-right .container-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--sidebar-width));
  gap: 2rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  box-sizing: border-box;
}

.container-component {
  max-width: none;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container-sidebar-right {
  width: 100%;
  max-width: var(--sidebar-width);
}

/* Tablet */
@media (max-width: 1199.98px) {
  :root {
    --sidebar-width: 320px;
  }
}

/* Mobile */
@media (max-width: 991.98px) {
  body.has-sidebar-right .container-main {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container-component,
  .bottom-a,
  .bottom-b,
  .footer .grid-child {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .container-sidebar-right {
    max-width: none;
  }
}
/* --------------------------------------------------
   Homepage hero section
-------------------------------------------------- */

.home-hero-module {
  width: 100%;
  margin: 0;
}

.home-hero-module .moduletable,
.home-hero-module .module,
.home-hero-module .mod-custom {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-hero {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - var(--header-height));
  box-sizing: border-box;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  overflow: clip;
  display: flex;
  align-items: stretch;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 191, 0, 0.16), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 0, 128, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.home-hero__content,
.home-hero__visual {
  min-width: 0;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-hero__title {
  margin: 0 0 1rem;
  font-family: "Righteous", cursive;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 1.02;
  color: var(--text-main);
  text-wrap: balance;
}

.home-hero__text {
  max-width: 42rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--text-soft);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.home-hero__btn-primary,
.home-hero__btn-secondary {
  min-height: 52px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.home-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-hero__meta-item {
  padding: 1rem 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.home-hero__meta-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  font-size: 0.98rem;
}

.home-hero__meta-item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-hero__visual {
  position: relative;
}

.home-hero__visual-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background:
    linear-gradient(180deg, rgba(70, 42, 112, 0.92), rgba(45, 27, 78, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(255, 191, 0, 0.14);
}

.home-hero__visual-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 191, 0, 0.45),
    rgba(255, 255, 255, 0.04),
    rgba(255, 0, 128, 0.28)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.home-hero__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 191, 0, 0.14);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__visual-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.home-hero__visual-card p {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.home-hero__visual-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-hero__panel {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__panel-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-hero__panel strong {
  color: var(--text-main);
  font-size: 1rem;
}

.home-hero__image,
.home-hero__visual img,
.home-hero__visual-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 420px);
  object-fit: contain;
}

/* Compact mode for shorter viewports */
@media (max-height: 980px) {
  .home-hero {
    padding-top: clamp(1.5rem, 2.5vh, 2.25rem);
    padding-bottom: clamp(1.25rem, 2vh, 2rem);
  }

  .home-hero__inner {
    gap: clamp(1.25rem, 2vw, 2rem);
  }

  .home-hero__title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    margin-bottom: 0.75rem;
  }

  .home-hero__text {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    margin-bottom: 1.1rem;
    max-width: 34rem;
  }

  .home-hero__eyebrow,
  .home-hero__badge {
    margin-bottom: 0.75rem;
  }

  .home-hero__actions {
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .home-hero__btn-primary,
  .home-hero__btn-secondary {
    min-height: 46px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .home-hero__meta {
    gap: 0.75rem;
  }

  .home-hero__meta-item {
    padding: 0.8rem 0.9rem;
  }

  .home-hero__meta-item span {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .home-hero__visual-card {
    padding: clamp(1rem, 1.8vw, 1.5rem);
    border-radius: 22px;
  }

  .home-hero__visual-card h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    margin-bottom: 0.55rem;
  }

  .home-hero__visual-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .home-hero__visual-panels {
    gap: 0.75rem;
  }

  .home-hero__panel {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .home-hero__panel-label {
    font-size: 0.74rem;
    margin-bottom: 0.2rem;
  }

  .home-hero__panel strong {
    font-size: 0.95rem;
  }
}

@media (max-height: 820px) and (min-width: 992px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
  }

  .home-hero__title {
    font-size: clamp(1.8rem, 3.3vw, 3rem);
  }

  .home-hero__text {
    margin-bottom: 0.9rem;
  }

  .home-hero__actions {
    margin-bottom: 0.9rem;
  }

  .home-hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .home-hero__meta-item {
    padding: 0.7rem 0.8rem;
  }

  .home-hero__meta-item strong {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .home-hero__meta-item span {
    font-size: 0.82rem;
  }

  .home-hero__visual-card {
    padding: 1rem;
  }
}

@media (max-height: 820px) and (min-width: 992px) {
  .home-hero__meta {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: calc(100dvh - var(--header-height));
    padding: 2rem 0;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
  }

  .home-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .home-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

/* --------------------------------------------------
   Global navigation fallback
-------------------------------------------------- */
.mod-menu,
.metismenu.mod-menu {
  align-items: center;
}

.mod-menu > li > a,
.metismenu.mod-menu .mm-collapse > li > a,
.metismenu.mod-menu > li > a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.mod-menu > li > a:hover,
.mod-menu > li.active > a,
.metismenu.mod-menu > li > a:hover,
.metismenu.mod-menu > li.active > a {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  text-shadow: 0 0 12px rgba(255, 191, 0, 0.28);
}

/* --------------------------------------------------
   Main content
-------------------------------------------------- */
main div[itemprop="articleBody"],
main .com-content-article,
main .blog,
main .item-page,
main .com-content-category-blog,
main .com-users-login,
main .com-users-profile,
main .com-users-registration {
  color: var(--text-main);
}

/* --------------------------------------------------
   Cards / modules
-------------------------------------------------- */
.moduletable,
.card,
.neon-card {
  background: var(--site-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.neon-card:hover,
.moduletable:hover {
  transform: translateY(-2px);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
.btn,
button,
input[type="submit"],
button[type="submit"] {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  transition: all 0.25s ease;
}

.btn-primary,
button.btn-primary,
input.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #2d1b4e;
  box-shadow: 0 0 14px rgba(255, 191, 0, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ffd24d;
  border-color: #ffd24d;
  color: #2d1b4e;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.32);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 0, 128, 0.45);
  color: #ff7bbb;
  box-shadow: 0 0 14px rgba(255, 0, 128, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 0, 128, 0.10);
  color: #ff9acd;
  border-color: rgba(255, 0, 128, 0.70);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   Forms
-------------------------------------------------- */
input,
textarea,
select,
.form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.85rem 1rem !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: rgba(0, 255, 255, 0.55) !important;
  box-shadow: 0 0 0 0.18rem rgba(0, 255, 255, 0.12) !important;
}

/* --------------------------------------------------
   Articles / blog / login
-------------------------------------------------- */
.com-content-article.item-page,
.blog-item,
.category-desc,
.com-users-login,
.com-users-profile,
.com-users-registration {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
}

.blog-item,
.item-content {
  background: var(--site-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.blog-item .page-header a,
.item-title a {
  color: var(--text-main);
}

.blog-item .page-header a:hover,
.item-title a:hover {
  color: var(--primary);
}

.com-users-login .login,
.com-users-login form {
  background: var(--site-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

/* Single news articles */


body.view-article.page-news .page-header {
  margin-bottom: 0.75rem;
}

body.view-article.page-news .article-info {
  margin-bottom: 1.25rem;
}

body.view-article.page-news .com-content-article > figure.item-image,
body.view-article.page-news .com-content-article > figure.news-hero-image {
  float: left;
  display: table;
  width: auto;
  max-width: 100%;
  margin: 0 1.5rem 1.5rem;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 28px color-mix(in srgb, var(--accent) 24%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

body.view-article.page-news .com-content-article > figure.item-image img,
body.view-article.page-news .com-content-article > figure.news-hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  border-radius: 18px;
}

body.view-article.page-news .com-content-article__body {
  margin-left: 2rem;
}

body.view-article.page-news .com-content-article__body > * + * {
  margin-top: 1rem;
}

/* Hide the Society News hero on article pages */
body.view-article.page-news #mod-custom121 {
  display: none !important;
}

@media (max-width: 767.98px) {
  body.view-article.page-news .com-content-article > figure.item-image,
  body.view-article.page-news .com-content-article > figure.news-hero-image {
    padding: 10px;
    border-radius: 20px;
  }

  body.view-article.page-news .com-content-article > figure.item-image img,
  body.view-article.page-news .com-content-article > figure.news-hero-image img {
    max-height: 420px;
    border-radius: 14px;
  }
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer.footer,
.container-footer {
  background: rgba(20, 10, 36, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

footer a,
.container-footer a {
  color: var(--text-soft);
}

footer a:hover,
.container-footer a:hover {
  color: var(--primary);
}

/* Footer equal columns */
.container-footer .grid-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Each footer block becomes an equal-height card */
.container-footer .grid-child > * {
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-sizing: border-box;
}

/* Tidy the menu block so it behaves like the others */
.container-footer .mod-menu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.container-footer .mod-menu li {
  margin: 0;
}

.container-footer .mod-menu a {
  display: inline-block;
  padding: 0;
}

/* Remove extra spacing on headings/paragraphs */
.container-footer h3,
.container-footer p {
  margin-top: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
  .container-footer .grid-child {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   Utility classes
-------------------------------------------------- */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(34, 17, 62, 0.82) 0%, rgba(45, 27, 78, 0.55) 100%);
}

.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.text-glow-gold {
  text-shadow: 0 0 12px rgba(255, 191, 0, 0.30);
}

.text-glow-pink {
  text-shadow: 0 0 12px rgba(255, 0, 128, 0.28);
}

.border-glow {
  border: 1px solid rgba(0, 255, 255, 0.22);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.10);
}

/* --------------------------------------------------
   Images
-------------------------------------------------- */
img {
  border-radius: var(--radius-md);
}

/* Keep logo sharp, not rounded */
.header-logo .site-logo-wrap img {
  border-radius: 0 !important;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 991.98px) {
  header.container-header {
    top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .container-header .grid-child {
    padding: 0.7rem 0.95rem !important;
    gap: 0.75rem;
  }

  .header-logo .site-logo-wrap img {
    max-height: 48px;
  }

  .header-actions {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .mod-menu > li > a,
  .metismenu.mod-menu > li > a {
    padding: 0.65rem 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .moduletable,
  .card,
  .neon-card,
  .blog-item,
  .item-content {
    padding: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .container-header .grid-child {
    border-radius: 0 !important;
  }

  .header-logo .site-logo-wrap img {
    max-height: 42px;
  }
}

/* --------------------------------------------------
   Horizons-style inner page heading system
   Use menu item Page Class Suffix values such as:
   inner-page page-about
   inner-page page-contact
   inner-page page-membership
-------------------------------------------------- */

.inner-page {
  --page-hero-accent-rgb: 255, 191, 0;
  --page-hero-accent: rgb(var(--page-hero-accent-rgb));
}

.page-about,
.about-page {
  --page-hero-accent-rgb: 255, 0, 128;
}

.page-contact,
.contact-page {
  --page-hero-accent-rgb: 0, 255, 255;
}

.page-membership,
.membership-page {
  --page-hero-accent-rgb: 255, 191, 0;
}

.inner-page .container-component > .com-content-article,
.inner-page .container-component > .com-contact,
.inner-page .container-component > .contact-category,
.inner-page .container-component > .com-content-category,
.inner-page .container-component > .blog,
.inner-page .container-component > .item-page {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad) !important;
  padding-right: var(--content-pad) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  box-sizing: border-box;
}

.inner-page .page-header,
.inner-page .com-contact__page-header,
.inner-page .page-intro-hero,
.inner-page .category-desc {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(2.25rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inner-page .page-header::before,
.inner-page .com-contact__page-header::before,
.inner-page .page-intro-hero::before,
.inner-page .category-desc::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(96vw, 1200px);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at top,
    rgba(var(--page-hero-accent-rgb), 0.17) 0%,
    rgba(var(--page-hero-accent-rgb), 0.08) 28%,
    rgba(var(--page-hero-accent-rgb), 0) 72%
  );
  pointer-events: none;
  z-index: -1;
}

.inner-page .page-header h1,
.inner-page .page-header h2,
.inner-page .com-contact__page-header h1,
.inner-page .com-contact__page-header h2,
.inner-page .page-intro-hero h1,
.inner-page .page-intro-hero h2,
.inner-page .category-desc h1,
.inner-page .category-desc h2,
.inner-page .blog .page-header h1,
.inner-page .blog .page-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.85rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.inner-page .page-header .accent,
.inner-page .com-contact__page-header .accent,
.inner-page .page-intro-hero .accent,
.inner-page .category-desc .accent {
  color: var(--page-hero-accent);
  text-shadow: 0 0 12px rgba(var(--page-hero-accent-rgb), 0.38);
}

.inner-page .page-subtitle,
.inner-page .page-intro-hero .lead,
.inner-page .category-desc > p,
.inner-page .page-header + .com-content-article__body > p:first-child,
.inner-page .com-contact__page-header + * > p:first-child,
.inner-page .com-content-category__description > p:first-child {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: balance;
}

.inner-page .com-content-article__body,
.inner-page .com-contact__container,
.inner-page .contact,
.inner-page .blog-items,
.inner-page .com-content-category-blog {
  padding-top: clamp(0, 5vw, 4rem);
}

.inner-page .page-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.inner-page .split-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.inner-page .surface-card,
.inner-page .page-panel,
.inner-page .contact-form,
.inner-page .contact-links,
.inner-page .contact-misc,
.inner-page .item-content {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--site-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.inner-page .surface-card::before,
.inner-page .page-panel::before,
.inner-page .contact-form::before,
.inner-page .item-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--page-hero-accent-rgb), 0.9),
    transparent
  );
  opacity: 0.55;
}

.inner-page .feature-list,
.inner-page .benefit-list,
.inner-page .info-list {
  display: grid;
  gap: 1rem;
}

.inner-page .feature-item,
.inner-page .benefit-item,
.inner-page .info-item,
.inner-page .contact-position,
.inner-page .contact-address {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.inner-page .feature-item strong,
.inner-page .benefit-item strong,
.inner-page .info-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.inner-page .page-header + .com-content-article__body h2:first-child,
.inner-page .page-header + .com-content-article__body h3:first-child {
  margin-top: 0;
}

.inner-page .page-header + .com-content-article__body h2,
.inner-page .page-header + .com-content-article__body h3,
.inner-page .com-contact__container h2,
.inner-page .com-contact__container h3 {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.inner-page .page-header + .com-content-article__body .btn,
.inner-page .page-intro-hero + * .btn,
.inner-page .surface-card .btn,
.inner-page .page-panel .btn {
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .inner-page .split-layout {
    grid-template-columns: 1fr;
  }

  .inner-page .page-header,
  .inner-page .com-contact__page-header,
  .inner-page .page-intro-hero,
  .inner-page .category-desc {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .inner-page .page-header h1,
  .inner-page .page-header h2,
  .inner-page .com-contact__page-header h1,
  .inner-page .com-contact__page-header h2,
  .inner-page .page-intro-hero h1,
  .inner-page .page-intro-hero h2,
  .inner-page .category-desc h1,
  .inner-page .category-desc h2 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .inner-page .surface-card,
  .inner-page .page-panel,
  .inner-page .contact-form,
  .inner-page .contact-links,
  .inner-page .contact-misc,
  .inner-page .item-content {
    border-radius: 22px;
  }
}


/* --------------------------------------------------
   Horizons refinement pass v2
   Closer to the exported content-page headers,
   per-page accent glow, entrance feel, and news cards
-------------------------------------------------- */

.page-news,
.news-page {
  --page-hero-accent-rgb: 0, 255, 255;
}

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

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

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

@keyframes horizonsLineGlow {
  0%, 100% {
    opacity: 0.35;
    filter: blur(0);
  }
  50% {
    opacity: 0.8;
    filter: blur(1px);
  }
}

.inner-page .page-header,
.inner-page .com-contact__page-header,
.inner-page .page-intro-hero,
.inner-page .category-desc {
  max-width: 48rem;
  padding: clamp(4.75rem, 9vw, 6.35rem) 0 clamp(2.6rem, 4vw, 3.4rem);
  animation: horizonsFadeUp 0.75s cubic-bezier(.22,1,.36,1) both;
}

.inner-page .page-header::before,
.inner-page .com-contact__page-header::before,
.inner-page .page-intro-hero::before,
.inner-page .category-desc::before {
  width: min(100vw, 1380px);
  background:
    radial-gradient(
      ellipse at top,
      rgba(var(--page-hero-accent-rgb), 0.16) 0%,
      rgba(var(--page-hero-accent-rgb), 0.08) 24%,
      rgba(var(--page-hero-accent-rgb), 0.03) 42%,
      rgba(var(--page-hero-accent-rgb), 0) 72%
    );
}

.inner-page .page-header::after,
.inner-page .com-contact__page-header::after,
.inner-page .page-intro-hero::after,
.inner-page .category-desc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(80%, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(var(--page-hero-accent-rgb), 0),
    rgba(var(--page-hero-accent-rgb), 0.55),
    rgba(var(--page-hero-accent-rgb), 0)
  );
  animation: horizonsLineGlow 3.2s ease-in-out infinite;
}

.inner-page .page-header > *,
.inner-page .com-contact__page-header > *,
.inner-page .page-intro-hero > *,
.inner-page .category-desc > * {
  position: relative;
  z-index: 1;
}

.inner-page .page-header h1,
.inner-page .page-header h2,
.inner-page .com-contact__page-header h1,
.inner-page .com-contact__page-header h2,
.inner-page .page-intro-hero h1,
.inner-page .page-intro-hero h2,
.inner-page .category-desc h1,
.inner-page .category-desc h2,
.inner-page .blog .page-header h1,
.inner-page .blog .page-header h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.045em;
}

.inner-page .page-header .accent,
.inner-page .com-contact__page-header .accent,
.inner-page .page-intro-hero .accent,
.inner-page .category-desc .accent {
  text-shadow:
    0 0 10px rgba(var(--page-hero-accent-rgb), 0.42),
    0 0 20px rgba(var(--page-hero-accent-rgb), 0.22);
}

.inner-page .page-subtitle,
.inner-page .page-intro-hero .lead,
.inner-page .category-desc > p,
.inner-page .page-header + .com-content-article__body > p:first-child,
.inner-page .com-contact__page-header + * > p:first-child,
.inner-page .com-content-category__description > p:first-child {
  max-width: 42rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.78;
  animation: horizonsFadeUp 0.85s cubic-bezier(.22,1,.36,1) both;
  animation-delay: 0.08s;
}

.inner-page .com-content-article__body,
.inner-page .com-contact__container,
.inner-page .contact,
.inner-page .blog-items,
.inner-page .com-content-category-blog {
  padding-top: clamp(0, 5vw, 1rem);
}

.inner-page .split-layout > :first-child {
  animation: horizonsFadeLeft 0.8s cubic-bezier(.22,1,.36,1) both;
}

.inner-page .split-layout > :last-child {
  animation: horizonsFadeRight 0.8s cubic-bezier(.22,1,.36,1) both;
  animation-delay: 0.08s;
}

.inner-page .surface-card,
.inner-page .page-panel,
.inner-page .contact-form,
.inner-page .contact-links,
.inner-page .contact-misc,
.inner-page .item-content {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.inner-page .surface-card:hover,
.inner-page .page-panel:hover,
.inner-page .contact-form:hover,
.inner-page .contact-links:hover,
.inner-page .contact-misc:hover,
.inner-page .item-content:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--page-hero-accent-rgb), 0.35);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(var(--page-hero-accent-rgb), 0.12);
}

.inner-page .feature-list,
.inner-page .benefit-list,
.inner-page .info-list {
  gap: 1.15rem;
}

.inner-page .feature-item,
.inner-page .benefit-item,
.inner-page .info-item,
.inner-page .contact-position,
.inner-page .contact-address {
  border-radius: 20px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  animation: horizonsFadeUp 0.55s cubic-bezier(.22,1,.36,1) both;
}

.inner-page .feature-item:hover,
.inner-page .benefit-item:hover,
.inner-page .info-item:hover,
.inner-page .contact-position:hover,
.inner-page .contact-address:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--page-hero-accent-rgb), 0.28);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 18px rgba(var(--page-hero-accent-rgb), 0.08);
}

.inner-page .feature-list > :nth-child(1),
.inner-page .benefit-list > :nth-child(1),
.inner-page .info-list > :nth-child(1) { animation-delay: 0.04s; }
.inner-page .feature-list > :nth-child(2),
.inner-page .benefit-list > :nth-child(2),
.inner-page .info-list > :nth-child(2) { animation-delay: 0.10s; }
.inner-page .feature-list > :nth-child(3),
.inner-page .benefit-list > :nth-child(3),
.inner-page .info-list > :nth-child(3) { animation-delay: 0.16s; }
.inner-page .feature-list > :nth-child(4),
.inner-page .benefit-list > :nth-child(4),
.inner-page .info-list > :nth-child(4) { animation-delay: 0.22s; }
.inner-page .feature-list > :nth-child(5),
.inner-page .benefit-list > :nth-child(5),
.inner-page .info-list > :nth-child(5) { animation-delay: 0.28s; }
.inner-page .feature-list > :nth-child(6),
.inner-page .benefit-list > :nth-child(6),
.inner-page .info-list > :nth-child(6) { animation-delay: 0.34s; }

.inner-page .page-header + .com-content-article__body h2,
.inner-page .page-header + .com-content-article__body h3,
.inner-page .com-contact__container h2,
.inner-page .com-contact__container h3,
.inner-page .blog .page-header + * h2,
.inner-page .blog .page-header + * h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

/* News/category pages */
.inner-page.page-news .blog-items,
.inner-page.page-news .com-content-category-blog__items,
.inner-page.page-news .blog,
.page-news .blog-items,
.page-news .com-content-category-blog__items,
.page-news .blog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.inner-page.page-news .blog-item,
.page-news .blog-item {
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: rgba(58, 35, 95, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: horizonsFadeUp 0.6s cubic-bezier(.22,1,.36,1) both;
}

.inner-page.page-news .blog-item:hover,
.page-news .blog-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.28);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(0, 255, 255, 0.12);
}

.inner-page.page-news .blog-item .page-header,
.page-news .blog-item .page-header {
  margin: 0;
  max-width: none;
  padding: 1.4rem 1.4rem 0;
  text-align: left;
  border: 0;
  animation: none;
}

.inner-page.page-news .blog-item .page-header::before,
.inner-page.page-news .blog-item .page-header::after,
.page-news .blog-item .page-header::before,
.page-news .blog-item .page-header::after {
  display: none;
}

.inner-page.page-news .blog-item .page-header h2,
.inner-page.page-news .blog-item .page-header h1,
.page-news .blog-item .page-header h2,
.page-news .blog-item .page-header h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
}

.inner-page.page-news .blog-item .page-header a,
.page-news .blog-item .page-header a {
  color: var(--text-main);
}

.inner-page.page-news .blog-item .page-header a:hover,
.page-news .blog-item .page-header a:hover {
  color: rgb(0, 255, 255);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.22);
}

.inner-page.page-news .blog-item .item-content,
.page-news .blog-item .item-content,
.inner-page.page-news .blog-item .com-content-article__body,
.page-news .blog-item .com-content-article__body {
  padding: 0 1.4rem 1.4rem !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.inner-page.page-news .blog-item .item-content::before,
.page-news .blog-item .item-content::before {
  display: none;
}

.inner-page.page-news .blog-item > *:first-child,
.page-news .blog-item > *:first-child {
  position: relative;
}

.inner-page.page-news .blog-item > *:first-child::before,
.page-news .blog-item > *:first-child::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.85), transparent);
  opacity: 0.55;
}

.inner-page.page-news .blog-item:nth-child(1),
.page-news .blog-item:nth-child(1) { animation-delay: 0.04s; }
.inner-page.page-news .blog-item:nth-child(2),
.page-news .blog-item:nth-child(2) { animation-delay: 0.10s; }
.inner-page.page-news .blog-item:nth-child(3),
.page-news .blog-item:nth-child(3) { animation-delay: 0.16s; }
.inner-page.page-news .blog-item:nth-child(4),
.page-news .blog-item:nth-child(4) { animation-delay: 0.22s; }
.inner-page.page-news .blog-item:nth-child(5),
.page-news .blog-item:nth-child(5) { animation-delay: 0.28s; }
.inner-page.page-news .blog-item:nth-child(6),
.page-news .blog-item:nth-child(6) { animation-delay: 0.34s; }

/* Utility classes for manual article markup */
.page-intro-hero .kicker,
.page-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(var(--page-hero-accent-rgb), 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--page-hero-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(var(--page-hero-accent-rgb), 0.10);
  border: 1px solid rgba(var(--page-hero-accent-rgb), 0.18);
  color: var(--page-hero-accent);
  box-shadow: 0 0 16px rgba(var(--page-hero-accent-rgb), 0.08);
}

@media (max-width: 1199.98px) {
  .inner-page.page-news .blog-items,
  .inner-page.page-news .com-content-category-blog__items,
  .inner-page.page-news .blog,
  .page-news .blog-items,
  .page-news .com-content-category-blog__items,
  .page-news .blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .inner-page .page-header,
  .inner-page .com-contact__page-header,
  .inner-page .page-intro-hero,
  .inner-page .category-desc {
    padding-top: 4rem;
    padding-bottom: 2.35rem;
  }

  .inner-page .split-layout > :first-child,
  .inner-page .split-layout > :last-child {
    animation-name: horizonsFadeUp;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page .page-header,
  .inner-page .com-contact__page-header,
  .inner-page .page-intro-hero,
  .inner-page .category-desc,
  .inner-page .page-subtitle,
  .inner-page .page-intro-hero .lead,
  .inner-page .category-desc > p,
  .inner-page .page-header + .com-content-article__body > p:first-child,
  .inner-page .com-contact__page-header + * > p:first-child,
  .inner-page .com-content-category__description > p:first-child,
  .inner-page .split-layout > :first-child,
  .inner-page .split-layout > :last-child,
  .inner-page .feature-item,
  .inner-page .benefit-item,
  .inner-page .info-item,
  .inner-page .contact-position,
  .inner-page .contact-address,
  .inner-page.page-news .blog-item,
  .page-news .blog-item {
    animation: none !important;
    transform: none !important;
  }

  .inner-page .page-header::after,
  .inner-page .com-contact__page-header::after,
  .inner-page .page-intro-hero::after,
  .inner-page .category-desc::after {
    animation: none !important;
  }
}

@media (max-width: 767.98px) {
  .inner-page .page-header,
  .inner-page .com-contact__page-header,
  .inner-page .page-intro-hero,
  .inner-page .category-desc {
    max-width: 100%;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .inner-page .page-header h1,
  .inner-page .page-header h2,
  .inner-page .com-contact__page-header h1,
  .inner-page .com-contact__page-header h2,
  .inner-page .page-intro-hero h1,
  .inner-page .page-intro-hero h2,
  .inner-page .category-desc h1,
  .inner-page .category-desc h2 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .inner-page.page-news .blog-items,
  .inner-page.page-news .com-content-category-blog__items,
  .inner-page.page-news .blog,
  .page-news .blog-items,
  .page-news .com-content-category-blog__items,
  .page-news .blog {
    grid-template-columns: 1fr;
  }

  .inner-page .surface-card,
  .inner-page .page-panel,
  .inner-page .contact-form,
  .inner-page .contact-links,
  .inner-page .contact-misc,
  .inner-page .item-content,
  .inner-page.page-news .blog-item,
  .page-news .blog-item {
    border-radius: 22px;
  }
}

/* ==================================================
   INNER PAGE HERO MODULES - banner position
   ================================================== */

/* Banner row */
.site-grid > .banner,
.banner {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove default module spacing/background in banner */
.banner .moduletable.page-hero-module,
.banner .module.page-hero-module,
.banner .mod-custom.page-hero-module,
.page-hero-module .mod-custom {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Main hero block */
.page-hero-module .page-intro-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding:
    clamp(4.5rem, 8vw, 7rem)
    clamp(1rem, 2vw, 1.5rem)
    clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(34, 17, 62, 0.82) 0%, rgba(45, 27, 78, 0.48) 100%);
  text-align: center;
}

.page-hero-module .page-intro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 191, 0, 0.14), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(255, 0, 128, 0.10), transparent 22%);
  opacity: 0.95;
}

.page-hero-module .page-intro-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: min(160px, 38vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 191, 0, 0.18) 15%,
    rgba(255, 191, 0, 0.95) 50%,
    rgba(255, 0, 128, 0.35) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(255, 191, 0, 0.35),
    0 0 24px rgba(255, 0, 128, 0.12);
}

.page-hero-module .page-intro-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  animation: pageHeroFadeUp 0.8s ease both;
}

.page-hero-module .page-intro-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.08);
  animation: pageHeroFadeUp 0.8s ease 0.08s both;
}

.page-hero-module .page-intro-hero__title {
  margin: 0;
  font-family: "Righteous", cursive;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: var(--text-main);
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.14),
    0 0 18px rgba(255, 191, 0, 0.08);
  animation: pageHeroFadeUp 0.8s ease 0.16s both;
}

.page-hero-module .page-intro-hero__title .accent {
  color: var(--primary);
  text-shadow:
    0 0 12px rgba(255, 191, 0, 0.30),
    0 0 22px rgba(255, 191, 0, 0.10);
}

.page-hero-module .page-intro-hero__lead {
  max-width: 760px;
  margin: 1.15rem auto 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
  animation: pageHeroFadeUp 0.8s ease 0.24s both;
}

/* Page-specific accent colours */
.page-hero-module.page-about .page-intro-hero__eyebrow,
.page-hero-module.page-about .page-intro-hero__title .accent {
  color: #ffbf00;
}

.page-hero-module.page-about .page-intro-hero::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 191, 0, 0.16) 15%,
    rgba(255, 191, 0, 0.95) 50%,
    rgba(255, 191, 0, 0.22) 85%,
    transparent 100%
  );
}

.page-hero-module.page-contact .page-intro-hero__eyebrow,
.page-hero-module.page-contact .page-intro-hero__title .accent {
  color: #00ffff;
}

.page-hero-module.page-contact .page-intro-hero::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 255, 0.16) 15%,
    rgba(0, 255, 255, 0.95) 50%,
    rgba(255, 191, 0, 0.18) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(0, 255, 255, 0.28),
    0 0 24px rgba(255, 191, 0, 0.10);
}

.page-hero-module.page-membership .page-intro-hero__eyebrow,
.page-hero-module.page-membership .page-intro-hero__title .accent {
  color: #ff0080;
}

.page-hero-module.page-membership .page-intro-hero::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 0, 128, 0.16) 15%,
    rgba(255, 0, 128, 0.95) 50%,
    rgba(255, 191, 0, 0.18) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(255, 0, 128, 0.28),
    0 0 24px rgba(255, 191, 0, 0.10);
}

.page-hero-module.page-news .page-intro-hero__eyebrow,
.page-hero-module.page-news .page-intro-hero__title .accent {
  color: #ffd95a;
}

.page-hero-module.page-news .page-intro-hero::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 217, 90, 0.16) 15%,
    rgba(255, 217, 90, 0.95) 50%,
    rgba(255, 0, 128, 0.14) 85%,
    transparent 100%
  );
}

/* Make the component below sit nicely under the banner hero */
.container-component {
  position: relative;
  z-index: 1;
}

.page-about .container-component,
.page-contact .container-component,
.page-membership .container-component,
.page-news .container-component {
  margin-top: 0;
}

/* Optional content styling for these pages */
.page-about .com-content-article,
.page-contact .com-contact,
.page-membership .com-content-article,
.page-news .blog,
.page-news .com-content-category-blog,
.page-news .blog-items {
  animation: pageHeroFadeUp 0.9s ease 0.18s both;
}

/* News cards */
.page-news .blog-item,
.page-news .item-content,
.page-news .com-content-category-blog__item {
  background: rgba(58, 35, 95, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.page-news .blog-item:hover,
.page-news .item-content:hover,
.page-news .com-content-category-blog__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 191, 0, 0.22);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 191, 0, 0.14);
}

/* Contact form polish */
.page-contact .com-contact__form,
.page-contact .contact-form {
  background: rgba(58, 35, 95, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

/* Smooth appearance */
@keyframes pageHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-hero-module .page-intro-hero__inner,
  .page-hero-module .page-intro-hero__eyebrow,
  .page-hero-module .page-intro-hero__title,
  .page-hero-module .page-intro-hero__lead,
  .page-about .com-content-article,
  .page-contact .com-contact,
  .page-membership .com-content-article,
  .page-news .blog,
  .page-news .com-content-category-blog,
  .page-news .blog-items {
    animation: none !important;
  }

  .page-news .blog-item,
  .page-news .item-content,
  .page-news .com-content-category-blog__item {
    transition: none !important;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .page-hero-module .page-intro-hero {
    padding-top: clamp(4rem, 7vw, 5rem);
    padding-bottom: clamp(2.2rem, 4vw, 3rem);
  }

  .page-hero-module .page-intro-hero__title {
    font-size: clamp(2.2rem, 7vw, 4rem);
  }

  .page-hero-module .page-intro-hero__lead {
    max-width: 680px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .page-hero-module .page-intro-hero {
    padding:
      calc(var(--header-height) * 0.35 + 2rem)
      1rem
      2.3rem;
  }

  .page-hero-module .page-intro-hero__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    padding: 0.42rem 0.72rem;
  }

  .page-hero-module .page-intro-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page-hero-module .page-intro-hero__lead {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-top: 0.95rem;
  }

  .page-hero-module .page-intro-hero::after {
    bottom: 1rem;
    width: min(120px, 34vw);
  }
}

/* =========================
   NEWS PAGE
   Fixes the empty-state alert and New Article button being treated like grid columns.
   Only the actual article items container should be a grid.
========================= */

.page-news .blog,
.page-news .com-content-category-blog,
.page-news .items-row,
.page-news .leading,
.page-news .blog-featured {
  display: block !important;
}

.page-news .blog-items,
.page-news .com-content-category-blog__items {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.page-news .blog > .alert,
.page-news .blog > .alert-info,
.page-news .com-content-category-blog > .alert,
.page-news .com-content-category-blog > .alert-info,
.page-news .blog > .system-message,
.page-news .com-content-category-blog > .system-message {
  max-width: 760px;
  margin: 0 auto 1.25rem !important;
}

.page-news .blog > a.btn,
.page-news .blog > .btn,
.page-news .blog > .btn-primary,
.page-news .com-content-category-blog > a.btn,
.page-news .com-content-category-blog > .btn,
.page-news .com-content-category-blog > .btn-primary,
.page-news a[href*="task=article.add"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 220px;
  max-width: 100%;
  margin: 0 auto !important;
}

.page-news .blog-item,
.page-news .item-content,
.page-news .com-content-category-blog__item {
  min-width: 0;
}

/* =========================
   CONTACT PAGE
   Fixes the sidebar module sitting over the form by using the actual Cassiopeia site grid,
   not the earlier container-main assumption.
========================= */

.page-contact.has-sidebar-right .site-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2.2rem);
  row-gap: 0;
  align-items: start;
}

/* Keep everything except the main content + right sidebar full width */
.page-contact.has-sidebar-right .site-grid > :not(.container-component):not(.container-sidebar-right) {
  grid-column: 1 / -1;
}

.page-contact.has-sidebar-right .site-grid > .container-sidebar-right {
  grid-column: 1;
  width: 100%;
  max-width: none;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 1.35rem);
  z-index: 2;
}

.page-contact.has-sidebar-right .site-grid > .container-component {
  grid-column: 2;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-contact.has-sidebar-right .container-component > .com-contact,
.page-contact.has-sidebar-right .container-component > .contact,
.page-contact.has-sidebar-right .container-component > .item-page {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide the sidebar module title if Joomla is still showing it */
.page-contact .contact-sidebar-module > h3,
.page-contact .contact-sidebar-module > .module-title,
.page-contact .contact-sidebar-module > .moduletitle,
.page-contact .contact-sidebar-module .card-header {
  display: none !important;
}

.page-contact .container-sidebar-right .moduletable,
.page-contact .container-sidebar-right .module,
.page-contact .container-sidebar-right .mod-custom {
  width: 100%;
}

.page-contact .contact-side-card {
  width: 100%;
}

.page-contact .com-contact__container,
.page-contact .com-contact__form,
.page-contact form#contact-form,
.page-contact form.form-validate {
  width: 100%;
  max-width: none;
}

.page-contact .com-contact__form,
.page-contact .contact-form,
.page-contact form#contact-form,
.page-contact form.form-validate {
  isolation: isolate;
}

/* Stop labels/inputs from drifting under the sidebar card */
.page-contact .com-contact .control-group,
.page-contact .com-contact .field,
.page-contact .com-contact .controls,
.page-contact .com-contact .form-control,
.page-contact .com-contact textarea,
.page-contact .com-contact input {
  max-width: 100%;
}

/* Tablet + mobile */
@media (max-width: 991.98px) {
  .page-news .blog-items,
  .page-news .com-content-category-blog__items {
    grid-template-columns: 1fr;
  }

  .page-contact.has-sidebar-right .site-grid {
    grid-template-columns: 1fr;
  }

  .page-contact.has-sidebar-right .site-grid > .container-sidebar-right,
  .page-contact.has-sidebar-right .site-grid > .container-component {
    grid-column: 1;
  }

  .page-contact.has-sidebar-right .site-grid > .container-sidebar-right {
    position: static;
    margin-bottom: 1.25rem;
  }
}
/* ==================================================
   FINAL CONTACT + NEWS LAYOUT FIX
   Paste at very end of user.css
   ================================================== */

/* ---------- CONTACT PAGE: use actual Cassiopeia site-grid structure ---------- */
body.page-contact.has-sidebar-right .site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, var(--sidebar-width));
  column-gap: clamp(1.5rem, 2.4vw, 2.5rem);
  row-gap: 0;
  align-items: start;
}

body.page-contact.has-sidebar-right .container-banner {
  grid-column: 1 / -1;
}

body.page-contact.has-sidebar-right .container-component {
  grid-column: 1;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--content-pad) !important;
  padding-right: 0 !important;
}

body.page-contact.has-sidebar-right .container-sidebar-right {
  grid-column: 2;
  width: 100%;
  max-width: var(--sidebar-width);
  margin: 0;
  padding-left: 0;
  padding-right: var(--content-pad);
  align-self: start;
}

body.page-contact.has-sidebar-right .container-component main,
body.page-contact.has-sidebar-right .container-component .com-content-article,
body.page-contact.has-sidebar-right .container-component .com-content-article__body {
  width: 100%;
  max-width: none;
}

/* Remove the generic article shell just for this page */
body.page-contact .com-content-article.item-pageinner-page,
body.page-contact .com-content-article,
body.page-contact .item-page {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Hide article icons/edit clutter on frontend preview if desired */
body.page-contact .com-content-article .icons {
  margin-bottom: 1rem;
}

/* ---------- CONTACT PAGE: Convert Forms card ---------- */
body.page-contact #cf_1.convertforms {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(1.35rem, 2vw, 2rem);
  background:
    linear-gradient(180deg, rgba(70, 42, 112, 0.92), rgba(45, 27, 78, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(0, 255, 255, 0.08);
  overflow: hidden;
}

body.page-contact #cf_1.convertforms::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.28),
    rgba(255, 255, 255, 0.04),
    rgba(255, 191, 0, 0.18)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

body.page-contact #cf_1 .cf-form-wrap,
body.page-contact #cf_1 form,
body.page-contact #cf_1 .cf-fields {
  position: relative;
  z-index: 1;
}

/* Hide duplicate form heading since banner already handles the page heading */
body.page-contact #cf_1 .cf-heading {
  display: none;
}

/* Make Convert Forms fields sit correctly */
body.page-contact #cf_1 .cf-control-group {
  margin-bottom: 1rem;
}

body.page-contact #cf_1 .cf-control-group[data-key="1"],
body.page-contact #cf_1 .cf-control-group[data-key="0"] {
  width: 100%;
}

@media (min-width: 768px) {
  body.page-contact #cf_1 .cf-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
  }

  body.page-contact #cf_1 .cf-control-group[data-key="4"],
  body.page-contact #cf_1 .cf-control-group[data-key="3"],
  body.page-contact #cf_1 .cf-control-group[data-key="2"] {
    grid-column: 1 / -1;
  }
}

body.page-contact #cf_1 .cf-control-label {
  margin-bottom: 0.35rem;
}

body.page-contact #cf_1 .cf-label {
  color: var(--text-main) !important;
  font-weight: 600;
}

body.page-contact #cf_1 .cf-input,
body.page-contact #cf_1 input,
body.page-contact #cf_1 textarea,
body.page-contact #cf_1 select {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--text-main) !important;
  border-radius: 16px !important;
  padding: 0.95rem 1rem !important;
  box-shadow: none !important;
}

body.page-contact #cf_1 textarea {
  min-height: 180px;
  resize: vertical;
}

body.page-contact #cf_1 .cf-input::placeholder,
body.page-contact #cf_1 input::placeholder,
body.page-contact #cf_1 textarea::placeholder {
  color: rgba(213, 200, 227, 0.62) !important;
}

body.page-contact #cf_1 .cf-btn {
  border-radius: 999px !important;
  padding: 0.9rem 1.4rem !important;
  font-weight: 700 !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #2d1b4e !important;
  box-shadow: 0 0 14px rgba(255, 191, 0, 0.22);
}

body.page-contact #cf_1 .cf-btn:hover,
body.page-contact #cf_1 .cf-btn:focus {
  background: #ffd24d !important;
  border-color: #ffd24d !important;
}

/* ---------- CONTACT PAGE: sidebar card ---------- */
body.page-contact .container-sidebar-right .sidebar-right {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.page-contact .container-sidebar-right .card-header {
  display: none !important;
}

body.page-contact .contact-side-card {
  position: relative;
  padding: clamp(1.35rem, 2vw, 2rem);
  background:
    linear-gradient(180deg, rgba(70, 42, 112, 0.92), rgba(45, 27, 78, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(0, 255, 255, 0.08);
  overflow: hidden;
}

body.page-contact .contact-side-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.28),
    rgba(255, 255, 255, 0.04),
    rgba(255, 191, 0, 0.18)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

body.page-contact .contact-side-card__eyebrow,
body.page-contact .contact-side-card__label {
  color: #7ffcff;
}

body.page-contact .contact-side-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.05;
}

body.page-contact .contact-side-card__text {
  margin-bottom: 1.25rem;
}

body.page-contact .contact-side-card__list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

body.page-contact .contact-side-card__item {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

body.page-contact .contact-side-card__item p {
  margin: 0.35rem 0 0;
}

body.page-contact .contact-side-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.page-contact .contact-side-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

body.page-contact .contact-side-card__actions .contact-side-card__button:first-child {
  background: var(--primary);
  color: #2d1b4e !important;
}

body.page-contact .contact-side-card__actions .contact-side-card__button:last-child {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main) !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------- NEWS PAGE: only grid the actual item container ---------- */
body.page-news .blog,
body.page-news .com-content-category-blog,
body.page-news .items-leading,
body.page-news .category-desc,
body.page-news .blog-featured {
  display: block !important;
}

body.page-news .blog-items,
body.page-news .com-content-category-blog__items {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

body.page-news .items-row {
  display: contents;
}

body.page-news .blog-item {
  margin: 0 !important;
}

/* Keep empty-state alerts and admin buttons outside the grid feel */
body.page-news .alert,
body.page-news .joomla-alert,
body.page-news .btn-toolbar,
body.page-news .subheading-category,
body.page-news .cat-children {
  display: block !important;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.page-news .btn-toolbar {
  text-align: center;
  margin-top: 1.25rem;
}

body.page-news .btn-toolbar .btn,
body.page-news .btn-toolbar .btn-group {
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 991.98px) {
  body.page-contact.has-sidebar-right .site-grid {
    grid-template-columns: 1fr;
  }

  body.page-contact.has-sidebar-right .container-banner,
  body.page-contact.has-sidebar-right .container-component,
  body.page-contact.has-sidebar-right .container-sidebar-right {
    grid-column: 1;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: none;
  }

  body.page-news .blog-items,
  body.page-news .com-content-category-blog__items {
    grid-template-columns: 1fr;
  }
}

.com-content-category-blog .item-image,
.com-content-category-blog figure.item-image {
  width: 100%;
  aspect-ratio: 16 / 9;   /* change this to make it shallower/taller */
  overflow: hidden;
  margin-bottom: 1rem;
}

.com-content-category-blog .item-image img,
.com-content-category-blog figure.item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* =========================================
   MOBILE HEADER MENU FIX
   ========================================= */
@media (max-width: 767.98px) {
  .container-header .container-nav {
    position: relative;
  }

  .container-header nav.navbar {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .container-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(45, 27, 78, 0.97);
    border: 1px solid rgba(255, 191, 0, 0.14);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    z-index: 1200;
  }

  .container-header .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  .container-header .navbar-collapse.show {
    display: block !important;
  }

  .container-header #mod-menu1.header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .container-header #mod-menu1.header-nav > li {
    width: 100%;
    margin: 0;
  }

  .container-header #mod-menu1.header-nav > li > a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }
}