/* =====================================================================
   COURT OF APPEAL – SINGLE STYLESHEET  (style.css)

   Everything lives here: palette, header, nav, drawer, hero,
   home-page sections, footer, inner-page components, responsive.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400;1,500&display=swap');

:root {
    /* primary palette */
    --coa-maroon: #6e1d4b;
    --coa-maroon-deep: #561238;
    --coa-gold: #d6a24a;
    --coa-btn-from: #d8b07c;
    --coa-btn-to: #c0925a;
    --coa-crimson: #c2185b;
    --coa-crimson-dark: #a1124d;
    --coa-ink: #1d2024;
    --coa-text: #4a4a52;
    --coa-gold-text: #b98f55;

    /* header layout */
    --coa-offset: 20px;
    --coa-header-h: 88px;

    /* font stacks */
    --coa-font-head: 'Raleway', 'Poppins', sans-serif;
    --coa-font-ui: 'Roboto', 'Poppins', sans-serif;

    /* legacy names still used by inner pages */
    --primary-color: var(--coa-maroon);
    --secondary-color: var(--coa-maroon-deep);
    --gold-accent: var(--coa-gold);
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f7f4f6;
}

/* =====================================================================
   1. BASE
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--coa-font-ui);
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--coa-font-head);
}

img {
    max-width: 100%;
}

.coa-container {
    width: min(1240px, 90%);
    margin-inline: auto;
}

/* scroll reveal (footer.php adds .active once, via IntersectionObserver) */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.js .reveal.active {
    opacity: 1;
    transform: none;
}

/* set by JS while the drawer / modal is open */
body.no-scroll {
    overflow: hidden;
}

/* =====================================================================
   2. SHARED COMPONENTS
   ===================================================================== */
.coa-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--coa-font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #2a2a2e;
}

.coa-title {
    font-family: var(--coa-font-head);
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1d1d21;
}

.coa-title em,
.coa-accent {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--coa-gold-text);
}

.coa-rule {
    width: 46px;
    height: 2px;
    margin: 18px 0 24px;
    background: var(--coa-gold-text);
}

.coa-rule.center {
    margin-inline: auto;
}

.coa-section-head {
    text-align: center;
    margin-bottom: 46px;
}

.coa-btn-crimson,
.coa-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border: 0;
    color: #fff;
    font-family: var(--coa-font-ui);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.coa-btn-crimson {
    border-radius: 5px;
    background: var(--coa-crimson-dark);
    box-shadow: 0 8px 18px rgba(161, 18, 77, .25);
}

.coa-btn-crimson:hover {
    background: var(--coa-maroon);
    transform: translateY(-2px);
}

.coa-btn-dark {
    padding: 9px 22px;
    border-radius: 30px;
    background: #000;
    font-size: .8rem;
}

.coa-btn-dark:hover {
    background: var(--coa-crimson);
}

/* legacy buttons (inner pages) */
.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    background: var(--gold-accent);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-gold:hover {
    background: #fff;
}

.btn-green {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.btn-green:hover {
    background: var(--gold-accent);
    color: var(--primary-color);
}

/* =====================================================================
   3. HEADER
   ===================================================================== */
.coa-header {
    position: fixed;
    top: var(--coa-offset);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;

    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: stretch;
    align-items: center;
    gap: 24px;

    height: var(--coa-header-h);
    padding: 0 clamp(16px, 2vw, 32px);

    background: rgba(110, 29, 75, .88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 0;
    box-shadow: none;
    transition: top .35s ease, height .35s ease, background .35s ease, box-shadow .35s ease;
}

.coa-header.is-scrolled {
    top: 0;
    height: 76px;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
}

/* scrolled state: black text + icons */
.coa-header.is-scrolled .coa-menu>li>a,
.coa-header.is-scrolled .coa-icon-btn {
    color: #000;
}

.coa-header.is-scrolled .coa-menu>li:hover>a,
.coa-header.is-scrolled .coa-menu>li.open>a,
.coa-header.is-scrolled .coa-menu>li>a.active,
.coa-header.is-scrolled .coa-icon-btn:hover {
    color: var(--coa-gold-text);
}

/* logo swap: white on the transparent header, black once scrolled */
.coa-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: height .3s;
}

.coa-brand .coa-logo-black {
    display: none;
}

.coa-header.is-scrolled .coa-logo {
    height: 62px;
}

.coa-header.is-scrolled .coa-brand .coa-logo-white {
    display: none;
}

.coa-header.is-scrolled .coa-brand .coa-logo-black {
    display: block;
}

.coa-logo-drawer {
    height: 52px;
}

/* ---- brand ---- */
.coa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.coa-brand img {
    width: auto;
    display: block;
}

.coa-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.coa-brand-name {
    font-family: var(--coa-font-head);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: .2px;
}

.coa-brand-sub {
    font-family: var(--coa-font-ui);
    font-size: .56rem;
    color: rgba(255, 255, 255, .86);
    letter-spacing: .2px;
}

/* ---- desktop nav ---- */
.coa-nav {
    justify-self: center;
    align-self: stretch;
    min-width: 0;
}

.coa-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 26px);
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coa-menu>li {
    position: relative;
    height: 100%;
}

