
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* =========================================
   CJA BANGLADESH — FRONTEND THEME
   Colors: Gold, White, Warm Grey, Charcoal
   ========================================= */

:root {
    --cja-gold: #b58a3a;
    --cja-gold-dark: #916a27;
    --cja-ink: #172233;
    --cja-muted: #686868;
    --cja-paper: #ffffff;
    --cja-soft: #f7f4ed;
    --cja-line: #e8e1d5;
    --cja-shadow: 0 8px 24px rgba(27, 30, 34, .065);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    max-width: 100%;
}

body {
    padding-top: 76px !important;
    margin: 0;
    background: #ffffff !important;
    color: var(--cja-ink);
    font-family: Arial, system-ui, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

:lang(bn),
:lang(bn) h1,
:lang(bn) h2,
:lang(bn) h3,
:lang(bn) h4,
:lang(bn) h5,
:lang(bn) h6,
:lang(bn) p,
:lang(bn) a,
:lang(bn) button,
:lang(bn) label {
    font-family: "Noto Serif Bengali", serif !important;
}

body:lang(en),
body:lang(en) h1,
body:lang(en) h2,
body:lang(en) h3,
body:lang(en) h4,
body:lang(en) h5,
body:lang(en) h6 {
    font-family: "Playfair Display", Georgia, serif;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1240px;
}

/* =========================================
   HEADER & BRANDING
   ========================================= */

.cja-navbar {
    min-height: 72px !important;
    padding: 6px 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    border-bottom: 1px solid #ece6dc !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .035) !important;
    backdrop-filter: blur(12px);
}

.cja-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
    color: var(--cja-ink) !important;
    white-space: nowrap;
}

.cja-brand-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 65px !important;
    font-weight: 700;
    line-height: .95;
    letter-spacing: -2.5px;
    color: var(--cja-gold);
}

.cja-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cja-brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: .7px;
    color: #222222;
}

.cja-brand-copy small {
    max-width: 240px;
    margin-top: 3px;
    color: #686868;
    font-size: 10px;
    white-space: normal;
}

.cja-brand-copy em {
    margin-top: 3px;
    color: #686868;
    font-family: "Noto Serif Bengali", serif;
    font-size: 10px;
    font-style: normal;
    white-space: normal;
}

.cja-nav-links {
    gap: 2px;
    padding-top: 0 !important;
}

.cja-navbar .nav-link {
    padding: 13px 9px !important;
    color: #292929 !important;
    font-size: 20px !important;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.cja-navbar .nav-link:hover,
.cja-navbar .nav-link.active {
    color: var(--cja-gold-dark) !important;
}

.cja-navbar .nav-link.active::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 8px auto -10px;
    background: var(--cja-gold);
    content: "";
}

.cja-navbar .dropdown-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--cja-line);
    border-radius: 8px;
    box-shadow: var(--cja-shadow);
}

.cja-navbar .dropdown-item {
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 13px;
}

.cja-navbar .dropdown-item:hover {
    background: #f8f2e7;
    color: var(--cja-gold-dark);
}

.cja-lang-item .nav-link {
    padding-right: 5px !important;
    padding-left: 5px !important;
    font-size: 12px !important;
}

.cja-lang-divider {
    color: #b9b2a5;
    font-size: 12px;
}

.nav-bridge {
    display: none !important;
    height: 0 !important;
}

/* =========================================
   HERO SECTION
   Single warm background — no multi-color
   corner gradients or colored side panels.
   ========================================= */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #f7f4ed !important;
}

.hero-section > .container {
    width: 92%;
    max-width: 1720px;
    padding: 0 !important;
}

.hero-section .row {
    min-height: 570px;
    align-items: stretch !important;
}

.hero-section .row > div:first-child {
    display: flex;
    align-items: center;
}

