
@font-face {
  font-family: Font_R;
  src: url("Font/Somar-Regular.otf") format("truetype");
}
@font-face {
  font-family: Font_B;
  src: url("Font/Somar-Bold.otf") format("truetype");
}
@font-face {
  font-family: Font_SB;
  src: url("Font/Somar-SemiBold.otf") format("truetype");
}

:root {
  --navy: #14385f;
  --navy2: #0c2948;
  --teal: #2fa6aa;
  --mint: #63c293;
  --yellow: #ffe500;
  --ink: #25313d;
  --muted: #687583;
  --line: #e2e8ea;
  --paper: #f7f9f8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(20, 56, 95, .10);
  --shadow-lg: 0 32px 80px rgba(20, 56, 95, .16);
  --r: 22px;
  --rl: 34px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Font_R';
  color: var(--ink);
  background: var(--paper);
  line-height: normal
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width: min(1240px, 92vw);
  margin: auto
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 22px;
  font-weight: 900;
  color: var(--teal)
}

.eyebrow:before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: .25s
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 56, 95, .18)
}

.btn-ghost,
.btn-soft {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(20, 56, 95, .14)
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 56, 95, .07)
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand img {
  width: 225px
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto
}

.nav-link,
.nav-drop-btn {
  font-size: 22px;
  font-weight: 800;
  color: #586676;
  background: none;
  border: 0;
  padding: 31px 0 28px;
  position: relative
}

.nav-link:hover,
.nav-link.active,
.nav-drop-btn:hover,
.nav-drop-btn.active {
  color: var(--navy)
}

.nav-link.active:after,
.nav-drop-btn.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--mint))
}

.header-actions {
  display: flex;
  gap: 9px
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.language-switch i {
  width: 19px;
  flex: 0 0 auto;
  font-size: 19px;
  text-align: center;
}

.nav-dropdown {
  position: relative
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: -18px;
  background: #fff;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.nav-dropdown:hover .dropdown-menu {
  display: grid
}

.dropdown-link {
  padding: 11px 13px;
  border-radius: 11px;
  font-weight: 700;
  color: var(--muted)
}

.dropdown-link:hover {
  background: #f1f6f4;
  color: var(--navy)
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  gap: 5px;
  flex-direction: column
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  background: var(--navy);
  border-radius: 5px
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: #fff;
  transition: opacity .55s ease, visibility .55s
}

.loader.hide {
  opacity: 0;
  visibility: hidden
}

.loader:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--mint), var(--yellow));
  transform-origin: left;
  animation: loadline 1.6s ease-in-out infinite
}

.loader-rings {
  position: absolute;
  width: 420px;
  height: 420px
}

.loader-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(20, 56, 95, .08)
}

.loader-rings span:nth-child(2) {
  inset: 35px;
  border-color: rgba(47, 166, 170, .12)
}

.loader-rings span:nth-child(3) {
  inset: 70px;
  border-color: rgba(99, 194, 147, .14)
}

.loader-falcon {
  position: relative;
  z-index: 2;
  width: min(265px, 60vw);
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(20, 56, 95, .14));
  animation: falconfloat 2.2s ease-in-out infinite
}

.loader-copy {
  position: relative;
  z-index: 2;
  text-align: center
}

.loader-copy strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: .20em;
  text-transform: uppercase
}

.loader-copy small {
  display: block;
  color: var(--muted);
  margin-top: 8px
}

.hero {
  padding: 88px 0 112px;
  background: linear-gradient(180deg, #fff, #f4f8f6);
  position: relative;
  overflow: hidden
}

.hero:after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: url('assets/pattern-light.png') center/cover;
  opacity: .10
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 58px;
  align-items: center;
  position: relative;
  z-index: 1
}

.hero h1,
.page-hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: .98;
  letter-spacing: 0;
  color: var(--navy);
  margin: 18px 0 24px;
  font-weight: 850
}

.hero p,
.page-hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 690px
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px
}

.journey-pill {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px
}

.hero-stat {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px
}

.hero-stat strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 22px;
  margin-top: 4px
}

.hero-pattern-card {
  position: relative;
  height: 560px;
  border-radius: 42px;
  background: linear-gradient(135deg, #eaf6f1, #fff);
  border: 1px solid rgba(20, 56, 95, .08);
  box-shadow: var(--shadow-lg);
  overflow: hidden
}

.hero-pattern-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/pattern-light.png') center/cover;
  opacity: .22
}

.falcon-stage {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center
}

.falcon-stage img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 28px 34px rgba(20, 56, 95, .15));
  animation: falconfloat 3s ease-in-out infinite
}

.quick-strip {
  margin-top: -36px;
  position: relative;
  z-index: 3
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden
}

.quick-card {
  padding: 27px 25px;
  border-right: 1px solid var(--line)
}

.quick-card:last-child {
  border-right: none
}

.quick-card strong {
  display: block;
  color: var(--navy);
  font-size: 20px
}

.quick-card span {
  display: block;
  color: var(--muted);
  font-size: 22px;
  margin-top: 6px
}

.quick-card:hover {
  background: #fbf9d9
}

.section {
  padding: 50px 0
}

.section h2,
.section-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0px 0
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 34px
}

.section-head p,
.section p {
  color: var(--muted)
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.card,
.data-panel,
.news-card,
.job-card,
.timeline-step,
.store-sidebar,
.toolbar,
.product-card,
.calendar-panel,
.faq-item,
.portal-widget,
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow)
}

.card {
  padding: 28px
}

.card h3,
.data-panel h3,
.job-card h3 {
  color: var(--navy)
}

.values-card {
  position: relative;
  overflow: hidden
}

.values-card b {
  color: var(--teal)
}

.values-card:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(99, 194, 147, .14)
}

.navy-band {
  background: linear-gradient(135deg, #0d2a4a, #173f6d);
  color: #fff
}

.navy-band h2,
.navy-band h3 {
  color: #fff
}

.navy-band p {
  color: #d7e4ef
}

.stage-card {
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  min-height: 210px
}

.stage-card:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-5px);
  transition: .25s
}

.stage-no {
  color: var(--yellow);
  font-weight: 900
}

.data-showcase {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px
}

.data-panel {
  padding: 30px
}

.data-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px
}

.data-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf8f3;
  color: #19765b;
  font-weight: 900;
  font-size: 22px;
}

.bar-chart {
  height: 235px;
  display: flex;
  align-items: end;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-top: 20px
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px
}

.bar {
  width: min(48px, 80%);
  height: var(--h);
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, var(--mint), var(--navy));
  animation: grow 1s ease both
}

.bar-col span {
  font-size: 22px;
  color: var(--muted);
  font-weight: 800
}

.insight {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 16px;
  background: #f2f7f5;
  margin-top: 12px
}

.insight i {
  font-style: normal;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  font-weight: 900
}

.insight strong {
  display: block;
  color: var(--navy)
}

.news-card {
  overflow: hidden
}

.news-thumb {
  height: 220px;
  display: grid;
  place-items: center;
  background: #edf4f1
}

.news-thumb.pattern {
  background: url('assets/pattern-light.png') center/cover
}

.news-thumb.falcon {
  background: linear-gradient(135deg, #15365c, #286a7a)
}

.news-thumb.grad {
  background: linear-gradient(135deg, var(--mint), var(--teal))
}

.news-thumb.calendar {
  background: linear-gradient(135deg, #fff8c3, #eef8f4)
}

.news-body {
  padding: 10px
}

.news-body small {
  color: var(--teal);
  font-weight: 900
}

.news-body h3 {
  color: var(--navy)
}

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, #278f96, #3caf98);
  color: #fff
}

.cta-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px
}

.cta h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  margin: 0px 0
}

.cta p{
  margin: 0;
} 
.page-hero {
  padding: 74px 0;
  background: linear-gradient(180deg, #fff, #f3f8f6)
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: center
}

.hero-side-card {
  position: relative;
  min-height: 300px
}

.hero-card-pattern {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: url('assets/pattern-light.png') center/cover;
  opacity: .65
}

.hero-side-panel {
  position: absolute;
  right: 25px;
  bottom: 25px;
  max-width: 315px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow)
}

.mini-list {
  padding-left: 18px;
  color: var(--muted)
}

.program-block {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line)
}

.program-num {
  font-size: 58px;
  font-weight: 900;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--navy)
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf7f3;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.timeline-step {
  padding: 24px
}

.timeline-step b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy)
}

.apply-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start
}

.steps {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 8px
}

.steps button {
  border: 0;
  background: transparent;
  padding: 13px 14px;
  border-radius: 13px;
  text-align: start;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center
}

.steps button b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4ecee;
  color: var(--navy)
}

.steps button.active {
  background: var(--navy);
  color: #fff
}

.steps button.active b {
  background: var(--yellow)
}

.wizard-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow)
}

.form-step {
  display: none
}

.form-step.active {
  display: grid;
  gap: 16px
}

.form-grid,
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px
}

.field {
  display: grid;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1/-1
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd7db;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  outline: none
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 166, 170, .11)
}

.upload-box {
  border: 2px dashed #cbd7db;
  padding: 22px;
  border-radius: 14px
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px
}

.hidden {
  display: none !important
}

.step-head h2 {
  margin: 6px 0 4px
}

.field em {
  font-style: normal;
  color: #b34848
}

.field-invalid {
  border-color: #b34848 !important;
  background: #fff8f8 !important
}

.wizard-action-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.review-panel {
  padding: 22px;
  border-radius: 18px;
  background: #f5faf8;
  border: 1px solid var(--line)
}

.review-panel strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 10px
}

html[dir=rtl] .steps button {
  text-align: right
}

.store-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px
}

.store-sidebar {
  padding: 22px;
  height: max-content;
  position: sticky;
  top: 102px
}

.filter-list {
  display: grid;
  gap: 8px
}

.store-filter {
  border: 0;
  background: #f2f6f5;
  color: var(--navy);
  padding: 11px 13px;
  border-radius: 11px;
  font-weight: 800;
  text-align: start
}

.store-filter.active {
  background: var(--navy);
  color: #fff
}

.toolbar {
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.product-card {
  overflow: hidden
}

.product-art {
  height: 205px;
  display: grid;
  place-items: center;
  font-size: 76px;
  background: linear-gradient(145deg, #f8fbfa, #edf5f2)
}

.product-body {
  padding: 19px
}

.product-body small {
  color: var(--teal);
  font-weight: 900
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.price {
  color: var(--navy);
  font-weight: 900
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 30, 48, .4);
  opacity: 0;
  visibility: hidden;
  z-index: 49
}

.overlay.show {
  opacity: 1;
  visibility: visible
}

.cart-drawer {
  position: fixed;
  right: 18px;
  top: 102px;
  width: min(380px, 92vw);
  padding: 22px;
  z-index: 50;
  transform: translateX(115%);
  transition: .28s;
  background: #fff
}

.cart-drawer.open {
  transform: none
}

.cart-line {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f2f6f5;
  border-radius: 12px;
  margin-bottom: 10px
}

.store-sidebar-title {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.job-card {
  padding: 24px
}

.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.job-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f3;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900
}

.career-layout,
.contact-layout,
.calendar-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px
}

.career-form {
  position: sticky;
  top: 102px
}

.calendar-panel {
  padding: 25px
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px
}

.day-name,
.day-cell {
  text-align: center;
  padding: 10px 6px;
  border-radius: 11px
}

.day-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--muted)
}

.day-cell {
  min-height: 78px;
  background: #f2f6f5;
  font-weight: 800
}

.day-cell.event {
  background: #fffbd6;
  border: 1px solid rgba(47, 166, 170, .18)
}

.badge {
  display: block;
  margin-top: 7px;
  padding: 3px 5px;
  border-radius: 999px;
  background: #fff;
  font-size: 9px
}

.event-item {
  padding: 15px;
  border-radius: 14px;
  background: #f2f6f5;
  margin-bottom: 10px
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px
}

.gallery-item {
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow)
}

.gallery-item.large {
  grid-column: span 7;
  min-height: 300px
}

.gallery-item.tall {
  grid-column: span 5;
  min-height: 300px
}

.gallery-item.medium {
  grid-column: span 4;
  margin: 0;
}

.gallery-item .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url('assets/pattern-light.png') center/cover
}

.gallery-fancybox-trigger {
  display: block;
  height: 100%;
  color: inherit;
  cursor: zoom-in
}

.gallery-fancybox-trigger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px
}

.gallery-fancybox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(4, 16, 28, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease
}

.gallery-fancybox.is-open {
  opacity: 1;
  visibility: visible
}

.gallery-fancybox-open {
  overflow: hidden
}

.gallery-fancybox-content {
  width: min(100%, 1100px);
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  text-align: center
}

.gallery-fancybox-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 118px);
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35)
}

.gallery-fancybox-content figcaption {
  min-height: 24px;
  margin-top: 12px;
  color: #fff;
  font-weight: 700
}

.gallery-fancybox-close,
.gallery-fancybox-nav {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease
}

.gallery-fancybox-close:hover,
.gallery-fancybox-nav:hover,
.gallery-fancybox-close:focus-visible,
.gallery-fancybox-nav:focus-visible {
  background: var(--teal);
  transform: scale(1.06)
}

.gallery-fancybox-close {
  position: absolute;
  top: 20px;
  right: 20px
}

@media (max-width: 640px) {
  .gallery-fancybox {
    gap: 8px;
    padding: 16px 8px
  }

  .gallery-fancybox-nav {
    width: 38px;
    height: 38px;
    font-size: 15px
  }

  .gallery-fancybox-close {
    top: 12px;
    right: 12px
  }
}

.overlay-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 30, 47, .78))
}

.faq-item {
  padding: 20px
}

.faq-grid {
  display: grid;
  gap: 14px
}

.contact-card {
  padding: 30px;
  align-self: start;
  overflow: hidden
}

.contact-card h2 {
  margin-bottom: 22px
}

.contact-detail-row {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f9f8
}

.contact-detail-row strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700
}

.contact-detail-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal
}

.modern-form select,
.modern-form select option {
  font-family: 'Font_R';
  font-weight: 400
}

.portal-page {
  background: #edf3f2
}

.portal-shell {
  display: grid;
  grid-template-columns: 265px 1fr;
  min-height: 100vh
}

.portal-sidebar {
  background: linear-gradient(180deg, #0b2a4b, #133d68);
  padding: 22px;
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain
}

.portal-brand {
  display: flex;
  gap: 10px;
  align-items: center
}

.portal-brand img {
  width: 46px;
  background: #fff;
  padding: 5px;
  border-radius: 10px
}

.portal-role {
  color: #9ad9c5;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase
}

.portal-menu-group {
  display: grid;
  gap: 6px;
  margin-top: 22px
}

.portal-nav {
  padding: 12px 13px;
  border-radius: 11px;
  color: #d8e5ee;
  font-weight: 800
}

.portal-nav.active,
.portal-nav:hover {
  background: var(--teal);
  color: #fff
}

.portal-main {
  padding: 22px;
  min-width: 0
}

.portal-top {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

.portal-title h1 {
  font-size: 42px;
  color: var(--navy);
  margin: 5px 0;
  letter-spacing: 0
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0
}

.metric {
  padding: 20px
}

.metric strong {
  display: block;
  font-size: 32px;
  color: var(--navy)
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px
}

.portal-widget {
  padding: 22px
}

.portal-widget h3 {
  color: var(--navy)
}

.portal-widget table {
  width: 100%;
  border-collapse: collapse
}

.portal-widget th,
.portal-widget td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: start
}

.portal-list-item {
  padding: 14px;
  background: #f2f6f5;
  border-radius: 12px;
  margin-bottom: 10px
}

.progress-line {
  margin-bottom: 13px
}

.progress-line small {
  display: flex;
  justify-content: space-between
}

.progress-bar {
  height: 9px;
  background: #e1e9e8;
  border-radius: 999px;
  overflow: hidden
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--teal), var(--mint))
}

.portal-view {
  display: none
}

.portal-view.active {
  display: block
}

.login-card {
  max-width: 590px;
  margin: auto
}

.login-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.role-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 15px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--navy)
}

.role-btn.active {
  background: var(--navy);
  color: #fff
}

.site-footer {
  background: #122235;
  color: #fff;
  padding: 40px 0 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px
}

.footer-logo {
  width: 220px;
  background: #fff;
  padding: 8px;
  border-radius: 12px
}

.footer-grid a {
  display: block;
  color: #c8d5df;
  padding: 5px 0
}

.footer-grid p,
.footer-contact {
  color: #c4d0da
}