.coa-menu>li>a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    color: #fff;
    font-family: var(--coa-font-ui);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: .2px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .25s;
}

.coa-menu>li>a i {
    font-size: .56rem;
    transition: transform .3s;
}

.coa-menu>li:hover>a,
.coa-menu>li.open>a {
    color: var(--coa-gold);
}

.coa-menu>li.coa-dd:hover>a i,
.coa-menu>li.coa-dd.open>a i {
    transform: rotate(180deg);
}

/* short centred underline (grows on hover, stays on active) */
.coa-menu>li>a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(50% - 17px);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--coa-gold);
    transform: translateX(-50%);
    transition: width .3s ease;
}

.coa-menu>li>a.active {
    color: var(--coa-gold);
}

.coa-menu>li>a.active::after,
.coa-menu>li:hover>a::after {
    width: 50%;
}

/* ---- level-1 dropdown ---- */
.coa-dd-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid var(--coa-gold);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.coa-dd:hover>.coa-dd-menu,
.coa-dd.open>.coa-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* last items open towards the left so they never leave the screen */
.coa-menu>li:nth-last-child(-n+2)>.coa-dd-menu {
    left: auto;
    right: 0;
    transform: translate(0, 12px);
}

.coa-menu>li:nth-last-child(-n+2):hover>.coa-dd-menu,
.coa-menu>li:nth-last-child(-n+2).open>.coa-dd-menu {
    transform: translate(0, 0);
}

.coa-dd-menu a,
.coa-sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 22px;
    color: #3a2a33;
    font-family: var(--coa-font-ui);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .2s, color .2s, padding .2s, border-color .2s;
}

.coa-dd-menu a i,
.coa-sub-menu a i {
    font-size: .62rem;
    color: #9a8a94;
}

.coa-dd-menu a:hover,
.coa-sub-menu a:hover {
    background: #faf4f8;
    color: var(--coa-maroon);
    padding-left: 26px;
    border-left-color: var(--coa-gold);
}

/* ---- level-2 fly-out ---- */
.coa-sub {
    position: relative;
}

.coa-sub-menu {
    position: absolute;
    top: -8px;
    left: 100%;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-left: 3px solid var(--coa-gold);
    border-radius: 0 8px 8px 0;
    box-shadow: 8px 10px 26px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.coa-sub:hover>.coa-sub-menu,
.coa-sub.open>.coa-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ---- gold pill call-to-action (E-Filing) ---- */
.coa-dd-menu .is-cta a {
    justify-content: center;
    margin: 8px 18px 6px;
    padding: 11px 24px;
    border: 0;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--coa-btn-from), var(--coa-btn-to));
    color: #fff;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(192, 146, 90, .45);
}

.coa-dd-menu .is-cta a:hover {
    padding-left: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--coa-btn-from), var(--coa-btn-to));
    filter: brightness(1.07);
}

/* ---- right-hand icons ---- */
.coa-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.coa-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 0;
    background: none;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    transition: color .25s, transform .25s;
}

.coa-icon-btn:hover {
    color: var(--coa-gold);
}

.coa-burger {
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
}

.coa-burger span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: width .25s;
}

.coa-burger:hover span:nth-child(2) {
    width: 14px;
}

/* ---- search bar ---- */
.coa-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 18px clamp(16px, 8vw, 160px);
    background: #fff;
    border-top: 3px solid var(--coa-gold);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.coa-search.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.coa-search input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 40px;
    outline: none;
    font: 500 .95rem var(--coa-font-ui);
    color: #333;
}

.coa-search input:focus {
    border-color: var(--coa-maroon);
    box-shadow: 0 0 0 3px rgba(110, 29, 75, .15);
}

.coa-search button {
    padding: 0 30px;
    border: 0;
    border-radius: 40px;
    background: var(--coa-maroon);
    color: #fff;
    font: 600 .9rem var(--coa-font-ui);
    cursor: pointer;
    transition: background .2s;
}

.coa-search button:hover {
    background: var(--coa-maroon-deep);
}

/* =====================================================================
   4. SIDE DRAWER (hamburger)
   ===================================================================== */
.coa-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(20, 4, 14, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.coa-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.coa-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    padding: 24px 26px 34px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .38s;
}

.coa-drawer.open {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.coa-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.coa-drawer-head .coa-brand {
    color: var(--coa-maroon);
}

.coa-drawer-head .coa-brand-sub {
    color: #7a6b74;
}

.coa-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3eef1;
    color: #333;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s, transform .3s;
}