.hero-left-card {
    width: 100%;
    max-width: 760px;
    padding: 28px 44px 28px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hero-kicker {
    margin-bottom: 20px;
    color: var(--cja-gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.hero-kicker .dot {
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-right: 8px;
    background: var(--cja-gold);
    vertical-align: middle;
}

.hero-title {
    margin: 0 0 8px !important;
    color: #101e30 !important;
    font-family: "Noto Serif Bengali", serif !important;
    font-size: clamp(2.5rem, 3.6vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.7px;
}

.hero-brand-line {
    margin: 0 0 14px !important;
    color: #ad8132 !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(2.3rem, 3.15vw, 3.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
}

.hero-subtitle {
    max-width: 720px;
    margin-bottom: 23px !important;
    color: #42454a;
    font-family: "Noto Serif Bengali", serif;
    font-size: clamp(14px, 1.05vw, 18px) !important;
    line-height: 1.8 !important;
}

.hero-points {
    display: none !important;
}

.btn-hero,
.cja-btn-gold {
    padding: 13px 24px !important;
    border: 1px solid var(--cja-gold) !important;
    border-radius: 4px !important;
    background: var(--cja-gold) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.btn-hero:hover,
.cja-btn-gold:hover {
    border-color: var(--cja-gold-dark) !important;
    background: var(--cja-gold-dark) !important;
}

.hero-section .btn-hero:nth-child(2) {
    border-color: #b7b1a6 !important;
    background: transparent !important;
    color: #252525 !important;
}

/* Hero image area */

.hero-section .row > div:nth-child(2) {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 570px;
}

.hero-slider-wrapper {
    position: relative !important;
    width: calc(100% + 9vw) !important;
    max-width: none !important;
    height: 570px !important;
    min-height: 570px !important;
    margin: 0 -4.6vw 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    clip-path: polygon(
        19% 0,
        100% 0,
        100% 100%,
        0 100%
    ) !important;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    position: relative;
    width: 100%;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.hero-slider .carousel-item > img {
    position: relative;
    z-index: 1;
}

.hero-image-title {
    position: absolute !important;
    z-index: 5 !important;
}

.hero-slider img {
    display: block !important;
    width: 100% !important;
    height: 570px !important;
    min-height: 570px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.hero-slider .carousel-indicators {
    bottom: 8px;
}

.hero-slider .carousel-indicators button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    opacity: .35;
}
 
/* Image title comes from the existing PHP/database output */

.hero-image-title {
    position: absolute !important;
    right: 15.5% !important;
    bottom: 0% !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    width: min(440px, 48%) !important;
    padding: 24px 27px 28px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, .97) !important;
    color: #1d2938 !important;
    font-family: "Noto Serif Bengali", serif !important;
    font-size: clamp(17px, 1.2vw, 23px) !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .13) !important;
}

.hero-image-quote {
    flex: 0 0 auto;
    color: var(--cja-gold) !important;
    font-family: Georgia, serif !important;
    font-size: 52px !important;
    font-weight: 700 !important;
    line-height: .9 !important;
}

.hero-image-title i {
    position: absolute;
    bottom: 14px;
    left: 27px;
    width: 42px;
    height: 3px;
    background: var(--cja-gold);
}

/* =========================================
   CORE VALUES
   ========================================= */

.cja-values-strip {
    padding: 16px 0 !important;
    border-bottom: 1px solid #eee8de;
    background: #ffffff !important;
}

.cja-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.cja-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 7px 18px;
    border-right: 1px solid var(--cja-line);
}

.cja-value-item:last-child {
    border-right: 0;
}

.cja-value-icon {
    display: grid;
    flex: 0 0 60px !important;
    place-items: center;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: #f8f1e4;
    color: #a77828;
    font-size: 41px;
}

.cja-value-item strong {
    display: block;
    margin-bottom: 2px;
    color: #24272a;
    font-size: 20px;
}

.cja-value-item small {
    display: block;
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================
   SHARED SECTION HEADINGS
   ========================================= */

.section-title {
    position: relative;
    display: block !important;
    width: fit-content;
    margin-bottom: 1.1rem !important;
    padding-left: 14px;
    color: #1a2634 !important;
    font-size: clamp(1.4rem, 2.1vw, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.section-title::after {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: var(--cja-gold);
    content: "";
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.cja-about-section {
    padding: 40px 0 !important;
    background: #ffffff !important;
}

.cja-about-section .row {
    align-items: center !important;
    --bs-gutter-x: 1.5rem;
}

.cja-about-section .col-lg-5 {
    order: 1;
}

.cja-about-section .col-lg-4 {
    order: 2;
}

.cja-about-section .col-lg-3 {
    order: 3;
}

.cja-about-image {
    display: block;
    width: 100% !important;
    height: 235px;
    border-radius: 4px;
    object-fit: cover;
}

.cja-about-placeholder {
    display: grid;
    place-items: center;
    background: #f4f0e7;
    color: var(--cja-gold);
    font: 700 54px Georgia, serif;
}

.cja-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--cja-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
}

.cja-about-title {
    margin-bottom: 8px;
    color: #1c2836;
    font-family: "Noto Serif Bengali", serif;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.45;
}

.cja-about-copy {
    margin-bottom: 12px;
    color: #50545a;
    font-size: 12px;
    line-height: 1.9;
}

.cja-quick-links {
    padding: 0;
    border: 1px solid var(--cja-line);
    border-radius: 5px;
    background: #ffffff;
}

.cja-quick-links h3 {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #eee8df;
    font-size: 13px;
    font-weight: 700;
}

.cja-quick-links > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid #f0ede7;
    color: #3d3d3d;
    font-size: 11px;
    text-decoration: none;
}

.cja-quick-links > a:last-child {
    border-bottom: 0;
}

.cja-quick-links > a:hover {
    color: var(--cja-gold-dark);
}

.cja-quick-links > a b {
    margin-left: auto;
    color: var(--cja-gold);
    font-weight: 500;
}

.cja-quick-icon {
    display: grid;
    flex: 0 0 25px;
    place-items: center;
    height: 25px;
    border-radius: 50%;
    background: #f7f0e2;
    color: var(--cja-gold-dark);
    font-size: 13px;
}

/* =========================================
   PRESIDENT & SECRETARY
   ========================================= */

.executive-section {
    padding: 38px 0 !important;
    background: #f7f6f3 !important;
}

.executive-section .section-title {
    text-align: left !important;
}

.executive-section h5 {
    font-size: 13px !important;
    font-weight: 400;
}

.executive-person {
    display: flex;
    align-items: center !important;
    gap: 14px;
    height: 100%;
    padding: 16px !important;
    border: 1px solid #eee8dd;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .035);
}

.executive-person img {
    flex-shrink: 0;
    width: 160px !important;
    height: 190px !important;
    border: 4px solid #b58a3a;
    border-radius: 10px !important;
    object-fit: cover;
}

.executive-name {
    margin: 0 0 4px;
    color: #b58a3a;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1.4;
}

.executive-role {
    margin: 0 0 7px;
    color: #050505  !important;
    font-size: 18px !important;
}

.executive-speech {
    margin-bottom: 0;
    color: #696969;
    font-size: 18px !important;
    line-height: 1.7;
}

/* =========================================
   COMMITTEE TREE
   ========================================= */

.committee-section {
    padding: 42px 0 !important;
    background: #ffffff !important;
}

.committee-section .section-title {
    text-align: left !important;
}

.committee-section h5 {
    font-size: 13px !important;
    font-weight: 400;
}

.committee-section > .container > h5 {
    margin-bottom: 8px !important;
    font-size: 11px !important;
}

.cja-leadership-tree {
    position: relative;
    margin-top: 22px;
}

.cja-leadership-top {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 26px;
}

.cja-leadership-top::after {
    position: absolute;
    right: 30%;
    bottom: 0;
    left: 30%;
    height: 1px;
    background: #d9c59e;
    content: "";
}

.cja-member-card {
    min-width: 0;
    padding: 0 7px 8px;
    overflow: hidden;
    border: 1px solid #e7dfd0;
    border-radius: 5px;
    background: #ffffff;
    text-align: center;
    box-shadow: none;
    transition: transform .2s, box-shadow .2s;
}

.cja-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.cja-leadership-top .cja-member-card {
    width: min(180px, 34%);
    padding: 12px 8px 10px;
    border-color: #eadcc2;
    background: #faf7f0;
}

.cja-member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin: 0 auto 4px;
}

.cja-member-photo img {
    width: 52px;
    height: 52px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #e6d9c2;
}

.cja-member-card h3 {
    margin: 3px 0;
    color: #20242a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cja-member-card p {
    margin: 0;
    color: #8c682b;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cja-leadership-members {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cja-leadership-members::before {
    position: absolute;
    top: -12px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: #d9c59e;
    content: "";
}

.cja-leadership-members .cja-member-card {
    position: relative;
}

.cja-leadership-members .cja-member-card::before {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 1px;
    height: 12px;
    background: #d9c59e;
    content: "";
}

/* =========================================
   PHOTO GALLERY
   ========================================= */

.gallery-section {
    padding: 40px 0 !important;
    background: #f7f6f3 !important;
    color: #222222 !important;
}

.gallery-section .section-title,
.gallery-section h5 {
    color: #20252b !important;
}

.gallery-section h5 {
    margin-bottom: 12px !important;
    color: #747474 !important;
    font-size: 11px !important;
}

.gallery-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: .75rem;
}

.gallery-img {
    display: block;
    width: 100% !important;
    height: 150px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    box-shadow: none !important;
    transition: transform .2s;
}

.gallery-img:hover {
    transform: translateY(-2px);
}

.gallery-section .row:nth-of-type(2) .gallery-img {
    height: 112px !important;
}

.gallery-section .row:nth-of-type(3) .gallery-img {
    height: 90px !important;
}

.gallery-caption {
    margin-top: 5px;
    color: #626262 !important;
    font-size: 10px !important;
}

/* =========================================
   NEWS & UPDATES
   ========================================= */

.news-section {
    padding: 42px 0 !important;
    background: #ffffff !important;
}

.news-header-text h5 {
    margin: 0 !important;
    color: #777777 !important;
    font-size: 11px !important;
}

.news-tabs {
    margin: 16px 0 !important;
    padding-top: 9px !important;
    border-top: 2px solid #d8c49e !important;
}

.news-tabs .nav-link {
    padding: 7px 12px !important;
    border-radius: 3px !important;
    background: #f6f4ef !important;
    color: #555555 !important;
    font-size: 11px;
}

.news-tabs .nav-link.active {
    background: var(--cja-gold) !important;
    color: #ffffff !important;
}

.news-wrapper .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.news-card,
.news-item,
.blog-card {
    display: block !important;
    height: 100%;
    overflow: hidden;
    border: 0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 13px rgba(0, 0, 0, .06) !important;
    transition: transform .2s, box-shadow .2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1) !important;
}

.news-card-thumb img,
.news-section .news-card img {
    display: block;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

.news-card-body {
    padding: 11px 12px 13px !important;
}

.news-card-title {
    margin: 0 0 6px !important;
    color: #25282d !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.news-card-meta {
    margin: 0 !important;
    color: #a2782e !important;
    font-size: 10px !important;
}

/* =========================================
   VIDEO GALLERY
   ========================================= */

.video-gallery-section {
    padding: 40px 0 !important;
    background: #f7f6f3 !important;
    color: #222222 !important;
}

.video-gallery-section .section-title,
.video-gallery-section h5 {
    color: #20252b !important;
}

.video-gallery-section h5 {
    margin-bottom: 12px !important;
    color: #777777 !important;
    font-size: 11px !important;
}

#videoCarousel .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.video-card {
    height: 100% !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .055) !important;
}

.video-thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px 4px 0 0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #111 !important;
    line-height: 0 !important;
    isolation: isolate;
    -webkit-appearance: none;
    appearance: none;
    text-align: inherit;
}