.footer-contact-card h4 {
  border-inline-start: 4px solid #ffdf00;
  padding-inline-start: 12px;
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.15;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact-row svg {
  width: 21px;
  height: 21px;
  margin-top: 6px;
  fill: #ffdf00;
}

.footer-contact-row a {
  padding: 2px 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.footer-contact-row a:hover,
.footer-contact-row a:focus-visible {
  color: #ffdf00;
}

.footer-contact-phones>div {
  display: grid;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 25px;
  display: flex;
  justify-content: space-between;
  color: #9fb0bf;
  font-size: 22px;
}

@keyframes falconfloat {
  0%,
  100% {
    transform: translateY(4px) scale(.99)
  }
  50% {
    transform: translateY(-12px) scale(1.01)
  }
}

@keyframes loadline {
  0% {
    transform: scaleX(.08)
  }
  50% {
    transform: scaleX(.72)
  }
  100% {
    transform: scaleX(1)
  }
}

@keyframes grow {
  from {
    height: 0;
    opacity: .3
  }
}

@media(max-width:1100px) {
  .menu-toggle {
    display: flex;
    margin-left: auto
  }
  .site-nav {
    display: none;
    position: fixed;
    top: 84px;
    left: 18px;
    right: 18px;
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start
  }
  .site-nav.open {
    display: flex
  }
  .nav-link,
  .nav-drop-btn {
    padding: 8px 0
  }
  .header-actions {
    display: none
  }
  .dropdown-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0
  }
  .hero-grid,
  .hero-shell,
  .grid-2,
  .data-showcase,
  .career-layout,
  .contact-layout,
  .calendar-layout,
  .store-layout,
  .apply-layout,
  .portal-grid {
    grid-template-columns: 1fr
  }
  .grid-4,
  .grid-3,
  .timeline,
  .products,
  .jobs-grid,
  .portal-metrics,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
  .store-sidebar,
  .career-form,
  .steps,
  .portal-sidebar {
    position: static;
    height: auto
  }
  .portal-shell {
    grid-template-columns: 1fr
  }
  .portal-main {
    padding-top: 0
  }
}

@media(max-width:720px) {
  .brand img {
    width: 180px
  }
  .header-inner {
    min-height: 72px
  }
  .hero {
    padding: 48px 0 78px
  }
  .hero h1,
  .page-hero h1 {
    font-size: 42px
  }
  .hero-pattern-card {
    height: 390px
  }
  .hero-stats,
  .quick-grid,
  .grid-4,
  .grid-3,
  .timeline,
  .products,
  .jobs-grid,
  .portal-metrics,
  .footer-grid,
  .form-grid,
  .upload-grid,
  .login-roles {
    grid-template-columns: 1fr
  }
  .quick-strip {
    margin-top: 0
  }
  .quick-card {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }
  .section {
    padding: 40px 0
  }
  .section-head,
  .cta-shell,
  .toolbar,
  .portal-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column
  }
  .gallery-item.large,
  .gallery-item.tall,
  .gallery-item.medium {
    grid-column: span 12
  }
  .program-block {
    grid-template-columns: 1fr
  }
  .calendar-grid {
    gap: 4px
  }
  .day-cell {
    min-height: 60px;
    font-size: 22px;
  }
  .portal-title h1 {
    font-size: 34px
  }
  .loader-rings {
    width: 300px;
    height: 300px
  }
}

/* V3 header, responsive and interaction corrections */

.utility-bar {
  background: var(--navy2);
  color: #dce8f1;
  font-size: 22px;
}

.utility-inner {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 18px
}

.utility-inner a:hover {
  color: var(--yellow)
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.social-links-header {
  padding-inline-start: 4px;
  border-inline-start: 1px solid rgba(255, 255, 255, .25);
}

.social-links-header a {
  width: 25px;
  height: 25px;
  color: #fff;
  font-size: 15px;
}

.social-links-header a:hover,
.social-links-header a:focus-visible {
  color: var(--navy);
  background: var(--yellow);
  transform: translateY(-1px);
}

.social-links-footer {
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-grid .social-links-footer a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 18px;
}

.footer-grid .social-links-footer a:hover,
.footer-grid .social-links-footer a:focus-visible {
  color: var(--navy);
  border-color: var(--yellow);
  background: var(--yellow);
  transform: translateY(-2px);
}

.header-inner {
  height: 76px;
  min-height: 76px;
  gap: 24px
}

.brand {
  flex: 0 0 auto
}

.brand img {
  width: clamp(180px, 17vw, 224px);
  max-height: 58px;
  object-fit: contain
}

.site-nav {
  gap: clamp(14px, 1.6vw, 24px);
  min-width: 0
}

.nav-link,
.nav-drop-btn {
  padding: 27px 0 25px;
  font-size: 22px;
  white-space: nowrap
}

.dropdown-menu {
  top: 64px
}

.header-actions {
  margin-left: 4px;
  align-items: center;
  white-space: nowrap
}

.portal-link {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  padding: 10px
}

.header-apply {
  min-height: 42px;
  padding: 10px 18px
}

.store-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.career-controls {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 2px
}

.event-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.event-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  border-radius: 999px;
  padding: 10px 16px
}

.event-filter.active {
  background: var(--navy);
  color: #fff
}

.job-card.is-hidden,
.event-item.is-hidden {
  display: none
}

.wish-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 20px
}

.wish-btn.active {
  background: #fff4c4;
  color: #9d7000;
  border-color: #f1d85b
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.function-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--navy2);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 100
}

.function-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0)
}

@media(max-width:1180px) {
  .site-nav {
    gap: 13px
  }
  .nav-link,
  .nav-drop-btn {
    font-size: 22px;
  }
  .header-actions .portal-link {
    display: none
  }
  .header-apply {
    padding-inline: 15px
  }
}

@media(max-width:1040px) {
  .utility-bar {
    display: none
  }
  .header-inner {
    height: 74px;
    min-height: 74px
  }
  .site-nav {
    top: 74px;
    max-height: calc(100vh - 92px);
    overflow: auto;
    padding: 14px 18px 22px
  }
  .site-nav.open {
    display: flex
  }
  .nav-link,
  .nav-drop-btn {
    width: 100%;
    padding: 10px 0;
    text-align: start;
    font-size: 22px;
  }
  .nav-dropdown {
    width: 100%
  }
  .dropdown-menu {
    display: none !important;
    width: 100%;
    padding: 7px 0 4px
  }
  .nav-dropdown.open .dropdown-menu {
    display: grid !important
  }
  .header-actions {
    display: flex
  }
  .header-actions .portal-link {
    display: none
  }
  .header-apply {
    display: none
  }
  .menu-toggle {
    display: flex
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }
  .menu-toggle span {
    transition: .2s
  }
}

@media(max-width:720px) {
  .brand img {
    width: 174px;
    max-height: 48px
  }
  .header-inner {
    padding-inline: 2px
  }
  .career-controls {
    grid-template-columns: 1fr
  }
  .store-tools {
    width: 100%
  }
  .store-tools .btn {
    flex: 1
  }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.02
  }
  .page-hero {
    padding: 58px 0
  }
  .hero {
    padding-top: 42px
  }
  .container {
    width: min(92vw, 1240px)
  }
  .calendar-panel {
    padding: 18px
  }
  .day-cell {
    padding: 8px 3px
  }
  .badge {
    font-size: 8px;
    padding: 2px
  }
  .portal-main {
    padding: 14px
  }
  .portal-top {
    padding: 16px
  }
  .portal-widget {
    overflow-x: auto
  }
  .portal-widget table {
    min-width: 480px
  }
}

@media(max-width:430px) {
  .brand img {
    width: 154px
  }
  .header-inner {
    height: 68px;
    min-height: 68px
  }
  .site-nav {
    top: 68px;
    left: 10px;
    right: 10px
  }
  .hero-pattern-card {
    height: 330px
  }
  .btn {
    min-height: 43px;
    padding: 10px 16px
  }
  .loader-falcon {
    width: min(220px, 64vw)
  }
}

/* V4 — complete visual dashboard and motion system */

:root {
  --violet: #6f63d9;
  --orange: #f29b62;
  --sky: #eaf5ff;
  --success: #2b9a74;
  --warning: #bd7d18;
  --danger: #c95151
}

body {
  overflow-x: hidden
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

.portal-page {
  background: radial-gradient(circle at 88% 2%, rgba(47, 166, 170, .09), transparent 22%), linear-gradient(180deg, #f8fbfb, #edf4f3)
}

.portal-shell {
  grid-template-columns: 268px minmax(0, 1fr)
}

.portal-sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 22px 18px;
  background: linear-gradient(180deg, #092748, #123e6c 58%, #102f55);
  box-shadow: 16px 0 45px rgba(9, 39, 72, .12)
}

.portal-brand {
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.portal-brand img {
  width: 54px !important;
  height: 54px;
  object-fit: contain
}

.portal-sidebar>p {
  font-size: 22px;
  color: #bcd0df;
  padding: 0 7px
}

.portal-menu-group {
  gap: 5px !important
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  padding: 11px 12px !important
}

.portal-nav::before {
  content: attr(data-icon);
  width: 25px;
  text-align: center;
  font-size: 22px;
}

.portal-nav.active {
  background: linear-gradient(135deg, #2fa6aa, #53bd91) !important;
  box-shadow: 0 12px 26px rgba(47, 166, 170, .23)
}

.portal-main {
  padding: 20px 28px 52px
}

.portal-top {
  top: 16px !important;
  z-index: 10;
  padding: 18px 22px !important;
  box-shadow: 0 16px 38px rgba(16, 47, 85, .08) !important
}

.portal-title h1 {
  font-size: 38px !important;
  margin: 4px 0 6px !important
}

.portal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--navy);
  position: relative
}

.icon-button .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  top: 8px;
  right: 8px
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900
}

.portal-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px
}

.metric {
  min-height: 146px;
  padding: 20px !important
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eef8f5;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 900
}

.metric strong {
  font-size: 31px !important
}

.metric small {
  color: var(--muted)
}

.metric-trend {
  display: inline-flex;
  margin-top: 0px;
  padding: 0px 8px;
  border-radius: 999px;
  background: #e9f7f1;
  color: var(--success);
  font-size: 22px;
  font-weight: 600;
  margin: 0 5px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  margin-bottom: 20px
}

.welcome-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #123a65, #246b7d);
  color: #fff
}

.welcome-card:after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: url('assets/pattern-dark.png') center/cover;
  opacity: .23
}

.welcome-card>* {
  position: relative;
  z-index: 2
}

.welcome-card h2 {
  font-size: 30px;
  margin: 8px 0
}

.welcome-card p {
  color: #dce9f2;
  max-width: 650px
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px
}

.welcome-card .btn-soft {
  background: #fff;
  border: 0
}

.profile-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.profile-line {
  display: flex;
  gap: 14px;
  align-items: center
}

.profile-photo {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f7f1;
  color: var(--success);
  font-size: 22px;
  font-weight: 900
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px
}

.profile-details div {
  padding: 12px;
  border-radius: 14px;
  background: #f5f9f8
}

.profile-details small {
  display: block;
  color: var(--muted)
}

.portal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px !important;
  margin-bottom: 24px;
}

.portal-widget {
  grid-column: span 6;
  padding: 22px !important;
  overflow: hidden
}

.portal-widget.wide {
  grid-column: span 8
}

.portal-widget.narrow {
  grid-column: span 4
}

.portal-widget.full {
  grid-column: 1/-1
}

.widget-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px
}

.widget-head h3 {
  margin: 0
}

.widget-link {
  font-size: 22px;
  font-weight: 900;
  color: var(--teal)
}

.donut {
  --p: 76;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 8px auto 18px;
  background: conic-gradient(var(--teal) calc(var(--p)*1%), #e7efef 0);
  display: grid;
  place-items: center;
  position: relative
}

.donut:before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #fff
}

.donut-content {
  position: relative;
  text-align: center
}

.donut-content strong {
  font-size: 27px;
  color: var(--navy);
  display: block
}

.donut-content small {
  color: var(--muted)
}

.mini-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line)
}

.mini-chart .chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 8px
}

.mini-chart i {
  display: block;
  width: min(34px, 80%);
  height: var(--v);
  border-radius: 9px 9px 2px 2px;
  background: linear-gradient(180deg, var(--mint), var(--teal));
  animation: chartRise .8s ease both
}

.mini-chart small {
  color: var(--muted);
  font-style: normal
}

.activity-feed {
  display: grid;
  gap: 14px
}

.activity-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: start
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef8f5;
  color: var(--navy)
}

.activity-item strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.activity-item span,
.activity-item time {
  font-size: 22px;
  color: var(--muted)
}

.timeline-list {
  display: grid;
  gap: 12px
}

.timeline-row {
  display: grid;
  grid-template-columns: 76px 12px 1fr;
  gap: 12px;
  align-items: center
}

.timeline-time {
  font-size: 22px;
  color: var(--muted);
  font-weight: 800
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(47, 166, 170, .12)
}

.timeline-content {
  padding: 13px 15px;
  border-radius: 14px;
  background: #f5f9f8
}

.timeline-content strong {
  display: block;
  color: var(--navy)
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.quick-action {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 17px;
  padding: 18px;
  text-align: start;
  transition: .23s
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 166, 170, .4);
  box-shadow: var(--shadow)
}

.quick-action b {
  display: block;
  color: var(--navy);
  margin: 8px 0 4px
}

.quick-action span {
  font-size: 22px;
  color: var(--muted)
}

.quick-icon {
  font-size: 21px
}

.data-table-wrap {
  overflow: auto
}

.data-table {
  width: 100%;
  min-width: 640px
}

.data-table td,
.data-table th {
  padding: 13px 10px !important
}

.badge-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400
}

.badge-green {
  background: #e9f7f1;
  color: var(--success)
}

.badge-yellow {
  background: #fff5df;
  color: var(--warning)
}

.badge-red {
  background: #fdeaea;
  color: var(--danger)
}

.badge-blue {
  background: #e9f2fa;
  color: var(--navy)
}

.module-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px
}

.module-page-head h2 {
  margin: 0;
  color: var(--navy)
}

.module-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.module-controls input,
.module-controls select {
  width: auto;
  min-width: 170px
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.feature-card {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 56, 95, .06)
}

.feature-card h4 {
  margin: 10px 0 6px;
  color: var(--navy)
}

.feature-card p {
  font-size: 22px;
  color: var(--muted);
  margin: 0
}

.feature-card .btn {
  margin-top: 15px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 22px;
}

.empty-state {
  padding: 36px;
  text-align: center;
  border: 1px dashed #c9d7db;
  border-radius: 22px;
  background: #fafdfc
}

.empty-state .empty-icon {
  font-size: 36px
}

.empty-state h3 {
  color: var(--navy)
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 29, 49, .46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000
}

.modal-backdrop.open {
  display: flex
}

.portal-modal {
  width: min(600px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 29, 49, .25)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff
}

.modal-form {
  display: grid;
  gap: 13px;
  margin-top: 18px
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.notification-panel {
  position: fixed;
  right: 22px;
  top: 82px;
  width: min(390px, calc(100vw - 30px));
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(16, 47, 85, .2);
  z-index: 100;
  display: none
}

.notification-panel.open {
  display: block
}

.notification-panel h3 {
  margin: 0 0 14px
}

.notification-item {
  padding: 13px;
  border-radius: 14px;
  background: #f5f9f8;
  margin-top: 10px
}

.notification-item strong {
  display: block;
  color: var(--navy)
}

.visual-journey {
  position: relative
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative
}

.journey-line:before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--mint), var(--teal), var(--navy));
  z-index: 0
}

.journey-step {
  position: relative;
  z-index: 1;
  text-align: center
}

.journey-node {
  width: 68px;
  height: 68px;
  margin: auto;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: .25s
}

.journey-step:hover .journey-node {
  transform: translateY(-6px) rotate(-2deg);
  background: var(--navy);
  color: #fff
}

.journey-step b {
  display: block;
  margin-top: 15px;
  color: var(--navy)
}

.journey-step span {
  display: block;
  font-size: 22px;
  color: var(--muted)
}

.art-panel {
  position: relative;
  min-height: 360px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3157, #286d7d)
}

.art-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/pattern-dark.png') center/cover;
  opacity: .26
}

.art-panel img {
  position: absolute;
  right: 3%;
  bottom: -4%;
  height: 96%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .2));
  animation: falconfloat 3.2s ease-in-out infinite
}

.art-copy {
  position: absolute;
  left: 7%;
  top: 14%;
  max-width: 420px;
  color: #fff;
  z-index: 2
}

.art-copy h2 {
  font-size: 42px;
  color: #fff;
  margin: 14px 0
}

.art-copy p {
  color: #dce9f2
}

.art-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase
}

@keyframes chartRise {
  from {
    height: 0;
    opacity: .2
  }
}

