/*
Theme Name: LJCAA
Theme URI: https://mjwebexperts.com
Author: MJ Web Experts
Author URI: https://mjwebexperts.com
Description: Professional WordPress theme for the Limited Jurisdiction Court Administrators Association of Arizona.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: ljcaa
*/

/* ─── Custom Font ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'UniSansSemiBold';
    src: url('fonts/UniSansSemiBold.woff2') format('woff2'),
         url('fonts/UniSansSemiBold.woff')  format('woff'),
         url('fonts/UniSansSemiBold.ttf')   format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ─── Custom Properties ───────────────────────────────────────────────────── */
:root {
    --lj-red:    #CC2433;
    --lj-red-dk: #a81d29;
    --lj-yellow: #FED425;
    --lj-dark:   #333333;
    --lj-grey:   #f2f2f2;
    --lj-white:  #ffffff;
    --lj-font:   'UniSansSemiBold', 'Open Sans', sans-serif;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: var(--lj-font);
    font-size: 18px;
    color: var(--lj-dark);
    background: var(--lj-white);
    font-weight: 600;
}

img { max-width: 100%; height: auto; }

a, a:hover, a:focus, a:active {
    color: var(--lj-red);
    text-decoration: none;
    transition: color .2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lj-font);
    font-weight: 600;
    margin-bottom: 0;
}

h1, .h1 { font-size: clamp(34px, 5vw, 52px); }
h2       { font-size: clamp(28px, 4vw, 42px); }
h3       { font-size: clamp(20px, 3vw, 28px); }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.lj-red   { color: var(--lj-red) !important; }
.lj-white { color: var(--lj-white) !important; }
.lj-dark  { color: var(--lj-dark) !important; }

.lj-divider {
    display: block;
    width: 80px;
    height: 3px;
    background: var(--lj-red);
    margin: 12px 0 24px;
}
.text-center .lj-divider,
.lj-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.lj-btn {
    display: inline-block;
    padding: 13px 42px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--lj-font);
    border-radius: 30px;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .2s ease;
    cursor: pointer;
    line-height: 1.2;
}
.lj-btn--red {
    color: var(--lj-white);
    background: var(--lj-red);
    border-color: var(--lj-red);
}
.lj-btn--red:hover, .lj-btn--red:focus {
    color: var(--lj-white);
    background: var(--lj-red-dk);
    border-color: var(--lj-red-dk);
}
.lj-btn--outline {
    color: var(--lj-white);
    background: transparent;
    border-color: var(--lj-white);
}
.lj-btn--outline:hover, .lj-btn--outline:focus {
    color: var(--lj-red);
    background: var(--lj-white);
    border-color: var(--lj-white);
}
.lj-btn--outline-red {
    color: var(--lj-red);
    background: transparent;
    border-color: var(--lj-red);
}
.lj-btn--outline-red:hover {
    color: var(--lj-white);
    background: var(--lj-red);
    border-color: var(--lj-red);
}

/* ─── Header / Navbar ─────────────────────────────────────────────────────── */
#site-header {
    border-top: 5px solid var(--lj-red);
    width: 100%;
    background: #fff;
    -webkit-box-shadow: 0 0 15px 5px rgba(0,0,0,0.5);
            box-shadow: 0 0 15px 5px rgba(0,0,0,0.5);
}

/* Force 1200px container — matches original exactly */
.container { max-width: 1200px; }

