@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0..1,0');

/* Gilroy — the typeface used in the Page References mockups.
   Drop the .woff2 files into public/fonts/gilroy/ and they take over automatically;
   until then Poppins (declared as the fallback below) is used. */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy/Gilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy/Gilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy/Gilroy-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy/Gilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy/Gilroy-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Gilroy', 'Poppins', sans-serif;
  /* The brand lockup next to the emblem is set in a grotesque, not in Gilroy. */
  --font-brand: Arial, 'Helvetica Neue', Helvetica, sans-serif;

  /* Reference palette (sampled from public/Page References) */
  --color-primary-dark: #015159;
  --color-primary: #016d77;
  --color-primary-light: #156d85;
  --color-orange: #ee6a2a;
  --color-orange-hover: #d5561a;
  --color-orange-icon: #fe5c13;
  --color-indigo: #2a2d96;
  --color-indigo-hover: #1f2178;
  --color-placeholder-navy: #191a6d;
  --color-green: #2e9e14;
  --color-green-hover: #24800f;
  --color-bg-light: #f4f9f9;
  --color-white: #ffffff;
  --color-text-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Reference layout grid: 4 columns x 300px with 75px gutters = 1425px */
  --container-width: 1425px;
  --chrome-padding: 50px;
  --grid-col: 300px;
  --grid-gutter: 75px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page wash that sits directly under the news ticker (reference artwork) */
main {
  flex-grow: 1;
  position: relative;
  background-color: #ffffff;
  /* Green tint is listed first so it paints ON TOP of the bg.png wash —
     otherwise the opaque lower half of bg.png hides it on shorter pages. */
  background-image:
    linear-gradient(180deg, rgba(232, 243, 227, 0) 0%, rgba(232, 243, 227, 0.55) 55%, rgba(232, 243, 227, 1) 100%),
    url('../images/bg.png');
  background-repeat: no-repeat, no-repeat;
  background-position: bottom center, top center;
  background-size: 100% 620px, 100% auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1473px) {
  .container { padding: 0; }
}

/* Top bar and header run edge to edge with a 50px gutter, not on the 1425px grid */
.top-bar .container,
.main-header .container {
  max-width: none;
  padding: 0 var(--chrome-padding);
}

/* TOP BAR */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 400;
  height: 42px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* Item offsets taken straight from the mockup (icon starts 112px / 83px after the
   preceding label ends), scaled down to match the more compact bar. */
.top-bar-item + .top-bar-item { margin-left: 90px; }
.top-bar-item + .top-bar-item + .top-bar-item { margin-left: 66px; }

.top-bar-item .material-symbols-outlined {
  color: var(--color-orange-icon);
  font-size: 16px;
  line-height: 1;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--color-white);
  flex-shrink: 0;
}

.social-circle svg {
  width: 17px;
  height: 17px;
  display: block;
}

.social-circle:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