.video-thumb::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.24));
    opacity: .7;
    transition: opacity .2s ease;
    pointer-events: none;
}

.video-thumb img {
    display: block;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    transition: transform .35s ease, filter .25s ease;
    pointer-events: none;
}

.video-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 62px !important;
    height: 62px !important;
    padding-left: 4px !important;
    transform: translate(-50%, -50%) !important;
    border: 2px solid rgba(255, 255, 255, .96) !important;
    border-radius: 50% !important;
    background: rgba(181, 138, 58, .96) !important;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .32), 0 0 0 7px rgba(255, 255, 255, .18) !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    pointer-events: none;
}

.video-play-btn > span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #fff;
}

.video-thumb:hover img,
.video-thumb:focus-visible img {
    transform: scale(1.045);
    filter: brightness(.82);
}

.video-thumb:hover::after,
.video-thumb:focus-visible::after {
    opacity: 1;
}

.video-thumb:hover .video-play-btn,
.video-thumb:focus-visible .video-play-btn {
    transform: translate(-50%, -50%) scale(1.08) !important;
    background: #916a27 !important;
    box-shadow: 0 7px 25px rgba(0, 0, 0, .38), 0 0 0 9px rgba(255, 255, 255, .22) !important;
}

.video-thumb:focus-visible {
    outline: 3px solid #b58a3a !important;
    outline-offset: 3px;
}