/* Navbar — height set by nav links only; logo hangs below like the original */
.lj-navbar {
    padding: 0;
    margin-top: 8px;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

#primary-nav .container { position: relative; }

/* Logo — absolutely positioned top-left, overhangs header (replicates original Bootstrap 3 behavior) */
.navbar-brand {
    position: absolute;
    top: 0;
    left: 15px;
    padding: 3px 0;
    z-index: 9999;
    height: auto;
}
.navbar-brand img { height: 160px; width: auto; }

/* Toggler */
.navbar-toggler {
    border: none;
    background: transparent;
    color: var(--lj-red);
    font-size: 24px;
    padding: 8px;
    margin-left: auto;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='%23CC2433' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Desktop nav items — exact values from original */
#primary-nav .navbar-nav .nav-item {
    padding-right: 12px;
    padding-left: 12px;
}
#primary-nav .navbar-nav .nav-item .nav-link {
    color: #000;
    font-family: var(--lj-font);
    font-size: 17px;
    font-weight: normal;
    padding: 28px 1px;
    border: none;
    border-bottom: 3px solid transparent;
    text-transform: none;
    transition: all .2s ease-in-out;
}
#primary-nav .navbar-nav .nav-item .nav-link:hover,
#primary-nav .navbar-nav .nav-item .nav-link:focus,
#primary-nav .navbar-nav .nav-item.current-menu-item .nav-link,
#primary-nav .navbar-nav .nav-item.active .nav-link {
    color: #000;
    border-bottom-color: var(--lj-red);
    background: none !important;
}

/* ─── Hero Carousel ───────────────────────────────────────────────────────── */
.lj-hero .carousel-item {
    height: 540px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lj-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.30) 60%, transparent 100%);
}
.lj-hero__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}
.lj-hero__caption-inner { max-width: 600px; }
.lj-hero__caption h1 { color: var(--lj-red); margin-bottom: 16px; }
.lj-hero__caption p  { font-size: 22px; color: var(--lj-dark); margin-bottom: 24px; }
.lj-hero__caption p:last-child { margin-bottom: 0; }

.lj-hero .carousel-control-prev,
.lj-hero .carousel-control-next {
    width: 50px;
    opacity: .7;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(320deg);
}

/* ─── Page Banner ─────────────────────────────────────────────────────────── */
.lj-page-banner {
    background: url(images/cab.jpg) center/cover no-repeat;
    padding: 80px 0 40px;
}
.lj-page-banner h1 { color: var(--lj-red); margin: 0; }

/* ─── Section Spacing ─────────────────────────────────────────────────────── */
.lj-section        { padding: 70px 0; }
.lj-section--sm    { padding: 40px 0; }

/* ─── About (red bg) ──────────────────────────────────────────────────────── */
.lj-about {
    background: var(--lj-red);
    color: var(--lj-white);
    padding: 70px 0;
    text-align: center;
}
.lj-about h2  { color: var(--lj-white); }
.lj-about p, .lj-about .lj-intro { font-size: 20px; }
.lj-about a.lj-btn--outline:hover { color: var(--lj-red); }

/* ─── Goals (grey bg) ─────────────────────────────────────────────────────── */
.lj-goals { background: var(--lj-grey); padding: 70px 0; }

/* Goals section carousel */
.lj-goals-carousel {
    border: 6px solid var(--lj-white);
    box-shadow: 0 4px 24px rgba(0,0,0,.13);
    border-radius: 6px;
    overflow: hidden;
}
.lj-goals-carousel .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.lj-goals-carousel .carousel-control-prev,
.lj-goals-carousel .carousel-control-next {
    width: 44px;
    opacity: .85;
    background: rgba(204,36,51,.75);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    align-items: center;
    justify-content: center;
}

.lj-goal-item {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}
.lj-goal-icon          { flex-shrink: 0; width: 72px; height: 72px; }
.lj-goal-icon svg      { width: 72px; height: 72px; display: block; }
.lj-goal-item p        { margin: 0; font-size: 18px; line-height: 1.6; }

/* ─── Board ───────────────────────────────────────────────────────────────── */
.lj-board { padding: 70px 0; }

.lj-board-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid var(--lj-red);
    border-radius: 8px;
    padding: 36px 24px 30px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.lj-board-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.12);
    transform: translateY(-5px);
}

/* Avatar circle — placeholder until real photos are added */
.lj-board-card__avatar {
    width: 86px;
    height: 86px;
    background: #fdeaec;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(204,36,51,.15);
}
.lj-board-card__avatar svg { width: 52px; height: 52px; display: block; }

/* Role label */
.lj-board-card__role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--lj-red);
    margin-bottom: 10px;
}