/* HEADER & NAVIGATION */
.main-header {
  background: linear-gradient(90deg, rgba(238, 106, 42, 0.10) 0%, rgba(255, 255, 255, 0.97) 34%, rgba(255, 255, 255, 0.97) 66%, rgba(46, 158, 20, 0.10) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Official KPSTA Flag header divider strip: smoothly blended continuous gradient */
.header-bottom-gradient {
  display: block !important;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #EE6A2A 0%, #FFA26B 25%, #FFFFFF 50%, #76D15E 75%, #2E9E14 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.header-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
}

.header-flag-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .header-flag-img {
  transform: rotate(-3deg) scale(1.06);
}

.emblem-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border: 3px solid var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

img.emblem-circle, .brand-logo img.emblem-circle {
  width: 102px;
  height: 102px;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* The brand lockup is a single artwork in the reference, emblem + wordmark together */
.brand-lockup {
  width: 360px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.footer-lockup {
  width: 562px;
}

.brand-text h1 {
  font-family: var(--font-brand);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0;
  color: #000000;
  line-height: 32px;
}

.brand-text p {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}

/* Matches the wider first gap in the mockup */
.nav-links > li:first-child { margin-right: 16px; }

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1c;
  position: relative;
  padding: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: #1c1c1c;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #3ddc57 0%, #ffffff 50%, #f97c4d 100%);
  border-radius: 0;
}

.dropdown {
  position: relative;
}

.nav-item-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.dropdown-toggle-btn {
  background: transparent;
  border: none;
  padding: 0 0 16px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1c;
  line-height: 1;
}

.dropdown-toggle-btn .material-symbols-outlined {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.dropdown:hover .nav-link,
.dropdown:hover .dropdown-toggle-btn,
.dropdown.open .dropdown-toggle-btn {
  color: var(--color-primary);
}

.dropdown.open .dropdown-toggle-btn .material-symbols-outlined {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

.dropdown-item.active {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  padding-left: 1.6rem;
}

.dropdown-item.active::before {
  content: "•";
  position: absolute;
  left: 0.8rem;
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
}

.mobile-toggle {
  display: none;
  font-size: 1.75rem;
  color: var(--color-text-dark);
}

/* HERO BANNER SECTION */
.hero-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(3, 38, 42, 0.88) 0%, rgba(13, 13, 40, 0.90) 50%, rgba(62, 40, 34, 0.82) 100%), url('../images/banner-img.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  height: 291px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-banner.home-hero {
  height: 622px;
  padding: 0;
  display: flex;
  align-items: center;
}

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--color-primary-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(74, 28, 6, 0.78) 0%, rgba(10, 22, 26, 0.80) 50%, rgba(10, 48, 14, 0.78) 100%);
  z-index: 3;
  transition: opacity 0.8s ease-in-out;
}

.home-hero.is-subsequent-slide .hero-overlay {
  opacity: 0;
  pointer-events: none;
}

.home-hero .hero-title,
.home-hero .hero-subtitle,
.home-hero .hero-tagline,
.home-hero .hero-subtagline {
  transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
}

.home-hero.is-subsequent-slide .hero-title,
.home-hero.is-subsequent-slide .hero-subtitle,
.home-hero.is-subsequent-slide .hero-tagline,
.home-hero.is-subsequent-slide .hero-subtagline {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero.is-subsequent-slide .hero-flag {
  margin-bottom: 0;
}

.home-hero.is-subsequent-slide .hero-flag img {
  height: 110px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75));
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Vertical slide indicators on the right of the hero */
.hero-dots {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 31px;
  z-index: 12;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.hero-dot.active {
  background-color: #ffffff;
}

.hero-flag {
  display: inline-block;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-flag img {
  height: 90px;
  width: auto;
  display: block;
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 0;
  text-transform: none;
}

.home-hero .hero-title {
  font-size: 100px;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.home-hero .hero-content {
  width: 100%;
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 56px;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #ffffff;
  text-transform: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtagline {
  font-size: 19px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 20px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* MARQUEE NEWS BAR */
.news-ticker-bar {
  background-color: var(--color-white);
  border-bottom: none;
  box-shadow: 0 10px 16px -6px rgba(120, 80, 30, 0.20);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 44px;
  position: relative;
  z-index: 5;
}

.ticker-badge {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  line-height: 44px;
  width: 170px;
  padding: 0 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0;
  flex-shrink: 0;
  z-index: 10;
}

.ticker-content {
  flex-grow: 1;
  padding: 0 0 0 40px;
  align-self: center;
  font-weight: 600;
  font-size: 15px;
  color: #0f0f0f;
}

.ticker-content a {
  font-weight: 600;
}

/* WELCOME CARD SECTION */
.welcome-section {
  padding: 40px 0 0;
  isolation: isolate;
}

.welcome-card {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(34, 80, 114, 0.94) 0%, rgba(30, 84, 121, 0.94) 45%, rgba(10, 108, 117, 0.94) 100%),
    var(--hero-image, url('../images/banner-img.jpg'));
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, luminosity;
  color: var(--color-white);
  border-radius: 16px;
  padding: 36px 48px 28px;
  text-align: center;
  box-shadow: none;
  border: none;
  height: auto;
  min-height: 0;
  max-width: 1120px;
  width: 95%;
  margin: 0 auto;
}

.welcome-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  pointer-events: none;
}

/* Lavender plate behind the card */
.welcome-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -16px;
  bottom: 12px;
  left: -16px;
  background-color: #a8a8c5;
  border-radius: 16px;
  z-index: -1;
}

.welcome-card h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 15px;
  text-align: center;
}

.welcome-card p {
  font-size: 16.5px;
  font-weight: 400;
  color: #ffffff;
  max-width: 1000px;
  margin: 0 auto 22px;
  line-height: 27px;
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* PAGE SHELL SPACING (reference: ticker -> action row -> first ribbon) */
.page-office-bearers {
  padding: 94px 0 130px;
}

.page-list {
  padding: 124px 0 130px;
}

.page-download {
  padding: 123px 0 130px;
}

.page-quicklinks {
  padding: 124px 0 130px;
}

.page-bearers {
  padding: 121px 0 130px;
}

.page-district {
  padding: 125px 0 130px;
}

.page-contact {
  padding: 133px 0 130px;
}

.page-bearers .grid-bearers {
  padding-top: 0;
}

.page-download .tab-header + .download-list {
  margin-top: 47px;
}

.page-list .ribbon-section-header {
  margin-top: 57px;
}

.page-list .search-filter-bar + .ribbon-section-header {
  margin-top: 0;
}

.circular-list {
  margin-top: 22px;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

/* RIBBON SECTION HEADERS
   Badge, diagonal tail and rule read as one continuous shape: the rule is
   pulled back under the tail so the two can never show a seam, and the badge
   paints over it. */
.ribbon-section-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 110px 0 0;
}

.container > .ribbon-section-header:first-child {
  margin-top: 0;
}

.page-actions + .ribbon-section-header {
  margin-top: 0;
}

/* The notch is drawn as a masked tail rather than a clip-path on the badge.
   A clip-path polygon can only produce sharp vertices, so both corners of the
   diagonal -- the top, where the flat edge turns into the slope, and the tip
   where it lands on the rule -- came out as points.

   The mask is a 96x60 wedge: 12 units of flat top edge, a 26-unit arc into the
   diagonal, then a 6-unit arc onto the vertical face that meets the rule. That
   first 12 units is a lead-in overlapping the badge, because the top corner
   straddles the boundary between the badge box and this tail. The arc's
   tangent point must land EXACTLY on that boundary (x = 12): put the corner
   vertex on the boundary instead and the arc begins inside the badge, leaving
   the badge's square corner sticking out above the curve as a shoulder -- the
   shape reads sharp no matter how large the radius is. So the vertex sits one
   tangent-length past the boundary, which makes the vertex position depend on
   the diagonal's angle, which depends on the vertex -- solved by iteration,
   not by hand.

   Tail widths elsewhere keep the 96:12 ratio, i.e. width = tail x 8/7 and the
   left offset = tail / 7. */
:root {
  --ribbon-tail-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0L12 0A26 26 0 0 1 27.5 5.13L93.58 54.2A6 6 0 0 1 96 59.02L96 60L0 60Z' fill='%23fff'/%3E%3C/svg%3E");

  /* Melakal tab tail: 14px lead-in + 90px tail, 78px tall. 16px curve into the
     diagonal, 8px where it lands on the rule. */
  --tab-tail-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 78' preserveAspectRatio='none'%3E%3Cpath d='M0 0L14 0A26 26 0 0 1 31.68 6.94L101.44 71.63A8 8 0 0 1 104 77.49L104 78L0 78Z' fill='%23fff'/%3E%3C/svg%3E");

  /* Top-right notch of the plain category card (Academic Corner, Forms).
     A fixed 48x58 patch anchored to that corner, so it never stretches with
     the card's width; the other three corners stay on border-radius. */
  --tab-corner-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 58' preserveAspectRatio='none'%3E%3Cpath d='M0 0L14 0A14 14 0 0 1 26.21 7.15L46.98 44.18A8 8 0 0 1 48 48.09L48 58L0 58Z' fill='%23fff'/%3E%3C/svg%3E");
}

.ribbon-badge {
  position: relative;
  z-index: 1;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 23px;
  font-weight: 700;
  line-height: 60px;
  height: 60px;
  /* Right padding is the text inset only -- the 84px tail now lives outside
     the badge box, overlapping the rule. */
  padding: 0 32px;
  border-radius: 8px 0 0 0;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.ribbon-badge::after {
  content: '';
  position: absolute;
  /* 84px of tail + 12px of lead-in overlapping the badge (see the mask above) */
  left: calc(100% - 12px);
  top: 0;
  width: 96px;
  height: 100%;
  /* inherit keeps the .navy variant working without a second rule */
  background-color: inherit;
  -webkit-mask: var(--ribbon-tail-mask) no-repeat center / 100% 100%;
          mask: var(--ribbon-tail-mask) no-repeat center / 100% 100%;
}

.ribbon-badge.navy {
  background-color: var(--color-indigo);
}

.ribbon-line {
  flex-grow: 1;
  height: 4px;
  background-color: var(--color-primary);
  /* Starts at the badge box edge, which is where the tail begins -- the tail
     overlays its first 84px, so the joint is a continuous fill. */
  margin-left: 0;
}

.ribbon-badge.navy + .ribbon-line {
  background-color: var(--color-indigo);
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
  margin-bottom: 32px;
}

/* BEARERS & LEADERS CARDS
   Reference grid: 4 columns x 300px, 75px column gutter, 497px row pitch.
   The white rounded frame wraps the photo only — name/role/phone sit on the page. */
.grid-bearers {
  display: grid;
  grid-template-columns: repeat(4, var(--grid-col));
  column-gap: var(--grid-gutter);
  row-gap: 50px;
  justify-content: start;
  margin-bottom: 0;
  padding-top: 43px;
}

.bearer-card {
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.bearer-card:hover {
  transform: none;
  box-shadow: none;
}

.bearer-photo-wrapper {
  width: 300px;
  height: 317px;
  background: var(--color-white);
  padding: 7px;
  display: block;
  /* Clipped so a missing photo's alt text can't spill out of the frame */
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 79px 20px 20px 20px;
  box-shadow: 6px 8px 22px rgba(31, 27, 22, 0.13);
  flex-shrink: 0;
}

.bearer-photo-wrapper.green-bg,
.bearer-photo-wrapper.navy-bg {
  background: var(--color-white);
}

.bearer-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 72px 13px 13px 13px;
  display: block;
}

.bearer-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 72px 13px 13px 13px;
  background-color: var(--color-placeholder-navy);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bearer-placeholder .material-symbols-outlined {
  font-size: 130px;
  color: rgba(255, 255, 255, 0.28);
}

.bearer-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
  color: #111111;
  margin: 12px 0 0;
  /* Names come from the DB and a long one wraps to a second line. Without a
     reserved two-line block, that one card pushes its own role and phone down
     and the whole row stops lining up. */
  min-height: 54px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bearer-role {
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
  color: #111111;
  text-transform: none;
  margin: 1px 0 0;
  /* Same reasoning as the name -- holds the phone row on one baseline */
  min-height: 23px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bearer-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: #111111;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: 10px;
}

.bearer-phone .material-symbols-outlined {
  background-color: #0d7a72;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px !important;
  flex-shrink: 0;
}

.bearer-phone:hover {
  background-color: transparent;
  color: #0d7a72;
}

/* Former Leaders Styles */
.former-leaders-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  background: #f8fafc;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.former-leaders-toolbar .filter-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.former-leaders-toolbar .pill-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.former-leaders-toolbar .pill-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.former-leaders-toolbar .pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.former-leaders-toolbar .search-box-wrapper {
  position: relative;
  min-width: 260px;
  max-width: 360px;
  flex: 1;
}

.former-leaders-toolbar .search-box-wrapper .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
  pointer-events: none;
}

.former-leaders-toolbar .search-box-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.95rem;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.former-leaders-toolbar .search-box-wrapper input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.former-leader-positions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  width: 100%;
  padding: 0 10px;
}

.former-pos-item {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1e293b;
  word-break: break-word;
}

.former-pos-desig {
  font-weight: 600;
  color: #0f172a;
}

.former-pos-year {
  color: #64748b;
  font-size: 0.9em;
  margin-left: 2px;
}

.former-pos-level {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #e0f2fe;
  margin-left: 4px;
  font-weight: 500;
  vertical-align: middle;
}

.btn-green {
  background-color: #29a507;
  color: var(--color-white);
  height: 52px;
  min-width: 250px;
  padding: 0 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 20px;
  line-height: 52px;
  display: inline-block;
  text-align: center;
  box-shadow: none;
}

.btn-green:hover {
  background-color: #229004;
  transform: none;
  box-shadow: none;
}

.btn-blue {
  background-color: var(--color-indigo);
  color: var(--color-white);
  height: 52px;
  min-width: 233px;
  padding: 0 30px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 20px;
  line-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-blue:hover {
  background-color: var(--color-indigo-hover);
}

/* HOME ACTION BOXES */
.action-box-grid {
  background-color: var(--color-primary);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 24px rgba(1, 109, 119, 0.20);
}

.action-card-link {
  background-color: transparent;
  border: none;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 1px;
  height: 100%;
  min-height: 58px;
  color: #111111;
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
}

.action-card-link:hover .action-icon {
  background-color: var(--color-orange-hover);
}

.action-card-link:hover .action-title {
  background-color: #83ccc5;
}

.action-icon {
  width: 68px;
  background-color: var(--color-orange);
  border-radius: 6px 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.action-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--color-white);
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.action-title {
  flex: 1;
  background-color: #72b9b2;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
  border-radius: 0 6px 6px 0;
  transition: var(--transition);
}

/* SPLIT NEWS & REACTION SECTION */
.split-section {
  --grid-gutter-outer: max(24px, calc((100vw - var(--container-width)) / 2));
  display: grid;
  grid-template-columns: 58.125% 41.875%;
  min-height: 600px;
}

.news-window-side {
  background-color: #83c4be;
  padding: 50px 60px 50px var(--grid-gutter-outer);
  display: flex;
  flex-direction: column;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  margin-bottom: 24px;
}

.news-header h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #111111;
  margin: 0;
}

.btn-view-all {
  border: 2px solid #111111;
  width: 135px;
  height: 42px;
  line-height: 38px;
  padding: 0;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  color: #111111;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-view-all:hover {
  background-color: var(--color-text-dark);
  color: var(--color-white);
}

.news-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.news-item-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(30, 60, 58, 0.10);
  flex: 1;
}

.news-thumb {
  width: 220px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-info {
  flex-grow: 1;
  min-width: 0;
}

.news-date {
  font-size: 13px;
  color: #667;
  font-weight: 500;
  margin-bottom: 6px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: #111111;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-readmore {
  font-size: 14px;
  font-weight: 600;
  color: #ee6a2a;
  text-decoration: none;
}

.reaction-gallery-side {
  background-color: #187f84;
  background-image: linear-gradient(180deg, rgba(24, 127, 132, 0.90) 0%, rgba(16, 96, 103, 0.92) 100%), var(--hero-image, url('../images/banner-img.jpg'));
  background-size: cover;
  background-position: center;
  padding: 45px var(--grid-gutter-outer) 45px 55px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Offset darker teal inset block on the right behind poster as in reference */
.reaction-gallery-side::before {
  content: '';
  position: absolute;
  top: 36%;
  left: 45%;
  right: 0;
  bottom: 0;
  background-color: #106067;
  border-top-left-radius: 14px;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Low-opacity KPSTA circular seal watermark positioned on the right side, ~25-30% clipped off right edge and softly tinted */
.reaction-gallery-side::after {
  content: '';
  position: absolute;
  right: -95px;
  top: 65%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(100%) brightness(1.25);
  opacity: 0.20;
  pointer-events: none;
  z-index: 1;
}

.reaction-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.reaction-header h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  margin: 0;
}

.reaction-slider-container {
  height: 100%;
  flex: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.reaction-slide {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.poster-card {
  background-color: var(--color-white);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.poster-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.poster-card img {
  max-width: 100%;
  max-height: 504px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 9px;
  display: block;
  margin: auto;
}

.poster-card.no-title img {
  border-radius: 9px;
}

.reaction-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* TABS (MELAKAL) */
/* CATEGORY TABS — notched teal cards inside a white keyline (reference) */
.tab-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 37px;
  row-gap: 47px;
  margin: 5px 0 0;
  border-bottom: none;
}

.tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 110px;
  padding: 0 20px 0 32px;
  font-size: 22px;
  font-weight: 600;
  line-height: 27px;
  color: var(--color-white) !important;
  /* Fill and notch live on ::before, not here. The white keyline is the
     drop-shadow chain at the end of this rule, and a mask on the element
     itself would clip that keyline away along with everything else outside
     the box — so the shape has to be one level down, inside the filter. */
  --tab-bg: var(--color-primary);
  background-color: transparent;
  transition: background-color 0.25s ease;
  text-decoration: none !important;
  cursor: pointer;
  /* Soft cast shadow only. The white keyline used to be four chained white
     drop-shadows offset ±6px, but that draws the union of four translated
     copies -- which squares off every rounded corner and reads far too thick
     on the diagonal. It is now a real outline on ::after that follows the
     notch. */
  filter: drop-shadow(3px 6px 9px rgba(60, 45, 25, 0.16));
}

/* The card's fill and its notched silhouette. Three mask layers unioned: the
   card minus its right 34px, the right strip below the notch, and a fixed-size
   rounded patch pinned to the top-right corner. Keeping that patch at a fixed
   px size is what stops the curve distorting as the grid column width changes
   — a single stretched mask would flatten it into an ellipse. */
.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--tab-bg);
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), var(--tab-corner-mask);
          mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), var(--tab-corner-mask);
  -webkit-mask-size: calc(100% - 34px) 100%, 34px calc(100% - 46px), 48px 58px;
          mask-size: calc(100% - 34px) 100%, 34px calc(100% - 46px), 48px 58px;
  -webkit-mask-position: left top, right bottom, right top;
          mask-position: left top, right bottom, right top;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: background-color 0.25s ease;
}