.coa-close:hover {
    background: var(--coa-maroon);
    color: #fff;
    transform: rotate(90deg);
}

.coa-drawer h3 {
    margin: 26px 0 12px;
    font-family: var(--coa-font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coa-maroon);
}

.coa-drawer h3::after {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 8px;
    background: var(--coa-gold);
}

.coa-post {
    margin-bottom: 12px;
}

.coa-post a {
    display: block;
    color: #333;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s;
}

.coa-post a:hover {
    color: var(--coa-maroon);
}

.coa-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #555;
    font-size: .88rem;
}

.coa-contact i {
    width: 16px;
    margin-top: 4px;
    color: var(--coa-gold);
    font-size: .9rem;
}

.coa-contact p {
    margin: 0;
    line-height: 1.55;
}

/* mobile accordion menu inside the drawer (hidden on desktop) */
.coa-drawer-nav {
    display: none;
    margin-bottom: 8px;
}

.coa-drawer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.coa-drawer-nav>ul>li {
    border-bottom: 1px solid #f0e9ee;
}

.coa-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 6px;
    color: #2b1d25;
    font-family: var(--coa-font-ui);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.coa-drawer-nav a i {
    font-size: .7rem;
    color: #8a7a84;
    transition: transform .3s;
}

.coa-drawer-nav a.active,
.coa-drawer-nav li.open>a {
    color: var(--coa-maroon);
}

.coa-drawer-nav li.open>a>i {
    transform: rotate(180deg);
    color: var(--coa-gold);
}

.coa-drawer-nav .coa-sub.open>a>i {
    transform: rotate(90deg);
}

.coa-drawer-nav .coa-dd-menu,
.coa-drawer-nav .coa-sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px 10px;
    padding: 2px 0 2px 8px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--coa-gold);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.coa-drawer-nav li.open>ul {
    display: block;
}

/* beat the desktop ".open" transform so accordions don't slide sideways */
.coa-drawer-nav .coa-dd.open>.coa-dd-menu,
.coa-drawer-nav .coa-dd:hover>.coa-dd-menu,
.coa-drawer-nav .coa-sub.open>.coa-sub-menu,
.coa-drawer-nav .coa-sub:hover>.coa-sub-menu {
    transform: none;
}

.coa-drawer-nav .coa-dd-menu a,
.coa-drawer-nav .coa-sub-menu a,
.coa-drawer-nav .coa-dd-menu a:hover,
.coa-drawer-nav .coa-sub-menu a:hover {
    padding: 9px 8px;
    border-left: 0;
    background: transparent;
    color: #5a4b54;
    font-size: .88rem;
    font-weight: 500;
}

.coa-drawer-nav .coa-dd-menu a:hover,
.coa-drawer-nav .coa-sub-menu a:hover {
    color: var(--coa-maroon);
}

.coa-drawer-nav .coa-dd-menu .is-cta a {
    justify-content: center;
    margin: 10px 0 4px;
    padding: 11px 20px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--coa-btn-from), var(--coa-btn-to));
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================================
   5. HERO
   ===================================================================== */
.coa-hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: #1b0f17;
    color: #fff;
}

.coa-hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.coa-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s ease-out;
    will-change: opacity, transform;
}

.coa-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.coa-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(20, 6, 16, .50) 0%, rgba(20, 6, 16, .22) 55%, rgba(20, 6, 16, .08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .38) 100%);
}

.coa-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: calc(var(--coa-header-h) + var(--coa-offset) + 20px) 6% 48px clamp(24px, 20vw, 420px);
}