/* Name */
.lj-board-card__name {
    font-size: 18px;
    color: var(--lj-dark);
    line-height: 1.3;
    margin-bottom: 0;
}
.lj-board-card__name em { color: #bbb; font-style: italic; }

/* Credentials */
.lj-board-card__credentials {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ─── What is LJC (yellow bg) ────────────────────────────────────────────── */
.lj-whatisljc { background: var(--lj-yellow); padding: 70px 0; }

.lj-whatisljc-inner {
    display: flex;
    align-items: flex-end;
    gap: 50px;
}
.lj-whatisljc-inner > img { width: 240px; flex-shrink: 0; }
.lj-whatisljc-content h2 { color: var(--lj-dark); }
.lj-whatisljc-content .lj-divider { background: var(--lj-dark); }
.lj-whatisljc-content .lj-intro { font-size: 18px; line-height: 1.7; }

/* ─── Meeting Dates ───────────────────────────────────────────────────────── */
.lj-dates { padding: 70px 0; }

/* Date list — icon + label rows */
.lj-dates__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lj-dates__list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 18px;
    color: var(--lj-dark);
}
.lj-dates__list li:last-child { border-bottom: none; }

/* Red calendar icon badge */
.lj-dates__icon {
    width: 42px;
    height: 42px;
    background: var(--lj-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lj-dates__icon svg { width: 22px; height: 22px; display: block; }

/* Photo with red gradient overlay */
.lj-dates__visual {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid var(--lj-white);
    box-shadow: 0 4px 24px rgba(0,0,0,.14);
}
.lj-dates__visual img {
    width: 100%;
    display: block;
    height: 440px;
    object-fit: cover;
}
.lj-dates__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(170,18,28,.88) 45%, rgba(130,12,20,.98) 100%);
    padding: 56px 30px 32px;
    color: var(--lj-white);
}
.lj-dates__overlay h3 { color: var(--lj-white); margin-bottom: 10px; }
.lj-dates__overlay p  { font-size: 17px; line-height: 1.6; margin-bottom: 20px; opacity: .93; }
.lj-dates__overlay .lj-btn--outline:hover { color: var(--lj-red); }

/* ─── Meeting Dates page — calendar cards ────────────────────────────────── */
.lj-date-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    transition: transform .25s ease, box-shadow .25s ease;
    width: 100%;
}
.lj-date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
}
.lj-date-card__month {
    background: var(--lj-red);
    color: #fff;
    text-align: center;
    padding: 30px 20px 24px;
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lj-date-card__body {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 18px 20px 22px;
    text-align: center;
}
.lj-date-card__year  { font-size: 22px; color: var(--lj-dark); }
.lj-date-card__label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 6px;
}

/* ─── Home page — meeting location card ──────────────────────────────────── */
.lj-home-location {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid var(--lj-red);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
}
.lj-home-location__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--lj-red);
    margin-top: 2px;
}
.lj-home-location__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    margin-bottom: 4px;
}
.lj-home-location__name {
    font-size: 17px;
    color: var(--lj-dark);
    margin-bottom: 4px;
}
.lj-home-location__address {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 10px;
}
.lj-home-location__link {
    font-size: 14px;
    color: var(--lj-red);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.lj-home-location__link:hover { text-decoration: underline; color: var(--lj-red-dk); }

/* ─── Contact Us page — info card ────────────────────────────────────────── */
.lj-contact-info-card {
    background: var(--lj-grey);
    border-radius: 10px;
    border-top: 4px solid var(--lj-red);
    padding: 36px 32px;
    height: 100%;
}
.lj-contact-info-card__title {
    font-size: 22px;
    color: var(--lj-dark);
    margin-bottom: 8px;
}
.lj-contact-info-card__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}
.lj-contact-info-card__row:last-child { margin-bottom: 0; }
.lj-contact-info-card__icon {
    width: 40px;
    height: 40px;
    background: var(--lj-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lj-contact-info-card__icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}
.lj-contact-info-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #999;
    margin-bottom: 3px;
}
.lj-contact-info-card__value {
    font-size: 16px;
    color: var(--lj-dark);
    text-decoration: none;
    line-height: 1.55;
    display: block;
}
a.lj-contact-info-card__value:hover { color: var(--lj-red); }