@media(max-width:1180px) {
  .portal-metrics {
    grid-template-columns: repeat(2, 1fr)
  }
  .dashboard-hero {
    grid-template-columns: 1fr
  }
  .portal-widget,
  .portal-widget.wide,
  .portal-widget.narrow {
    grid-column: 1/-1
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:900px) {
  .portal-shell {
    grid-template-columns: 1fr
  }
  .portal-sidebar {
    position: relative;
    height: auto
  }
  .portal-menu-group {
    grid-template-columns: repeat(3, 1fr);
    display: grid
  }
  .portal-top {
    position: relative !important;
    top: 0 !important
  }
  .portal-main {
    padding: 16px
  }
  .journey-line {
    grid-template-columns: repeat(3, 1fr)
  }
  .journey-line:before {
    display: none
  }
  .art-panel {
    min-height: 480px
  }
  .art-panel img {
    height: 55%;
    right: 8%
  }
  .art-copy {
    left: 7%;
    right: 7%;
    max-width: none
  }
}

@media(max-width:620px) {
  .portal-metrics,
  .feature-grid,
  .action-grid,
  .profile-details,
  .modal-form .form-row {
    grid-template-columns: 1fr
  }
  .portal-menu-group {
    grid-template-columns: 1fr 1fr
  }
  .portal-title h1 {
    font-size: 31px !important
  }
  .portal-top {
    align-items: flex-start
  }
  .portal-top-actions {
    width: 100%;
    justify-content: flex-end
  }
  .module-page-head {
    align-items: flex-start;
    flex-direction: column
  }
  .module-controls {
    width: 100%
  }
  .module-controls input,
  .module-controls select {
    width: 100%
  }
  .journey-line {
    grid-template-columns: repeat(2, 1fr)
  }
  .art-copy h2 {
    font-size: 34px
  }
  .art-panel img {
    height: 43%
  }
}

/* === V5 visual QA overrides: consistent sizing, accessible hover, responsive ecommerce/dashboard === */

:root {
  --focus: 0 0 0 3px rgba(47, 166, 170, .22)
}

body {
  font-size: 19px;
  overflow-x: hidden
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  box-shadow: var(--focus)
}

/* Global hover safety: never allow white text on a white surface */

.card,
.data-panel,
.news-card,
.job-card,
.timeline-step,
.product-card,
.calendar-panel,
.faq-item,
.portal-widget,
.metric,
.feature-card,
.quick-card,
.quick-action,
.profile-card,
.event-item {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease
}

.card:hover,
.data-panel:hover,
.news-card:hover,
.job-card:hover,
.timeline-step:hover,
.product-card:hover,
.calendar-panel:hover,
.faq-item:hover,
.portal-widget:hover,
.metric:hover,
.feature-card:hover,
.quick-card:hover,
.quick-action:hover,
.profile-card:hover,
.event-item:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 166, 170, .30);
  box-shadow: 0 20px 50px rgba(20, 56, 95, .12);
  background: #fff;
  color: var(--ink)
}

.card:hover h2,
.card:hover h3,
.card:hover h4,
.data-panel:hover h3,
.news-card:hover h3,
.job-card:hover h3,
.timeline-step:hover h3,
.product-card:hover h3,
.calendar-panel:hover h2,
.calendar-panel:hover h3,
.faq-item:hover h3,
.portal-widget:hover h3,
.metric:hover strong,
.feature-card:hover h4,
.quick-card:hover strong,
.quick-action:hover b,
.profile-card:hover strong,
.event-item:hover strong {
  color: var(--navy)
}

.card:hover p,
.data-panel:hover p,
.news-card:hover p,
.job-card:hover p,
.timeline-step:hover p,
.product-card:hover p,
.calendar-panel:hover p,
.faq-item:hover p,
.portal-widget:hover p,
.metric:hover small,
.feature-card:hover p,
.quick-card:hover span,
.quick-action:hover span,
.profile-card:hover small,
.event-item:hover span {
  color: var(--muted)
}

.navy-band .stage-card:hover {
  background: #fff;
  color: var(--ink)
}

.navy-band .stage-card:hover h3 {
  color: var(--navy)
}

.navy-band .stage-card:hover p {
  color: var(--muted)
}

.navy-band .stage-card:hover .stage-no {
  color: #a88900
}

.welcome-card:hover,
.art-panel:hover,
.cta:hover,
.navy-band:hover {
  color: #fff
}

.welcome-card:hover h2,
.art-panel:hover h2,
.cta:hover h2,
.navy-band:hover h2,
.navy-band:hover h3 {
  color: #fff
}

.welcome-card:hover p,
.art-panel:hover p,
.cta:hover p,
.navy-band:hover p {
  color: #dce9f2
}

/* Buttons and links */

.btn {
  min-height: 44px;
  padding: 11px 19px;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap
}

.btn-primary:hover {
  background: var(--navy2);
  color: #fff
}

.btn-soft:hover,
.btn-ghost:hover {
  background: #eef7f4;
  color: var(--navy);
  border-color: rgba(47, 166, 170, .4)
}

.widget-link:hover,
.arrow-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px
}

/* Header proportions */

.header-inner {
  min-height: 76px;
  gap: 18px
}

.brand {
  flex: 0 0 auto
}

.brand img {
  width: 190px;
  max-height: 56px;
  object-fit: contain
}

.site-nav {
  gap: 15px
}

.nav-link,
.nav-drop-btn {
  padding: 27px 0 24px;
  font-size: 22px;
}

.dropdown-menu {
  top: 64px
}

.header-actions .btn {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 22px;
}

/* One icon system for portal and ecommerce */

.portal-nav::before,
.metric-icon,
.activity-icon,
.quick-icon,
.empty-icon,
.icon-button,
.journey-node,
.insight i,
.timeline-step b {
  font-family: 'Font_R';
  font-style: normal;
  line-height: 1;
  flex: 0 0 auto
}

.portal-nav::before {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
}

.portal-nav.active::before,
.portal-nav:hover::before {
  background: rgba(255, 255, 255, .16);
  color: #fff
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 13px
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 22px;
}

.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef8f5;
  color: var(--navy);
  font-size: 20px
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eef8f5;
  color: var(--navy);
  font-size: 24px !important
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
}

.journey-node {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 20px
}

/* Dashboard scale and spacing */

.portal-sidebar {
  width: auto
}

.portal-brand img {
  width: 48px !important;
  height: 48px
}

.portal-brand strong {
  font-size: 22px;
}

.portal-sidebar>p {
  font-size: 22px;
  line-height: 1.5
}

.portal-nav {
  font-size: 22px;
  padding: 10px 11px !important;
  min-height: 46px
}

.portal-main {
  min-width: 0
}

.portal-top {
  padding: 16px 18px !important
}

.portal-title h1 {
  font-size: 34px !important
}

.portal-title p {
  font-size: 22px;
  margin: 4px 0
}

.portal-metrics {
  gap: 12px
}

.metric {
  min-height: 132px;
  padding: 18px !important
}

.metric strong {
  font-size: 28px !important;
  line-height: 1.1
}

.metric>span:not(.metric-icon) {
  font-size: 22px;
  color: var(--muted)
}

.metric small {
  font-size: 22px;
}

.metric-trend {
  font-size: 22px;
}

.dashboard-hero {
  gap: 16px
}

.welcome-card,
.profile-card {
  padding: 22px
}

.welcome-card h2 {
  font-size: 26px
}

.welcome-card p {
  font-size: 22px;
}

.profile-photo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 20px
}

.profile-line h3 {
  font-size: 20px
}

.profile-details div {
  padding: 10px
}

.portal-widget {
  padding: 20px !important
}

.widget-head h3,
.portal-widget>h3 {
  font-size: 20px
}

.data-table td,
.data-table th {
  font-size: 22px;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.quick-action {
  padding: 15px;
  min-height: 135px
}

.quick-action b {
  font-size: 22px;
}

.feature-card {
  padding: 17px
}

.feature-card h4 {
  font-size: 22px;
}

.feature-card p {
  font-size: 22px;
}

.donut {
  width: 132px;
  height: 132px
}

.donut-content strong {
  font-size: 24px
}

.mini-chart {
  height: 170px
}

/* Ecommerce visual consistency */

.store-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px
}

.store-sidebar {
  padding: 22px
}

.store-sidebar h2 {
  font-size: 28px
}

.filter-list {
  gap: 8px;
  margin-bottom: 10px;
}

.store-filter {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 22px;
}

.toolbar {
  padding: 14px 16px;
  flex-wrap: wrap
}

.toolbar input {
  height: 44px
}

.store-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.product-card {
  min-width: 0;
  overflow: hidden
}

.product-art {
  height: 190px;
  font-size: 58px;
  line-height: 1;
  background: linear-gradient(145deg, #f8fbfa, #eaf4f0);
  display: grid;
  place-items: center
}

.product-art>* {
  max-width: 78%;
  max-height: 78%
}

.product-body {
  padding: 18px
}

.product-body small {
  font-size: 22px;
  letter-spacing: .09em
}

.product-body h3 {
  font-size: 22px;
  line-height: 1.25;
  min-height: 43px
}

.product-body p {
  font-size: 22px;
  min-height: 59px
}

.product-meta {
  align-items: center
}

.product-meta .btn {
  min-height: 39px;
  padding: 9px 13px;
  font-size: 22px;
}

.price {
  font-size: 20px
}

.wishlist-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  padding: 0 !important;
  border-radius: 12px !important;
  font-size: 20px !important
}

.cart-drawer {
  width: min(400px, calc(100vw - 28px));
  right: 14px
}

.cart-line {
  font-size: 22px;
}

.product-detail-grid {
  align-items: start
}

/* Events and public content */

.news-thumb {
  height: 200px;
  overflow: hidden;
}

.news-body h3 {
  font-size: 19px
}

.news-body p {
  font-size: 22px;
}

.calendar-grid {
  gap: 6px
}

.day-cell {
  min-height: 78px;
  padding: 10px 6px
}

.event-item {
  padding: 16px
}

.gallery-item .overlay-copy {
  color: #fff
}

.gallery-item:hover .overlay-copy {
  color: #fff
}

.gallery-item:hover .overlay-copy strong {
  color: #fff
}

/* Responsive QA */

@media(max-width:1180px) {
  .header-actions {
    display: none
  }
  .site-nav {
    gap: 12px
  }
  .brand img {
    width: 178px
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .store-layout {
    grid-template-columns: 220px minmax(0, 1fr)
  }
}

@media(max-width:980px) {
  .header-inner {
    min-height: 70px
  }
  .brand img {
    width: 165px
  }
  .site-nav {
    top: 72px
  }
  .store-layout {
    grid-template-columns: 1fr
  }
  .store-sidebar {
    position: static
  }
  .filter-list {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    display: grid;
    overflow-x: auto;
    padding-bottom: 4px
  }
  .cart-open {
    position: static
  }
  .portal-menu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .portal-nav {
    min-width: 0
  }
  .dashboard-hero {
    grid-template-columns: 1fr
  }
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:720px) {
  .container {
    width: min(94vw, 1240px)
  }
  .section {
    padding: 30px 0
  }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 54px)
  }
  .hero-stats {
    grid-template-columns: 1fr
  }
  .quick-grid {
    grid-template-columns: 1fr
  }
  .quick-card {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }
  .products {
    grid-template-columns: 1fr
  }
  .product-art {
    height: 180px
  }
  .toolbar {
    align-items: stretch
  }
  .toolbar input,
  .store-tools,
  .store-tools .btn {
    width: 100%
  }
  .store-tools .btn {
    justify-content: center
  }
  .portal-main {
    padding: 12px
  }
  .portal-top {
    display: grid;
    grid-template-columns: 1fr
  }
  .portal-top-actions {
    justify-content: flex-start
  }
  .portal-metrics {
    grid-template-columns: 1fr 1fr
  }
  .metric {
    min-height: 120px
  }
  .portal-menu-group {
    grid-template-columns: 1fr 1fr
  }
  .action-grid {
    grid-template-columns: 1fr
  }
  .quick-action {
    min-height: auto
  }
  .activity-item {
    grid-template-columns: 36px minmax(0, 1fr)
  }
  .activity-item time {
    grid-column: 2
  }
  .timeline-row {
    grid-template-columns: 62px 10px minmax(0, 1fr)
  }
  .journey-node {
    width: 52px;
    height: 52px
  }
  .day-cell {
    min-height: 62px;
    font-size: 22px;
  }
  .day-cell .badge {
    font-size: 8px;
    padding: 3px 5px
  }
  .hero-side-card {
    min-height: 240px
  }
  .hero-side-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 110px 14px 14px;
    max-width: none
  }
}

@media(max-width:480px) {
  .portal-metrics {
    grid-template-columns: 1fr
  }
  .portal-menu-group {
    grid-template-columns: 1fr
  }
  .brand img {
    width: 150px
  }
  .btn {
    white-space: normal
  }
  .calendar-grid {
    gap: 3px
  }
  .day-name,
  .day-cell {
    padding: 7px 3px
  }
  .day-cell {
    min-height: 54px
  }
  .profile-details {
    grid-template-columns: 1fr
  }
  .modal-backdrop {
    padding: 10px
  }
  .portal-modal {
    padding: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }
}

/* Lightweight page transition. Replaces the old full white loading screen. */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  display: none !important;
}

.loader.is-active {
  opacity: 1;
  visibility: visible
}

.loader.hide {
  opacity: 0;
  visibility: hidden
}

.loader:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(180px, 42vw);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--mint), var(--teal), var(--navy));
  transform: translateX(-50%) scaleX(.32);
  transform-origin: center;
  animation: loadline .72s ease-out both
}

.loader-rings {
  position: absolute;
  width: 190px;
  height: 190px;
  opacity: .55
}

.loader-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(20, 56, 95, .08)
}

.loader-rings span:nth-child(2) {
  inset: 24px;
  border-color: rgba(47, 166, 170, .14)
}

.loader-rings span:nth-child(3) {
  inset: 48px;
  border-color: rgba(99, 194, 147, .16)
}

.loader-falcon {
  position: relative;
  z-index: 2;
  width: min(120px, 32vw);
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(20, 56, 95, .16));
  animation: falconTransition .72s ease-out both
}

.loader-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 4px
}

.loader-copy strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.loader-copy small {
  display: block;
  color: var(--muted);
  font-size: 22px;
  margin-top: 4px
}

@keyframes falconTransition {
  0% {
    opacity: 0;
    transform: translateX(-28px) translateY(10px) scale(.92)
  }
  55% {
    opacity: 1;
    transform: translateX(6px) translateY(-4px) scale(1.02)
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1)
  }
}

@media(prefers-reduced-motion:reduce) {
  .loader,
  .loader:before,
  .loader-falcon {
    animation: none !important;
    transition: none !important
  }
  .loader {
    background: rgba(255, 255, 255, .82)
  }
}

/* === V6 ABOUT + ADMISSIONS EXPERIENCE === */

.about-hero,
.admissions-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 110px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 48%, #eaf6f1 100%)
}

.about-hero::before,
.admissions-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -150px;
  top: -170px;
  background: url('assets/pattern-light.png') center/cover;
  opacity: .13
}

.about-hero::after,
.admissions-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--mint), var(--yellow))
}

.about-hero-grid,
.admissions-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center
}

.about-hero h1,
.admissions-hero h1 {
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: .96;
  letter-spacing: 0;
  color: var(--navy);
  margin: 18px 0 22px;
  max-width: 820px
}

.about-hero p,
.admissions-hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px
}

.hero-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 59, 103, .1);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  box-shadow: var(--shadow-sm)
}

.about-visual,
.admissions-visual {
  position: relative;
  min-height: 540px;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(155deg, #11345c, #1a5275 58%, #2fa6aa);
  box-shadow: 0 32px 70px rgba(16, 47, 85, .18)
}

.about-visual::before,
.admissions-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/pattern-dark.png') center/cover;
  opacity: .42
}

.about-visual img {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 76%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .28));
  animation: aboutFalcon 4.2s ease-in-out infinite
}

.visual-glass-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(320px, calc(100% - 56px));
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--shadow-md);
  z-index: 2
}

.visual-glass-card h3 {
  margin: 0 0 8px;
  color: var(--navy)
}

.visual-glass-card p {
  font-size: 22px;
  margin: 0;
  color: var(--muted)
}

.story-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start
}

.story-index {
  position: sticky;
  top: 125px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(145deg, #102f55, #173b67);
  color: #fff
}

.story-index strong {
  display: block;
  font-size: 22px;
  color: #a8e3cf;
  margin-bottom: 18px
}

.story-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #dce7f1;
  font-weight: 800
}

.story-index a:hover {
  color: var(--yellow);
  background: transparent
}

.story-section {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line)
}

.story-section:last-child {
  border-bottom: none
}

.story-section h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 12px 0 16px
}

.story-section p {
  font-size: 20px
}

.value-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.value-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: .28s
}

.value-panel:hover {
  transform: translateY(-6px);
  background: linear-gradient(145deg, #fff, #f4faf7);
  color: var(--ink)
}

.value-panel::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -36px;
  bottom: -36px;
  border-radius: 50%;
  background: rgba(99, 194, 147, .14)
}

.value-panel .value-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #edf8f4;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 34px
}

.value-panel h3 {
  color: var(--navy);
  font-size: 22px
}

.value-panel p {
  font-size: 22px;
}

.value-panel:hover h3,
.value-panel:hover p {
  color: inherit
}

.about-quote {
  position: relative;
  padding: 56px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0d2d50, #173b67);
  color: #fff;
  overflow: hidden
}

.about-quote::after {
  content: '“';
  position: absolute;
  right: 28px;
  top: -25px;
  font-size: 190px;
  color: rgba(255, 255, 255, .08);
  font-family: Georgia, serif
}

.about-quote blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.22;
  font-weight: 800;
  max-width: 920px
}

.about-quote cite {
  display: block;
  margin-top: 24px;
  color: #a9decf;
  font-style: normal;
  font-weight: 800
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm)
}

.journey-stage {
  position: relative;
  padding: 28px 22px;
  min-height: 190px;
  border-right: 1px solid var(--line);
  transition: .25s
}

.journey-stage:last-child {
  border-right: none
}

.journey-stage:hover {
  background: #f2faf6;
  color: var(--ink)
}

.journey-stage b {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 10px
}

.journey-stage h3 {
  color: var(--navy);
  font-size: 19px
}

.journey-stage p {
  font-size: 22px;
}

.journey-stage:hover h3,
.journey-stage:hover p {
  color: inherit
}