/* The white keyline: the same silhouette, 3px larger on every side, sitting
   behind the fill. Because it is the shape rather than an offset copy of it,
   the outline keeps an even thickness around the rounded notch corners. */
.tab-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: 0;
  background-color: var(--color-white);
  border-radius: 15px;
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), var(--tab-corner-mask);
          mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), var(--tab-corner-mask);
  -webkit-mask-size: calc(100% - 34px) 100%, 34px calc(100% - 46px), 48px 58px;
          mask-size: calc(100% - 34px) 100%, 34px calc(100% - 46px), 48px 58px;
  -webkit-mask-position: left top, right bottom, right top;
          mask-position: left top, right bottom, right top;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

.tab-btn-label {
  position: relative;
  z-index: 2;
}

.tab-btn:hover {
  --tab-bg: #087f85;
}

.tab-btn.active {
  --tab-bg: var(--color-primary);
}

/* DOWNLOAD ROWS */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.download-row {
  background-color: var(--color-white);
  border-radius: 6px;
  min-height: 78px;
  padding: 11px 27px 11px 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(60, 45, 25, 0.07);
  border: none;
  transition: var(--transition);
  gap: 24px;
}

.download-row:hover {
  box-shadow: 0 4px 14px rgba(60, 45, 25, 0.12);
  border-color: transparent;
  transform: none;
}

.download-row.has-icon {
  padding-left: 20px;
}

.download-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  /* Titles come from uploads and can be one unbroken string (file names,
     URLs) -- without these the row runs past the page edge on a phone. */
  min-width: 0;
}

/* Red PDF document mark used on the memorandum / notice rows */
.pdf-icon-badge {
  position: relative;
  width: 44px;
  height: 56px;
  background-color: #e6252a;
  border-radius: 6px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 11px;
  text-transform: uppercase;
  flex-shrink: 0;
  clip-path: polygon(0 0, 66% 0, 100% 24%, 100% 100%, 0 100%);
}

/* Same mark, recoloured for the other file types a download row can carry */
.pdf-icon-badge--doc { background-color: #2b5797; }
.pdf-icon-badge--xls { background-color: #1f7244; }
.pdf-icon-badge--ppt { background-color: #d24726; }
.pdf-icon-badge--zip { background-color: #b7791f; }
.pdf-icon-badge--img { background-color: #6b46c1; }
.pdf-icon-badge--font { background-color: #475569; }
.pdf-icon-badge--link { background-color: #64748b; }

.pdf-icon-badge::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.34);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.download-title {
  font-size: 19px;
  font-weight: 600;
  color: #111111;
  line-height: 27px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.btn-circle-download {
  width: 47px;
  height: 47px;
  border-radius: var(--radius-full);
  background-color: var(--color-indigo);
  color: var(--color-white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  text-decoration: none !important;
  transition: var(--transition);
}

.btn-circle-download .material-symbols-outlined {
  font-size: 26px;
}

.btn-circle-download:hover {
  background-color: var(--color-indigo-hover);
  transform: scale(1.06);
  color: var(--color-white) !important;
}

/* SEARCH BAR (ORDER & CIRCULAR) */
.search-filter-bar {
  display: flex;
  justify-content: flex-end;
  gap: 19px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input-group {
  display: flex;
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-indigo);
  box-shadow: none;
  width: 273px;
  height: 52px;
}

.search-input-group input {
  border: none;
  padding: 0 20px;
  font-size: 20px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  flex: 1 1 auto;
  color: #2b2b2b;
}

.search-input-group input::placeholder {
  color: #9b9b9b;
}

.btn-search {
  background-color: var(--color-indigo);
  color: var(--color-white);
  width: 46px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search .material-symbols-outlined {
  font-size: 26px;
}

.filter-select {
  background-color: var(--color-indigo);
  color: var(--color-white);
  font-family: inherit;
  font-weight: 500;
  font-size: 20px;
  width: 272px;
  height: 52px;
  padding: 0 56px 0 34px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14' viewBox='0 0 22 14'%3E%3Cpath d='M0 0h22L11 14z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 26px center;
}

.filter-select option {
  color: #1c1c1c;
  background-color: #ffffff;
}

/* CIRCULAR LIST ITEMS */
.circular-item {
  display: flex;
  align-items: stretch;
  background-color: var(--color-white);
  border-radius: 5px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(60, 45, 25, 0.06);
  border: none;
  /* Reference row is 79px, but real circular titles wrap to two or three
     lines — a fixed height clipped them, so this is a floor, not a cap. */
  min-height: 79px;
}

.circular-date {
  background-color: #83c4be;
  color: #0d3b3b;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  width: 101px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circular-content {
  padding: 12px 24px 12px 47px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 38px;
  min-width: 0;
}

.circular-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: #111111;
}

.tag-pill {
  background-color: #f47822;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 41px;
  height: 41px;
  padding: 0 14px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* WHATSAPP SHARE ACTIONS */
.circular-share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  flex-shrink: 0;
}

.btn-whatsapp-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-circle:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.55);
  color: #ffffff !important;
}

.btn-whatsapp-circle:active {
  transform: scale(0.96);
}

.btn-whatsapp-circle svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  display: block;
  pointer-events: none;
}

.btn-whatsapp-circle-sm {
  width: 32px;
  height: 32px;
  box-shadow: 0 1px 5px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-circle-sm svg {
  width: 17px;
  height: 17px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #25D366;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-whatsapp-pill:hover {
  background-color: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

.btn-whatsapp-pill svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  display: block;
  pointer-events: none;
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 10px;
}

.news-card-header .news-date {
  margin-bottom: 0;
}

.news-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* PAGINATION */
/* The pager is a CI-generated <ul class="pagination"> inside a
   <div class="pagination"> wrapper, so both levels answer to this class. The
   list markers and the unstyled anchors were what showed as bullets sitting on
   top of the page numbers. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 3.5rem 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  list-style: none;
  display: block;
}

.pagination li > a,
.pagination li > strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.pagination li > a:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination li.active > a,
.pagination li > strong {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 800;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn.active {
  background-color: var(--color-white);
  border-color: var(--color-text-dark);
  font-weight: 800;
}

.page-btn:hover {
  background-color: var(--color-bg-light);
}

/* FORMS & ACADEMIC ACTION CARDS */
.grid-large-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0 4rem;
}

.action-block-card {
  position: relative;
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  min-height: 110px;
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transition: var(--transition);
  text-decoration: none;
  z-index: 1;
}

.action-block-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: 10px 0 10px 10px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0% 100%);
  z-index: -2;
  transition: var(--transition);
}

.action-block-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 7px 0 7px 7px;
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 0% 100%);
  z-index: -1;
  transition: var(--transition);
}

.action-block-card:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

/* CATEGORY TABS NAV (SCREENSHOT 1 STYLE) */
.category-tabs-container {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.category-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-tab-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff !important;
  background: #026569; /* Dark Teal */
  text-decoration: none !important;
  border: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  margin-right: -8px;
  transition: all 0.25s ease;
  z-index: 1;
  white-space: nowrap;
}

.category-tab-item:hover:not(.active) {
  background: #087f85;
  color: #ffffff !important;
}

.category-tab-item.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Orange Gradient */
  z-index: 3;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
  color: #ffffff !important;
}

.category-tabs-line {
  height: 3px;
  background: #026569;
  width: 100%;
  margin-top: -3px;
}

/* DOWNLOAD ROWS LIST (SCREENSHOT 1 STYLE) */
.download-files-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.download-file-row {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  color: inherit;
}

.download-file-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  text-decoration: none !important;
}

.download-file-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.download-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #333467;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(51, 52, 103, 0.2);
}

.download-file-row:hover .download-action-btn {
  background: #ea580c;
  transform: scale(1.08);
}

/* QUICK LINKS CARDS */
.grid-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3.5rem;
}

.quick-link-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #1e3a8a;
}