/* ─── Meeting Dates page — tab nav ───────────────────────────────────────── */
.lj-dates-section { padding-top: 60px; padding-bottom: 70px; }

.lj-dates-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 52px;
}
.lj-dates-tabs {
    display: inline-flex;
    gap: 0;
    background: var(--lj-grey);
    border-radius: 50px;
    padding: 5px;
    list-style: none;
    margin: 0;
    border: none;
}
.lj-dates-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #666;
    font-family: var(--lj-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
}
.lj-dates-tab:hover {
    color: var(--lj-red);
    background: rgba(204,36,51,.07);
}
.lj-dates-tab.active {
    background: var(--lj-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(204,36,51,.35);
}
.lj-dates-tab svg { flex-shrink: 0; }

.lj-dates-tab-content { min-height: 300px; }

/* ─── Meeting location card ───────────────────────────────────────────────── */
.lj-location-card {
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--lj-red);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 44px 40px 40px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lj-location-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
}
.lj-location-card__icon svg { width: 100%; height: 100%; }
.lj-location-card__name {
    font-size: 24px;
    color: var(--lj-dark);
    margin-bottom: 14px;
}
.lj-location-card__address {
    font-size: 17px;
    color: #555;
    line-height: 1.75;
    font-style: normal;
    margin-bottom: 12px;
}
.lj-location-card__notes {
    font-size: 14px;
    color: #888;
    margin-bottom: 0;
    line-height: 1.6;
}

.lj-dates-detail { padding: 70px 0; background: var(--lj-grey); }

/* ─── Image with border ───────────────────────────────────────────────────── */
.lj-img-border {
    border: 6px solid var(--lj-white);
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    width: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Intro text ──────────────────────────────────────────────────────────── */
.lj-intro { font-size: 20px; line-height: 1.65; }

/* ─── About page — mission strip ─────────────────────────────────────────── */
.lj-about-mission {
    background: var(--lj-red);
    padding: 64px 0;
    text-align: center;
}
.lj-about-mission__quote {
    font-size: 22px;
    color: #fff;
    line-height: 1.75;
    font-style: italic;
    margin: 0;
    opacity: .96;
}

/* ─── Purpose / About page — 3 icon cards ────────────────────────────────── */
.lj-purpose-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid var(--lj-red);
    border-radius: 8px;
    padding: 40px 28px 34px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.lj-purpose-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.12);
    transform: translateY(-5px);
}
.lj-purpose-card__icon {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
}
.lj-purpose-card__icon svg { width: 84px; height: 84px; display: block; }
.lj-purpose-card p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--lj-dark);
    margin: 0;
}
.lj-pillar__title {
    font-size: 22px;
    color: var(--lj-dark);
    margin-bottom: 14px;
}

/* ─── Goals list (Purpose page) ───────────────────────────────────────────── */
.lj-goals-full {
    background: var(--lj-grey);
    padding: 70px 0;
}

/* Numbered card grid */
.lj-valores ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    counter-reset: goal-counter;
}
.lj-valores ul li {
    counter-increment: goal-counter;
    position: relative;
    padding: 24px 22px 24px 72px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--lj-red);
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 0;
    transition: box-shadow .2s ease, transform .2s ease;
}
.lj-valores ul li:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
    transform: translateY(-2px);
}
.lj-valores ul li::before {
    content: counter(goal-counter);
    position: absolute;
    left: 18px;
    top: 24px;
    width: 36px;
    height: 36px;
    background: var(--lj-red);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .lj-valores ul { grid-template-columns: 1fr; }
}

/* ─── Helpful Links (footer) ──────────────────────────────────────────────── */
.lj-links a {
    display: block;
    margin-bottom: 10px;
    color: #006699 !important;
    font-size: 17px;
    transition: color .2s ease;
}
.lj-links a:hover { color: var(--lj-red) !important; }