.video-title {
    margin: 0 !important;
    padding: 10px 11px 12px !important;
    color: #292929 !important;
    font-size: 20px !important;
    line-height: 1.55 !important;
}

/* =========================================
   CONTACT SECTION — REFINED TWO-COLUMN DESIGN
   ========================================= */

.contact-section {
    position: relative;
    padding: clamp(42px, 5vw, 76px) 0 !important;
    background:
        linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 100%) !important;
}

.contact-section > .container > .section-title {
    margin-bottom: 8px !important;
    font-size: clamp(1.65rem, 2.3vw, 2.25rem) !important;
}

.contact-section > .container > h5 {
    max-width: 720px;
    margin: 0 0 28px !important;
    padding: 0 !important;
    color: #6d6d6d !important;
    font-size: clamp(12px, .95vw, 14px) !important;
    line-height: 1.8 !important;
}

.contact-section > .container > .row {
    align-items: stretch;
    --bs-gutter-x: 1.4rem;
    --bs-gutter-y: 1.4rem;
}

.contact-section > .container > .row > [class*="col-"] {
    display: flex;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(20px, 2.2vw, 32px) !important;
    border: 1px solid rgba(180, 145, 82, .22) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 36px rgba(37, 39, 43, .065) !important;
    transition: box-shadow .22s ease, transform .22s ease;
}

.contact-card:hover {
    box-shadow: 0 16px 42px rgba(37, 39, 43, .09) !important;
}

.contact-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 23px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee8de;
    color: #202b39;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5;
}

.contact-card h4::before {
    display: inline-block;
    width: 4px;
    height: 24px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--cja-gold);
    content: "";
}

.contact-card .form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #333b46;
    font-size: 25px !important;
    font-weight: 600 !important;
}

.contact-card .form-control {
    min-height: 46px;
    padding: 11px 13px !important;
    border: 1px solid #dedbd4 !important;
    border-radius: 8px !important;
    background: #fdfdfc !important;
    color: #242a32 !important;
    font-size: 20px !important;
    line-height: 1.6;
    box-shadow: none !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.contact-card textarea.form-control {
    min-height: 168px;
    resize: vertical;
}

.contact-card .form-control::placeholder {
    color: #9a9a96;
    opacity: 1;
}

.contact-card .form-control:focus {
    border-color: var(--cja-gold) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(181, 138, 58, .13) !important;
    outline: none;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin-top: 3px;
    padding: 12px 20px !important;
    border: 1px solid var(--cja-gold) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #b58a3a, #a5792d) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .1px;
    box-shadow: 0 5px 13px rgba(181, 138, 58, .19) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
    border-color: #916a27 !important;
    background: linear-gradient(135deg, #a5792d, #916a27) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(145, 106, 39, .25) !important;
    transform: translateY(-1px);
}

.contact-card .alert {
    border-radius: 8px;
    font-size: 13px;
}

/* Office information */
.contact-section .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0ece4;
}

.contact-section .contact-info-item:first-of-type {
    padding-top: 2px !important;
}

.contact-section .contact-info-item:last-of-type {
    border-bottom: 0;
}

.contact-section .contact-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #f0e4cd;
    border-radius: 12px !important;
    background: #faf4e8 !important;
    color: #916a27 !important;
    font-size: 19px;
    line-height: 1;
    box-shadow: none;
}

.contact-section .contact-info-item > div:last-child {
    min-width: 0;
    padding-top: 1px;
}

.contact-section .contact-info-title {
    margin: 0 0 4px !important;
    color: #273242 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.contact-section .contact-info-text {
    margin: 0 !important;
    color: #62666d !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    overflow-wrap: anywhere;
}

.contact-section .contact-card .mt-3 {
    margin-top: auto !important;
    padding-top: 19px;
}

.contact-section .contact-card .btn-outline-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 15px !important;
    border: 1px solid #d7c7a8 !important;
    border-radius: 8px !important;
    background: #fffdf9 !important;
    color: #514126 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.contact-section .contact-card .btn-outline-dark:hover {
    border-color: var(--cja-gold) !important;
    background: #f8f0e2 !important;
    color: #7e5b23 !important;
}

/* Keep the contact layout comfortable on phones and tablets */
@media (max-width: 767.98px) {
    .contact-section {
        padding: 36px 0 !important;
    }

    .contact-section > .container > h5 {
        margin-bottom: 20px !important;
    }

    .contact-section > .container > .row {
        --bs-gutter-y: 1rem;
    }

    .contact-card {
        padding: 20px !important;
        border-radius: 13px !important;
    }

    .contact-card h4 {
        margin-bottom: 18px !important;
        padding-bottom: 12px;
        font-size: 16px !important;
    }

    .contact-card .form-control {
        min-height: 44px;
    }

    .contact-card textarea.form-control {
        min-height: 145px;
    }

    .contact-section .contact-info-item {
        gap: 12px;
        padding: 13px 0 !important;
    }

    .contact-section .contact-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px !important;
        font-size: 17px;
    }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 13px 0 !important;
    border-top: 1px solid #e6dece !important;
    background: #f7f6f3 !important;
    color: #626262 !important;
    font-size: 10px !important;
}