.coa-hero-eyebrow {
    margin: 0 0 18px;
    font-family: var(--coa-font-head);
    font-size: clamp(.85rem, 1.35vw, 1.3rem);
    font-weight: 500;
    letter-spacing: .2em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.coa-hero-title {
    margin: 0 0 36px;
    font-family: var(--coa-font-head);
    font-size: clamp(2rem, 4.3vw, 4.3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.coa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 54px;
    border-radius: 50px;
    background: linear-gradient(180deg, var(--coa-btn-from), var(--coa-btn-to));
    color: #fff;
    font-family: var(--coa-font-ui);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.coa-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* slider arrows */
.coa-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    opacity: .85;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .25s, opacity .25s;
}

.coa-arrow:hover {
    background: rgba(255, 255, 255, .14);
    opacity: 1;
}

.coa-arrow.prev {
    left: clamp(6px, 1.5vw, 28px);
}

.coa-arrow.next {
    right: clamp(6px, 1.5vw, 28px);
}

.coa-arrow svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- hero slide images ---- */
.coa-slide-1 {
    background-image: url('images/hero/slider1.jpg');
}

.coa-slide-2 {
    background-image: url('images/hero/slider2.jpg');
}

.coa-slide-3 {
    background-image: url('images/hero/slider3.jpg');
}

.coa-slide-4 {
    background-image: url('images/hero/slider4.jpg');
}

/* =====================================================================
   6. HOME – SERVICE CARDS
   ===================================================================== */
.coa-services {
    padding: 78px 0 10px;
}

.coa-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.coa-service {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 22px;
    border-radius: 8px;
    background: var(--coa-crimson);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(194, 24, 91, .22);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.coa-service:hover {
    transform: translateY(-6px);
    background: var(--coa-crimson-dark);
    box-shadow: 0 18px 34px rgba(161, 18, 77, .35);
}

.coa-service-icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f5e4c8;
    color: var(--coa-crimson);
    font-size: 1.05rem;
    transition: transform .3s ease;
}

.coa-service:hover .coa-service-icon {
    transform: scale(1.1) rotate(-4deg);
}

.coa-service h3 {
    margin: 0 0 6px;
    font-family: var(--coa-font-head);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.coa-service p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

/* =====================================================================
   7. HOME – ABOUT + DOCUMENTS
   ===================================================================== */
.coa-about {
    padding: 90px 0 30px;
}

.coa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.coa-about-text p {
    color: var(--coa-text);
    font-size: .95rem;
    line-height: 1.8;
    text-align: justify;
}

.coa-about-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.coa-about-media img {
    width: 100%;
    flex: none;
    height: 615px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.coa-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: start;
    gap: clamp(24px, 4vw, 56px);
    margin-top: 34px;
}

.coa-doc {
    display: block;
    text-align: center;
    color: #2a2a2e;
    text-decoration: none;
}

.coa-doc-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #fff;
    color: var(--coa-crimson);
    font-size: 2.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    transition: transform .35s ease, box-shadow .35s ease;
}

.coa-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coa-doc:hover .coa-doc-thumb {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .22);
}

.coa-doc span {
    font-size: .86rem;
    font-weight: 600;
}

/* =====================================================================
   8. HOME – JUDGES SLIDER
   ===================================================================== */
.coa-judges {
    padding: 50px 0 40px;
}

.coa-judges-box {
    padding: 36px clamp(24px, 4vw, 64px) 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #26282c, #17181a);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.coa-judges-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coa-quote {
    font: 400 3.4rem/.7 Georgia, serif;
    color: #5d6066;
}

.coa-judges-label {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a9adb3;
}

.coa-judges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
}

.coa-judges-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.coa-judges-track {
    display: flex;
    transition: transform .6s cubic-bezier(.25, 1, .5, 1);
}

/* slide position – index.php sets data-pos="0…n" (supports up to 16 judges) */
.coa-judges-track[data-pos="1"] { transform: translateX(-100%); }
.coa-judges-track[data-pos="2"] { transform: translateX(-200%); }
.coa-judges-track[data-pos="3"] { transform: translateX(-300%); }
.coa-judges-track[data-pos="4"] { transform: translateX(-400%); }
.coa-judges-track[data-pos="5"] { transform: translateX(-500%); }
.coa-judges-track[data-pos="6"] { transform: translateX(-600%); }
.coa-judges-track[data-pos="7"] { transform: translateX(-700%); }
.coa-judges-track[data-pos="8"] { transform: translateX(-800%); }
.coa-judges-track[data-pos="9"] { transform: translateX(-900%); }
.coa-judges-track[data-pos="10"] { transform: translateX(-1000%); }
.coa-judges-track[data-pos="11"] { transform: translateX(-1100%); }
.coa-judges-track[data-pos="12"] { transform: translateX(-1200%); }
.coa-judges-track[data-pos="13"] { transform: translateX(-1300%); }
.coa-judges-track[data-pos="14"] { transform: translateX(-1400%); }
.coa-judges-track[data-pos="15"] { transform: translateX(-1500%); }

.coa-judge {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 22px;
}

.coa-judge img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(214, 162, 74, .7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .4);
}

.coa-judge>div {
    min-width: 0;
    max-width: 100%;
}

.coa-judge h3 {
    overflow-wrap: anywhere;
    margin: 0 0 4px;
    font-family: var(--coa-font-ui);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
}

.coa-judge p {
    margin: 0;
    font-size: .85rem;
    color: #9a9ea5;
}

.coa-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 40%;
}

.coa-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--coa-gold);
    opacity: .35;
    cursor: pointer;
    transition: opacity .3s, transform .3s;
}

.coa-dot.is-active {
    opacity: 1;
    transform: scale(1.35);
}

/* =====================================================================
   9. HOME – BLOG (image cards) + NEWS & EVENTS (notice cards)
   ===================================================================== */
.coa-blog {
    padding: 70px 0 40px;
}

.coa-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.coa-blog-card {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(160deg, var(--coa-maroon), #2a0b1d);
    color: #fff;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.coa-blog-card:hover,
.coa-blog-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .25);
    outline: none;
}

.coa-blog-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.coa-blog-card:hover img {
    transform: scale(1.08);
}