.admissions-visual {
  background: linear-gradient(155deg, #12355d, #1b617d 60%, #43b59c)
}

.admissions-visual .admission-flow-art {
  position: absolute;
  inset: 50px 42px;
  display: grid;
  align-content: center;
  gap: 16px
}

.admission-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  animation: admissionPulse 3s ease-in-out infinite
}

.admission-node:nth-child(2) {
  margin-left: 42px;
  animation-delay: .35s
}

.admission-node:nth-child(3) {
  margin-left: 84px;
  animation-delay: .7s
}

.admission-node:nth-child(4) {
  margin-left: 126px;
  animation-delay: 1.05s
}

.admission-node b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--navy)
}

.admission-node strong {
  color: var(--navy)
}

.admission-node small {
  display: block;
  color: var(--muted)
}

.admission-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 3
}

.admission-stat {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md)
}

.admission-stat strong {
  display: block;
  color: var(--navy);
  font-size: 24px
}

.admission-stat span {
  font-size: 22px;
  color: var(--muted)
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 29px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--yellow));
  z-index: 0
}

.process-card {
  position: relative;
  z-index: 1;
  padding: 18px 14px 22px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: .25s
}

.process-card:hover {
  transform: translateY(-5px);
  background: #f6fbf8;
  color: var(--ink)
}

.process-card b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--line)
}

.process-card h3 {
  font-size: 22px;
  color: var(--navy)
}

.process-card p {
  font-size: 22px;
}

.process-card:hover h3,
.process-card:hover p {
  color: inherit
}

.admission-content-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px
}

.document-card,
.support-card {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm)
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px
}

.document-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft)
}

.document-item i {
  font-style: normal;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 900
}

.document-item strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.document-item span {
  display: block;
  color: var(--muted);
  font-size: 22px;
  margin-top: 3px
}

.support-card {
  background: linear-gradient(150deg, #102f55, #173b67);
  color: #fff
}

.support-card h3 {
  color: #fff
}

.support-card p {
  color: #d9e5ee
}

.support-list {
  display: grid;
  gap: 14px;
  margin-top: 22px
}

.support-list div {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1)
}

.support-list strong {
  display: block;
  color: #fff
}

.support-list span {
  font-size: 22px;
  color: #c9d8e5
}

.support-card .btn {
  margin-top: 22px;
  background: var(--yellow);
  color: var(--navy)
}

.support-card .btn:hover {
  background: #fff;
  color: var(--navy)
}

.faq-compact {
  display: grid;
  gap: 12px
}

.faq-compact details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm)
}

.faq-compact summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--navy)
}

.faq-compact p {
  margin: 12px 0 0
}

.admission-cta {
  padding: 58px;
  border-radius: 32px;
  background: linear-gradient(135deg, #2fa6aa, #63c293);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px
}

.admission-cta h2 {
  color: #fff;
  margin: 10px 0
}

.admission-cta p {
  color: #effff8
}

.admission-cta .btn {
  background: #fff;
  color: var(--navy)
}

.admission-cta .btn:hover {
  background: var(--yellow);
  color: var(--navy)
}

@keyframes aboutFalcon {
  0%,
  100% {
    transform: translateY(5px) rotate(-1deg)
  }
  50% {
    transform: translateY(-12px) rotate(1deg)
  }
}

@keyframes admissionPulse {
  0%,
  100% {
    transform: translateY(0)
  }
  50% {
    transform: translateY(-5px)
  }
}

@media(max-width:1100px) {
  .about-hero-grid,
  .admissions-hero-grid,
  .story-layout,
  .admission-content-grid {
    grid-template-columns: 1fr
  }
  .about-visual,
  .admissions-visual {
    min-height: 460px
  }
  .story-index {
    position: static
  }
  .value-panels {
    grid-template-columns: repeat(2, 1fr)
  }
  .journey-strip {
    grid-template-columns: repeat(2, 1fr)
  }
  .journey-stage {
    border-bottom: 1px solid var(--line)
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr)
  }
  .process-steps::before {
    display: none
  }
  .admission-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px
  }
}

@media(max-width:720px) {
  .about-hero,
  .admissions-hero {
    padding: 58px 0 72px
  }
  .about-visual,
  .admissions-visual {
    min-height: 380px
  }
  .about-visual img {
    width: 88%;
    right: 0
  }
  .visual-glass-card {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
    padding: 18px
  }
  .value-panels,
  .journey-strip,
  .process-steps,
  .document-grid,
  .admission-stats {
    grid-template-columns: 1fr
  }
  .journey-stage {
    border-right: none
  }
  .about-quote {
    padding: 34px 26px
  }
  .admission-node:nth-child(n) {
    margin-left: 0
  }
  .admissions-visual .admission-flow-art {
    inset: 36px 20px
  }
  .admission-cta {
    padding: 34px 24px;
    display: block
  }
  .admission-cta .btn {
    margin-top: 18px
  }
  .hero-badge-row {
    gap: 8px
  }
  .hero-badge {
    font-size: 22px;
  }
}

/* V7 — homepage sizing, iconography and CTA refinement */

.home-icon,
.value-home-icon,
.journey-node svg {
  display: grid;
  place-items: center;
  flex: 0 0 auto
}

.home-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #edf7f3;
  color: var(--navy)
}

.home-icon svg,
.value-home-icon svg,
.journey-node svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.quick-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: start;
  gap: 14px;
  min-height: 154px;
  padding: 24px 22px;
  background: #fff;
  transition: background .22s ease, transform .22s ease, color .22s ease
}

.quick-card strong {
  font-size: 22px;
  line-height: 1.25;
  margin-top: 2px
}

.quick-card span:not(.home-icon):not(.quick-arrow) {
  font-size: 22px;
  line-height: 1.55
}

.quick-arrow {
  align-self: center;
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
  transition: transform .22s ease
}

.quick-card:hover {
  background: #f5faf8;
  color: var(--ink);
  transform: translateY(-3px)
}

.quick-card:hover strong {
  color: var(--navy)
}

.quick-card:hover span {
  color: var(--muted)
}

.quick-card:hover .home-icon {
  background: var(--navy);
  color: #fff
}

.quick-card:hover .quick-arrow {
  color: var(--navy);
  transform: translateX(3px)
}

.home-values .values-card {
  min-height: auto;
  padding: 16px
}

.value-home-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #eef8f4;
  color: var(--navy);
  margin-bottom: 28px
}

.values-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 0;
}

.values-card p {
  font-size: 22px;
  line-height: 1.65;
  margin: 0
}

.values-card:hover {
  background: #f7fbf9;
  color: var(--ink);
  transform: translateY(-4px)
}

.values-card:hover h3 {
  color: var(--navy)
}

.values-card:hover p {
  color: var(--muted)
}

.values-card:hover .value-home-icon {
  background: var(--navy);
  color: #fff
}

.visual-journey .journey-node {
  width: 52px;
  height: 52px
}

.visual-journey .journey-node svg {
  width: 20px;
  height: 20px
}

.home-cta {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background: linear-gradient(125deg, #102f55 0%, #174a70 58%, #2b9c9e 100%)
}

.home-cta:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/pattern-dark.png') center/cover;
  opacity: .11
}

.home-cta .cta-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 54px
}

.cta-copy {
  max-width: 720px
}

.cta-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #d8f6ea;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

.home-cta h2 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 18px 0 16px;
  color: #fff
}

.home-cta p {
  max-width: 680px;
  color: #d9e7ef;
  font-size: 22px;
  line-height: 1.7
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px
}

.cta-primary {
  background: var(--yellow);
  color: var(--navy)
}

.cta-primary:hover {
  background: #fff;
  color: var(--navy)
}

.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .36)
}

.cta-secondary:hover {
  background: #fff;
  color: var(--navy)
}

.cta-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center
}

.cta-visual img {
  position: relative;
  z-index: 2;
  max-height: 300px;
  max-width: 76%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .24));
  animation: falconfloat 3.5s ease-in-out infinite
}

.cta-orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2)
}

.cta-orbit:before,
.cta-orbit:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12)
}

.cta-orbit:before {
  inset: 26px
}

.cta-orbit:after {
  inset: 56px
}

.cta-badge {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 3;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: var(--shadow-lg)
}

.cta-badge strong,
.cta-badge span {
  display: block
}

.cta-badge strong {
  font-size: 22px;
}

.cta-badge span {
  font-size: 22px;
  color: var(--muted);
  margin-top: 2px
}

@media(max-width:1100px) {
  .home-cta .cta-shell {
    grid-template-columns: 1fr
  }
  .cta-visual {
    min-height: 260px
  }
  .cta-visual img {
    max-height: 230px
  }
  .quick-card {
    min-height: 142px
  }
}

@media(max-width:720px) {
  .quick-card {
    grid-template-columns: 42px 1fr 18px;
    min-height: auto;
    padding: 20px 18px
  }
  .home-icon {
    width: 42px;
    height: 42px
  }
  .home-values .values-card {
    min-height: auto
  }
  .home-cta {
    padding: 62px 0
  }
  .home-cta h2 {
    font-size: 38px
  }
  .home-cta p {
    font-size: 20px
  }
  .cta-visual {
    min-height: 230px
  }
  .cta-visual img {
    max-height: 205px
  }
  .cta-orbit {
    width: 230px;
    height: 230px
  }
  .cta-badge {
    right: 0;
    bottom: 0
  }
  .cta-actions .btn {
    width: 100%
  }
}

@media(max-width:430px) {
  .home-cta h2 {
    font-size: 34px
  }
  .cta-visual {
    min-height: 210px
  }
  .cta-visual img {
    max-height: 185px
  }
  .cta-orbit {
    width: 205px;
    height: 205px
  }
  .quick-arrow {
    display: none
  }
  .quick-card {
    grid-template-columns: 42px 1fr
  }
}

/* V8 — global proportion, spacing and responsive layout correction */

:root {
  --content-max: 1180px;
  --section-space: 84px;
  --section-space-sm: 58px;
}

.container {
  width: min(var(--content-max), 92vw)
}

.utility-bar {
  min-height: 34px
}

.utility-inner {
  min-height: 34px;
  font-size: 22px;
}

.header-inner {
  min-height: 78px;
  gap: 20px
}

.brand img {
  width: 205px;
  max-height: 58px;
  object-fit: contain
}

.site-nav {
  gap: 16px
}

.nav-link,
.nav-drop-btn {
  font-size: 22px;
}

.header-actions {
  gap: 10px
}

.header-apply {
  padding: 12px 20px;
  min-height: 44px
}

.portal-link {
  font-size: 22px;
}

.section {
  padding: var(--section-space) 0
}

.section-head {
  margin-bottom: 30px
}

.section-head h2,
.section h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  max-width: 860px
}

.section-head p,
.section p {
  max-width: 760px;
  margin: 0;
}

.hero {
  padding: 64px 0 92px
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 44px
}

.hero h1 {
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.01;
  max-width: 740px
}

.hero p {
  font-size: 22px;
  line-height: 1.65
}

.hero-pattern-card {
  height: 500px;
  border-radius: 32px
}

.hero-pattern-card .falcon-stage {
  inset: 38px 28px 28px
}

.hero-pattern-card .falcon-stage img {
  max-height: 410px;
  width: auto;
  max-width: 86%
}

.hero-stats {
  gap: 14px;
  margin-top: 34px
}

.hero-stat {
  min-width: 150px;
  padding: 15px 16px
}

.hero-stat strong {
  font-size: 22px;
}

.hero-stat span {
  font-size: 22px;
}

.quick-strip {
  margin-top: -30px
}

.quick-grid {
  border-radius: 22px
}

.quick-card {
  min-height: 132px;
  padding: 21px 18px;
  grid-template-columns: 40px 1fr 18px;
  gap: 12px
}

.home-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px
}

.home-icon svg {
  width: 20px;
  height: 20px
}

.quick-card strong {
  font-size: 22px;
}

.quick-card span:not(.home-icon):not(.quick-arrow) {
  font-size: 22px;
  line-height: 1.45
}

.grid-2,
.grid-3,
.grid-4 {
  align-items: stretch
}

.card {
  padding: 16px;
  border-radius: 20px
}

.home-values .values-card {
  min-height: auto;
  padding: 16px
}

.value-home-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px
}

.values-card h3 {
  font-size: 20px
}

.values-card p {
      font-size: 19px;
      line-height: normal;
}

.stage-card {
  min-height: auto;
  padding: 16px
}

.stage-card h3 {
  font-size: 22px;
  margin: 0;
}
h3{
  margin: 0;
}
.stage-card p {
  font-size: 22px;
}

.data-panel {
  padding: 28px;
  border-radius: 24px
}

.bar-chart {
  height: 205px
}

.insight {
  padding: 14px
}

.insight i {
  width: 38px;
  height: 38px
}

.visual-journey {
  overflow: hidden
}

.journey-line {
  gap: 18px
}

.journey-step {
  min-width: 0
}

.visual-journey .journey-node {
  width: 46px;
  height: 46px
}

.journey-step b {
  font-size: 22px;
}

.journey-step span {
  font-size: 22px;
  line-height: 1.4
}

.art-panel {
  min-height: 440px;
  border-radius: 28px
}

.art-panel .art-copy {
  max-width: 590px;
  padding: 48px
}

.art-panel .art-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05
}

.art-panel>img {
  max-height: 390px;
  max-width: 42%;
  right: 4%
}

.home-cta {
  padding: 66px 0
}

.home-cta .cta-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 34px
}

.home-cta h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.04
}

.home-cta p {
  font-size: 22px;
  line-height: 1.6
}

.cta-actions {
  margin-top: 24px
}

.cta-actions .btn {
  min-height: 46px;
  padding: 13px 20px
}

.cta-visual {
  min-height: 270px
}

.cta-visual img {
  max-height: 230px;
  max-width: 66%
}

.cta-orbit {
  width: 238px;
  height: 238px
}

.cta-badge {
  right: 2%;
  bottom: 4%;
  padding: 10px 13px;
  border-radius: 13px
}

.cta-badge strong {
  font-size: 22px;
}

.cta-badge span {
  font-size: 22px;
}

/* About page sizing and link/click spacing */

.about-hero,
.admissions-hero {
  padding: 68px 0 82px
}

.about-hero-grid,
.admissions-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 42px
}

.about-hero h1,
.admissions-hero h1 {
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.02;
  max-width: 720px
}

.about-hero p,
.admissions-hero p {
  font-size: 22px;
  line-height: 1.65
}

.about-visual,
.admissions-visual {
  min-height: 460px;
  border-radius: 30px
}

.about-visual img {
  max-height: 410px;
  max-width: 84%;
  width: auto
}

.visual-glass-card {
  max-width: 360px;
  padding: 20px 22px
}

.visual-glass-card h3 {
  font-size: 20px
}

.visual-glass-card p {
  font-size: 22px;
}

.story-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px
}

.story-index {
  top: 116px;
  padding: 24px;
  border-radius: 24px
}

.story-index strong {
  font-size: 22px;
  margin-bottom: 10px
}

.story-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 4px;
  font-size: 22px;
  line-height: 1.35
}

.story-index a span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  transition: .2s
}

.story-index a:hover span {
  background: var(--yellow);
  color: var(--navy);
  transform: translateX(2px)
}

.story-section {
  padding-bottom: 28px;
  margin-bottom: 28px
}

.story-section h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08
}

.story-section p {
  font-size: 22px;
  line-height: 1.7
}

.story-section .grid-2 {
  gap: 18px
}

.story-section .card {
  min-height: 260px;
  padding: 28px
}

.story-section .card h3 {
  font-size: 24px;
  margin-bottom: 18px
}

.story-section .card p {
  font-size: 22px;
  line-height: 1.7;
  margin: 0
}

.value-panels {
  gap: 18px
}

.value-panel {
  padding: 25px;
  min-height: 230px
}

.value-panel h3 {
  font-size: 20px
}

.journey-strip {
  gap: 0
}

.journey-stage {
  padding: 25px 20px;
  min-height: 170px
}

.about-quote {
  padding: 46px
}

.about-quote blockquote {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25
}

/* Shared page hero / slider correction */

.page-hero {
  padding: 58px 0 0 66px
}

.hero-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 30px
}

.page-hero h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02
}

.page-hero p {
  font-size: 22px;
  line-height: 1.65
}

.hero-side-card {
  min-height: 280px
}

.hero-side-panel {
  max-width: 300px;
  padding: 20px;
  right: 20px;
  bottom: 20px
}

.media-banner,
.pattern-banner,
.falcon-banner {
  min-height: 210px
}

/* Ecommerce and dashboards consistent scaling */

.store-layout {
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 24px
}

.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.product-art {
  height: 185px;
  font-size: 68px
}

.product-body {
  padding: 18px
}

.product-body h3 {
  font-size: 20px
}

.product-body p {
  font-size: 22px;
}

.product-meta {
  gap: 10px
}

.product-meta .btn {
  padding: 10px 14px;
  font-size: 22px;
}

.store-sidebar {
  padding: 20px
}

.toolbar {
  padding: 14px 16px
}

.portal-shell {
  grid-template-columns: 250px minmax(0, 1fr)
}

.portal-sidebar {
  padding: 20px
}

.portal-main {
  padding: 20px 24px
}

.portal-top {
  top: 92px;
  padding: 16px 20px
}