.footer-text,
.footer-dev,
.footer-dev a {
    color: #626262 !important;
}

.footer-dev {
    text-align: right !important;
}

.modal-content {
    overflow: hidden;
    border-radius: 8px;
}

/* =========================================
   WIDE DESKTOP
   ========================================= */

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        width: 92% !important;
        max-width: 1720px !important;
    }

    .cja-navbar > .container {
        width: 92% !important;
        max-width: 1720px !important;
    }

    .cja-about-section > .container,
    .executive-section > .container,
    .committee-section > .container,
    .gallery-section > .container,
    .news-section > .container,
    .video-gallery-section > .container,
    .contact-section > .container,
    .site-footer > .container {
        width: 92% !important;
        max-width: 1720px !important;
    }
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1199.98px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 96% !important;
    }

    .hero-section > .container {
        width: 96%;
        max-width: 96% !important;
    }

    .hero-section {
        min-height: 0 !important;
    }

    .hero-section .row {
        min-height: 0 !important;
    }

    .hero-left-card {
        padding: 22px 20px 22px 0 !important;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem) !important;
    }

    .hero-brand-line {
        font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
    }

    .hero-slider-wrapper {
        width: 100% !important;
        height: 100% !important;
        min-height: 330px !important;
        margin: 0 !important;
    }

    .hero-slider img {
        height: 330px !important;
        min-height: 330px !important;
    }

    .hero-image-title {
        right: 4% !important;
        bottom: 9% !important;
        width: min(390px, 55%) !important;
        padding: 15px 18px 23px !important;
        font-size: clamp(13px, 1.6vw, 19px) !important;
    }

    .hero-image-quote {
        font-size: 36px !important;
    }

    .hero-image-title i {
        bottom: 10px;
        left: 18px;
        width: 32px;
        height: 2px;
    }

    .cja-navbar .nav-link {
        font-size: 12px !important;
    }
}

/* =========================================
   TABLET AND MOBILE LAYOUT
   ========================================= */