.coa-blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .86) 100%);
}

.coa-blog-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3.6rem;
    color: rgba(255, 255, 255, .16);
}

.coa-blog-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 20px;
}

.coa-blog-cat {
    display: block;
    margin-bottom: 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coa-gold);
}

.coa-blog-body h3 {
    margin: 0;
    font-family: var(--coa-font-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.coa-news {
    padding: 70px 0 50px;
}

.coa-news-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: end;
    margin-bottom: 44px;
}

.coa-news-head p {
    color: var(--coa-text);
    font-size: .92rem;
    line-height: 1.8;
}

.coa-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.coa-notice {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .09);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.coa-notice:hover,
.coa-notice:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
    outline: none;
}

.coa-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: .75rem;
    color: #8a8a92;
}

.coa-meta i {
    margin-right: 6px;
    color: var(--coa-crimson);
}

.coa-notice h3 {
    margin: 0;
    font-family: var(--coa-font-head);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--coa-gold-text);
}

.coa-notice .coa-meta i {
    color: #000;
}

.coa-notice p {
    margin: 0;
    flex: 1;
    font-size: .86rem;
    line-height: 1.65;
    color: #6b6b73;
}

.coa-notice .coa-btn-dark {
    align-self: flex-start;
}

.coa-empty {
    grid-column: 1 / -1;
    padding: 30px 0;
    text-align: center;
    color: #777;
}

/* modal */
.coa-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 4, 14, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.coa-modal.open {
    display: flex;
}

.coa-modal-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: coaModalIn .3s ease-out both;
}

.coa-modal-box img {
    display: none;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.coa-modal-box img.show {
    display: block;
}

.coa-modal-inner {
    padding: 28px 32px 34px;
}

.coa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.coa-modal-close:hover {
    background: var(--coa-crimson);
}

.coa-modal-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-right: 48px;
    font-size: .8rem;
}

.coa-modal-meta strong {
    color: var(--coa-crimson);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.coa-modal-meta span {
    color: #888;
}

.coa-modal-inner h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--coa-maroon);
}

.coa-modal-text {
    color: #444;
    line-height: 1.75;
    white-space: pre-line;
}

@keyframes coaModalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================================
   10. HOME – CITIZEN'S CHARTER
   ===================================================================== */
.coa-charter {
    padding: 70px 0 90px;
}

.coa-charter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.coa-charter-text p {
    margin-bottom: 14px;
    font-size: .93rem;
    line-height: 1.75;
    color: var(--coa-text);
}

.coa-charter-text p strong {
    color: #1d1d21;
}

.coa-charter-text h4 {
    margin: 22px 0 10px;
    font-size: 1rem;
    color: #1d1d21;
}

.coa-checks {
    list-style: none;
}

.coa-checks li {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--coa-text);
}

.coa-checks i {
    margin-top: 5px;
    color: var(--coa-gold-text);
}

.coa-checks strong {
    color: #1d1d21;
}

.coa-charter-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.coa-frame {
    position: relative;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6dccd;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.coa-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ---- welcome popup ---- */
.coa-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 4, 8, .72);
}

.coa-popup[hidden] {
    display: none;
}

.coa-popup-box {
    position: relative;
    max-width: min(960px, 100%);
    max-height: 100%;
    line-height: 0;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    animation: coaPopIn .4s ease;
}

.coa-popup-box img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    border-radius: 8px;
}

.coa-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--coa-crimson);
    color: #fff;
    font: 400 1.6rem/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    transition: background .2s, transform .2s;
}

.coa-popup-close:hover {
    background: var(--coa-crimson-dark);
    transform: scale(1.08);
}

@keyframes coaPopIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .coa-popup-close {
        top: 8px;
        right: 8px;
    }
}

/* =====================================================================
   11. FOOTER
   ===================================================================== */
.coa-footer {
    margin-top: 30px;
    padding-top: 72px;
    border-top: 4px solid var(--coa-gold);
    background: var(--coa-maroon);
    color: rgba(255, 255, 255, .92);
}

.coa-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.coa-footer-logo img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.coa-footer p {
    margin-bottom: 14px;
    font-size: .86rem;
    line-height: 1.75;
}

.coa-footer-contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.coa-footer-contact i {
    flex-shrink: 0;
    width: 16px;
    margin-top: 5px;
    color: #fff;
}

.coa-footer h3 {
    margin: 0 0 22px;
    font-family: var(--coa-font-head);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}

.coa-footer h3::after {
    content: '';
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 10px;
    background: var(--coa-gold);
}

.coa-footer-col a {
    display: block;
    margin-bottom: 10px;
    font-size: .86rem;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    transition: color .25s, padding-left .25s;
}

.coa-footer-col a i {
    margin-right: 8px;
    font-size: .6rem;
    color: #fff;
}

.coa-footer-col a:hover {
    padding-left: 5px;
    color: var(--coa-gold);
}