/* PHOTO GALLERY GRID */
.gallery-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-card {
  text-align: center;
}

.gallery-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
  margin-bottom: 0.85rem;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-caption {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

/* ACCORDIONS (SERVICE CORNER FAQ) */
.accordion-item {
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.accordion-header {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  min-height: 52px;
}

.accordion-header-title {
  background-color: #0c4a5c;
  color: #ffffff;
  padding: 0.95rem 1.5rem;
  flex-grow: 1;
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0% 100%);
  width: calc(100% - 70px);
}

.accordion-toggle-btn {
  width: 80px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.accordion-body,
.accordion-content {
  background-color: var(--color-white);
  padding: 1.25rem 1.5rem;
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  display: none;
}

.accordion-item.open .accordion-body,
.accordion-item.open .accordion-content {
  display: block;
}

/* CONTACT US LAYOUT */
.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  margin: 2rem 0 4rem;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.contact-info-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #1e3a8a;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.table-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.table-card h3 {
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.table-directory {
  width: 100%;
  border-collapse: collapse;
}

.table-directory td {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.05rem;
}

.table-directory tr:last-child td {
  border-bottom: none;
}

/* FOOTER */
.main-footer {
  background-image:
    linear-gradient(180deg,
      rgba(4, 62, 69, 0.97) 0%,
      rgba(6, 60, 65, 0.97) 35%,
      rgba(13, 68, 68, 0.97) 65%,
      rgba(12, 76, 69, 0.97) 100%),
    var(--hero-image, url('../images/banner-img.jpg'));
  background-size: cover, cover;
  background-position: center, center;
  color: var(--color-white);
  padding: 78px 0 65px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

.footer-top .brand-logo {
  gap: 20px;
}

.footer-top .brand-logo img,
.brand-lockup.footer-lockup {
  height: 82px;
  max-height: 82px;
  width: auto;
  object-fit: contain;
}

.footer-brand-text h2 {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: #ffffff;
}

.footer-brand-text p {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-top: 4px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
  margin-top: 30px;
}

.footer-nav {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-top: 28px;
}

.footer-nav a {
  font-weight: 400;
  font-size: 14.5px;
  color: #ffffff;
}

.footer-nav a:hover {
  color: var(--color-orange);
}

.footer-contacts {
  display: flex;
  gap: 85px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  font-size: 13.5px;
  color: #ffffff;
  margin-top: 26px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  text-align: left;
  max-width: 380px;
}

.footer-contact-item .material-symbols-outlined {
  color: var(--color-orange-icon);
  font-size: 16px;
  line-height: 18px;
}

.footer-watermark {
  display: none;
}

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  border-top: none;
  padding-top: 0;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.home-office-section {
  padding: 75px 0 60px;
}

.home-office-bearers-layout {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 50px;
  width: 100%;
}

.home-bearers-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1 1 auto;
}

.office-bearers-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 34px;
  font-weight: 700;
  color: #111111;
  width: 100%;
}

.home-office-bearers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 20px;
  justify-content: center;
  align-items: start;
  width: 100%;
}

.home-office-bearers-grid .bearer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.home-office-bearers-grid .bearer-photo-wrapper {
  width: 100%;
  max-width: 180px;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: var(--color-white);
  padding: 4px;
  border-radius: 18px !important;
  border: 1.5px solid rgba(1, 109, 119, 0.20) !important;
  box-shadow: 0 4px 14px rgba(1, 109, 119, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  margin: 0 auto 8px;
  box-sizing: border-box;
}

.home-office-bearers-grid .bearer-photo-wrapper img,
.home-office-bearers-grid .bearer-placeholder {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 14px !important;
  display: block;
}

.home-office-bearers-grid .bearer-placeholder {
  background: linear-gradient(135deg, #016D77, #0F1E24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-office-bearers-grid .bearer-placeholder .material-symbols-outlined {
  font-size: 54px;
  color: rgba(255, 255, 255, 0.6);
}

.home-office-bearers-grid .bearer-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #0F1E24;
  margin: 4px 0 0;
  min-height: 0;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.home-office-bearers-grid .bearer-role {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #556068;
  margin: 2px 0 0;
  min-height: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.home-office-bearers-grid .bearer-phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  background: #E5F3F4;
  border: 1px solid rgba(1, 109, 119, 0.18);
  text-decoration: none;
  max-width: 100%;
  transition: all 0.2s ease;
}

.home-office-bearers-grid .bearer-phone-pill:hover {
  background: #016D77;
  border-color: #016D77;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-circle {
  background: #ffffff;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-circle .material-symbols-outlined {
  color: #016D77;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-number {
  color: #ffffff;
}

.home-office-bearers-grid .bearer-phone-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #016D77;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.home-office-bearers-grid .bearer-phone-circle .material-symbols-outlined {
  font-size: 10px !important;
  color: #ffffff;
  line-height: 1;
}

.home-office-bearers-grid .bearer-phone-number {
  font-size: 10px;
  font-weight: 700;
  color: #016D77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.home-bearers-action {
  margin-top: 24px;
  text-align: center;
}

.home-bearers-action .btn-green {
  background-color: #249902;
  color: #ffffff;
  height: 44px;
  line-height: 44px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 28px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  min-width: 0;
  transition: var(--transition);
}

.home-bearers-action .btn-green:hover {
  background-color: #1d7e01;
  transform: translateY(-2px);
}

.home-actions-block {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  margin-top: 60px;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 12px;
  row-gap: 40px;
  /* break out of .container so the strip runs the full viewport width */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 28px;
  padding-right: 28px;
}

/* Home gallery card: picture then caption, no white plate underneath */
.home-gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-gallery-thumb {
  border-radius: 14px;
  overflow: hidden;
}

.home-gallery-thumb img {
  width: 100%;
  height: 324px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-gallery-item:hover .home-gallery-thumb img {
  transform: scale(1.04);
}

.home-gallery-caption {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  color: #111111;
  text-align: center;
}

.home-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.home-gallery-head .section-title {
  margin-bottom: 0;
  text-align: left;
}

.home-gallery-nav {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.gallery-nav-circle {
  width: 48px;
  height: 48px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  background-color: #29a507;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Arrow drawn in CSS (shaft + head) so it stays centred at any size */
.gallery-nav-circle {
  position: relative;
}

.gallery-nav-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
}

.gallery-nav-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.gallery-nav-circle.next::after {
  right: 14px;
  transform: translateY(-50%) rotate(45deg);
}

.gallery-nav-circle.prev::after {
  left: 14px;
  transform: translateY(-50%) rotate(-135deg);
}

.gallery-nav-circle:hover {
  background-color: #229004;
  color: #ffffff;
}

/* RESPONSIVE MEDIA QUERIES — see the consolidated mobile section at the end of this file */

/* ========================================================
   EXACT PDF MATCH STYLING FOR CONTACT V2 & POLISH
   ======================================================== */

/* Contact V2 Main Layout (Matching KPSTA - V2 Contact us V2.pdf) */
.contact-v2-grid {
  display: grid;
  grid-template-columns: 569px 796px;
  gap: 60px;
  margin: 0;
  align-items: start;
}

.contact-left-info {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.contact-section-group h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 18px;
  line-height: 1.25;
}

.contact-recog-text {
  font-size: 17px;
  color: #111111;
  line-height: 25px;
  margin-bottom: 20px;
  font-weight: 400;
}

.contact-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 17px;
  color: #111111;
  font-weight: 400;
  line-height: 25px;
}

.contact-icon-row a {
  color: #2a2d96;
  text-decoration: none;
  font-weight: 400;
}

.contact-icon-row a:hover {
  text-decoration: underline;
  color: var(--color-orange);
}

.contact-circle-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2a2d96;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.contact-circle-icon .material-symbols-outlined {
  font-size: 20px !important;
}

.contact-right-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dark-teal-card {
  position: relative;
  background: linear-gradient(180deg, #215a75 0%, #0d5c70 55%, #046470 100%);
  border-radius: 14px;
  padding: 48px 40px 40px;
  color: #ffffff;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.dark-teal-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.dark-teal-card > * {
  position: relative;
}

.office-bearers-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 33px;
}

/* Reserved two-line name / one-line role, so a long third name can't drop that
   column's designation and phone badge below its neighbours' */
.mini-bearer-item h4 {
  font-size: 21px;
  font-weight: 700;
  line-height: 25px;
  color: #ffffff;
  margin-bottom: 4px;
  min-height: 50px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mini-bearer-item p {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 21px;
  margin-bottom: 10px;
  min-height: 21px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.phone-badge-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
}

.phone-badge-orange:hover {
  background-color: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
  color: var(--color-orange);
}

.phone-circle-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #f57722;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.phone-circle-icon .material-symbols-outlined {
  font-size: 15px !important;
}

.btn-more-bearers {
  display: block;
  width: 303px;
  height: 58px;
  line-height: 58px;
  margin: 0 auto;
  background-color: #29a507;
  color: #ffffff;
  font-size: 21px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
}

.btn-more-bearers:hover {
  background-color: #229004;
  color: #ffffff;
}

.editorial-board-title {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin: 50px 0 28px;
}

.editorial-card {
  position: relative;
  background: linear-gradient(180deg, #025b63 0%, #016a74 50%, #016067 100%);
  border: 4px solid #00646c;
  border-radius: 14px;
  padding: 53px 40px;
}

.editorial-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.editorial-card > * {
  position: relative;
}

.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.editorial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 62px;
  padding: 10px 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.editorial-row:last-child {
  border-bottom: none;
}

.editorial-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.quill-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f57722;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: none;
}

.quill-circle .material-symbols-outlined {
  font-size: 19px !important;
}

.editorial-line {
  flex-grow: 0;
  width: 34px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.65);
  margin: 0 auto;
}

.editorial-right {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.editorial-name {
  text-align: right;
  font-weight: 500;
}

.editorial-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #ffd5bd;
  text-decoration: none;
  line-height: 1.25;
}

.editorial-phone:hover {
  color: #ffffff;
  text-decoration: underline;
}

.editorial-phone .material-symbols-outlined {
  font-size: 15px;
  color: #f57722;
}

/* Quick Links Grid & Button Styling Polish */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 21px;
  row-gap: 24px;
  margin: 0;
}