.portal-title h1 {
  font-size: 38px
}

.portal-metrics {
  gap: 14px;
  margin: 20px 0
}

.metric {
  padding: 20px
}

.metric strong {
  font-size: 30px
}

.portal-grid {
  gap: 16px
}

.portal-widget {
  padding: 20px;
  border-radius: 20px
}

.action-grid {
  gap: 12px
}

.action-card {
  min-height: 120px;
  padding: 18px;
      background: #fff;
border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.action-icon {
  width: 40px;
  height: 40px
}

.action-icon svg {
  width: 20px;
  height: 20px
}

/* Prevent white-on-white hover regressions */

.card:hover,
.quick-card:hover,
.product-card:hover,
.story-section .card:hover,
.value-panel:hover,
.journey-stage:hover {
  color: var(--ink)
}

.card:hover h2,
.card:hover h3,
.quick-card:hover strong,
.product-card:hover h3,
.story-section .card:hover h3,
.value-panel:hover h3,
.journey-stage:hover h3 {
  color: var(--navy)
}

.card:hover p,
.quick-card:hover p,
.product-card:hover p,
.story-section .card:hover p,
.value-panel:hover p,
.journey-stage:hover p {
  color: var(--muted)
}

.navy-band .stage-card:hover {
  background: #fff;
  color: var(--ink)
}

.navy-band .stage-card:hover h3 {
  color: var(--navy)
}

.navy-band .stage-card:hover p {
  color: var(--muted)
}

@media(max-width:1180px) {
  .container {
    width: min(94vw, var(--content-max))
  }
  .header-inner {
    gap: 14px
  }
  .brand img {
    width: 190px
  }
  .site-nav {
    gap: 12px
  }
  .nav-link,
  .nav-drop-btn {
    font-size: 22px;
  }
  .header-apply {
    padding: 11px 16px
  }
  .hero-grid,
  .about-hero-grid,
  .admissions-hero-grid,
  .hero-shell {
    grid-template-columns: 1fr 420px;
    gap: 30px
  }
  .hero h1 {
    font-size: 56px
  }
  .about-hero h1,
  .admissions-hero h1,
  .page-hero h1 {
    font-size: 54px
  }
  .story-layout {
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 34px
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:980px) {
  .header-inner {
    min-height: 72px
  }
  .brand img {
    width: 180px
  }
  .hero-grid,
  .about-hero-grid,
  .admissions-hero-grid,
  .hero-shell,
  .home-cta .cta-shell,
  .story-layout,
  .store-layout {
    grid-template-columns: 1fr
  }
  .hero-pattern-card {
    height: 430px
  }
  .about-visual,
  .admissions-visual {
    min-height: 420px
  }
  .story-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }
  .story-index strong {
    grid-column: 1/-1
  }
  .story-index a {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 58px
  }
  .home-cta .cta-copy {
    max-width: none
  }
  .cta-visual {
    min-height: 240px
  }
  .cta-visual img {
    max-height: 205px
  }
  .portal-shell {
    grid-template-columns: 1fr
  }
  .portal-sidebar {
    position: static;
    height: auto
  }
  .portal-menu-group {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:720px) {
  :root {
    --section-space: 62px
  }
  .utility-bar {
    display: none
  }
  .header-inner {
    min-height: 68px
  }
  .brand img {
    width: 164px;
    max-height: 48px
  }
  .hero {
    padding: 42px 0 70px
  }
  .hero h1,
  .about-hero h1,
  .admissions-hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 10vw, 48px)
  }
  .hero p,
  .about-hero p,
  .admissions-hero p,
  .page-hero p {
    font-size: 20px
  }
  .hero-pattern-card {
    height: 360px
  }
  .hero-pattern-card .falcon-stage img {
    max-height: 300px
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr
  }
  .hero-stat {
    min-width: 0
  }
  .quick-strip {
    margin-top: -22px
  }
  .quick-card {
    min-height: auto
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .products,
  .portal-metrics {
    grid-template-columns: 1fr
  }
  .section-head {
    align-items: flex-start
  }
  .section-head .btn {
    width: 100%
  }
  .art-panel {
    min-height: 540px
  }
  .art-panel .art-copy {
    padding: 34px 26px;
    max-width: 100%
  }
  .art-panel>img {
    max-width: 62%;
    max-height: 270px;
    right: 3%;
    bottom: 1%
  }
  .home-cta {
    padding: 54px 0
  }
  .home-cta h2 {
    font-size: 36px
  }
  .cta-visual {
    min-height: 210px
  }
  .cta-visual img {
    max-height: 180px
  }
  .cta-orbit {
    width: 195px;
    height: 195px
  }
  .cta-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -6px
  }
  .about-hero,
  .admissions-hero {
    padding: 48px 0 62px
  }
  .about-visual,
  .admissions-visual {
    min-height: 350px
  }
  .story-index {
    grid-template-columns: 1fr
  }
  .story-section .card {
    min-height: auto;
    padding: 22px
  }
  .story-section .card h3 {
    font-size: 21px
  }
  .value-panels,
  .journey-strip {
    grid-template-columns: 1fr
  }
  .portal-menu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .portal-main {
    padding: 14px
  }
  .portal-top {
    position: static
  }
  .portal-title h1 {
    font-size: 32px
  }
  .products {
    gap: 14px
  }
  .product-art {
    height: 160px;
    font-size: 56px
  }
}

@media(max-width:430px) {
  .container {
    width: min(92vw, var(--content-max))
  }
  .brand img {
    width: 150px
  }
  .hero-pattern-card {
    height: 320px
  }
  .about-visual,
  .admissions-visual {
    min-height: 320px
  }
  .visual-glass-card {
    width: calc(100% - 24px);
    left: 12px;
    bottom: 12px
  }
  .home-cta h2 {
    font-size: 32px
  }
  .cta-actions .btn {
    width: 100%
  }
  .cta-visual img {
    max-height: 160px
  }
  .cta-orbit {
    width: 175px;
    height: 175px
  }
  .story-index a {
    font-size: 22px;
  }
  .art-panel {
    min-height: 500px
  }
  .art-panel>img {
    max-width: 72%
  }
}

.vision-mission-grid {
  align-items: stretch
}

.vision-mission-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start
}

.vision-mission-card p {
  margin-bottom: 0
}

/* V9 — comprehensive icon and layout normalization */

:root {
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --control-h: 44px;
  --page-max: 1280px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden
}

.container {
  width: min(var(--page-max), calc(100% - 48px))
}

svg {
  display: block
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ui-icon-sm {
  width: var(--icon-sm);
  height: var(--icon-sm)
}

.ui-icon-md {
  width: var(--icon-md);
  height: var(--icon-md)
}

.ui-icon-lg {
  width: var(--icon-lg);
  height: var(--icon-lg)
}

/* Header and navigation consistency */

.site-header .container {
  width: min(1320px, calc(100% - 44px))
}

.header-inner {
  min-height: 78px;
  gap: 18px
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto
}

.brand img {
  width: 206px;
  height: 58px;
  object-fit: contain
}

.site-nav {
  gap: 16px;
  min-width: 0
}

.nav-link,
.nav-drop-btn {
  padding: 27px 0 24px;
  font-size: 22px;
  white-space: nowrap
}

.header-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 22px;
  white-space: nowrap
}

/* Shared section and card geometry */

.section {
  padding: 40px 0
}

.section-head {
  margin-bottom: 16px
}

.section-head h2,
.section h2 {
  font-size: clamp(31px, 3.6vw, 48px);
  line-height: 1.08
}

.card,
.data-panel,
.news-card,
.job-card,
.timeline-step,
.product-card,
.calendar-panel,
.faq-item,
.portal-widget,
.metric,
.feature-card,
.quick-card,
.quick-action,
.profile-card,
.event-item {
  min-width: 0
}

.card p,
.news-body p,
.job-card p,
.timeline-step p,
.feature-card p,
.product-body p {
  overflow-wrap: anywhere
}

/* Homepage quick links and CTA icon sizing */

.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.quick-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  min-height: 126px;
  padding: 20px 18px
}

.home-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px
}

.home-icon svg {
  width: 20px;
  height: 20px
}

.quick-arrow {
  font-size: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center
}

.quick-arrow::before {
  content: '›';
  font-size: 24px;
  line-height: 1;
  color: currentColor
}

.value-home-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 8px
}

.value-home-icon svg {
  width: 20px;
  height: 20px
}

.visual-journey .journey-node {
  width: 44px;
  height: 44px
}

.visual-journey .journey-node svg {
  width: 19px;
  height: 19px
}

.home-cta .cta-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr)
}

.cta-visual {
  min-height: 250px
}

.cta-visual img {
  max-width: 62%;
  max-height: 215px;
  object-fit: contain
}

.cta-orbit {
  width: 220px;
  height: 220px
}

.cta-badge {
  max-width: 150px
}

.cta-actions .btn {
  min-height: 44px;
  padding: 11px 18px
}

.cta-actions .btn span[aria-hidden="true"] {
  font-size: 0;
  width: 16px;
  height: 16px;
  position: relative
}

.cta-actions .btn span[aria-hidden="true"]::before {
  content: '›';
  font-size: 22px;
  line-height: 14px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center
}

/* About page proportions */

.story-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px
}

.story-index {
  padding: 21px;
  border-radius: 22px
}

.story-index a {
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 18px;
  min-height: 60px;
  padding: 12px 2px;
  font-size: 22px;
}

.story-index a span {
  width: 30px;
  height: 30px;
  font-size: 0
}

.story-index a span::before {
  content: '›';
  font-size: 22px;
  line-height: 1
}

.vision-mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px
}

.vision-mission-card {
  min-height: 0 !important;
  padding: 26px !important
}

.vision-mission-card h3 {
  font-size: 22px !important;
  margin: 0 0 14px !important
}

.vision-mission-card p {
  font-size: 20px !important;
  line-height: 1.65 !important
}

/* Portal icon system */

.portal-nav {
  position: relative;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 9px 10px !important
}

.portal-nav::before {
  display: none !important;
  content: none !important
}

.portal-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  flex: 0 0 auto;
  color: #d8e5ee
}

.portal-nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.portal-nav.active .portal-nav-icon,
.portal-nav:hover .portal-nav-icon {
  background: rgba(255, 255, 255, .16);
  color: #fff
}

.metric-icon,
.activity-icon,
.quick-icon,
.empty-icon,
.icon-button,
.feature-card>div:first-child {
  font-size: 0 !important;
  line-height: 0 !important
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 12px
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px
}

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px
}

.empty-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  margin: 0 auto 14px !important
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 11px
}

.metric-icon svg,
.activity-icon svg,
.quick-icon svg,
.empty-icon svg,
.icon-button svg,
.feature-card>div:first-child svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.feature-card>div:first-child {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef8f5;
  color: var(--navy);
  display: grid;
  place-items: center;
      justify-content: center;
}

.portal-brand img {
  width: 44px !important;
  height: 44px !important
}

.portal-shell {
  grid-template-columns: 238px minmax(0, 1fr)
}

.portal-sidebar {
  padding: 18px
}

.portal-main {
  padding: 18px 22px 44px
}

.portal-title h1 {
  font-size: 32px !important
}

.portal-top {
  padding: 14px 16px !important
}

.portal-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.metric {
  min-height: 124px;
  padding: 17px !important
}

.metric strong {
  font-size: 27px !important
}

.portal-widget {
  padding: 18px !important;
  margin-bottom: 24px;
}
.filter-actions{
  margin-top: 24px;
}
.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.quick-action {
  min-height: 124px;
  padding: 14px
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto
}

.data-table {
  min-width: 680px
}

/* Ecommerce icon and component sizing */

.store-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px
}

.store-sidebar {
  padding: 18px
}

.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.product-art {
  height: 175px;
  font-size: 0 !important;
  display: grid;
  place-items: center
}

.product-art .product-visual-icon {
  width: 72px;
  height: 72px;
  color: var(--navy)
}

.product-art .product-visual-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round
}

.product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.product-body h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0
}

.product-body p {
  font-size: 22px;
  line-height: 1.55;
  flex: 1
}

.product-meta {
  margin-top: 14px;
  align-items: center
}

.product-meta .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 22px;
}

.toolbar {
  min-height: 68px;
  padding: 12px 14px
}

.toolbar input {
  min-height: 42px
}

.cart-open {
  min-height: 42px
}

/* Hover color safety */

.card:hover,
.data-panel:hover,
.news-card:hover,
.job-card:hover,
.timeline-step:hover,
.product-card:hover,
.calendar-panel:hover,
.faq-item:hover,
.portal-widget:hover,
.metric:hover,
.feature-card:hover,
.quick-card:hover,
.quick-action:hover,
.profile-card:hover,
.event-item:hover {
  background: #fff !important;
  color: var(--ink) !important
}

.card:hover h1,
.card:hover h2,
.card:hover h3,
.card:hover h4,
.data-panel:hover h3,
.news-card:hover h3,
.job-card:hover h3,
.timeline-step:hover h3,
.product-card:hover h3,
.calendar-panel:hover h2,
.calendar-panel:hover h3,
.faq-item:hover h3,
.portal-widget:hover h3,
.metric:hover strong,
.feature-card:hover h4,
.quick-card:hover strong,
.quick-action:hover b,
.profile-card:hover strong,
.event-item:hover strong {
  color: var(--navy) !important
}

.card:hover p,
.data-panel:hover p,
.news-card:hover p,
.job-card:hover p,
.timeline-step:hover p,
.product-card:hover p,
.calendar-panel:hover p,
.faq-item:hover p,
.portal-widget:hover p,
.metric:hover small,
.feature-card:hover p,
.quick-card:hover span:not(.home-icon),
.quick-action:hover span,
.profile-card:hover small,
.event-item:hover span {
  color: var(--muted) !important
}

.store-sidebar .store-sidebar-title {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere
}

.navy-band .stage-card:hover {
  background: #fff !important;
  color: var(--ink) !important
}

.navy-band .stage-card:hover h3 {
  color: var(--navy) !important
}

.navy-band .stage-card:hover p {
  color: var(--muted) !important
}

@media(max-width:1180px) {
  .site-header .container {
    width: min(1320px, calc(100% - 28px))
  }
  .brand img {
    width: 178px;
    height: 52px
  }
  .site-nav {
    gap: 11px
  }
  .nav-link,
  .nav-drop-btn {
    font-size: 22px;
  }
  .header-actions .btn {
    padding: 9px 14px
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:980px) {
  .container {
    width: calc(100% - 32px)
  }
  .site-header .container {
    width: calc(100% - 28px)
  }
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .quick-card:nth-child(2) {
    border-right: none
  }
  .quick-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line)
  }
  .story-layout,
  .home-cta .cta-shell,
  .store-layout {
    grid-template-columns: 1fr
  }
  .story-index {
    position: static
  }
  .portal-shell {
    grid-template-columns: 1fr
  }
  .portal-sidebar {
    position: static;
    height: auto
  }
  .portal-menu-group {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
  .action-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:720px) {
  .container {
    width: calc(100% - 24px)
  }
  .site-header .container {
    width: calc(100% - 22px)
  }
  .brand img {
    width: 150px;
    height: 46px
  }
  .header-inner {
    min-height: 68px
  }
  .quick-grid,
  .vision-mission-grid,
  .products,
  .portal-metrics,
  .action-grid,
  .feature-grid {
    grid-template-columns: 1fr
  }
  .quick-card {
    border-right: none !important;
    border-bottom: 1px solid var(--line)
  }
  .quick-card:last-child {
    border-bottom: none
  }
  .section {
    padding: 60px 0
  }
  .home-cta .cta-shell {
    gap: 20px
  }
  .cta-visual {
    min-height: 210px
  }
  .cta-visual img {
    max-height: 175px
  }
  .cta-orbit {
    width: 180px;
    height: 180px
  }
  .cta-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    max-width: 170px
  }
  .story-index a {
    min-height: 54px
  }
  .vision-mission-card {
    padding: 21px !important
  }
  .portal-menu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .portal-main {
    padding: 12px
  }
  .portal-top {
    position: static;
    align-items: flex-start
  }
  .portal-top-actions {
    width: 100%;
    justify-content: flex-end
  }
  .module-page-head {
    align-items: flex-start;
    flex-direction: column
  }
  .module-controls {
    width: 100%
  }
  .module-controls input,
  .module-controls select {
    width: 100%;
    min-width: 0
  }
}

@media(max-width:430px) {
  .quick-card {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    padding: 17px 14px
  }
  .home-icon {
    width: 38px;
    height: 38px
  }
  .portal-menu-group {
    grid-template-columns: 1fr
  }
  .portal-top-actions {
    gap: 6px
  }
  .avatar,
  .icon-button {
    width: 36px;
    height: 36px
  }
  .cta-actions .btn {
    width: 100%
  }
}

/* ===== V10: production icon and layout correction ===== */

:root {
  --home-radius: 28px;
  --home-gap: 24px
}

.ui-icon,
.home-icon svg,
.quick-arrow svg,
.journey-node svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.home-hero {
  padding: 28px 0 0;
  background: transparent;
  overflow: visible
}

.home-hero::after {
  display: none
}

.home-hero-grid {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--home-radius);
  background: linear-gradient(100deg, #092f57 0%, #0d4169 55%, #0b3158 100%);
  box-shadow: 0 24px 60px rgba(15, 47, 82, .14)
}