.coa-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 54px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: .82rem;
}

.coa-footer-bottom p {
    margin: 0;
}

.coa-footer-social {
    display: flex;
    gap: 10px;
}

.coa-footer-social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    color: #fff;
    font-size: .85rem;
    text-decoration: none;
    transition: background .25s, border-color .25s;
}

.coa-footer-social a:hover {
    background: var(--coa-crimson-dark);
    border-color: #fff;
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--coa-crimson);
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--coa-crimson-dark);
}

/* social buttons used inside the header drawer */
.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.fb {
    background: #3b5998;
}

.tw {
    background: #1da1f2;
}

.ln {
    background: #0077b5;
}

.in {
    background: #e1306c;
}

/* =====================================================================
   12. INNER-PAGE COMPONENTS (history, judges, speeches, diary, news…)
   ===================================================================== */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    min-height: 320px;
    padding-top: 110px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(60, 10, 40, .55), rgba(60, 10, 40, .55)),
        url('images/judge-s-gavel-table-court-room-closeup-concept-justice-law-generative-ai.jpg') center / cover no-repeat;
}

.page-hero h1 {
    margin-bottom: 15px;
    font-size: 3.2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, .5);
}

.page-hero p {
    max-width: 800px;
    font-size: 1.1rem;
    color: #eee;
}

/* ---- inner-page banner (title + breadcrumb) ---- */
.coa-page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: calc(var(--coa-header-h) + var(--coa-offset) + 30px) 20px 50px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(18, 22, 30, .72), rgba(18, 22, 30, .72)),
        var(--hero-img) center / cover no-repeat;
}

.coa-page-hero h1 {
    margin: 0 0 18px;
    font-family: var(--coa-font-head);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.coa-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 500;
}

.coa-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color .25s;
}

.coa-breadcrumb a:hover {
    color: var(--coa-gold);
}

.coa-breadcrumb i {
    font-size: .6rem;
    color: var(--coa-gold);
}

.coa-breadcrumb span {
    color: var(--coa-gold);
}

.content-section {
    min-height: 60vh;
    padding: 80px 8%;
    background: #fff;
}

.section-header {
    margin-bottom: 50px;
}

.history-section {
    padding: 80px 8%;
    background: #fff;
}

.history-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.history-text {
    flex: 2;
    min-width: 300px;
}

.history-text h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.history-text h3 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.history-text p {
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.history-sidebar {
    flex: 1;
    min-width: 300px;
}

.sub-title {
    margin-bottom: 10px;
    font-size: .9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-accent);
}

.gold-divider {
    width: 60px;
    height: 4px;
    margin-bottom: 30px;
    background: var(--gold-accent);
}

.center-divider {
    margin: 0 auto 30px;
}

blockquote {
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid var(--gold-accent);
    background: #faf6f9;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-color);
}

blockquote span {
    display: block;
    margin-top: 10px;
    font-size: .8rem;
    font-style: normal;
    text-transform: uppercase;
    color: #888;
}

.image-box img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.caption {
    margin-top: 10px;
    text-align: center;
    font-size: .8rem;
    font-style: italic;
    color: #666;
}

.timeline-box {
    margin-top: 40px;
    padding: 30px;
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    background: var(--bg-light);
}

.timeline-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.timeline-box ul {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #ddd;
}

.timeline-box ul li {
    position: relative;
    margin-bottom: 25px;
}

.timeline-box ul li::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-accent);
}

.year {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event {
    font-size: .9rem;
    color: #555;
}

/* judges pages */
.judges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.judge-list {
    list-style: none;
}

.judge-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    transition: padding-left .3s, color .3s;
}

.judge-list li i {
    margin-right: 15px;
    font-size: .9rem;
    color: var(--gold-accent);
}

.judge-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.past-judges-container ul {
    list-style: none;
    column-count: 2;
    column-gap: 60px;
}

.past-judges-container ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: .95rem;
    color: #555;
    break-inside: avoid;
}

.past-judges-container ul li::before {
    content: '•';
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: sub;
    color: var(--gold-accent);
}

/* speeches */
.speech-section {
    padding: 80px 8%;
    background: #fff;
}

.speech-container {
    max-width: 900px;
    margin: 0 auto;
}

.speech-header {
    margin-bottom: 50px;
    text-align: center;
}

.speech-title {
    margin-bottom: 15px;
    font-size: 2.4rem;
    color: var(--primary-color);
}

.fancy-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold-accent);
}

.speech-meta {
    display: inline-block;
    padding: 20px;
    border-left: 4px solid var(--gold-accent);
    border-radius: 5px;
    background: #faf6f9;
    text-align: left;
    font-size: .95rem;
    line-height: 1.8;
    color: #666;
}

.speech-body {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.speech-body p {
    margin-bottom: 25px;
}

/* diary / tables / forms */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background: #f4f1f3;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-size: .9rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.custom-table th {
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    text-align: left;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: .95rem;
    color: #444;
}