@media (max-width: 991.98px) {
    body {
        padding-top: 72px !important;
    }

    .cja-navbar .navbar-collapse {
        padding: 12px 0;
    }

    .cja-brand {
        margin-right: 8px !important;
    }

    .cja-navbar .nav-link {
        padding: 9px 5px !important;
        white-space: normal;
    }

    .cja-navbar .nav-link.active::after {
        display: none;
    }

    .hero-section {
        display: block;
        background: #f7f4ed !important;
    }

    .hero-section > .container {
        width: 94% !important;
        padding: 24px 0 !important;
    }

    .hero-section .row {
        min-height: 0 !important;
    }

    .hero-section .row > div:first-child {
        display: block;
    }

    .hero-left-card {
        max-width: none !important;
        padding: 16px 0 24px !important;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }

    .hero-slider-wrapper {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-slider {
        height: auto !important;
        clip-path: none !important;
    }

    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: auto !important;
    }

    .hero-slider img {
        height: 300px !important;
        min-height: 0 !important;
    }

    .hero-image-title {
        right: 4% !important;
        bottom: 7% !important;
        width: min(360px, 65%) !important;
    }

    .cja-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cja-value-item:nth-child(2) {
        border-right: 0;
    }

    .cja-value-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--cja-line);
    }

    .cja-about-section .col-lg-5 {
        order: 1;
    }

    .cja-about-section .col-lg-4 {
        order: 2;
    }

    .cja-about-section .col-lg-3 {
        order: 3;
    }

    .cja-about-image {
        height: 260px;
    }

    .cja-leadership-members {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gallery-img {
        height: 130px !important;
    }

    .gallery-section .row:nth-of-type(2) .gallery-img {
        height: 100px !important;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 575.98px) {
    body {
        padding-top: 66px !important;
    }

    .cja-navbar {
        min-height: 64px !important;
    }

    .cja-brand {
        gap: 8px;
    }

    .cja-brand-mark {
        font-size: 31px !important;
    }

    .cja-brand-copy strong {
        font-size: 12px !important;
    }

    .cja-brand-copy small {
        max-width: 145px;
        font-size: 8px !important;
    }

    .cja-brand-copy em {
        display: none;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-section > .container {
        width: 100% !important;
        padding: 18px 18px 24px !important;
    }

    .hero-kicker {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.35 !important;
    }

    .hero-brand-line {
        margin-bottom: 10px !important;
        font-size: clamp(1.8rem, 8vw, 2.3rem) !important;
    }

    .hero-subtitle {
        margin-bottom: 17px !important;
        font-size: 13px !important;
    }

    .hero-slider img {
        height: 230px !important;
    }

    .hero-image-title {
        right: 3% !important;
        bottom: 7% !important;
        width: 78% !important;
        padding: 10px 12px 18px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .hero-image-quote {
        font-size: 29px !important;
    }

    .hero-image-title i {
        bottom: 7px;
        left: 12px;
        width: 25px;
    }

    .btn-hero,
    .cja-btn-gold {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .cja-values-strip {
        padding: 8px 0 !important;
    }

    .cja-value-item {
        gap: 7px;
        padding: 9px 6px;
    }

    .cja-value-icon {
        flex-basis: 32px;
        height: 32px;
        font-size: 17px;
    }

    .cja-value-item strong {
        font-size: 10px;
    }

    .cja-value-item small {
        font-size: 9px;
    }

    .cja-about-section,
    .executive-section,
    .committee-section,
    .gallery-section,
    .news-section,
    .video-gallery-section,
    .contact-section {
        padding: 28px 0 !important;
    }

    .cja-about-section .col-lg-5 {
        order: 1;
    }

    .cja-about-section .col-lg-4 {
        order: 2;
    }

    .cja-about-section .col-lg-3 {
        order: 3;
    }

    .cja-about-image {
        height: 190px !important;
    }

    .executive-person {
        gap: 10px;
        padding: 12px !important;
    }

    .executive-person img {
        width: 70px !important;
        height: 74px !important;
    }

    .executive-name {
        font-size: 14px !important;
    }

    .executive-speech {
        font-size: 10px !important;
    }

    .cja-leadership-top {
        gap: 8px;
        padding-bottom: 18px;
    }

    .cja-leadership-top .cja-member-card {
        width: 47%;
    }

    .cja-member-photo {
        height: 52px;
    }

    .cja-member-photo img {
        width: 44px;
        height: 44px;
    }

    .cja-member-card {
        padding: 0 3px 7px;
    }

    .cja-member-card h3 {
        font-size: 10px;
    }

    .cja-member-card p {
        font-size: 9px;
    }

    .cja-leadership-members {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 17px 9px;
    }

    .cja-leadership-members::before {
        display: none;
    }

    .cja-leadership-members .cja-member-card::before {
        top: -10px;
        height: 10px;
    }

    .gallery-section .row {
        --bs-gutter-x: .7rem;
        --bs-gutter-y: .7rem;
    }

    .gallery-img {
        height: 100px !important;
    }

    .gallery-section .row:nth-of-type(2) .gallery-img {
        height: 90px !important;
    }

    .gallery-section .row:nth-of-type(3) .gallery-img {
        height: 76px !important;
    }

    .gallery-caption {
        font-size: 9px !important;
    }

    .news-card-thumb img,
    .news-section .news-card img {
        height: 160px !important;
    }

    .news-card-title {
        font-size: 13px !important;
    }

    .video-title {
        font-size: 11px !important;
    }

    .contact-card {
        padding: 14px !important;
    }

    .footer-dev {
        margin-top: 6px;
        text-align: left !important;
    }
}


/* CJA hero image title: explicit closing quote (avoid a duplicate dark pseudo-quote) */
.hero-image-title .hero-image-title-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.hero-image-title .hero-image-quote-end {
    display: inline;
    margin-left: 3px;
    color: var(--cja-gold, #b58a3a) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.15em;
    font-weight: 700;
    line-height: inherit;
}


/* Opening and closing quote positions */
.hero-image-title {
    position: absolute !important;
}

.hero-image-title .hero-image-quote {
    color: var(--cja-gold) !important;
    align-self: flex-start;
}

.hero-image-title .hero-image-title-text {
    flex: 1;
    min-width: 0;
}

.hero-image-title .hero-image-quote-end {
    display: block;
    align-self: flex-end;
    margin-top: auto;
    color: var(--cja-gold) !important;
    font-family: Georgia, serif !important;
    font-size: 52px !important;
    font-weight: 700 !important;
    line-height: .9 !important;
}

/* Admin-managed Top Setup links strip */
.cja-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.cja-values-grid .cja-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 18px;
    border-right: 1px solid var(--cja-line);
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease;
}

.cja-values-grid .cja-value-item:last-child {
    border-right: 0;
}

.cja-values-grid .cja-value-item:hover {
    background: #faf7f0;
}

.cja-values-grid .cja-value-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.cja-values-grid .cja-value-item small {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cja-values-grid .cja-value-icon {
    flex: 0 0 42px;
}

@media (max-width: 767.98px) {
    .cja-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cja-values-grid .cja-value-item:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 420px) {
    .cja-values-grid {
        grid-template-columns: 1fr;
    }

    .cja-values-grid .cja-value-item {
        border-right: 0;
        border-bottom: 1px solid var(--cja-line);
    }

    .cja-values-grid .cja-value-item:last-child {
        border-bottom: 0;
    }
}


/* =========================================
   COMMITTEE — LARGER MEMBER PHOTOS
   ========================================= */

/* President and Secretary cards */
.cja-leadership-top .cja-member-photo {
    height: 150px !important;
    margin-bottom: 12px !important;
}

.cja-leadership-top .cja-member-photo img {
    width: 125px !important;
    height: 125px !important;
    max-width: 100%;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Other committee members */
.cja-leadership-members .cja-member-photo {
    height: 125px !important;
    margin-bottom: 10px !important;
}

.cja-leadership-members .cja-member-photo img {
    width: 105px !important;
    height: 105px !important;
    max-width: 100%;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Make committee cards taller and more spacious */
.cja-member-card {
    padding: 18px 12px !important;
}

.cja-leadership-top .cja-member-card {
    width: min(240px, 42%) !important;
    padding: 22px 14px !important;
}

.cja-member-card h3 {
    margin-top: 8px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.cja-member-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .cja-leadership-top .cja-member-photo {
        height: 115px !important;
    }

    .cja-leadership-top .cja-member-photo img {
        width: 95px !important;
        height: 95px !important;
    }

    .cja-leadership-members .cja-member-photo {
        height: 95px !important;
    }

    .cja-leadership-members .cja-member-photo img {
        width: 80px !important;
        height: 80px !important;
    }

    .cja-member-card h3 {
        font-size: 13px !important;
    }

    .cja-member-card p {
        font-size: 11px !important;
    }
}

/* =========================================
   CJA COMMITTEE TREE — corrected hierarchy
   Leaders first, then four members per row.
   ========================================= */
.cja-leadership-tree {
    position: relative;
    margin-top: 28px !important;
}

.cja-leadership-top {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 0 48px !important;
}

.cja-leadership-top::after {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    bottom: 24px;
    height: 1px;
    background: #d9c59e;
}

.cja-leadership-top::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 24px;
    width: 1px;
    background: #d9c59e;
}

.cja-leadership-top .cja-member-card {
    width: min(280px, 42%) !important;
    padding: 20px 14px 16px !important;
    background: #faf7f0 !important;
}

.cja-tree-row {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
    padding-top: 28px;
}

.cja-tree-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: #d9c59e;
}

.cja-tree-row .cja-member-card {
    position: relative;
    min-width: 0;
    padding: 18px 12px 14px !important;
}

.cja-tree-row .cja-member-card::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    width: 1px;
    height: 28px;
    background: #d9c59e;
}

/* Continue the tree between consecutive rows. */
.cja-tree-row + .cja-tree-row {
    margin-top: 18px !important;
}

.cja-tree-row + .cja-tree-row::after {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: #d9c59e;
}

.cja-member-photo {
    height: 132px !important;
    margin: 0 auto 10px !important;
}

.cja-member-photo img {
    width: 108px !important;
    height: 108px !important;
    max-width: 100%;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.cja-leadership-top .cja-member-photo {
    height: 150px !important;
}

.cja-leadership-top .cja-member-photo img {
    width: 125px !important;
    height: 125px !important;
}

.cja-member-card h3 {
    margin: 6px 0 4px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.cja-member-card p {
    font-size: 13px !important;
    line-height: 1.55 !important;
} 

@media (max-width: 767.98px) {
    .cja-leadership-top {
        gap: 10px !important;
        padding-bottom: 38px !important;
    }

    .cja-leadership-top .cja-member-card {
        width: 47% !important;
        padding: 14px 8px !important;
    }

    .cja-tree-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .cja-tree-row::before,
    .cja-tree-row .cja-member-card::before,
    .cja-tree-row + .cja-tree-row::after {
        display: none;
    }

    .cja-member-photo {
        height: 100px !important;
    }

    .cja-member-photo img {
        width: 84px !important;
        height: 84px !important;
    }

    .cja-leadership-top .cja-member-photo {
        height: 112px !important;
    }

    .cja-leadership-top .cja-member-photo img {
        width: 94px !important;
        height: 94px !important;
    }

    .cja-member-card h3 { font-size: 13px !important; }
    .cja-member-card p { font-size: 11px !important; }
}



/* =========================================
   CJA COMMITTEE TREE — VISUAL ROW LAYOUT
   Row 1: 2 members; row 2: 3 members; remaining rows: 4 members.
   Member order is supplied by database sort_order.
   ========================================= */
.committee-section .cja-leadership-tree {
    --cja-tree-line: #d9b56e;
    --cja-card-border: #e7d3ad;
    margin-top: 26px;
}

.committee-section .cja-leadership-members {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: 28px;
    padding-top: 0;
}

.committee-section .cja-leadership-members:first-child {
    margin-top: 0;
}

.committee-section .cja-tree-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 52%;
    margin-right: auto;
    margin-left: auto;
}

.committee-section .cja-tree-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 76%;
    margin-right: auto;
    margin-left: auto;
}

.committee-section .cja-tree-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.committee-section .cja-leadership-members::before {
    top: -10px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: var(--cja-tree-line);
}

.committee-section .cja-leadership-members:first-child::before {
    display: none;
}

.committee-section .cja-leadership-members .cja-member-card {
    position: relative;
    min-width: 0;
    padding: 14px 10px 13px;
    border: 1px solid var(--cja-card-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #faf4e7 0, #faf4e7 42%, #fff 42%, #fff 100%);
    box-shadow: 0 5px 16px rgba(79, 58, 22, .055);
}

.committee-section .cja-leadership-members .cja-member-card::before {
    top: -14px;
    height: 14px;
    background: var(--cja-tree-line);
}

.committee-section .cja-leadership-members:first-child .cja-member-card::before {
    display: none;
}

.committee-section .cja-leadership-members .cja-member-photo {
    height: 92px;
    margin-bottom: 8px;
}

.committee-section .cja-leadership-members .cja-member-photo img {
    width: 78px;
    height: 78px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--cja-card-border), 0 3px 10px rgba(0,0,0,.08);
}

.committee-section .cja-leadership-members .cja-member-card h3 {
    margin: 5px 0 3px;
    color: #172233;
    font-size: 25px !important;
    line-height: 1.55;
}

.committee-section .cja-leadership-members .cja-member-card p {
    color: #916a27;
    font-size: 18px !important;
    line-height: 1.55;
}
 
@media (max-width: 767.98px) {
    .committee-section .cja-tree-row-2,
    .committee-section .cja-tree-row-3,
    .committee-section .cja-tree-row-4 {
        width: 100%;
        gap: 16px 10px;
    }
    .committee-section .cja-tree-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .committee-section .cja-tree-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .committee-section .cja-tree-row-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .committee-section .cja-leadership-members::before {
        display: none;
    }
    .committee-section .cja-leadership-members .cja-member-photo {
        height: 66px;
    }
    .committee-section .cja-leadership-members .cja-member-photo img {
        width: 58px;
        height: 58px;
    }
    .committee-section .cja-leadership-members .cja-member-card {
        padding: 10px 5px;
    }
    .committee-section .cja-leadership-members .cja-member-card h3 {
        font-size: 11px;
    }
    .committee-section .cja-leadership-members .cja-member-card p {
        font-size: 9px;
    }
}

/* =========================================
   CJA COMMITTEE TREE — CENTERED ROWS
   2 members: centered
   3 members: centered
   4 members: full row
   Database sort_order remains unchanged.
   ========================================= */

.committee-section .cja-leadership-tree .cja-tree-row {
    display: grid !important;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Row with 2 members */
.committee-section .cja-tree-row:has(> .cja-member-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 50%;
}

/* Row with 3 members */
.committee-section .cja-tree-row:has(> .cja-member-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 75%;
}

/* Row with 4 members */
.committee-section .cja-tree-row:has(> .cja-member-card:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100%;
}

/* Tree connectors */
.committee-section .cja-tree-row::before {
    left: 12.5%;
    right: 12.5%;
}

/* Responsive layout */
@media (max-width: 767.98px) {
    .committee-section .cja-tree-row {
        width: 100% !important;
        gap: 12px;
    }

    .committee-section .cja-tree-row:has(> .cja-member-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .committee-section .cja-tree-row:has(> .cja-member-card:nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .committee-section .cja-tree-row:has(> .cja-member-card:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================
   CJA PHOTO GALLERY — WARM GOLD EDITORIAL GRID
   Keeps the existing Bootstrap carousel lightbox.
   ========================================= */

.gallery-section {
    position: relative;
    padding: 52px 0 44px !important;
    overflow: hidden;
    background: #fbf9f4 !important;
    color: var(--cja-ink) !important;
}

.gallery-section > .container {
    position: relative;
    z-index: 1;
}

.gallery-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 24px;
    text-align: center;
}

.gallery-heading-ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 5px;
    color: var(--cja-gold);
    font-size: 23px;
    line-height: 1;
}

.gallery-heading-ornament::before,
.gallery-heading-ornament::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 0 12px;
    background: var(--cja-gold);
}

.gallery-section .gallery-heading .section-title {
    width: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #182a3b !important;
    font-family: "Noto Serif Bengali", serif !important;
    font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

.gallery-section .gallery-heading .section-title::after {
    display: none !important;
}

.gallery-heading h5 {
    margin: 0 !important;
    padding: 0 !important;
    color: #77736d !important;
    font-size: clamp(.9rem, 1.4vw, 1.1rem) !important;
    font-weight: 400 !important;
    line-height: 1.7;
}

.gallery-heading-divider {
    display: block;
    margin-top: 9px;
    color: var(--cja-gold);
    font-size: 10px;
    letter-spacing: 5px;
}

.cja-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cja-gallery-grid .gallery-item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5d3ad;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: zoom-in;
    box-shadow: 0 3px 10px rgba(68, 48, 17, .045);
    isolation: isolate;
}

.cja-gallery-grid .gallery-img {
    display: block;
    width: 100% !important;
    height: 250px !important;
    margin: 0;
    border-radius: 9px !important;
    object-fit: cover !important;
    transition: transform .35s ease, filter .35s ease;
}

.cja-gallery-grid .gallery-item:hover .gallery-img,
.cja-gallery-grid .gallery-item:focus-visible .gallery-img {
    transform: scale(1.045);
    filter: brightness(.82);
}

.gallery-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(181, 138, 58, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--cja-gold-dark);
    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    pointer-events: none;
    transition: transform .25s ease, background .25s ease;
}

.cja-gallery-grid .gallery-item:hover .gallery-zoom-icon {
    transform: scale(1.08);
    background: #fff8e9;
}

.cja-gallery-grid .gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    padding: 28px 12px 10px;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(17, 20, 24, .78));
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.55;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.cja-gallery-grid .gallery-item:hover .gallery-caption,
.cja-gallery-grid .gallery-item:focus-visible .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.gallery-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 25px;
    border: 1px solid var(--cja-gold);
    border-radius: 999px;
    background: var(--cja-gold);
    color: #fff;
    font-family: "Noto Serif Bengali", serif;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 13px rgba(95, 68, 22, .18);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gallery-more-button span {
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: .7;
}

.gallery-more-button:hover,
.gallery-more-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--cja-gold-dark);
    background: var(--cja-gold-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(95, 68, 22, .22);
}

/* Keep the carousel lightbox dark and focused on the selected photo. */
#galleryModal .modal-content {
    overflow: hidden;
    border-radius: 12px;
    background: #151719 !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

#galleryModal .modal-header {
    padding: 14px 18px;
}

#galleryModal .modal-title {
    color: #fff;
    font-size: 16px;
}

#galleryModal .modal-body {
    padding: 0 18px 18px;
}