.quick-link-btn {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 12px 24px 12px 32px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  color: #2f2e74;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(60, 45, 25, 0.06);
  border: none;
  transition: all 0.25s ease;
}

.quick-link-btn .material-symbols-outlined {
  font-size: 30px !important;
  color: #2f2e74;
  flex-shrink: 0;
}

.quick-link-btn:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(47, 46, 116, 0.14);
  border-color: transparent;
  background-color: #ffffff;
}

/* Form inputs styling fallback */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
  background-color: #f8fafc;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 37, 69, 0.1);
}

/* Contact mobile rules folded into the consolidated mobile section below */


/* ==========================================================================
   GALLERY (reference: V2A1 - Gallery)
   ========================================================================== */
.page-gallery {
  padding: 117px 0 130px;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.gallery-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #111111;
}

.year-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-nav {
  width: 52px;
  height: 51px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(60, 45, 25, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.year-nav::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 20px solid #2a2d96;
}

.year-nav.next::before {
  border-right: none;
  border-left: 20px solid #2a2d96;
}

.year-select {
  width: 176px;
  height: 51px;
  background-color: #ffffff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(60, 45, 25, 0.10);
  font-family: inherit;
  font-size: 30px;
  font-weight: 500;
  color: #111111;
  text-align: center;
  padding: 0 46px 0 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='11' viewBox='0 0 18 11'%3E%3Cpath d='M0 0h18L9 11z' fill='%23767676'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 23px;
  row-gap: 40px;
}

.gallery-item {
  display: block;
  text-decoration: none;
}

.gallery-thumb {
  height: 319px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0b2545;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-fallback {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-caption {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  color: #111111;
  text-align: center;
}

/* Service Corner uses the same notched teal card, laid out over multiple rows */
.service-card-grid {
  row-gap: 47px;
}

/* ==========================================================================
   JOINED TAB BAR (reference: V2 Melakal) — one strip of slanted tabs,
   active tab orange, all tabs sharing a continuous bottom edge.
   ========================================================================== */
.tab-header--joined {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  /* No gap -- each tab's tail tip lands exactly on the next tab's leading edge */
  gap: 0;
  margin-bottom: 30px;
}

/* The continuous bottom edge the tabs sit on. Drawn on the strip rather than
   per tab so it runs unbroken from edge to edge. It sits in FRONT of the tabs
   (z-index above them) so it reads as one rule crossing the whole strip rather
   than something the tabs interrupt -- including across the active tab. */
.tab-header--joined::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: var(--color-primary);
  z-index: 2;
}

.tab-header--joined .tab-btn {
  z-index: 1;
  /* Fixed width per the reference — stays this size regardless of how many
     categories exist, so a single category doesn't stretch across the row.
     The box is the flat part only; the 90px notched tail is the ::after
     below, and margin-right reserves its width so the 9px strip gap still
     falls between one tab's tip and the next tab's edge. */
  flex: 0 0 258px;
  width: 258px;
  margin-right: 90px;
  height: 78px;
  padding: 0 0 0 34px;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  background-color: var(--color-primary);
  /* Rounded on the top-left only; the other three corners are the notch and
     the two edges that sit flush on the rule. */
  border-radius: 8px 0 0 0;
  /* Undo the base .tab-btn notch — this variant draws its own on the ::after,
     and the base corner mask would cut this tab's square top-right off. */
  clip-path: none;
  -webkit-mask-image: none;
          mask-image: none;
  filter: none;
}

/* Own wedge rather than the ribbon's: a deeper 16px curve into the diagonal,
   and the viewBox is drawn at this tab's exact 104x78 so nothing is stretched.
   14px of that width is the lead-in overlapping the tab (see the ribbon mask
   for why the top corner has to straddle the boundary). */
.tab-header--joined .tab-btn::after {
  content: '';
  position: absolute;
  /* This variant has no keyline, so ::after is free to be the tail. Reset the
     base rule's inset/radius before repositioning it. */
  inset: auto;
  border-radius: 0;
  left: calc(100% - 14px);
  top: 0;
  width: 104px;
  height: 100%;
  background-color: inherit;
  -webkit-mask: var(--tab-tail-mask) no-repeat center / 100% 100%;
          mask: var(--tab-tail-mask) no-repeat center / 100% 100%;
}

.tab-header--joined .tab-btn::before {
  content: none;
}

.tab-header--joined .tab-btn.active {
  background-color: #f47822;
}

.tab-header--joined .tab-btn:hover {
  background-color: #087f85;
}

.tab-header--joined .tab-btn.active:hover {
  background-color: #e06a17;
}

.tab-header--joined + .download-list {
  margin-top: 0;
}

/* ==========================================================================
   HEADER FIT — the reference is drawn at 1920px wide. Below that the lockup
   and the nav must shrink together so the nav never wraps into the wordmark.
   ========================================================================== */
@media (max-width: 1919px) {
  .nav-links { gap: 36px; }
  .nav-links > li:first-child { margin-right: 10px; }
  .brand-lockup { width: 330px; }
  .header-container { height: 92px; }
}

@media (max-width: 1600px) {
  .nav-links { gap: 26px; }
  .nav-links > li:first-child { margin-right: 0; }
  .nav-link { font-size: 15px; }
  .brand-lockup { width: 290px; }
  .header-container { height: 84px; }
  .top-bar .container,
  .main-header .container { padding: 0 30px; }
}

@media (max-width: 1330px) {
  .nav-links { gap: 18px; }
  .nav-link { font-size: 14px; }
  .brand-lockup { width: 250px; }
  .header-container { height: 76px; }
  .top-bar { font-size: 12px; }
  .top-bar-item + .top-bar-item { margin-left: 36px; }
  .top-bar-item + .top-bar-item + .top-bar-item { margin-left: 30px; }
  .social-circle { width: 30px; height: 30px; font-size: 13px; }
}

@media (max-width: 1120px) {
  .top-bar-item + .top-bar-item,
  .top-bar-item + .top-bar-item + .top-bar-item { margin-left: 20px; }
}

/* ==========================================================================
   LAPTOP / SMALL DESKTOP (1025px - 1472px)
   The page layouts are drawn on the reference's fixed 1425px grid
   (4 x 300px cards + 75px gutters). Below 1473px the container is narrower
   than that grid, so every fixed-px layout ran past the page edge and forced
   a horizontal scrollbar -- 1366x768 laptops got it worst. This range keeps
   the same composition but rebuilds it on fractional columns.
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1472px) {
  /* Gutter tracks the viewport instead of staying at the reference 75px */
  :root { --grid-gutter: clamp(24px, 5.2vw, 75px); }

  /* Office bearers / district / former leaders card grids */
  .grid-bearers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--grid-gutter);
    justify-content: stretch;
  }

  .bearer-photo-wrapper {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 317;
    margin: 0 auto;
  }

  /* Home: bearers strip + action panel */
  .home-office-bearers-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .home-actions-block {
    width: 100%;
    max-width: 480px;
  }

  .home-office-bearers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Contact: info column + teal panel */
  .contact-v2-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 3.5vw, 60px);
  }

  /* Melakal / academic corner tabs still sit four to a row, just narrower */
  .tab-header--joined .tab-btn {
    flex: 0 0 clamp(170px, 17.5vw, 258px);
    width: auto;
    margin-right: 76px;
    padding-right: 0;
    font-size: 23px;
  }
  .tab-header--joined .tab-btn::after { left: calc(100% - 11.8px); width: 87.8px; }

  /* Split news / poster band */
  .news-window-side { padding: 40px 24px var(--grid-gutter-outer); }
  .reaction-gallery-side { padding: 40px var(--grid-gutter-outer) 40px 24px; }
  .news-item-card { gap: 18px; }
  .news-thumb { width: 180px; height: 120px; }
}

/* Legacy sub-pages still get the page wash and the green tint above the footer */
.page-legacy {
  padding: 40px 0 90px;
}

/* ==========================================================================
   MOBILE / RESPONSIVE -- consolidated
   ========================================================================== */

/* ---------- TABLET (<=1024px) ---------- */
@media (max-width: 1024px) {
  .split-section { grid-template-columns: 1fr; min-height: 0; }
  .grid-contact { grid-template-columns: 1fr; }
  .home-office-bearers-layout { flex-direction: column; align-items: center; gap: 32px; }
  .home-actions-block { width: 100%; max-width: 480px; }
}