.custom-table tr:hover {
    background: #fcfafb;
}

.btn-download {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 3px;
    background: #444;
    color: #fff;
    font-size: .75rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: .3s;
}

.btn-download:hover {
    background: var(--gold-accent);
    color: var(--primary-color);
}

.clock-wrapper {
    padding: 50px 0;
    text-align: center;
}

.clock-icon {
    margin-bottom: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    animation: coaPulse 2s infinite;
}

@keyframes coaPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .8;
        transform: scale(1.05);
    }
}

/* news & notices listing */
.news-item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    transition: transform .3s, box-shadow .3s;
}

.news-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: .8rem;
    color: #888;
}

.news-meta i {
    margin-right: 5px;
    color: var(--gold-accent);
}

.news-title {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
}

.btn-black {
    align-self: flex-start;
    padding: 10px 25px;
    border-radius: 30px;
    background: #000;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s;
}

.btn-black:hover {
    background: var(--gold-accent);
    color: #000;
}

/* generic white card */
.card {
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .15);
}

.hover-scale {
    display: block;
    transition: transform .5s ease, box-shadow .5s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */

/* ---- nav collapse ---- */
@media (max-width: 1200px) {
    :root {
        --coa-offset: 0px;
        --coa-header-h: 72px;
    }

    .coa-header.is-scrolled {
        height: 66px;
    }

    .coa-header {
        grid-template-columns: 1fr auto;
    }

    .coa-nav {
        display: none;
    }

    .coa-drawer-nav {
        display: block;
    }
}

/* ---- medium screens ---- */
@media (max-width: 1100px) {
    .coa-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coa-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coa-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {

    .coa-about-grid,
    .coa-charter-grid,
    .coa-news-head {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .coa-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .coa-notice {
        padding: 24px 20px;
    }

    .judges-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .past-judges-container ul {
        column-count: 1;
    }

}

/* ---- tablets / small screens ---- */
@media (max-width: 768px) {
    .coa-logo,
    .coa-header.is-scrolled .coa-logo {
        height: 52px;
    }

    .coa-brand-name {
        font-size: .98rem;
    }

    .coa-hero {
        min-height: 520px;
    }

    .coa-hero-inner {
        padding: calc(var(--coa-header-h) + 20px) 24px 40px 24px;
    }

    .coa-hero-title br {
        display: none;
    }

    .coa-hero-title {
        margin-bottom: 28px;
    }

    .coa-btn {
        padding: 15px 38px;
        font-size: .95rem;
    }

    .coa-arrow {
        width: 40px;
        height: 40px;
    }

    .coa-arrow svg {
        width: 22px;
        height: 22px;
    }

    /* show .reveal blocks instantly on phones */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }

    .coa-about,
    .coa-blog,
    .coa-news,
    .coa-charter {
        padding-block: 50px;
    }

    .coa-judges-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .coa-dots {
        max-width: 100%;
        justify-content: flex-start;
    }

    .coa-judge {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .history-container {
        flex-direction: column;
        gap: 40px;
    }

    .speech-title {
        font-size: 2rem;
    }

    .speech-body {
        text-align: left;
    }

    .content-section,
    .history-section,
    .speech-section {
        padding: 50px 5%;
    }
}

/* ---- phones ---- */
@media (max-width: 600px) {

    .coa-services-grid,
    .coa-blog-grid,
    .coa-news-grid,
    .coa-footer-grid {
        grid-template-columns: 1fr;
    }

    .coa-blog-card {
        aspect-ratio: 16 / 11;
    }

    .coa-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .coa-modal-inner {
        padding: 22px 20px 26px;
    }

    .coa-modal-box img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .coa-brand-sub {
        display: none;
    }

    .coa-drawer {
        padding: 18px 18px 30px;
    }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {

    .coa-slide,
    .coa-slide.is-active {
        transform: none;
        transition: opacity .4s;
    }

    .coa-header,
    .coa-drawer,
    .coa-dd-menu,
    .coa-sub-menu {
        transition-duration: .01s;
    }
}
/* ---- About Us dropdown (left-aligned list, gold dash on hover) ---- */
.coa-dd-menu.coa-dd-about {
    min-width: 330px;
    padding: 14px 0;
    border-top: 0;
    border-radius: 0;
    left: 0;
    transform: translate(0, 12px);
}

.coa-dd:hover>.coa-dd-menu.coa-dd-about,
.coa-dd.open>.coa-dd-menu.coa-dd-about {
    transform: translate(0, 0);
}

.coa-dd-about a {
    justify-content: flex-start;
    gap: 0;
    padding: 10px 26px;
    font-size: .82rem;
    font-weight: 500;
    color: #1d1d21;
    border-left: 0;
    background: none;
}

.coa-dd-about a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 2px;
    margin-right: 0;
    background: var(--coa-gold-text);
    transition: width .25s, margin-right .25s;
}

.coa-dd-about a:hover {
    background: none;
    color: var(--coa-gold-text);
    padding-left: 26px;
    font-weight: 600;
}

.coa-dd-about a:hover::before {
    width: 10px;
    margin-right: 10px;
}

.coa-dd-menu.coa-dd-narrow {
    min-width: 220px;
}

.coa-sub-years { max-height: 70vh; overflow-y: auto; }

/* Judgments year flyout inside the About-style dropdown */
.coa-dd-about .coa-sub > a { justify-content: flex-start; }
.coa-dd-about .coa-sub > a i { margin-left: auto; padding-left: 16px; }
.coa-dd-about .coa-sub-menu { min-width: 120px; padding: 8px 0; }
.coa-dd-about .coa-sub-menu a { padding: 8px 26px; }

/* Flyout items inside About-style dropdowns: plain at rest, gold + dash only on hover */
.coa-dd-about .coa-sub-menu { min-width: 230px; padding: 14px 0; }
.coa-dd-about .coa-sub-menu a { color: #1d1d21; font-weight: 500; white-space: nowrap; }
.coa-dd-about .coa-sub-menu a:hover { color: var(--coa-gold-text); font-weight: 600; }
.coa-dd-about .coa-sub-menu a::before { width: 0; margin-right: 0; }
.coa-dd-about .coa-sub-menu a:hover::before { width: 10px; margin-right: 10px; }
.coa-dd-about .coa-sub > a { color: #1d1d21; font-weight: 500; }
.coa-dd-about .coa-sub > a::before { width: 0; margin-right: 0; }
.coa-dd-about .coa-sub:hover > a, .coa-dd-about .coa-sub > a:hover { color: var(--coa-gold-text); font-weight: 600; }
.coa-dd-about .coa-sub:hover > a::before, .coa-dd-about .coa-sub > a:hover::before { width: 10px; margin-right: 10px; }

/* E-Filing pill inside About-style dropdowns: no hover dash */
.coa-dd-about .is-cta a::before { display: none; }
.coa-dd-about .is-cta a:hover { padding-left: 24px; }

.coa-dd-narrow > li > a { white-space: nowrap; }

/* E-Filing pill: blue */
.coa-dd-menu .is-cta a,
.coa-dd-menu .is-cta a:hover,
.coa-drawer-nav .coa-dd-menu .is-cta a {
    background: linear-gradient(135deg, #00b4e6 0%, #0072ff 100%);
    color: #fff;
    text-decoration: none;
}
.coa-dd-menu .is-cta a { box-shadow: 0 6px 16px rgba(0, 114, 255, .35); }

/* =====================================================================
   MOBILE POLISH – home page + global safety nets
   ===================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* never allow sideways scrolling on phones */
body {
    overflow-x: hidden;
    overflow-x: clip;
}

@media (max-width: 900px) {
    /* the judges slider used to size itself to its content (≈ 820px wide) and caused horizontal scrolling */
    .coa-judges-row {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .coa-judges-viewport {
        width: 100%;
    }

    .coa-dots {
        max-width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* justified text leaves ugly gaps on narrow screens */
    .coa-about-text p,
    .history-text p,
    .speech-body {
        text-align: left;
    }

    /* use the visible viewport height on mobile browsers (address bar aware) */
    .coa-hero {
        height: 100vh;
        height: 100svh;
        min-height: 520px;
    }

    /* 16px stops iOS from zooming in when the search box is focused */
    .coa-search input {
        font-size: 16px;
    }

    .coa-judges-box {
        padding: 28px 22px 30px;
    }

    .coa-judge h3 {
        font-size: .92rem;
    }

    /* bigger tap targets for the slider dots without changing how they look */
    .coa-dot {
        position: relative;
    }

    .coa-dot::after {
        content: "";
        position: absolute;
        inset: -7px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .coa-container {
        width: calc(100% - 40px);
    }

    .coa-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .coa-hero-eyebrow {
        letter-spacing: .08em;
    }

    .coa-btn,
    .coa-btn-crimson {
        max-width: 100%;
    }

    .coa-service {
        padding: 22px 18px;
    }

    .coa-docs-grid {
        gap: 14px;
    }

    .coa-notice {
        padding: 22px 18px;
    }

    .coa-footer-bottom {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    /* the side arrows sit on top of the hero text on phones – swiping already changes the slide */
    .coa-arrow {
        display: none;
    }
}

/* Mobile drawer: keep the E-Filing pill inside the sub-menu (it used to touch the gold line and the screen edge) */
.coa-drawer-nav .coa-dd-menu .is-cta {
    padding: 4px 12px 6px;
}

.coa-drawer-nav .coa-dd-menu .is-cta a {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    margin: 6px 0;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(0, 114, 255, .3);
}