.home-hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/pattern-dark.png') center/cover;
  opacity: .22
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  padding: 62px 24px 62px 68px;
  color: #fff;
  max-width: 700px
}

.hero-label {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid rgba(99, 194, 147, .8);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .05)
}

.home-hero h1 {
  font-size: clamp(44px, 4.6vw, 70px);
  line-height: 1.03;
  letter-spacing: 0;
  color: #fff;
  margin: 24px 0 20px;
  max-width: 680px
}

.home-hero p {
  font-size: 22px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  max-width: 610px;
  margin: 0
}

.home-hero .hero-actions {
  margin-top: 30px
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12)
}

.btn-light:hover {
  background: var(--yellow);
  color: var(--navy)
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  background: rgba(255, 255, 255, .05)
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy)
}

.home-hero-art {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  place-items: end center;
  min-height: 520px
}

.home-hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 100%;
  /* object-fit: contain;
  object-position: center bottom; */
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .22))
}

.hero-geometry {
  position: absolute;
  inset: 30px 8% 20px 0;
  background: url('assets/pattern-light.png') center/cover;
  border-radius: 36px;
  opacity: .22;
  mix-blend-mode: screen
}

.quick-strip {
  margin-top: 22px;
  padding: 0;
  background: transparent
}

.quick-grid {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 47, 82, .09);
  overflow: hidden;
  background: #fff
}

.quick-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 148px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: #fff;
  transition: background .2s ease, transform .2s ease
}

.quick-card:last-child {
  border-right: 0
}

.quick-card:hover {
  background: #f8fbfa !important;
  transform: none !important
}

.quick-card:hover strong {
  color: var(--navy) !important
}

.quick-card:hover .quick-copy>span {
  color: var(--muted) !important
}

.home-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #edf7f3;
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 auto
}

.home-icon svg {
  width: 28px;
  height: 28px
}

.quick-copy {
  min-width: 0
}

.quick-copy strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 8px
}

.quick-copy>span {
  display: block;
  color: var(--muted);
      font-size: 19px;
  line-height: 1.55
}

.quick-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: transparent;
  transition: .2s
}

.quick-arrow::before {
  display: none !important;
  content: none !important
}

.quick-arrow svg {
  width: 20px;
  height: 20px
}

.quick-card:hover .quick-arrow {
  background: var(--navy);
  color: #fff;
  transform: translateX(2px)
}

.journey-section {
  padding-top: 72px;
  padding-bottom: 72px
}

.visual-journey {
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(15, 47, 82, .07);
  overflow: hidden
}

.journey-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px
}

.journey-line::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow), var(--mint), var(--teal), var(--navy));
  z-index: 0
}

.journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0
}

.visual-journey .journey-node {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 1px solid #d9e4e7 !important;
  color: var(--navy) !important;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(15, 47, 82, .08);
  margin: 0 auto 18px
}

.visual-journey .journey-node svg {
  width: 27px !important;
  height: 27px !important
}

.journey-step b {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px
}

.journey-step span {
  font-size: 22px;
  line-height: normal;
  color: var(--muted);
  max-width: 170px
}

.art-panel {
  min-height: 500px !important;
  border-radius: 28px !important;
  overflow: hidden !important
}

.art-panel .art-copy {
  padding: 54px 0 54px 54px;
  max-width: 650px
}

.art-panel h2 {
  font-size: clamp(42px, 4.4vw, 66px) !important;
  line-height: 1.04 !important
}

.art-panel img {
  max-width: 42% !important;
  max-height: 440px !important;
  right: 3% !important;
  bottom: 0 !important;
  object-fit: contain !important
}

.product-art .product-visual-icon {
  display: grid;
  place-items: center
}

.product-art .product-visual-icon svg {
  width: 72px !important;
  height: 72px !important
}

.portal-top-actions .icon-button svg {
  width: 18px;
  height: 18px
}

.portal-language-form {
  margin: 0;
  display: flex;
  align-items: center
}

.portal-lang-toggle {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(20, 56, 95, .06);
  cursor: pointer;
  white-space: nowrap
}

.portal-lang-toggle:hover,
.portal-lang-toggle:focus-visible {
  border-color: var(--teal);
  background: #f4faf8;
  color: var(--teal-dark);
  outline: 0
}

html[dir="rtl"] .portal-language-form {
  direction: rtl
}

/* Portal header action hardening: keep notification/logout SVG buttons visible and ordered in RTL. */
.portal-top-actions {
  direction: ltr;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.portal-top-actions .portal-language-form,
.portal-top-actions .icon-button,
.portal-top-actions .avatar {
  flex: 0 0 auto;
}

.portal-top-actions .portal-search {
  order: 1;
}

.portal-top-actions .portal-language-form {
  order: 2;
}

.portal-top-actions .portal-notification-button {
  order: 3;
}

.portal-top-actions .portal-logout-button {
  order: 4;
}

.portal-top-actions .avatar {
  order: 5;
}

.portal-top-actions .icon-button {
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible;
  font-size: 0 !important;
  line-height: 0 !important;
}

.portal-top-actions .icon-button .ui-icon {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html[dir="rtl"] .portal-top-actions {
  direction: ltr !important;
}

html[dir="rtl"] .portal-top-actions .portal-language-form {
  direction: ltr !important;
}

@media(max-width:1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr .82fr;
    min-height: 470px
  }
  .home-hero-copy {
    padding: 48px 20px 48px 46px
  }
  .home-hero-art {
    min-height: 470px
  }
  .home-hero-art img {
    width: 95%;
    max-height: 420px
  }
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .quick-card:nth-child(2) {
    border-right: 0
  }
  .quick-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line)
  }
  .journey-line {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px
  }
  .journey-line::before {
    display: none
  }
  .journey-step::before {
    content: '';
    position: absolute;
    top: 31px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #dce8e8;
    z-index: -1
  }
  .journey-step:nth-child(3n+1)::before {
    display: none
  }
}

@media(max-width:760px) {
  .home-hero {
    padding-top: 16px
  }
  .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0
  }
  .home-hero-copy {
    padding: 38px 24px 20px
  }
  .home-hero h1 {
    font-size: clamp(38px, 11vw, 52px)
  }
  .home-hero-art {
    min-height: 300px
  }
  .home-hero-art img {
    width: min(88%, 390px);
    max-height: 300px
  }
  .hero-geometry {
    inset: 20px
  }
  .quick-grid {
    grid-template-columns: 1fr
  }
  .quick-card {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
    min-height: 120px;
    padding: 18px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important
  }
  .quick-card:last-child {
    border-bottom: 0 !important
  }
  .home-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px
  }
  .home-icon svg {
    width: 24px;
    height: 24px
  }
  .journey-line {
    grid-template-columns: repeat(2, 1fr)
  }
  .journey-step:nth-child(3n+1)::before {
    display: block
  }
  .journey-step:nth-child(odd)::before {
    display: none
  }
  .visual-journey {
    padding: 28px 14px
  }
  .art-panel {
    min-height: 620px !important
  }
  .art-panel .art-copy {
    padding: 38px 24px;
    max-width: none
  }
  .art-panel img {
    max-width: 82% !important;
    max-height: 300px !important;
    left: 9% !important;
    right: auto !important
  }
}

@media(max-width:430px) {
  .hero-label {
    font-size: 9px;
    letter-spacing: .12em
  }
  .home-hero-copy {
    padding: 30px 18px 18px
  }
  .home-hero p {
    font-size: 22px;
  }
  .home-hero .hero-actions .btn {
    width: 100%
  }
  .journey-line {
    grid-template-columns: 1fr
  }
  .journey-step::before {
    display: none !important
  }
  .quick-card {
    grid-template-columns: 46px minmax(0, 1fr) 22px
  }
  .home-icon {
    width: 46px;
    height: 46px
  }
  .quick-copy strong {
    font-size: 20px
  }
  .quick-copy>span {
    font-size: 22px;
  }
}

/* V12 — definitive homepage quick-link icon and arrow layout */

.quick-strip {
  margin-top: 24px !important;
  padding: 0 !important
}

.quick-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  background: #fff !important;
  border: 1px solid #dfe7ea !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 44px rgba(16, 47, 85, .08) !important
}

.quick-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  column-gap: 18px !important;
  min-height: 162px !important;
  padding: 26px 24px !important;
  border: 0 !important;
  border-right: 1px solid #dfe7ea !important;
  background: #fff !important;
  color: var(--ink) !important;
  transform: none !important;
  text-align: start !important
}

.quick-card:last-child {
  border-right: 0 !important
}

.quick-card:hover,
.quick-card:focus-visible {
  background: #f7fbfa !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ink) !important
}

.home-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  background: #edf7f3 !important;
  color: #66788a !important;
  flex: 0 0 auto !important
}

.home-icon svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  overflow: visible !important
}

.quick-copy {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important
}

.quick-copy strong {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--navy) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important
}

.quick-copy>span {
  display: block !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 20px !important;
  line-height: 1.55 !important
}

.quick-arrow {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: end !important;
  color: #718091 !important;
  background: transparent !important;
  font-size: 0 !important;
  transform: none !important
}

.quick-arrow::before,
.quick-arrow::after {
  content: none !important;
  display: none !important
}

.quick-arrow svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important
}

.quick-card:hover .home-icon,
.quick-card:focus-visible .home-icon {
  background: var(--navy) !important;
  color: #fff !important
}

.quick-card:hover .quick-arrow,
.quick-card:focus-visible .quick-arrow {
  background: var(--navy) !important;
  color: #fff !important;
  transform: translateX(2px) !important
}

.quick-card:hover .quick-copy strong,
.quick-card:focus-visible .quick-copy strong {
  color: var(--navy) !important
}

.quick-card:hover .quick-copy>span,
.quick-card:focus-visible .quick-copy>span {
  color: var(--muted) !important
}

@media(max-width:1180px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }
  .quick-card {
    border-right: 1px solid #dfe7ea !important;
    border-bottom: 1px solid #dfe7ea !important
  }
  .quick-card:nth-child(2n) {
    border-right: 0 !important
  }
  .quick-card:nth-last-child(-n+2) {
    border-bottom: 0 !important
  }
}

@media(max-width:720px) {
  .quick-strip {
    margin-top: 18px !important
  }
  .quick-grid {
    grid-template-columns: 1fr !important;
    border-radius: 20px !important
  }
  .quick-card {
    grid-template-columns: 54px minmax(0, 1fr) 28px !important;
    min-height: 128px !important;
    padding: 20px 18px !important;
    column-gap: 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dfe7ea !important
  }
  .quick-card:last-child {
    border-bottom: 0 !important
  }
  .home-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important
  }
  .home-icon svg {
    width: 26px !important;
    height: 26px !important
  }
  .quick-copy strong {
    font-size: 20px !important
  }
  .quick-copy>span {
    font-size: 20px !important
  }
  .quick-arrow {
    width: 28px !important;
    height: 28px !important
  }
  .quick-arrow svg {
    width: 19px !important;
    height: 19px !important
  }
}

@media(max-width:430px) {
  .quick-card {
    grid-template-columns: 48px minmax(0, 1fr) 24px !important;
    padding: 17px 14px !important;
    column-gap: 12px !important
  }
  .home-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important
  }
  .home-icon svg {
    width: 23px !important;
    height: 23px !important
  }
  .quick-copy strong {
    font-size: 20px !important;
    margin-bottom: 6px !important
  }
  .quick-copy>span {
    font-size: 20px !important;
    line-height: 1.45 !important
  }
}

/* Portal workflow cleanup */

.portal-nav {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  line-height: 1.25 !important
}

.portal-nav-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, .08) !important;
  flex: 0 0 auto !important;
  color: #d8e5ee !important
}

.portal-nav-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important
}

.portal-nav.active .portal-nav-icon,
.portal-nav:hover .portal-nav-icon {
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important
}

.portal-brand {
  min-width: 0
}

.portal-brand>div {
  min-width: 0
}

.portal-brand strong {
  display: block;
  line-height: 1.25
}

.modal-form,
.portal-widget form {
  font-weight: 400
}

.modal-form p {
  margin: 0;
  display: grid;
  gap: 6px
}

.modal-form label,
.portal-widget form label,
.field {
  font-weight: 600 !important;
  color: var(--navy)
}

.modal-form input,
.modal-form select,
.modal-form textarea,
.portal-widget form input,
.portal-widget form select,
.portal-widget form textarea {
  font-weight: 400 !important;
  color: var(--ink)
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px
}

/* Phase 1 portal shell foundation */

@media (min-width: 901px) {
  body.portal-page {
    height: 100vh;
    overflow: hidden;
  }
  .portal-shell {
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }
  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 268px !important;
    height: 100vh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .portal-main {
    margin-left: 268px !important;
    height: 100vh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  html[dir="rtl"] .portal-sidebar {
    left: auto !important;
    right: 0 !important;
  }
  html[dir="rtl"] .portal-main {
    margin-left: 0 !important;
    margin-right: 268px !important;
  }
  .portal-top {
    top: 16px !important;
  }
}

@media (max-width: 900px) {
  body.portal-page {
    height: auto;
    overflow: auto;
  }
  .portal-shell {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  .portal-sidebar,
  .portal-main {
    height: auto !important;
    overflow: visible !important;
  }
}

.page-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-actions {
  justify-content: flex-end;
}

.form-card {
  max-width: 100%;
}

.confirm-card {
  max-width: 760px;
}

.portal-secondary-menu {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap
}

.pagination-status {
  font-size: 22px;
  color: var(--muted);
  font-weight: 800
}

.pagination .disabled {
  opacity: .45;
  pointer-events: none
}

.portal-list {
  display: grid;
  gap: 10px
}

.portal-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  text-decoration: none
}

.portal-list-item strong,
.portal-list-item span {
  min-width: 0;
  overflow-wrap: anywhere
}

.portal-list-item strong {
  font-weight: 900;
  color: var(--navy)
}

.portal-list-item span {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35
}

.row-actions form {
  margin: 0;
  display: inline-flex
}

.action-list-form {
  border: 0;
  text-align: inherit;
  font: inherit
}

.action-list-form button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: inherit;
  font: inherit;
  cursor: pointer
}

.action-list-form:hover {
  background: #eaf3f1
}

.actions-menu {
  position: relative;
  display: inline-block
}

.actions-menu summary {
  list-style: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer
}

.actions-menu summary span {
  line-height: 1;
  transform: translateY(-3px);
}

.portal-message-actions summary {
  width: 44px;
  height: 40px;
  border-color: #cfe0ee;
  box-shadow: 0 10px 22px rgba(17, 56, 91, .08);
}

.portal-message-actions summary span {
  display: block;
  color: transparent;
  width: 18px;
  height: 18px;
  background:
    radial-gradient(circle, var(--navy) 2px, transparent 2.5px) 2px 50%/6px 6px no-repeat,
    radial-gradient(circle, var(--navy) 2px, transparent 2.5px) 8px 50%/6px 6px no-repeat,
    radial-gradient(circle, var(--navy) 2px, transparent 2.5px) 14px 50%/6px 6px no-repeat;
  transform: none;
}

.portal-message-actions[open] summary,
.portal-message-actions summary:hover {
  border-color: var(--teal);
  background: #eef8f6;
}

.actions-menu summary::-webkit-details-marker {
  display: none
}

.actions-menu-list {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 30;
  min-width: 185px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: start
}

.actions-menu-list a,
.actions-menu-list button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 4px 11px;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  text-decoration: none
}

.actions-menu-list a:hover,
.actions-menu-list button:hover {
  background: #eef6f4
}

.actions-menu-list form {
  margin: 0
}

html[dir="rtl"] .actions-menu-list {
  right: auto;
  left: 0;
  text-align: right
}

html[dir="rtl"] .actions-menu-list a,
html[dir="rtl"] .actions-menu-list button {
  text-align: right
}

@media(max-width:720px) {
  .portal-list-item {
    flex-direction: column
  }
  .portal-list-item span {
    text-align: start
  }
}

/* V20 store product images */

.product-image-frame {
  height: 190px;
  display: grid;
  place-items: center;
  background: #f4f8f7;
  overflow: hidden;
  color: var(--navy);
  text-decoration: none
}

.product-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.product-image-frame span {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: #e7f4ef;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--teal-dark)
}

.product-detail-image-frame {
  height: 420px !important;
  padding: 0 !important;
  overflow: hidden;
  display: grid !important;
  place-items: center;
  background: #f4f8f7
}

.product-detail-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block
}

.product-detail-image-frame span {
  font-size: 80px;
  color: var(--navy);
  font-weight: 900
}

html[dir="rtl"] .store-filter {
  text-align: right
}

@media(max-width:720px) {
  .product-image-frame {
    height: 170px
  }
  .product-detail-image-frame {
    height: 320px !important
  }
}

/* V21 store card equal-height correction */

.products {
  align-items: stretch
}

.products .product-card {
  height: 100%;
  display: grid !important;
  grid-template-rows: 190px minmax(230px, 1fr);
  overflow: hidden
}

.products .product-card .product-media,
.products .product-card .product-image-frame {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  width: 100%;
  display: block !important;
  overflow: hidden;
  line-height: 0
}

.products .product-card .product-image-frame img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important
}

