/* ============================================================
   ABOUT PAGE — All sections
   Matches Figma design node: 2027:1221
   ============================================================ */

/* Page wrapper — allow full bleed sections, sections manage own padding */
.glory-about-page-wrapper {
    background-color: var(--color-medium-gray) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.glory-about-page {
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* ============================================================
   1. VALUES SECTION
   ============================================================ */

.glory-about-values-section {
    padding: var(--section-padding-y, clamp(48px, 6vw, 80px)) 0;
}

.glory-about-values-section .glory-container {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}

/* "Ми творимо майбутнє..." heading */
.glory-about-values-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

.glory-about-values-title {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: var(--title-fluid, clamp(28px, 4vw, 40px));
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    max-width: 700px;
    line-height: 1.15;
    margin: 0;
}

/* Three value icons row */
.glory-about-icons-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* Each icon column */
.glory-about-icon-item {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.glory-about-icon-img-wrap {
    width: 120px;
    height: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.glory-about-icon-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.glory-about-icon-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.glory-about-icon-title {
    font-family: '5by7', sans-serif;
    font-size: 40px;
    font-weight: normal;
    color: var(--color-black);
    text-transform: uppercase;
    margin: 0;
    line-height: normal;
}

.glory-about-icon-desc {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #19181a;
    margin: 0;
    line-height: normal;
}


/* ============================================================
   2. FOUNDERS SECTION
   ============================================================ */

.glory-about-founders-section {
    padding-top: var(--section-padding-y-compact, clamp(32px, 4vw, 48px));
    padding-bottom: 10px;
}

.glory-about-founders-section .glory-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Left info card — white bg */
.glory-about-founders-info {
    flex: 1 0 0;
    background: var(--color-white);
    border-radius: var(--border-radius-lg, 20px);
    padding: var(--card-padding, clamp(20px, 3vw, 40px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 48px);
}

.glory-about-founders-label {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #71717A;
    margin: 0;
    line-height: 1.4;
}

.glory-about-founders-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glory-about-founders-name {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.glory-about-founders-name p {
    margin: 0;
}

.glory-about-founders-list {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3F3F46;
    line-height: 1.45;
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glory-about-founders-list li {
    margin: 0;
}

/* Right photo */
.glory-about-founders-photo {
    flex: 0 0 540px;
    border-radius: var(--border-radius-lg, 20px);
    overflow: hidden;
    max-height: 540px;
}

.glory-about-founders-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius-lg, 20px);
    display: block;
}


/* ============================================================
   3. COUNCIL SECTION
   ============================================================ */

.glory-about-council-section {
    padding-top: 10px;
    padding-bottom: var(--section-padding-y-compact, clamp(32px, 4vw, 48px));
}

.glory-about-council-section .glory-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Right: dark card with stats (Опікунська рада) */
.glory-about-council-info {
    flex: 0 0 540px;
    min-width: 0;
    background: var(--color-dark-bg);
    border-radius: var(--border-radius-lg, 20px);
    padding: var(--card-padding, clamp(20px, 3vw, 40px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    color: var(--color-white);
}

.glory-about-council-title {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: normal;
    text-align: center;
}

.glory-about-council-stats {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.glory-about-council-stat {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    max-width: 308px;
}

/* Glowing large number */
.glory-about-stat-number {
    font-family: '5by7', sans-serif;
    font-size: 70px;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
    text-shadow:
        0px 0px 3.2px white,
        0px 2px 3.1px rgba(255, 255, 255, 0.3),
        0px 3.664px 13.3px rgba(255, 255, 255, 0.69);
    filter: blur(0.2px);
}

.glory-about-stat-label {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--color-white);
    line-height: normal;
}

/* Left: white card with council head (Максим Коляденко) */
.glory-about-council-head-card {
    flex: 1 0 0;
    min-width: 0;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
}

.glory-about-head-photo-wrap {
    flex: 0 0 44%;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 24px;
}

.glory-about-head-photo {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.glory-about-head-info {
    flex: 1 1 56%;
    min-width: 0;
    padding: 44px 36px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glory-about-council-head-card .glory-about-member-role {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #71717A;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.glory-about-council-head-card .glory-about-member-name {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 22px 0;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.glory-about-head-bio-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.glory-about-head-bio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #3F3F46;
}

.glory-about-bio-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #71717A;
    margin-top: 1px;
}

.glory-about-bio-text {
    flex: 1;
    min-width: 0;
}


/* ============================================================
   SHARED: Avatar + member info (used in council & team)
   ============================================================ */

.glory-about-member-avatar {
    width: 160px;
    height: 160px;
    border-radius: 80px;
    overflow: hidden;
    flex-shrink: 0;
}

.glory-about-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 80px;
    display: block;
}

.glory-about-member-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.glory-about-member-name {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    line-height: normal;
}

.glory-about-member-role {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #565656;
    margin: 0;
    line-height: normal;
}


/* ============================================================
   4. TEAM SECTION
   ============================================================ */

.glory-about-team-section {
    padding: var(--section-padding-y, clamp(48px, 6vw, 80px)) 0;
    overflow-x: hidden; /* Prevent page-level horizontal scroll */
}

.glory-about-team-section .glory-container {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    align-items: flex-start; /* Align header to left */
    overflow: visible; /* Allow slider content to bleed out */
}

.glory-about-team-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
}

.glory-about-team-title {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: var(--title-fluid, clamp(28px, 4vw, 40px));
    font-weight: 400;
    color: var(--color-black);
    letter-spacing: -1.6px;
    margin: 0;
    line-height: 1.15;
}

/* Slider container */
.glory-about-team-slider {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Track starts at container left */
    gap: 40px;
    width: 100%;
    overflow: visible; /* Don't crop cards on the right */
}

/* Ensure pagination container stays centered regardless of slider alignment */
.glory-about-team-slider .glory-pagination-container {
    align-self: center;
}

/* Scrollable track */
.glory-about-team-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

/* Individual member card */
.glory-about-team-member {
    flex: 0 0 320px; /* Fixed width (weight) */
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glory-about-team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(136, 31, 255, 0.1);
    border-color: rgba(136, 31, 255, 0.2);
}


/* ============================================================
   5. PARTNERS SECTION
   ============================================================ */

.glory-about-partners-section {
    padding: var(--section-padding-y, clamp(48px, 6vw, 80px)) 0;
}

.glory-about-partners-section .glory-container {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.glory-about-partners-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.glory-about-partners-title {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: var(--title-fluid, clamp(28px, 4vw, 40px));
    font-weight: 400;
    color: var(--color-black);
    letter-spacing: -1.6px;
    margin: 0;
    line-height: 1.15;
}

/* "Стати партнером" pill button */
.glory-about-partner-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
    padding: 10px 5px 10px 30px;
    background: var(--color-light-gray);
    border-radius: var(--border-radius-full, 9999px);
    text-decoration: none;
    color: var(--color-black);
    transition: background 0.25s ease;
}

.glory-about-partner-cta:hover {
    background: #e0e0e0;
}

.glory-about-partner-cta span {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.glory-about-partner-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Partners grid — 4 columns */
.glory-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.glory-partner-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

a.glory-partner-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.glory-partner-card:hover,
a.glory-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glory-partner-card-media {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.glory-partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.glory-partner-avatar {
    width: 180px;
    height: 180px;
    border-radius: 100px;
    overflow: hidden;
}

.glory-partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glory-partner-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glory-partner-card-name {
    font-family: 'e-Ukraine Head', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    color: #000000;
}

.glory-partner-card-desc {
    font-family: 'e-Ukraine Head', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    color: #565656;
}

/* Smooth scroll for in-page anchors */
html {
    scroll-behavior: smooth;
}

/* ============================================================
   7. CONTACT / PARTNER FORM (Долучіться до змін)
   ============================================================ */

.glory-about-join-section {
    padding: var(--section-padding-y, clamp(48px, 6vw, 80px)) 0;
}

.glory-about-join-card {
    background: var(--color-dark-bg, #18181b);
    color: #ffffff;
    border-radius: var(--border-radius-lg, 20px);
    padding: var(--card-padding, clamp(24px, 4vw, 48px));
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.glory-about-join-header {
    text-align: center;
    margin-bottom: 40px;
}

.glory-about-join-title {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: var(--title-fluid, clamp(28px, 4vw, 40px));
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.glory-about-join-subtitle {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.4;
}

.glory-join-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.glory-join-form-full {
    grid-column: 1 / -1;
}

.glory-join-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glory-join-form-group label {
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #d4d4d8;
}

.glory-join-form-group input,
.glory-join-form-group select,
.glory-join-form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm, 8px);
    padding: 14px 18px;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.glory-join-form-group input:focus,
.glory-join-form-group select:focus,
.glory-join-form-group textarea:focus {
    border-color: #4a4aff;
    background: rgba(255, 255, 255, 0.12);
}

.glory-join-form-group input::placeholder,
.glory-join-form-group textarea::placeholder {
    color: #71717a;
}

.glory-join-form-group select option {
    background: #18181b;
    color: #ffffff;
}

.glory-join-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.glory-join-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.glory-join-submit-btn {
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #000000;
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.glory-join-submit-btn:hover {
    background: #f4f4f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.glory-join-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.glory-form-status-msg {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--e-ukraine), sans-serif;
}

.glory-form-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.glory-form-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

@media (max-width: 768px) {
    .glory-about-join-card {
        padding: 40px 24px;
        border-radius: 18px;
    }
    .glory-about-join-title {
        font-size: 30px;
    }
    .glory-about-join-subtitle {
        font-size: 15px;
    }
    .glory-join-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

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

@media (max-width: 1024px) {
    .glory-about-founders-photo,
    .glory-about-council-info {
        flex: none;
        width: 100%;
        max-height: 400px;
    }

    .glory-about-founders-section .glory-container,
    .glory-about-council-section .glory-container {
        flex-direction: column;
        gap: 20px;
    }

    .glory-about-council-head-card,
    .glory-about-council-info {
        flex: none;
        width: 100%;
        max-height: none;
    }

    .glory-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .glory-about-icons-row {
        flex-direction: column;
        gap: 10px;
    }

    .glory-about-icon-item {
        flex-direction: row;
        text-align: left;
        padding: 16px;
    }

    .glory-about-icon-img-wrap {
        width: 80px;
        height: 96px;
        flex-shrink: 0;
    }

    .glory-about-icon-text {
        align-items: flex-start;
        gap: 8px;
    }

    .glory-about-icon-title {
        font-size: 28px;
    }

    .glory-about-founders-info {
        gap: 32px;
    }

    .glory-about-council-head-card {
        flex-direction: column;
    }

    .glory-about-head-photo-wrap {
        flex: none;
        width: 100%;
        height: 320px;
        padding-top: 20px;
    }

    .glory-about-head-info {
        padding: 24px 24px 36px;
    }

    .glory-about-council-head-card .glory-about-member-name,
    .glory-about-founders-name {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    .glory-about-council-head-card .glory-about-member-name {
        margin-bottom: 16px;
    }

    .glory-about-stat-number {
        font-size: 56px;
    }

    .glory-partners-grid {
        grid-template-columns: 1fr;
    }

    /* Team: show 320px fixed width if possible, or scroll */
    .glory-about-team-member {
        flex: 0 0 320px;
        min-width: 320px;
    }
}

@media (max-width: 480px) {

    .glory-about-values-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Team: hide duplicate mobile style */



    .glory-about-founders-list {
        font-size: 14px;
    }


    .glory-about-stat-number {
        font-size: 48px;
    }

    .glory-about-partner-cta {
        padding: 8px 5px 8px 20px;
        height: 50px;
        gap: 12px;
    }

    .glory-about-partner-cta span {
        font-size: 14px;
    }

    .glory-about-partner-cta-icon {
        width: 36px;
        height: 36px;
    }

    .glory-partners-grid {
        grid-template-columns: 1fr;
    }

    /* Team: show 1 card at a time */
    .glory-about-team-member {
        flex: 0 0 100%;
        min-width: 100%;
    }
}