/* ─── Helpful Links page — resource cards ─────────────────────────────────── */
.lj-link-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid var(--lj-red);
    border-radius: 8px;
    padding: 28px 24px;
    width: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    text-decoration: none !important;
    transition: box-shadow .25s ease, transform .25s ease;
    color: var(--lj-dark) !important;
}
.lj-link-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.12);
    transform: translateY(-4px);
    color: var(--lj-dark) !important;
}
.lj-link-card__icon {
    width: 50px;
    height: 50px;
    background: var(--lj-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lj-link-card__icon svg { width: 26px; height: 26px; display: block; }
.lj-link-card__body     { flex: 1; min-width: 0; }
.lj-link-card__url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--lj-dark);
    margin-bottom: 10px;
    transition: color .2s ease;
}
.lj-link-card__url svg  { width: 16px; height: 16px; flex-shrink: 0; color: var(--lj-red); }
.lj-link-card:hover .lj-link-card__url { color: var(--lj-red); }
.lj-link-card__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* Bottom CTA strip */
.lj-links-cta {
    margin-top: 56px;
    text-align: center;
    padding: 36px 24px;
    background: var(--lj-grey);
    border-radius: 8px;
}
.lj-links-cta p  { font-size: 18px; color: var(--lj-dark); margin-bottom: 20px; }

/* ─── FAQs accordion ─────────────────────────────────────────────────────── */
.lj-faq-accordion { border: none; }

.lj-faq-item {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.lj-faq-item .accordion-button {
    background: #fff;
    color: var(--lj-dark);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--lj-font);
    padding: 22px 24px;
    border-left: 4px solid transparent;
    box-shadow: none !important;
    transition: color .2s ease, border-color .2s ease;
}
.lj-faq-item .accordion-button:not(.collapsed) {
    background: #fff;
    color: var(--lj-red);
    border-left-color: var(--lj-red);
}
/* Chevron — red when open, dark when closed */
.lj-faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333333' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transition: transform .2s ease;
}
.lj-faq-item .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23CC2433' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.lj-faq-item .accordion-body {
    padding: 20px 28px 26px 28px;
    font-size: 17px;
    line-height: 1.75;
    color: #555;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.lj-faq-item .accordion-body p:last-child { margin-bottom: 0; }

/* Fallback plain style (if no h4 pairs found) */
.lj-faqs h4, .lj-faqs h3 { color: var(--lj-red); margin: 30px 0 14px; }

/* ─── Contact Form ────────────────────────────────────────────────────────── */
.lj-form .form-control {
    background: #e9e9e9;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--lj-font);
    font-size: 17px;
    color: var(--lj-dark);
    margin-bottom: 18px;
}
.lj-form .form-control:focus {
    background: #e9e9e9;
    border-color: var(--lj-red);
    box-shadow: 0 0 0 3px rgba(204,36,51,.15);
    outline: none;
}
.lj-form textarea.form-control { height: 160px; resize: vertical; }

#lj-form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 17px;
}
#lj-form-message.success { background: #d4edda; color: #155724; }
#lj-form-message.error   { background: #f8d7da; color: #721c24; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
#site-footer {
    background: url(images/footer.jpg) center/cover no-repeat;
    color: var(--lj-yellow);
    padding: 50px 0 0;
}
#site-footer a         { color: var(--lj-yellow) !important; transition: color .2s ease; }
#site-footer a:hover   { color: var(--lj-white)  !important; }
#site-footer h4        { color: var(--lj-white); margin-bottom: 16px; font-size: 22px; }

.lj-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}
.lj-footer-brand img { width: 80px; flex-shrink: 0; }
.lj-footer-brand p   { font-size: 15px; line-height: 1.7; margin: 0; }

.lj-footer-links a   { display: block; margin-bottom: 8px; font-size: 15px; }

