/* Source: templates/page-organizations.php block 1 */
/* =========================================================
   ORGANIZATIONS PAGE BASE
========================================================= */

.org-page {
    position: relative;
    min-height: 100vh;
    padding: 90px 20px;
    background-color: #10131b;
    background-image: url('/wp-content/uploads/2026/05/blue-gradient-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

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

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

/* =========================================================
   PAGE HEADER
========================================================= */

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

.org-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

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

/* =========================================================
   FILTER BAR
========================================================= */

.org-filter-panel {
    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-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.org-filter-button,
.org-more-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, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

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

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

.org-filter-button:focus-visible,
.org-more-button:focus-visible,
.org-more-dropdown button:focus-visible {
    outline: 3px solid rgba(255,255,255,0.45);
    outline-offset: 3px;
}

/* =========================================================
   MORE DROPDOWN
========================================================= */

.org-more-wrapper {
    position: relative;
}

.org-more-button {
    gap: 6px;
}

.org-more-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: 220px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,0.24);
    z-index: 20;
}

.org-more-wrapper.open .org-more-dropdown {
    display: block;
}

.org-more-dropdown button {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(28,28,28,0.08);
    background: #fff;
    color: #1C1C1C;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
}

.org-more-dropdown button:last-child {
    border-bottom: 0;
}

.org-more-dropdown button:hover,
.org-more-dropdown button.active {
    background: rgba(29,68,134,0.08);
    color: #1D4486;
}

/* =========================================================
   GRID STATUS
========================================================= */

.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;
}

/* =========================================================
   ORGANIZATION GRID
========================================================= */

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

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

/* =========================================================
   ORGANIZATION CARD
========================================================= */

.org-card {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 22px;
    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-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-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/* Badge image or fallback initial */
.org-badge,
.org-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 999px;
    background: rgba(29,68,134,0.10);
}

.org-badge {
    overflow: hidden;
}

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

.org-logo-placeholder {
    color: #1D4486;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

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

.org-meta {
    margin: 0 0 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.org-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #1D4486;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.org-card-footer::after {
    content: "→";
    transition: transform 0.25s ease;
}

.org-card:hover .org-card-footer::after {
    transform: translateX(3px);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.org-empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    color: #1C1C1C;
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
}

.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;
}

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

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

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

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

    .org-filter-panel {
        padding: 14px;
    }

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

    .org-more-wrapper,
    .org-more-button {
        width: 100%;
    }

    .org-more-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

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

    .org-card {
        min-height: 150px;
        padding: 20px;
    }
}