.products .product-card .product-image-frame span {
  line-height: 1;
  display: grid;
  margin: auto
}

.products .product-card .product-body {
  min-height: auto;
  display: grid !important;
  grid-template-rows: auto auto minmax(58px, 1fr) auto auto;
  align-content: start;
  gap: 0px
}

.products .product-card .product-body h3 {
  min-height: auto;
  margin: 0
}

.products .product-card .product-body p {
min-height: auto;
    margin: 0;
    line-height: normal;
}

.products .product-card .product-body strong {
  align-self: end;
  margin-bottom: 10px;
  
}

.products .product-card .actions {
  margin-top: 0
}

@media(max-width:720px) {
  .products .product-card {
    grid-template-rows: 170px minmax(220px, 1fr)
  }
  .products .product-card .product-media,
  .products .product-card .product-image-frame {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important
  }
}

/* V21 final store card normalization */

.products {
  align-items: stretch
}

.products .product-card {
  height: 100%;
  min-height: auto;
  display: grid !important;
  grid-template-rows: 190px 1fr;
  border-radius: 22px;
  overflow: hidden
}

.products .product-media,
.products .product-image-frame {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  width: 100%;
  overflow: hidden;
  background: #f4f8f7
}

.products .product-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block
}

.products .product-body {
  display: grid !important;
  grid-template-rows: auto auto minmax(64px, 1fr) auto auto;
  gap: 9px;
  min-height: 240px
}

.products .product-body h3,
.products .product-body p,
.products .product-body strong {
  margin: 0
}

.products .product-body .actions {
  align-self: end
}

@media(max-width:720px) {
  .products .product-card {
    min-height: 400px;
    grid-template-rows: 170px 1fr
  }
  .products .product-media,
  .products .product-image-frame {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important
  }
}

/* V22 article/event detail CMS helper content */

.article-detail-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 22px;
  background: #f4f8f7;
  display: block
}

.cms-helper-list {
  display: grid;
  gap: 12px;
  margin-top: 18px
}

.cms-helper-list div {
  padding: 14px;
  border-radius: 14px;
  background: #f4f8f7;
  border: 1px solid #d8e6e4
}

.cms-helper-list strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 4px
}

.cms-helper-list span {
  display: block;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55
}

@media(max-width:720px) {
  .article-detail-image {
    height: 220px
  }
}

/* V23 mobile and RTL resilience pass */

html,
body {
  max-width: 100%;
  overflow-x: hidden
}

main,
.site-header,
.site-footer,
.container,
.portal-shell,
.portal-main,
.portal-widget,
.card,
.panel,
.product-card,
.news-card,
.job-card {
  min-width: 0
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
strong,
small,
li,
td,
th,
label,
button,
.btn,
.nav-link,
.dropdown-link {
  overflow-wrap: anywhere
}

.table-wrap,
.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch
}

.table-wrap table,
.data-table-wrap table {
  min-width: 100%
}
.table-wrap table thead tr th{
  text-align: start;
}
.btn,
.portal-link,
.header-apply,
.pagination .btn {
  white-space: normal;
  text-align: center
}

.field input,
.field select,
.field textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  max-width: 100%;
  min-width: 0
}

.portal-widget,
.metric,
.action-card,
.feature-card {
  overflow: hidden
}

.portal-widget h3,
.metric strong,
.action-card strong,
.feature-card h3 {
  line-height: 1.25
}

@media(max-width:900px) {
  .site-nav {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start
  }
  .page-hero {
    padding: 42px 0 52px
  }
  .hero-shell {
    gap: 22px
  }
  .hero-side-card {
    min-height: 220px
  }
  .hero-side-panel {
    position: relative;
    left: auto !important;
    right: auto !important;
    bottom: auto;
    margin: 18px;
    max-width: none
  }
  .portal-sidebar {
    border-radius: 0 !important
  }
  .portal-menu-group {
    max-height: none !important;
    overflow: visible !important
  }
  .portal-top {
    display: grid;
    gap: 14px
  }
  .portal-actions,
  .portal-search {
    width: 100%;
    min-width: 0
  }
  .portal-actions {
    display: flex;
    flex-wrap: wrap
  }
  .portal-search input {
    width: 100%
  }
  .portal-grid,
  .portal-metrics,
  .action-grid,
  .feature-grid {
    grid-template-columns: 1fr !important
  }
  .page-actions {
    justify-content: flex-start
  }
}

@media(max-width:560px) {
  .container {
    width: min(100% - 28px, 1240px)
  }
  .header-inner {
    gap: 10px
  }
  .brand img {
    width: 145px !important
  }
  .header-actions .btn,
  .header-actions a {
    min-height: 40px
  }
  .hero-actions,
  .cta-actions,
  .form-actions,
  .filter-actions {
    display: grid;
    width: 100%
  }
  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn,
  .filter-actions .btn {
    width: 100%
  }
  .page-hero h1,
  .home-hero h1,
  .hero h1 {
    line-height: 1.08
  }
  .card,
  .portal-widget {
    padding: 18px
  }
  .products .product-card {
    min-height: 380px
  }
  .products .product-body {
    min-height: 210px
  }
  .pagination {
    justify-content: center
  }
  .pagination .btn {
    flex: 1 1 120px
  }
}

html[dir="rtl"] .portal-list-item span {
  text-align: right
}

html[dir="rtl"] .pagination {
  direction: rtl
}

/* V24 store mobile overflow fix */

.store-layout>*,
.store-sidebar,
.toolbar,
.filter-list,
.store-tools {
  min-width: 0;
  max-width: 100%
}

@media(max-width:980px) {
  .store-sidebar {
    position: static !important;
    width: 100%;
    overflow: hidden
  }
  .filter-list {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin
  }
  .store-filter {
    flex: 0 0 auto;
    max-width: 220px;
    white-space: normal;
    text-align: start
  }
}

@media(max-width:560px) {
  .store-layout {
    width: 100% !important;
    max-width: 100% !important
  }
  .store-sidebar,
  .toolbar {
    border-radius: 18px;
    padding: 16px
  }
  .filter-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important
  }
  .store-filter {
    max-width: 100%;
    width: 100%
  }
  .toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important
  }
  .store-tools,
  .store-tools .btn {
    width: 100%
  }
}

/* V25 store account, header cart, and job detail polish */

.header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(20, 56, 95, .06)
}

.header-cart-link:hover {
  border-color: var(--teal);
  background: #f4faf8;
  color: var(--teal-dark)
}

.header-cart-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center
}

.header-cart-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.header-cart-link b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1
}

.store-account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start
}

.store-account-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 16px
}

.store-account-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #f3f8f7;
  color: var(--navy);
  font-weight: 850
}

.store-account-nav a:hover,
.store-account-nav a.active {
  background: var(--navy);
  color: #fff
}

.store-account-main {
  min-width: 0
}

.store-message {
  margin-bottom: 16px
}

.store-order-list {
  display: grid;
  gap: 12px
}

.store-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow)
}

.store-order-card small,
.store-order-summary small {
  display: block;
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px
}

.store-order-card h3 {
  margin: 0 0 4px;
  color: var(--navy)
}

.store-order-card p {
  margin: 0;
  color: var(--muted)
}

.store-order-meta {
  display: grid;
  justify-items: end;
  gap: 8px
}

.store-order-meta strong {
  color: var(--navy);
  font-size: 20px
}

.store-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7f7f1;
  color: #087f63;
  font-size: 22px;
  font-weight: 900
}

.store-order-actions {
  display: flex;
  justify-content: flex-end
}

.store-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.store-order-summary>div {
  padding: 14px;
  border-radius: 14px;
  background: #f6faf9;
  border: 1px solid #e0ecea
}

.store-order-summary strong {
  display: block;
  color: var(--navy);
  overflow-wrap: anywhere
}

.job-detail-hero .hero-side-card {
  min-height: 360px
}

.job-side-card .hero-side-panel {
  max-width: 360px
}

.job-meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none
}

.job-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 56, 95, .10)
}

.job-meta-list li:last-child {
  border-bottom: 0
}

.job-meta-list span {
  color: var(--muted);
  font-size: 22px;
}

.job-meta-list strong {
  color: var(--navy);
  text-align: end
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: start
}

.job-detail-card h2,
.job-apply-card h2 {
  margin-top: 8px
}

.job-detail-card p {
  font-size: 22px;
  line-height: 1.8
}

.job-apply-card {
  position: sticky;
  top: 104px
}

.job-apply-card .btn {
  margin-top: 18px;
  width: 100%
}

.span-full {
  grid-column: 1/-1
}

/* V26 student portal filters and structured forms */

.student-filter-panel {
  margin-bottom: 18px
}

.student-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end
}

.student-filter-field,
.student-form-field {
  display: grid;
  gap: 7px;
  min-width: 0
}

.student-filter-field label,
.student-form-field span {
  color: var(--muted);
  font-size: 22px;
  font-weight: 850
}

.student-filter-field input,
.student-filter-field select,
.student-form-field input,
.student-form-field select,
.student-form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 13px;
  color: var(--navy);
  font: inherit
}

.student-form-field textarea {
  min-height: 120px;
  resize: vertical
}

.student-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.student-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0
}

.student-stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 56, 95, .06);
  display: grid;
  gap: 8px;
  align-content: start
}

.student-stat-card span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35
}

.student-stat-card strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere
}

.student-stat-card small {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35
}

.student-class-grid {
  margin-top: 18px
}

.student-class-card {
  display: grid !important;
  gap: 14px;
  align-content: start
}

.class-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start
}

.class-card-head h4 {
  margin: 4px 0 0;
  color: var(--navy)
}

.class-card-head>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900
}

.student-class-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0
}

.student-class-card dt {
  color: var(--muted);
  font-size: 22px;
  font-weight: 800
}

.student-class-card dd {
  margin: 2px 0 0;
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere
}

.subject-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.subject-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f6f5;
  color: var(--navy);
  font-size: 20px !important;
  font-weight: 800
}

.field-error {
  color: #b42318;
  font-size: 22px;
  font-weight: 800
}

/* V27 student resources */

.resource-grid {
  align-items: stretch
}

.resource-card {
  min-height: 300px;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(58px, 1fr) auto auto;
  gap: 9px
}

.resource-card .resource-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef8f5;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 900
}

.resource-card .resource-type {
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em
}

.resource-card h4 {
  margin: 0;
  min-height: auto;
}

.resource-card p {
  margin: 0;
  line-height: 1.55
}

.resource-card dl {
  display: grid;
  gap: 7px;
  margin: 0
}

.resource-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5faf8
}

.resource-card dt {
  color: var(--muted);
  font-size: 22px;
  font-weight: 850
}

.resource-card dd {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
  overflow-wrap: anywhere
}

.resource-card .btn {
  align-self: end;
  width: max-content
}

.resource-empty {
  grid-column: 1/-1
}

.service-catalog-grid {
  align-items: stretch
}

.service-type-card {
  min-height: 220px;
  display: grid !important;
  grid-template-rows: auto auto minmax(38px, 1fr) auto auto;
  gap: 10px
}

.service-type-card small {
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow-wrap: anywhere
}

.service-type-card h4 {
  margin: 0;
  min-height: 42px
}

.service-type-card p {
  margin: 0
}

.service-type-card .status {
  width: max-content
}

.service-type-card .btn {
  align-self: end;
  width: max-content
}

.student-service-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start
}

.portal-nav-group {
  display: grid;
  gap: 6px;
  min-width: 0
}

.portal-nav-group summary {
  list-style: none;
  cursor: pointer
}

.portal-nav-group summary::-webkit-details-marker {
  display: none
}

.portal-nav-parent {
  justify-content: space-between
}

.portal-nav-parent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: auto;
  opacity: .75;
  transition: transform .2s ease
}

.portal-nav-group[open] .portal-nav-parent::after {
  transform: rotate(225deg)
}

.portal-submenu {
  display: grid;
  gap: 5px;
  margin: 0px 0 0px 20px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, .14)
}

.portal-submenu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #bcd0df;
  font-size: 22px;
  font-weight: 800
}

.portal-submenu a:hover,
.portal-submenu a.active {
  background: rgba(255, 255, 255, .11);
  color: #fff
}

html[dir="rtl"] .portal-submenu {
  margin: 2px 20px 6px 0;
  padding-left: 0;
  padding-right: 11px;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, .14)
}

.notification-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center
}

.notification-row span {
  text-align: start !important
}

.welcome-eyebrow {
  color: #a4e4d1 !important
}

.empty-state.compact {
  padding: 16px;
  text-align: start;
  border-radius: 14px
}

.empty-state.compact h3 {
  margin: 0 0 5px;
  font-size: 22px;
}

.empty-state.compact p {
  margin: 0;
  font-size: 22px;
}

.student-calendar-layout {
  display: grid;
  gap: 18px
}

.student-calendar-panel {
  overflow: visible !important
}

.student-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px
}

.student-day-name {
  padding: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900
}

.student-day-cell {
  min-height: 136px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0
}

.student-day-cell.muted {
  background: #f4f8f7;
  color: #8da0ad
}

.student-day-cell.today {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(47, 166, 170, .12)
}

.student-day-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef8f5;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900
}

.student-day-cell.today .student-day-number {
  background: var(--teal);
  color: #fff
}

.student-day-items {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0
}

.student-calendar-item {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border-radius: 9px;
  background: #eef8f5;
  color: var(--navy);
  min-width: 0
}

.student-calendar-item.assignment {
  background: #fff5d8
}

.student-calendar-item.appointment {
  background: #eaf1ff
}

.student-calendar-item span {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--teal-dark)
}

.student-calendar-item strong {
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere
}

.student-day-items small {
  color: var(--muted);
  font-size: 22px;
  font-weight: 850
}

.student-agenda-item {
  border-left: 4px solid var(--teal)
}

.student-agenda-item.assignment {
  border-left-color: #e0a800
}

.student-agenda-item.appointment {
  border-left-color: #3e6fb6
}

.portal-grid .portal-stat{
      border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 24px;
    background: #fff;
}
.quick-actions-grid{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quick-actions-grid .quick-action{
      display: block;
    flex-grow: 1;
}
html[dir="rtl"] .student-agenda-item {
  border-left: 0;
  border-right: 4px solid var(--teal)
}

html[dir="rtl"] .student-agenda-item.assignment {
  border-right-color: #e0a800
}

html[dir="rtl"] .student-agenda-item.appointment {
  border-right-color: #3e6fb6
}

html[dir="rtl"] .portal-page {
  text-align: right
}

html[dir="rtl"] .portal-brand,
html[dir="rtl"] .portal-nav,
html[dir="rtl"] .portal-top,
html[dir="rtl"] .profile-line,
html[dir="rtl"] .welcome-actions {
  direction: rtl
}

html[dir="rtl"] .portal-nav-parent::after {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .portal-title,
html[dir="rtl"] .portal-sidebar>p {
  text-align: right
}

html[dir="rtl"] .portal-top-actions .portal-search {
  direction: rtl;
}

html[dir="rtl"] .timeline-row {
  grid-template-columns: minmax(0, 1fr) 12px 76px
}

html[dir="rtl"] .timeline-time {
  grid-column: 3;
  text-align: start
}

html[dir="rtl"] .timeline-dot {
  grid-column: 2;
  grid-row: 1
}

html[dir="rtl"] .timeline-content {
  grid-column: 1;
  grid-row: 1;
  text-align: right
}

html[dir="rtl"] .activity-item time {
  text-align: start
}

html[dir="rtl"] .profile-details small {
  text-align: right
}

@media(max-width:1100px) {
  .header-actions {
    display: flex !important;
    align-items: center;
    margin-inline-start: auto
  }
  .header-actions .portal-link,
  .header-actions .header-apply {
    display: none
  }
}

@media(max-width:900px) {
  .store-account-layout,
  .job-detail-layout {
    grid-template-columns: 1fr
  }
  .store-account-nav,
  .job-apply-card {
    position: static
  }
  .store-account-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .store-order-card {
    grid-template-columns: 1fr
  }
  .store-order-meta {
    justify-items: start
  }
  .store-order-actions {
    justify-content: flex-start
  }
  .store-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:900px) {
  .student-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .student-filter-actions {
    grid-column: 1/-1
  }
  .student-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:560px) {
  .header-cart-link span:not(.header-cart-icon) {
    display: none
  }
  .header-cart-link {
    padding: 9px 10px
  }
  .store-account-nav,
  .store-order-summary {
    grid-template-columns: 1fr
  }
  .student-filter-form {
    grid-template-columns: 1fr
  }
  .student-filter-actions .btn {
    width: 100%
  }
  .student-stat-grid,
  .student-class-card dl {
    grid-template-columns: 1fr
  }
  .resource-card .btn {
    width: 100%
  }
  .resource-card dl div {
    grid-template-columns: 1fr
  }
  .student-service-form {
    grid-template-columns: 1fr
  }
  .service-type-card .btn {
    width: 100%
  }
  .portal-submenu {
    margin-inline-start: 0;
    margin-inline-end: 0
  }
  .notification-row {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  .student-calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px
  }
  .student-day-name {
    display: none
  }
  .student-day-cell {
    min-height: auto;
    padding: 10px;
    border-radius: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start
  }
  .student-day-cell.muted {
    display: none
  }
  .student-day-number {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }
  .student-day-items {
    gap: 6px
  }
  .student-calendar-item {
    padding: 8px 9px
  }
  .student-calendar-item span {
    display: block;
    font-size: 9px
  }
  .student-calendar-item strong {
    font-size: 22px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip
  }
}

/* Public events calendar */
.events-calendar-section {
  padding-top: 76px;
}

.event-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.event-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(13, 48, 79, .06);
}

.event-filter-chip.active,
.event-filter-chip:hover {
  background: var(--navy);
  color: #fff;
}

.public-event-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.public-event-search label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.public-event-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}