.lj-copyright {
    background: rgba(0,0,0,.65);
    padding: 16px 0;
    margin-top: 40px;
    color: var(--lj-white);
    font-size: 15px;
}
.lj-copyright a        { color: var(--lj-white) !important; }
.lj-copyright a:hover  { color: var(--lj-yellow) !important; }

/* ─── Membership Application Form ───────────────────────────────────────── */
.lj-application {
    background: var(--lj-grey);
    padding: 80px 0;
}
.lj-application__card {
    background: #fff;
    border-radius: 12px;
    padding: 52px 60px;
    box-shadow: 0 6px 32px rgba(0,0,0,.08);
    border: 1px solid #e8e8e8;
}
.lj-application__header {
    text-align: center;
    margin-bottom: 44px;
}
.lj-application__org {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.lj-application__header h2 {
    color: var(--lj-red);
    margin-bottom: 0;
}
/* Labels */
.lj-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--lj-dark);
    margin-bottom: 8px;
}
.lj-form-label--note {
    font-weight: 400;
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0;
    color: #999;
}
.lj-required { color: var(--lj-red); }
/* Inputs / Textareas */
.lj-form-control {
    display: block;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: var(--lj-font);
    color: var(--lj-dark);
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.lj-form-control:focus {
    border-color: var(--lj-red);
    box-shadow: 0 0 0 3px rgba(204,36,51,.12);
    background: #fff;
}
.lj-form-control--sig {
    font-style: italic;
    font-size: 18px;
}
textarea.lj-form-control { resize: vertical; }
/* Membership type radio block */
.lj-membership-type {
    background: var(--lj-grey);
    border-radius: 10px;
    padding: 8px 0;
}
.lj-membership-type__option {
    padding: 18px 24px;
    border-bottom: 1px solid #e4e4e4;
    transition: background .15s;
}
.lj-membership-type__option:last-child { border-bottom: none; }
.lj-membership-type__option:hover { background: rgba(204,36,51,.04); }
.lj-membership-type__radio {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    margin: 0;
}
.lj-membership-type__radio input[type="radio"] {
    accent-color: var(--lj-red);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    cursor: pointer;
}
.lj-membership-type__label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--lj-dark);
    margin-bottom: 4px;
}
.lj-membership-type__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}
/* Payment info box */
.lj-payment-info {
    background: #fff8f8;
    border-left: 4px solid var(--lj-red);
    border-radius: 0 8px 8px 0;
    padding: 22px 26px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--lj-dark);
}
.lj-payment-info p { margin-bottom: 14px; }
.lj-payment-info p:last-child { margin-bottom: 0; }
.lj-payment-info strong { color: var(--lj-red); }
/* Divider */
.lj-form-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 36px 0;
}
/* Certification text */
.lj-certification {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}
/* Large submit button */
.lj-btn--lg {
    padding: 16px 44px;
    font-size: 17px;
    min-width: 220px;
}
/* Success banner */
.lj-form-success {
    background: #edf7ed;
    border: 1.5px solid #4caf50;
    border-radius: 10px;
    padding: 22px 28px;
    color: #1b5e20;
    font-size: 16px;
    line-height: 1.7;
}
.lj-form-success strong { color: #1b5e20; }
/* Revised note */
.lj-form-revised {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin-top: 24px;
    margin-bottom: 0;
}

/* ─── Back to Top ────────────────────────────────────────────────────────── */
#lj-back-top {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: var(--lj-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(204,36,51,.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    z-index: 9990;
}
#lj-back-top.lj-back-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#lj-back-top:hover {
    background: var(--lj-red-dk);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(204,36,51,.55);
}
#lj-back-top:focus-visible {
    outline: 3px solid var(--lj-red);
    outline-offset: 3px;
}

/* ─── Safari & Cross-Browser Fixes ───────────────────────────────────────── */

/* Smooth scrolling — degrades gracefully on older browsers */
html { scroll-behavior: smooth; }

/* Minimum 44 × 44 pt touch targets (WCAG 2.5.5 / Apple HIG) */
.lj-btn       { min-height: 44px; }
.lj-dates-tab { min-height: 44px; }
.navbar-toggler { min-height: 44px; min-width: 44px; }