/* ---------- PHONE / TABLET-PORTRAIT (<=1024px) ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }

  /* Top bar carries no content the reference keeps on mobile -- drop it */
  .top-bar { display: none; }

  /* Header */
  .header-container { height: 68px; }
  .main-header .container { padding: 0 16px; }
  .brand-lockup { width: 240px; }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  /* Nav flyout */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; margin-right: 0 !important; }
  .nav-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-link.active { background-color: var(--color-bg-light); }
  .nav-link.active::after { display: none; }

  /* Dropdown submenus become tap-to-expand panels (see main.js) instead of
     hover popups, since touch has no hover state. */
  .nav-item-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
  }
  .nav-item-wrapper .nav-link {
    flex: 1;
    border-bottom: none !important;
    padding: 14px 20px;
    font-size: 16px;
    width: auto;
  }
  .dropdown-toggle-btn {
    width: 56px;
    height: auto;
    min-height: 48px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-left: 1px solid #f1f5f9;
    color: #4b5563;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .dropdown-toggle-btn:active {
    background-color: #f1f5f9;
  }
  .dropdown-toggle-btn .material-symbols-outlined {
    font-size: 1.6rem;
    transition: transform 0.25s ease, color 0.2s ease;
    pointer-events: none;
  }
  .dropdown.open .dropdown-toggle-btn .material-symbols-outlined {
    transform: rotate(180deg);
    color: var(--color-primary);
  }
  .dropdown.open > .nav-item-wrapper {
    background-color: #f8fafc;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.25s ease;
  }
  .dropdown.open .dropdown-menu {
    visibility: visible;
    max-height: 500px;
    padding: 4px 0 6px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }
  .dropdown-item {
    padding: 12px 24px 12px 36px;
    font-size: 15px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    transition: background-color 0.2s ease, padding 0.2s ease, color 0.2s ease;
  }
  .dropdown-item:last-child {
    border-bottom: none;
  }
  .dropdown-item:active,
  .dropdown-item:hover {
    background-color: #edf2f7;
    color: var(--color-primary);
    padding-left: 42px;
  }
  .dropdown-item.active {
    background-color: #e0f2fe;
    color: var(--color-primary);
    font-weight: 700;
    padding-left: 46px;
    position: relative;
  }
  .dropdown-item.active::before {
    content: "▶";
    position: absolute;
    left: 26px;
    font-size: 11px;
    color: var(--color-primary);
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hero */
  .hero-banner { height: auto; min-height: 200px; padding: 44px 0; }
  .hero-banner.home-hero { height: auto; min-height: 380px; padding: 40px 0 46px; }
  .hero-title, .home-hero .hero-title { font-size: 34px; letter-spacing: 0; }
  .home-hero .hero-title { margin-bottom: 10px; }
  .hero-subtitle { font-size: 18px; line-height: 1.3; margin-bottom: 24px; padding: 0 8px; }
  .hero-tagline { font-size: 15px; font-style: italic; text-transform: none; }
  .hero-subtagline { font-size: 13px; margin-top: 10px; padding: 0 8px; }
  .hero-flag { margin-bottom: 8px; }
  .hero-flag img { height: 50px; }
  .home-hero.is-subsequent-slide .hero-flag img { height: 68px; }
  .hero-dots { right: 12px; gap: 12px; }
  .hero-dot { width: 8px; height: 8px; }

  /* News ticker */
  .news-ticker-bar { height: auto; min-height: 36px; }
  .ticker-badge { width: 96px; font-size: 11px; line-height: 36px; padding-left: 12px; }
  .ticker-content { font-size: 12px; padding-left: 14px; }

  /* Welcome card -- was a fixed 477px box with no overflow handling, which is
     what caused the paragraph/button to spill into the section below on
     narrow screens. Let it size to its content instead. */
  .welcome-section { padding: 40px 0 0; }
  .welcome-card { height: auto; padding: 32px 18px 26px; }
  .welcome-card::before { inset: 10px; }
  .welcome-card::after { top: 10px; bottom: 10px; left: -10px; right: -10px; }
  .welcome-card h2 { font-size: 24px; margin-bottom: 16px; }
  .welcome-card p { font-size: 15px; line-height: 22px; margin-bottom: 22px; max-width: 100%; }
  .btn-outline { width: 150px; height: 46px; font-size: 15px; }

  /* Page shells -- inner-page hero is much shorter now, so the big desktop
     top padding (94-133px, tuned to the 1920 mockup) is no longer needed */
  .page-office-bearers, .page-list, .page-download, .page-quicklinks,
  .page-bearers, .page-district, .page-contact, .page-gallery,
  .page-legacy {
    padding: 28px 0 56px;
  }
  .page-actions { margin-bottom: 20px; }

  /* Ribbon headers -- keep the badge and the rule on one row so they stay a
     single joined shape. The notch is scaled down and sits entirely inside the
     right padding, so it survives a wrapped district name. */
  .ribbon-section-header { margin: 36px 0 0; flex-wrap: nowrap; align-items: flex-end; }
  .ribbon-badge {
    font-size: 15px;
    height: auto;
    line-height: 1.3;
    padding: 9px 16px;
    max-width: 66%;
    white-space: normal;
    border-radius: 6px 0 0 0;
  }
  .ribbon-badge::after { left: calc(100% - 4.29px); width: 34.29px; }
  .ribbon-line { flex-basis: auto; height: 3px; margin-left: 0; }
  .section-title { font-size: 26px; margin-bottom: 20px; }

  /* Bearer card grids (Office Bearers, District, Former Leaders, Home strip) */
  .grid-bearers { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); column-gap: 16px; row-gap: 30px; padding-top: 20px; justify-content: center; }
  /* Home strip keeps its three bearers on a single row down to the smallest
     phone -- minmax(0,…) so a long name can't push the row past the screen */
  .home-office-bearers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; width: 100% !important; }
  .home-office-bearers-grid .bearer-name,
  .home-office-bearers-grid .bearer-role { overflow-wrap: break-word; word-break: break-word; }
  .home-office-bearers-grid .bearer-photo-wrapper {
    width: 100% !important;
    max-width: 130px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
    border: 1.5px solid rgba(1, 109, 119, 0.20) !important;
    padding: 3px !important;
    margin: 0 auto 6px !important;
  }
  .home-office-bearers-grid .bearer-photo-wrapper img,
  .home-office-bearers-grid .bearer-placeholder {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 13px !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .home-office-bearers-grid .bearer-placeholder .material-symbols-outlined { font-size: 36px !important; }
  .home-office-bearers-grid .bearer-name { font-size: 12px !important; line-height: 1.2 !important; margin-top: 4px !important; }
  .home-office-bearers-grid .bearer-role { font-size: 9.5px !important; line-height: 1.15 !important; margin-top: 2px !important; }
  .home-office-bearers-grid .bearer-phone-pill {
    padding: 2.5px 6px !important;
    gap: 3px !important;
    margin-top: 4px !important;
  }
  .home-office-bearers-grid .bearer-phone-circle {
    width: 14px !important;
    height: 14px !important;
  }
  .home-office-bearers-grid .bearer-phone-circle .material-symbols-outlined {
    font-size: 8.5px !important;
  }
  .home-office-bearers-grid .bearer-phone-number {
    font-size: 9px !important;
  }
  .bearer-photo-wrapper {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 300 / 317;
    margin: 0 auto;
    border-radius: 48px 14px 14px 14px;
  }
  .bearer-photo-wrapper img, .bearer-placeholder { border-radius: 42px 10px 10px 10px; }
  .bearer-placeholder .material-symbols-outlined { font-size: 80px; }
  .bearer-name { font-size: 16px; line-height: 20px; margin-top: 10px; min-height: 40px; }
  .bearer-role { font-size: 13px; line-height: 17px; min-height: 17px; }
  .mini-bearer-item h4 { min-height: 0; }
  .mini-bearer-item p { min-height: 0; }
  .bearer-phone { font-size: 13px; gap: 8px; }
  .bearer-phone .material-symbols-outlined { width: 20px; height: 20px; font-size: 12px !important; }
  .btn-green { min-width: 0; width: 100%; max-width: 260px; margin: 0 auto; display: block; font-size: 16px; height: 46px; line-height: 46px; }

  /* Action panel (home) */
  .action-card-link { height: 60px; }
  .action-icon { width: 60px; height: 60px; }
  .action-icon .material-symbols-outlined { font-size: 26px; }
  .action-title { font-size: 14px; line-height: 18px; padding: 0 14px; }

  /* Split News Window / Reaction Gallery */
  .news-window-side, .reaction-gallery-side { padding: 32px 16px; }
  .news-header { margin-bottom: 18px; }
  .news-header h2, .reaction-gallery-side h2 { font-size: 22px; }
  .reaction-gallery-side h2 { margin-bottom: 18px; }
  .btn-view-all { width: 104px; height: 38px; line-height: 34px; font-size: 13px; }
  .news-list { gap: 14px; }
  .news-item-card { padding: 8px; gap: 12px; min-height: 0; }
  .news-thumb { width: 80px; height: 80px; }
  .news-date { font-size: 10px; margin-bottom: 4px; }
  .news-title {
    font-size: 13px;
    line-height: 17px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-readmore { font-size: 11px; }
  .poster-card { max-width: 260px; }

  /* Home gallery strip */
  .home-gallery-head { margin-bottom: 18px; }
  .home-gallery-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 20px; }
  .home-gallery-thumb img { height: 140px; }
  .home-gallery-caption { font-size: 14px; margin-top: 10px; }
  .gallery-nav-circle { width: 36px; height: 36px; }
  .gallery-nav-circle::before { width: 16px; }
  .gallery-nav-circle::after { width: 7px; height: 7px; }
  .gallery-nav-circle.next::after { right: 10px; }
  .gallery-nav-circle.prev::after { left: 10px; }

  /* Footer */
  .main-footer { padding: 36px 0 22px; }
  .footer-top .brand-logo { flex-direction: column; gap: 12px; text-align: center; }
  .footer-lockup { width: 220px; }
  .footer-divider { margin-top: 22px; }
  .footer-nav { gap: 10px 22px; margin-top: 22px; }
  .footer-nav a { font-size: 13px; }
  .footer-contacts { flex-direction: column; align-items: center; gap: 16px; margin-top: 26px; font-size: 13px; }
  .footer-contact-item { max-width: 260px; justify-content: center; }
  .footer-bottom { font-size: 12px; margin-top: 26px; padding: 0 16px; }

  /* Category tab cards (Forms / Academic / Software / Service Corner) */
  .tab-header { grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
  .tab-btn {
    height: auto;
    min-height: 54px;
    padding: 12px 40px 12px 18px;
    font-size: 16px;
    line-height: 20px;
    clip-path: none;
    border-radius: 8px;
    filter: none;
    box-shadow: 0 2px 6px rgba(60, 45, 25, 0.12);
  }
  /* Stacked full-width cards drop the notch and the keyline entirely */
  .tab-btn::before {
    -webkit-mask-image: none;
            mask-image: none;
    border-radius: 8px;
  }
  .tab-btn::after { content: none; }

  /* Joined tab bar (Melakal) -- the fixed 348px width is correct for desktop
     (see .tab-header--joined .tab-btn above) but has to give way to a full
     width stack once the viewport can't fit even one at that size. */
  .tab-header--joined { gap: 10px; }
  /* Stacked full-width tabs have no shared bottom edge to sit on, and no notch
     to carry a tail */
  .tab-header--joined::after { content: none; }
  .tab-header--joined .tab-btn::after { content: none; }
  .tab-header--joined .tab-btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    height: auto;
    min-height: 52px;
    padding: 12px 40px 12px 18px;
    font-size: 16px;
    line-height: 20px;
    clip-path: none;
    border-radius: 8px;
  }

  /* Download rows */
  .download-list { gap: 14px; }
  .page-download .tab-header + .download-list { margin-top: 24px; }
  .download-row { padding: 12px 16px; min-height: 0; flex-wrap: wrap; gap: 10px; }
  .download-row.has-icon { padding-left: 16px; }
  .download-info { gap: 12px; }
  .download-title { font-size: 15px; line-height: 20px; }
  .pdf-icon-badge { width: 34px; height: 42px; font-size: 11px; }
  .btn-circle-download { width: 38px; height: 38px; }
  .btn-circle-download .material-symbols-outlined { font-size: 20px; }

  /* Order & Circular */
  .search-filter-bar { justify-content: stretch; gap: 10px; margin-bottom: 20px; }
  .search-input-group { width: 100%; height: 44px; }
  .search-input-group input { font-size: 15px; padding: 0 14px; }
  .filter-select {
    width: 100%;
    height: 44px;
    font-size: 15px;
    padding: 0 40px 0 16px;
    background-position: right 14px center;
  }
  .page-list .ribbon-section-header { margin-top: 32px; }
  .circular-list { margin-top: 16px; }
  /* nowrap: with wrapping on, a title wide enough to not fit beside the date
     pushed itself onto a second line, leaving the date badge stranded alone
     above it -- so rows in the same list lined up differently depending on how
     long their title was. The date stays a fixed left column; only the title
     and its tag wrap, inside .circular-content. */
  .circular-item { height: auto; flex-wrap: nowrap; align-items: stretch; }
  .circular-date { width: 56px; font-size: 22px; align-self: auto; flex-shrink: 0; }
  .circular-content { flex-wrap: wrap; gap: 8px; padding: 12px 14px; min-width: 0; }
  .circular-title { font-size: 15px; overflow-wrap: break-word; word-break: break-word; min-width: 0; }
  .tag-pill { font-size: 13px; height: 28px; line-height: 28px; padding: 0 10px; }
  .circular-share { padding: 0 10px; }
  .btn-whatsapp-circle { width: 34px; height: 34px; }
  .btn-whatsapp-circle svg { width: 18px; height: 18px; }

  /* Quick Links */
  .quick-links-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-link-btn { min-height: 58px; padding: 10px 16px; font-size: 16px; }
  .quick-link-btn .material-symbols-outlined { font-size: 22px !important; }

  /* Gallery page */
  .page-gallery { padding: 28px 0 56px; }
  .gallery-head { flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
  .gallery-title { font-size: 24px; }
  .year-stepper { gap: 8px; }
  .year-nav { width: 36px; height: 36px; }
  .year-nav::before { border-top-width: 9px; border-bottom-width: 9px; border-right-width: 14px; }
  .year-nav.next::before { border-right-width: 0; border-left-width: 14px; }
  .year-select {
    width: 110px;
    height: 36px;
    font-size: 16px;
    padding: 0 30px 0 12px;
    background-position: right 12px center;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); column-gap: 12px; row-gap: 20px; }
  .gallery-thumb { height: 140px; }
  .gallery-caption { font-size: 14px; margin-top: 10px; }

  /* Contact page */
  .contact-v2-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-left-info { gap: 30px; }
  .contact-section-group h3 { font-size: 18px; margin-bottom: 12px; }
  .contact-recog-text, .contact-icon-row { font-size: 14px; line-height: 20px; }
  .contact-circle-icon { width: 30px; height: 30px; }
  .contact-circle-icon .material-symbols-outlined { font-size: 16px !important; }
  .dark-teal-card, .editorial-card { padding: 24px 16px; }
  /* Keep all three bearers on one row; shrink type instead of stacking */
  .office-bearers-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
  .mini-bearer-item h4 { font-size: 14px; line-height: 17px; margin-bottom: 3px; }
  .mini-bearer-item p { font-size: 11px; line-height: 14px; margin-bottom: 6px; }
  .phone-badge-orange { font-size: 12px; gap: 4px; justify-content: center; }
  .phone-circle-icon { width: 20px; height: 20px; }
  .phone-circle-icon .material-symbols-outlined { font-size: 12px !important; }
  .btn-more-bearers { width: 100%; max-width: 240px; height: 46px; line-height: 46px; font-size: 16px; }
  .editorial-board-title { font-size: 20px; margin: 32px 0 16px; }
  /* Designation and name stay on one line */
  .editorial-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    line-height: normal;
    padding: 12px 0;
    gap: 10px;
    font-size: 13px;
  }
  .editorial-left { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .editorial-left span { overflow-wrap: anywhere; }
  .quill-circle { width: 28px; height: 28px; }
  .quill-circle .material-symbols-outlined { font-size: 15px !important; }
  .editorial-line { display: none; }
  .editorial-right { min-width: 0; width: auto; align-items: flex-end; text-align: right; flex-shrink: 0; gap: 3px; }
  .editorial-name { min-width: 0; width: auto; text-align: right; padding-left: 0; font-weight: 600; white-space: nowrap; }
  .editorial-phone { font-size: 11.5px; }
  .editorial-phone .material-symbols-outlined { font-size: 13px; }
}