.public-event-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.public-month-picker {
  min-height: 48px;
  width: 148px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.public-month-picker:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(47, 166, 170, .16);
}

.public-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 28px;
  align-items: stretch;
}

.public-calendar-card,
.public-event-agenda {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.public-event-agenda {
  align-self: stretch;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.public-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.public-calendar-head.compact {
  align-items: center;
}

.public-calendar-head h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: .98;
}

.public-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.public-day-name {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.public-day-cell {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f2f6f5;
  color: var(--navy);
  text-align: center;
  border: 1px solid transparent;
}

.public-day-cell strong {
  font-size: 22px;
  line-height: 1;
}

.public-day-cell.muted {
  opacity: .45;
}

.public-day-cell.today {
  border-color: rgba(47, 166, 170, .45);
}

.public-day-cell.has-event {
  background: #fffbd6;
  border-color: rgba(47, 166, 170, .18);
}

.public-day-cell.selected,
.public-day-cell:hover {
  background: var(--navy);
  color: #fff;
}

.public-day-event {
  display: block;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-day-cell.selected .public-day-event,
.public-day-cell:hover .public-day-event {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.public-day-cell small {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.public-event-list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 476px;
}

.public-event-item {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f2f6f5;
  color: var(--navy);
}

.public-event-item.is-hidden,
.public-event-empty.is-hidden,
.public-event-carousel.is-hidden,
.public-calendar-head .is-hidden {
  display: none;
}

.public-event-item:hover {
  background: var(--navy);
  color: #fff;
}

.public-event-item span,
.public-event-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.public-event-item strong {
  font-size: 17px;
  line-height: 1.25;
}

.public-event-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.public-event-item:hover span,
.public-event-item:hover small,
.public-event-item:hover p {
  color: rgba(255, 255, 255, .82);
}

.public-event-empty {
  padding: 24px;
  border-radius: 16px;
  background: #f2f6f5;
}

.public-event-empty h3 {
  margin-top: 0;
  color: var(--navy);
}

.public-event-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.public-event-carousel span {
  color: var(--muted);
  font-weight: 900;
}

html[dir="rtl"] .public-calendar-head,
html[dir="rtl"] .event-filter-bar,
html[dir="rtl"] .public-event-search-actions,
html[dir="rtl"] .public-calendar-nav {
  direction: rtl;
}

html[dir="rtl"] .public-event-search,
html[dir="rtl"] .public-calendar-card,
html[dir="rtl"] .public-event-agenda,
html[dir="rtl"] .public-event-item {
  text-align: right;
}

html[dir="rtl"] .public-event-carousel {
  direction: rtl;
}

@media(max-width:980px) {
  .public-calendar-layout,
  .public-event-search {
    grid-template-columns: 1fr;
  }

  .public-calendar-head {
    flex-direction: column;
  }
}

@media(max-width:640px) {
  .events-calendar-section {
    padding-top: 48px;
  }

  .public-calendar-card,
  .public-event-agenda {
    padding: 18px;
    border-radius: 18px;
  }

  .public-calendar-grid {
    grid-template-columns: 1fr;
  }

  .public-day-name,
  .public-day-cell.muted {
    display: none;
  }

  .public-day-cell {
    min-height: auto;
    text-align: start;
  }

  .public-day-cell strong {
    font-size: 22px;
  }

  .public-event-list {
    min-height: auto;
  }

  .public-event-item {
    min-height: 0;
  }

  .public-event-search-actions .btn,
  .public-event-carousel .btn {
    width: 100%;
  }

  .public-calendar-nav {
    width: 100%;
  }

  .public-calendar-nav .btn {
    flex: 0 1 auto;
  }

  .public-calendar-nav .public-month-picker {
    min-width: 0;
    flex: 1 1 130px;
  }

  .public-event-carousel {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Public event detail */
.event-detail-section {
  padding-top: 78px;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 30px;
  align-items: start;
}

.event-detail-card,
.event-rsvp-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}

.event-detail-card h2,
.event-rsvp-card h2 {
  margin: 10px 0 20px;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 54px);
  line-height: .98;
}

.event-detail-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
}

.event-detail-list li,
.event-current-response {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 14px;
  background: #f2f6f5;
}

.event-detail-list span,
.event-current-response span {
  color: var(--muted);
  font-weight: 800;
}

.event-detail-list strong,
.event-current-response strong {
  color: var(--navy);
  font-weight: 900;
}

.event-detail-description {
  margin: 0 0 24px;
}

.event-detail-description h3,
.event-helper-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
}

.event-detail-description p,
.event-helper-panel p,
.event-rsvp-card p {
  color: var(--muted);
}

.event-helper-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.event-rsvp-card {
  position: sticky;
  top: 112px;
}

.event-rsvp-form {
  display: grid;
  gap: 16px;
}

.event-rsvp-form .field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.event-rsvp-form .field span {
  color: var(--navy);
  font-weight: 900;
}

.event-rsvp-form select,
.event-rsvp-form input,
.event-rsvp-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}

.event-rsvp-form .btn,
.event-rsvp-card>.btn {
  width: fit-content;
}

.event-rsvp-messages {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #edf7f3;
  color: var(--navy);
  font-weight: 800;
}

.event-rsvp-messages p {
  margin: 0;
}

html[dir="rtl"] .event-detail-card,
html[dir="rtl"] .event-rsvp-card {
  text-align: right;
}

@media(max-width:900px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-rsvp-card {
    position: static;
  }
}

@media(max-width:560px) {
  .event-detail-list li,
  .event-current-response {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .event-rsvp-form .btn,
  .event-rsvp-card>.btn {
    width: 100%;
  }
}


.whatsIcon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
}

.whatsIcon a {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(15, 74, 40, .28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsIcon a:hover,
.whatsIcon a:focus-visible {
  color: #fff;
  background: #1fba59;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 74, 40, .35);
}

.whatsIcon a:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .3);
  outline-offset: 4px;
}

.whatsIcon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.social-links-footer a{
  display: inline-block;
}

.blog-hero {
  padding-bottom: 72px;
}

.blog-index-section {
  padding-top: 34px;
}

.blog-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  margin-bottom: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.blog-filter label {
  display: block;
  color: var(--navy);
  font-family: Font_B;
  font-size: 18px;
  margin-bottom: 8px;
}

.blog-filter input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 56, 95, .18);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--navy);
  background: #fff;
}

.blog-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(20, 56, 95, .10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #eef8f4, #fff7c5);
  color: var(--navy);
  font-family: Font_B;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 22px;
}

.blog-card-body time,
.blog-detail-hero-copy time,
.related-blog time {
  color: var(--teal);
  font-family: Font_B;
  font-size: 17px;
}

.blog-card-body h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-read-more {
  margin-top: auto;
  color: var(--navy);
  font-family: Font_B;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
}

.blog-detail-hero {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.blog-detail-hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.blog-detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 56, 95, .90), rgba(20, 56, 95, .42));
}

.blog-detail-hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 120px 0 76px;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #fff;
  font-family: Font_B;
}

.blog-detail-hero-copy h1 {
  max-width: 900px;
  margin: 16px 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  color: #fff;
}

.blog-detail-hero-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 22px;
  line-height: 1.55;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.blog-article-shell,
.blog-detail-aside {
  background: #fff;
  border: 1px solid rgba(20, 56, 95, .10);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.blog-article-shell {
  padding: clamp(26px, 5vw, 58px);
}

.blog-detail-aside {
  position: sticky;
  top: 108px;
  padding: 24px;
}

.blog-detail-aside h2 {
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: 28px;
}

.related-blog {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.related-blog strong {
  display: block;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 6px;
}

.blog-rich-content {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.85;
}

.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4 {
  color: var(--navy);
  line-height: 1.15;
  margin: 1.4em 0 .55em;
}

.blog-rich-content h2 {
  font-size: 40px;
}

.blog-rich-content h3 {
  font-size: 30px;
}

.blog-rich-content p,
.blog-rich-content ul,
.blog-rich-content ol {
  margin: 0 0 1.1em;
}

.blog-rich-content a {
  color: var(--teal);
  font-family: Font_B;
}

.blog-rich-content blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  border-inline-start: 5px solid var(--yellow);
  background: #f7fbf9;
  border-radius: 16px;
  color: var(--navy);
}

.blog-rich-content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
  background: #0c2948;
  color: #eef8f4;
  font-size: 16px;
  line-height: 1.6;
}

.blog-rich-content img,
.blog-rich-content video,
.blog-rich-content iframe {
  max-width: 100%;
  border-radius: 18px;
}

.blog-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.blog-rich-content th,
.blog-rich-content td {
  border: 1px solid var(--line);
  padding: 12px;
}

@media(max-width:980px) {
  .blog-filter,
  .blog-grid,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-detail-aside {
    position: static;
  }
}

@media(max-width:720px) {
  .blog-filter-actions .btn,
  .blog-filter-actions {
    width: 100%;
  }

  .blog-detail-hero {
    min-height: 460px;
  }

  .blog-rich-content {
    font-size: 19px;
  }
}


@media(max-width:560px) {
  .whatsIcon {
    bottom: 14px;
    left: 14px;
  }

  .whatsIcon a {
    width: 52px;
    height: 52px;
  }

  .whatsIcon svg {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Online registration: sheet priority markers -------------------
   The Classera import sheet colour codes its columns (red mandatory, orange
   important, yellow lower priority, uncoloured optional). The registration form
   mirrors that legend so guardians can see what really matters. */

.priority-legend {
  margin-bottom: 6px;
}

.priority-legend-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.priority-legend-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-required { background: #c00000 }
.dot-important { background: #ffc000 }
.dot-optional { background: #ffd93d }
.dot-extra { background: #cbd7db }

.field-flag {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.flag-important {
  background: rgba(255, 192, 0, .18);
  color: #8a6404;
}

.flag-optional {
  background: rgba(255, 217, 61, .2);
  color: #8a7104;
}

.field-help {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* A thin colour rail on the left of each input echoes the sheet legend. */
.field.priority-required > input,
.field.priority-required > select,
.field.priority-required > textarea {
  border-inline-start: 4px solid #c00000;
}

.field.priority-important > input,
.field.priority-important > select,
.field.priority-important > textarea {
  border-inline-start: 4px solid #ffc000;
}

.field.priority-optional > input,
.field.priority-optional > select,
.field.priority-optional > textarea {
  border-inline-start: 4px solid #ffd93d;
}

.upload-box.is-required-doc {
  border-color: #c00000;
  background: #fffafa;
}

/* ---------- Site announcement popup ---------------------------------------
   Scheduled announcement shown over the website. Rendered with [hidden] and
   revealed by popup.js, so it never traps a visitor without JavaScript. */

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-popup[hidden] {
  display: none;
}

.site-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 46, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}

.site-popup.is-open .site-popup-backdrop {
  opacity: 1;
}

.site-popup-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--rl);
  background: #fff;
  box-shadow: 0 40px 90px rgba(4, 22, 40, .45);
  transform: translateY(20px) scale(.97);
  opacity: 0;
  transition: transform .34s cubic-bezier(.2, .8, .3, 1), opacity .34s ease;
}

.site-popup.is-open .site-popup-dialog {
  transform: none;
  opacity: 1;
}

/* Accent rail across the top of the card. */
.site-popup-dialog:before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 6px;
  border-radius: var(--rl) var(--rl) 0 0;
  background: linear-gradient(90deg, var(--navy), var(--teal));
}

.site-popup.accent-teal .site-popup-dialog:before { background: linear-gradient(90deg, var(--teal), var(--mint)) }
.site-popup.accent-gold .site-popup-dialog:before { background: linear-gradient(90deg, #a97c05, #e0a80d) }
.site-popup.accent-mint .site-popup-dialog:before { background: linear-gradient(90deg, #2b8d63, var(--mint)) }

.site-popup-close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 26, 46, .18);
  transition: background .2s ease, transform .2s ease;
}

.site-popup-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.site-popup-close svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.site-popup-close:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.site-popup-media {
  overflow: hidden;
  border-radius: var(--rl) var(--rl) 0 0;
}

.site-popup-media img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.site-popup-body {
  padding: 30px 34px 26px;
  text-align: center;
}

.site-popup-tag {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(47, 166, 170, .13);
  color: #1d7f83;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-popup.accent-gold .site-popup-tag { background: rgba(224, 168, 13, .16); color: #8a6404 }
.site-popup.accent-mint .site-popup-tag { background: rgba(99, 194, 147, .18); color: #2b8d63 }

.site-popup-eyebrow {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.site-popup-body h2 {
  margin: 12px 0 10px;
  font-family: 'Font_B', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.28;
  color: var(--navy);
}

.site-popup-body p {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.site-popup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.site-popup-mute {
  margin-top: 18px;
  padding: 6px 4px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-popup-mute:hover {
  color: var(--navy);
}

.site-popup-mute:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

body.has-site-popup {
  overflow: hidden;
}

@media (max-width: 620px) {
  .site-popup {
    padding: 14px;
  }

  .site-popup-body {
    padding: 26px 22px 22px;
  }

  .site-popup-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-popup-backdrop,
  .site-popup-dialog {
    transition: none;
  }

  .site-popup-close:hover {
    transform: none;
  }
}

/* ---------- Portal row action menus ---------------------------------------
   The scrolling table wrapper clips overflow on the Y axis, which used to hide
   these dropdowns completely. portal-actions.js lifts an open menu to fixed
   positioning; this rule is the no-JS safety net so the menu is still reachable. */

.data-table-wrap:has(details.actions-menu[open]),
.table-wrap:has(details.actions-menu[open]) {
  overflow: visible;
}

/* A transformed ancestor becomes the containing block for position:fixed, which would
   re-anchor the open menu inside the clipping table again. The widget lift is therefore
   suspended while one of its menus is open. */
.portal-widget:has(details.actions-menu[open]):hover,
.card:has(details.actions-menu[open]):hover,
.panel:has(details.actions-menu[open]):hover,
.data-panel:has(details.actions-menu[open]):hover {
  transform: none;
}

/* While open the menu is moved to <body> by portal-actions.js, so it is no longer a
   descendant of .actions-menu and needs its own stacking context. */
.actions-menu-list.is-floating {
  z-index: 400;
  display: grid;
  margin: 0;
}

/* Only while the script is active: keep a menu that has not been positioned yet hidden,
   so it is never painted for a frame at its in-table position before it floats. */
.has-portal-action-menus .actions-menu-list:not(.is-floating) {
  display: none;
}

.actions-menu[open] .actions-menu-list {
  z-index: 200;
}

/* ---------- Portal: leaving the portal signs you out -----------------------
   "Back to website" posts to logout, so it is a button. These rules make it sit
   in the sidebar exactly like the neighbouring nav links. */

.portal-secondary-menu form {
  margin: 0;
}

.portal-nav-button {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.portal-nav-note {
  margin: 6px 0 0;
  padding-inline-start: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .72;
}

/* ---------- Portal flash messages ------------------------------------------ */

.portal-messages {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.portal-message {
  margin: 0;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--teal);
}

.portal-message.success { border-inline-start-color: var(--mint) }
.portal-message.error { border-inline-start-color: #c00000; background: #fffafa }
.portal-message.warning { border-inline-start-color: #e0a80d }

.portal-note {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.portal-note strong { display: block; color: var(--navy); margin-bottom: 4px }
.portal-note p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted) }

/* ---------- Portal: Important Links ---------------------------------------
   Link tiles grouped by category, shared by the student, parent and teacher
   portals. */

.links-total {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 166, 170, .12);
  color: #1d7f83;
  font-weight: 900;
  font-size: 17px;
}

.link-group + .link-group {
  margin-top: 16px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 166, 170, .5);
  box-shadow: 0 16px 34px rgba(20, 56, 95, .12);
}

.link-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.link-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
}

.link-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-body strong {
  font-size: 15.5px;
  color: var(--navy);
  line-height: 1.4;
}

.link-body span {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.link-external {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  color: var(--muted);
}

.link-external svg {
  width: 15px;
  height: 15px;
  display: block;
}

.link-card:hover .link-external {
  color: var(--teal);
}

@media (max-width: 620px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Teacher grade entry: the class -> students -> mark or upload flow ------- */
.grade-entry-step {
  margin-bottom: 16px
}

.grade-entry-step h3 {
  display: flex;
  align-items: center;
  gap: 10px
}

.grade-entry-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto
}

.grade-entry-hint {
  margin: 0 0 12px;
  color: var(--muted)
}

/* Every rejected row is listed, because the teacher has to fix them all before retrying. */
.import-problems {
  border-inline-start: 4px solid var(--danger)
}

.import-problems ul {
  margin: 8px 0 0;
  padding-inline-start: 20px
}

.import-problems li {
  margin-bottom: 4px;
  color: var(--danger)
}