/* Remove tap highlight flash on iOS Safari for interactive elements */
.lj-btn,
.lj-dates-tab,
.navbar-toggler { -webkit-tap-highlight-color: transparent; }

/* Prevent iOS Safari from rounding button corners unexpectedly */
.lj-btn { -webkit-appearance: none; }

/* Safe-area padding for iPhone notch / Dynamic Island */
@supports (padding: env(safe-area-inset-bottom)) {
    .lj-copyright {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ─── Offcanvas Mobile Nav ────────────────────────────────────────────────── */
/*  Bootstrap 5's navbar-expand-xl automatically:
    • Hides .offcanvas-header on xl+ screens
    • Renders .offcanvas-body as an inline flex row on xl+ screens
    So the styles below only take visual effect in the mobile drawer.    */

.lj-offcanvas-header {
    background: var(--lj-red);
    padding: 18px 24px;
    border-bottom: 3px solid rgba(0,0,0,.12);
    align-items: center;
}
.lj-offcanvas-title {
    color: #fff;
    font-size: 17px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}
.lj-offcanvas-close {
    filter: brightness(0) invert(1); /* white × icon */
    opacity: .9;
}
.lj-offcanvas-body {
    padding: 0;
}

/* Drawer nav-link styles — scoped to mobile widths */
@media (max-width: 1199.98px) {
    #navOffcanvas           { width: min(300px, 85vw); }
    #navOffcanvas .navbar-nav { width: 100%; }
    #navOffcanvas .nav-item {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    #navOffcanvas .nav-item:last-child { border-bottom: none; }
    #navOffcanvas .nav-link {
        padding: 16px 28px !important;
        font-size: 17px;
        color: var(--lj-dark) !important;
        border-left: 4px solid transparent;
        transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    #navOffcanvas .nav-link:hover,
    #navOffcanvas .nav-link.active,
    #navOffcanvas .nav-item.current-menu-item .nav-link,
    #navOffcanvas .nav-item.active .nav-link {
        background: var(--lj-grey);
        border-left-color: var(--lj-red);
        color: var(--lj-red) !important;
    }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* 1100px — logo shrinks, navbar bar is 68px, logo hangs via absolute */
@media (max-width: 1100px) {
    .lj-hero .carousel-item { height: 420px; }

    /* min-height (not height) keeps bar at 68px while allowing collapse to expand */
    .lj-navbar    { min-height: 68px; height: auto; margin-top: 0; }
    .navbar-brand img { height: 110px; }

    .lj-whatisljc-inner        { flex-direction: column; gap: 30px; }
    .lj-whatisljc-inner > img  { opacity: .15; position: absolute; }
    .lj-whatisljc              { position: relative; }
}

@media (max-width: 767.98px) {
    .lj-hero .carousel-item { height: 320px; }
    .lj-hero__caption p     { font-size: 18px; }
    .lj-section             { padding: 50px 0; }
    .lj-about, .lj-goals, .lj-board, .lj-whatisljc, .lj-dates { padding: 50px 0; }
}

@media (max-width: 575.98px) {
    .lj-hero .carousel-item   { height: 260px; }
    .lj-whatisljc-inner > img { display: none; }
    .lj-footer-brand          { flex-direction: column; }

    /* Membership application card — reduce padding on phones */
    .lj-application__card     { padding: 32px 20px; }

    /* Tab pill — slightly tighter on very small screens */
    .lj-dates-tab             { padding: 11px 18px; font-size: 15px; gap: 7px; }

    /* Hero caption text — avoid overflow */
    .lj-hero__caption-inner   { max-width: 100%; padding: 0 12px; }
    .lj-hero__caption h1      { font-size: clamp(24px, 7vw, 40px); }

    /* Page banner — tighter on phones */
    .lj-page-banner           { padding: 60px 0 28px; }

    /* Contact info card — full padding reduction */
    .lj-contact-info-card     { padding: 28px 22px; }
}
