/* Source: templates/taxonomy-organization.php block 1 */
/* =========================================================
   ORGANIZATION SINGLE PAGE BASE
========================================================= */

.org-single-page {
    background: #10131b;
    color: #fff;
}

.org-single-section {
    position: relative;
    padding: 90px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.org-single-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.org-single-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.org-bg-blue {
    background-image: url('/wp-content/uploads/2026/05/blue-gradient-bg.webp');
}

.org-bg-red {
    background-image: url('/wp-content/uploads/2026/05/red-gradient-bg.webp');
}

/* =========================================================
   HERO
========================================================= */

.org-single-hero {
    text-align: center;
}

.org-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.org-hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.org-hero-logo img {
    max-width: 240px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.32));
}

.org-hero-badge,
.org-hero-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 50px rgba(0,0,0,0.24);
    overflow: hidden;
}

.org-hero-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.org-hero-initial {
    color: #fff;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.org-title {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 5vw, 76px);
    line-height: 0.95;
    font-weight: 900;
}

.org-description {
    max-width: 720px;
    margin: 20px auto 0;
    color: rgba(255,255,255,0.84);
    font-size: 17px;
    line-height: 1.65;
}

/* Simple hero links, not pills */
.org-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.org-links a {
    position: relative;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.org-links a:hover {
    color: #fff;
}

.org-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.25s ease;
}

.org-links a:hover::after {
    width: 100%;
}

/* =========================================================
   SECTION HEADER
========================================================= */

.org-section-header {
    max-width: 760px;
    margin-bottom: 30px;
}

.org-section-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
}

.org-section-intro {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   EVENT CONTROLS
========================================================= */

.org-event-controls {
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
}

.org-search-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
}

.org-search-input::placeholder {
    color: rgba(255,255,255,0.62);
}

.org-search-input:focus {
    border-color: rgba(255,255,255,0.45);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

.org-control-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.org-filter-button,
.org-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.org-filter-button:hover,
.org-sort-button:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}

.org-filter-button.active,
.org-sort-button.active {
    background: #1D4486;
    border-color: #1D4486;
    color: #fff;
}

/* =========================================================
   EVENTS GRID
========================================================= */

.org-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    transition: opacity 0.25s ease;
}

.org-events-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.org-grid-status {
    display: none;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.5;
}

.org-grid-status.is-visible {
    display: block;
}

/* =========================================================
   EVENT CARD
   Supports AJAX classes: .event-card, .event-img, .event-body, .badge
========================================================= */

.org-events-grid .event-card {
    display: block;
    overflow: hidden;
    min-height: 100%;
    border-radius: 18px;
    background: #fff;
    color: #1C1C1C;
    text-decoration: none;
    border: 1px solid rgba(28, 28, 28, 0.08);
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.org-events-grid .event-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 4px rgba(29, 68, 134, 0.08),
        0 18px 44px rgba(0,0,0,0.18);
    border-color: rgba(29, 68, 134, 0.25);
    text-decoration: none;
}

.org-events-grid .event-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f3f3f3;
}

.org-events-grid .event-img-placeholder {
    background:
        linear-gradient(135deg, rgba(29,68,134,0.16), rgba(193,33,53,0.10)),
        #f3f3f3;
}

.org-events-grid .event-body {
    padding: 18px;
    color: #1C1C1C;
}

.org-events-grid .event-body h3,
.org-events-grid .event-body h2,
.org-events-grid .event-body .event-title {
    margin: 0 0 10px;
    color: #1D4486;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.org-events-grid .event-body p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.org-events-grid .event-date {
    margin: 10px 0 8px;
    color: #1C1C1C;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.org-events-grid .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.org-events-grid .badge.live,
.org-events-grid .live {
    background: #1a7f37;
    color: #fff;
}

.org-events-grid .badge.upcoming,
.org-events-grid .upcoming {
    background: #1D4486;
    color: #fff;
}

.org-events-grid .badge.past,
.org-events-grid .past {
    background: #616161;
    color: #fff;
}

/* =========================================================
   EMPTY STATE / LOAD MORE
========================================================= */

.org-empty-state {
    display: none;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    color: #1C1C1C;
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
    text-align: left;
}

.org-empty-state.is-visible {
    display: block;
}

.org-empty-state h2 {
    margin: 0 0 8px;
    color: #1D4486;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.org-empty-state p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.org-load-more {
    display: none;
    min-height: 46px;
    margin: 28px auto 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1C1C1C;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.org-load-more:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

/* =========================================================
   PEOPLE SECTION
========================================================= */

.org-people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.org-person-card {
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    color: #1C1C1C;
    text-align: center;
    border: 1px solid rgba(28, 28, 28, 0.08);
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
}

.org-person-img {
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(29,68,134,0.10);
}

.org-person-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.org-person-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(29,68,134,0.10);
    color: #1D4486;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.org-person-name {
    margin: 0 0 7px;
    color: #1D4486;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.org-person-role {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.org-person-email {
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .org-people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .org-single-section {
        padding: 64px 20px;
    }

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

@media (max-width: 700px) {
    .org-people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .org-title {
        font-size: 40px;
    }

    .org-event-controls {
        padding: 14px;
    }

    .org-filter-button,
    .org-sort-button {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .org-events-grid {
        grid-template-columns: 1fr;
    }

    .org-people-grid {
        grid-template-columns: 1fr;
    }
}