#galleryModal .modal-gallery-img {
    width: 100%;
    max-height: min(72vh, 760px);
    object-fit: contain;
    background: #101112;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 9%;
    opacity: 1;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid rgba(181, 138, 58, .5);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .94);
    filter: none;
}

@media (max-width: 991.98px) {
    .cja-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .cja-gallery-grid .gallery-img {
        height: 160px !important;
    }
}

@media (max-width: 575.98px) {
    .gallery-section {
        padding: 36px 0 32px !important;
    }

    .gallery-heading {
        margin-bottom: 18px;
    }

    .gallery-heading-ornament::before,
    .gallery-heading-ornament::after {
        width: 38px;
        margin: 0 8px;
    }

    .cja-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cja-gallery-grid .gallery-img {
        height: 125px !important;
    }

    .gallery-zoom-icon {
        top: 7px;
        right: 7px;
        width: 29px;
        height: 29px;
        font-size: 22px;
    }

    .cja-gallery-grid .gallery-caption {
        padding: 24px 8px 7px;
        font-size: 10px !important;
        opacity: 1;
        transform: none;
    }

    #galleryModal .modal-dialog {
        margin: 8px;
    }

    #galleryModal .modal-body {
        padding: 0 8px 10px;
    }

    #galleryModal .modal-gallery-img {
        max-height: 68vh;
    }
}
 