/* ---------- SMALL PHONE (<=480px) ---------- */
@media (max-width: 480px) {
  .brand-lockup { width: 205px; }
  .hero-title, .home-hero .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .grid-bearers,
  .home-gallery-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .bearer-photo-wrapper { max-width: 240px; }
  /* Home strip stays three-up; clean square uncropped photo frames & matching mobile app pills */
  .home-office-bearers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .home-office-bearers-grid .bearer-photo-wrapper {
    max-width: 110px !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 14px !important;
    padding: 2.5px !important;
    margin: 0 auto 4px !important;
  }
  .home-office-bearers-grid .bearer-photo-wrapper img,
  .home-office-bearers-grid .bearer-placeholder {
    aspect-ratio: 1 / 1 !important;
    height: 100% !important;
    border-radius: 11px !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .home-office-bearers-grid .bearer-name { font-size: 11px !important; line-height: 1.15 !important; margin-top: 3px !important; }
  .home-office-bearers-grid .bearer-role { font-size: 8.5px !important; line-height: 1.1 !important; }
  .home-office-bearers-grid .bearer-phone-pill {
    padding: 2px 4px !important;
    gap: 2.5px !important;
    margin-top: 3px !important;
  }
  .home-office-bearers-grid .bearer-phone-circle {
    width: 13px !important;
    height: 13px !important;
  }
  .home-office-bearers-grid .bearer-phone-circle .material-symbols-outlined {
    font-size: 8px !important;
  }
  .home-office-bearers-grid .bearer-phone-number {
    font-size: 8px !important;
  }
  /* Contact bearer strip + editorial: shrink further on small phones, stay inline */
  .office-bearers-mini-grid { gap: 6px; }
  .mini-bearer-item h4 { font-size: 12px; line-height: 15px; }
  .mini-bearer-item p { font-size: 10px; }
  .phone-badge-orange { font-size: 11px; gap: 3px; }
  .editorial-row { font-size: 11px; gap: 6px; }
  .editorial-left { gap: 7px; }
  .quill-circle { width: 24px; height: 24px; }
  .quill-circle .material-symbols-outlined { font-size: 13px !important; }
}

/* ==========================================================================
   MEMBERSHIP & MAGAZINE PORTAL PAGE
   ========================================================================== */
.page-membership-magazine {
  padding: 40px 0 80px;
  background-color: #f8fafc;
  min-height: calc(100vh - 400px);
}

.page-breadcrumb-wrap {
  margin-bottom: 28px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.page-breadcrumb li a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.page-breadcrumb li a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.page-breadcrumb li a .material-symbols-outlined {
  font-size: 18px;
}

.page-breadcrumb .separator {
  color: #cbd5e1;
  font-weight: 300;
}

.page-breadcrumb .current {
  color: var(--color-text);
  font-weight: 600;
}

.portal-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.portal-badge-pill {
  display: inline-block;
  background: rgba(1, 109, 119, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(1, 109, 119, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.portal-heading {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 14px;
}

.portal-subtext {
  font-size: 16px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.portal-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.portal-option-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-option-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px -8px rgba(1, 109, 119, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

.portal-option-card.card-membership:hover {
  border-color: #fdba74;
}

.portal-option-card.card-magazine:hover {
  border-color: #5eead4;
}

.card-accent-bar {
  height: 6px;
  width: 100%;
}

.card-accent-bar.bar-orange {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
}

.card-accent-bar.bar-teal {
  background: linear-gradient(90deg, #016d77 0%, #0d9488 100%);
}

.card-inner {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-option-card:hover .card-icon-badge {
  transform: scale(1.08) rotate(-2deg);
}

.card-icon-badge.icon-orange {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.22));
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.card-icon-badge.icon-teal {
  background: linear-gradient(135deg, rgba(1, 109, 119, 0.12), rgba(13, 148, 136, 0.22));
  color: #016d77;
  border: 1px solid rgba(1, 109, 119, 0.2);
}

.card-icon-badge .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
}

.card-content {
  margin-bottom: 22px;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.card-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.card-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
  font-weight: 500;
}

.card-feature-list li .check-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.card-membership .check-icon {
  color: #ea580c;
}

.card-magazine .check-icon {
  color: #016d77;
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.card-btn .arrow-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.portal-option-card:hover .arrow-icon {
  transform: translateX(5px);
}

.btn-membership {
  background: #fff7ed;
  color: #ea580c;
  border: 1.5px solid #fed7aa;
}

.portal-option-card.card-membership:hover .btn-membership {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
}

.btn-magazine {
  background: #f0fdfa;
  color: #016d77;
  border: 1.5px solid #99f6e4;
}

.portal-option-card.card-magazine:hover .btn-magazine {
  background: linear-gradient(135deg, #016d77 0%, #0d9488 100%);
  color: #ffffff;
  border-color: #016d77;
  box-shadow: 0 10px 22px rgba(1, 109, 119, 0.32);
}

.portal-help-box {
  max-width: 1040px;
  margin: 44px auto 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.portal-help-box .help-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(1, 109, 119, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-help-box .help-icon .material-symbols-outlined {
  font-size: 26px;
}

.portal-help-box .help-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
}

.portal-help-box .help-text strong {
  color: #0f172a;
}

@media (max-width: 860px) {
  .portal-options-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 24px;
  }

  .portal-heading {
    font-size: 28px;
  }

  .card-inner {
    padding: 28px 24px 24px;
  }

  .portal-help-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .portal-heading {
    font-size: 23px;
  }

  .portal-subtext {
    font-size: 14.5px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-btn {
    padding: 13px 18px;
    font-size: 14px;
  }
}

/* ==========================================================================
   STICKY ANDROID APP BUTTON & PLAYSTORE MODAL
   ========================================================================== */
.kpsta-app-sticky-wrapper {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Tooltip / Notification Bubble */
.kpsta-app-sticky-bubble {
  pointer-events: auto;
  position: relative;
  margin-bottom: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 14px 10px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  max-width: 290px;
  transform-origin: bottom right;
  animation: kpstaBubblePop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.kpsta-app-sticky-bubble.visible {
  display: flex;
}

.kpsta-app-sticky-bubble.hidden {
  display: none !important;
}

.kpsta-app-sticky-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.05);
}

.kpsta-app-sticky-bubble:hover {
  transform: translateY(-2px);
}

.bubble-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #1e293b;
}

.bubble-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.bubble-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.bubble-close-btn:hover {
  color: #0f172a;
}

/* Floating Sticky Button */
.kpsta-app-sticky-btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: linear-gradient(135deg, #091e2b 0%, #032b30 50%, #014d54 100%);
  color: #ffffff;
  border: 1.5px solid rgba(61, 220, 132, 0.5);
  border-radius: 50px;
  box-shadow: 0 10px 24px -3px rgba(1, 109, 119, 0.45), 0 0 16px rgba(61, 220, 132, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.kpsta-app-sticky-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px -4px rgba(1, 109, 119, 0.6), 0 0 24px rgba(61, 220, 132, 0.45);
  border-color: #3ddc84;
}

.sticky-btn-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  border: 2px solid #3ddc84;
  opacity: 0;
  animation: kpstaPulseGlow 2.5s infinite;
  pointer-events: none;
}

.sticky-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3ddc84;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.kpsta-app-sticky-btn:hover .sticky-btn-icon {
  transform: rotate(-10deg) scale(1.1);
}

.sticky-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.sticky-btn-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.sticky-btn-main {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Modal Popup Overlay */
.kpsta-app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kpsta-app-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.kpsta-app-modal-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpsta-app-modal-overlay.active .kpsta-app-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: rotate(90deg);
}

.modal-close-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Modal Banner */
.modal-card-banner {
  position: relative;
  background: linear-gradient(135deg, #03252a 0%, #014d54 60%, #016d77 100%);
  padding: 34px 24px 28px;
  text-align: center;
  overflow: hidden;
}

.banner-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.banner-icons {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-icon-box {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.app-modal-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.app-icon-divider {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.app-icon-divider .material-symbols-outlined {
  font-size: 20px;
}

.play-icon-box {
  width: 64px;
  height: 64px;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.banner-badge {
  display: inline-block;
  background: rgba(61, 220, 132, 0.15);
  color: #3ddc84;
  border: 1px solid rgba(61, 220, 132, 0.3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
}

/* Modal Body */
.modal-card-body {
  padding: 26px 28px 24px;
}

.modal-app-title {
  font-size: 23px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-align: center;
}

.modal-app-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}

.modal-app-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 22px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 22px;
  color: var(--color-primary);
  background: rgba(1, 109, 119, 0.1);
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.feature-text strong {
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 700;
}

.feature-text span {
  font-size: 12.5px;
  color: #64748b;
}

/* Play Store Download Button */
.modal-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-playstore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000000;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  border: 1px solid #334155;
}

.btn-playstore:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-color: #64748b;
}

.play-svg {
  flex-shrink: 0;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.playstore-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.playstore-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.modal-card-footer {
  margin-top: 14px;
  text-align: center;
}

.btn-modal-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s ease;
}

.btn-modal-dismiss:hover {
  color: #475569;
  text-decoration: underline;
}

/* Keyframe Animations */
@keyframes kpstaPulseGlow {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes kpstaBubblePop {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 560px) {
  .kpsta-app-sticky-wrapper {
    bottom: 18px;
    right: 18px;
  }
  
  .kpsta-app-sticky-btn {
    padding: 7px 14px 7px 8px;
  }
  
  .sticky-btn-icon {
    width: 34px;
    height: 34px;
  }
  
  .sticky-btn-main {
    font-size: 13px;
  }
  
  .kpsta-app-sticky-bubble {
    max-width: 250px;
    font-size: 12px;
  }
  
  .modal-card-body {
    padding: 20px 20px 18px;
  }
  
  .modal-app-title {
    font-size: 20px;
  }
}


/* ==========================================================================
   Client Change Requests Enhancements (Modern, Distinctive, Brand-Aligned)
   ========================================================================== */

/* 2. Responsive & Proportionate Photos for Office Bearers */
.home-office-bearers-grid .bearer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-office-bearers-grid .bearer-photo-wrapper {
  width: 100%;
  max-width: 180px;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(1, 109, 119, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(1, 109, 119, 0.18) !important;
  margin: 0 auto 8px;
  background: #ffffff;
  padding: 4px;
}

.home-office-bearers-grid .bearer-photo-wrapper img,
.home-office-bearers-grid .bearer-placeholder {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 14px !important;
}

.home-office-bearers-grid .bearer-phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  background: #E5F3F4;
  border: 1px solid rgba(1, 109, 119, 0.18);
  text-decoration: none;
  max-width: 100%;
  transition: all 0.2s ease;
}

.home-office-bearers-grid .bearer-phone-pill:hover {
  background: #016D77;
  border-color: #016D77;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-circle {
  background: #ffffff;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-circle .material-symbols-outlined {
  color: #016D77;
}

.home-office-bearers-grid .bearer-phone-pill:hover .bearer-phone-number {
  color: #ffffff;
}

.home-office-bearers-grid .bearer-phone-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #016D77;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.home-office-bearers-grid .bearer-phone-circle .material-symbols-outlined {
  font-size: 10px !important;
  color: #ffffff;
  line-height: 1;
}

.home-office-bearers-grid .bearer-phone-number {
  font-size: 10px;
  font-weight: 700;
  color: #016D77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

/* 3. Quick Menu (Expandable & Collapsible) */
.quick-menu-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid rgba(1, 109, 119, 0.18);
  box-shadow: 0 4px 16px rgba(1, 109, 119, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.quick-menu-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.quick-menu-header-btn:hover {
  background: rgba(229, 243, 244, 0.4);
}

.quick-menu-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-menu-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #016D77, #0F1E24);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-menu-title-text {
  font-size: 15px;
  font-weight: 800;
  color: #0F1E24;
  margin: 0;
  line-height: 1.2;
}

.quick-menu-subtitle-text {
  font-size: 12px;
  color: #64748B;
  margin: 0;
  line-height: 1.2;
}

.quick-menu-badge-pill {
  font-size: 11px;
  font-weight: 700;
  color: #016D77;
  background: #E5F3F4;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-menu-content-collapsible {
  display: none;
  padding: 4px 14px 14px;
  border-top: 1px solid #E2E8F0;
}

.quick-menu-content-collapsible.is-open {
  display: block;
  animation: quickMenuFadeIn 0.28s ease-out;
}

@keyframes quickMenuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Authentic Portrait Mode Reaction Gallery */
.reaction-slider-container {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.poster-card {
  max-width: 310px;
  width: 100%;
  aspect-ratio: 0.71;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0f2c33;
  padding: 4px;
}

.poster-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.poster-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 0.71;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* 6. Reaction Gallery Web Popup Modal */
.reaction-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reaction-popup-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.reaction-popup-card {
  width: auto;
  max-width: min(92vw, 540px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.reaction-popup-backdrop.is-visible .reaction-popup-card {
  transform: scale(1);
}

.reaction-popup-header {
  background: #016D77;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.reaction-popup-body {
  position: relative;
  width: 100%;
  max-height: 72vh;
  overflow-y: auto;
  background: #0F2C33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reaction-popup-body img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.reaction-popup-footer {
  padding: 12px 16px;
  background: #ffffff;
  display: flex;
  gap: 10px;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}


@media (max-width: 1024px) {
  .header-flag-img { height: 44px; }
  .brand-logo { gap: 12px; }
}
@media (max-width: 768px) {
  .brand-logo {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
  .brand-lockup {
    width: auto !important;
    max-width: calc(100% - 56px);
    height: auto;
    max-height: 48px;
  }
  .header-flag-wrap {
    display: inline-flex !important;
    flex-shrink: 0;
  }
  .header-flag-img { height: 38px; }
}
@media (max-width: 480px) {
  .brand-logo { gap: 8px; }
  .brand-lockup { max-width: calc(100% - 48px); max-height: 42px; }
  .header-flag-img { height: 34px; }
}

/* Footer Sitemap with Sub-menus */
.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 28px 48px;
  width: 100%;
  max-width: 820px;
  margin: 28px auto 0;
  text-align: left;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange, #EE6A2A);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col-links a:hover {
  color: var(--color-orange, #EE6A2A);
  padding-left: 4px;
}
@media (max-width: 640px) {
  .footer-sitemap-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px 18px;
    margin-top: 22px;
    padding: 0 10px;
  }
  .footer-col-title { font-size: 13px; margin-bottom: 8px; }
  .footer-col-links a { font-size: 13px; }
}

