/* =========================================
   Jo Academy Page — Section 2
   ========================================= */

.template-joacademypage .section2 {
    background-color: #ffffff;
}

.template-joacademypage .section2-inner {
    padding: clamp(64px, 8vw, 96px) clamp(24px, 6vw, 100px);
}

.template-joacademypage .section2-layout {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    max-width: 1360px;
    margin: 0 auto;
}

.template-joacademypage .section2-brand-col {
    flex: 0 0 min(240px, 24%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.template-joacademypage .section2-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.template-joacademypage .section2-logo {
    display: block;
    width: min(250px, 100%);
    height: auto;
}

.template-joacademypage .section2-content-col {
    flex: 1 1 0;
    min-width: 0;
}

.template-joacademypage .section2-summary,
.template-joacademypage .section2-summary p {
    margin: 0;
    color: #6b6b6b;
    text-align: justify;
    font-family: "Granadia-Book", "Granadia", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 38.8px;
    letter-spacing: -0.18px;
}

.template-joacademypage .section2-summary p + p {
    margin-top: 0;
}

@media (max-width: 1199.98px) {
    .template-joacademypage .section2-inner {
        padding: 80px clamp(32px, 6vw, 80px);
    }

    .template-joacademypage .section2-brand-col {
        flex-basis: min(200px, 26%);
    }
}

@media (max-width: 991.98px) {
    .template-joacademypage .section2-inner {
        padding: 64px 48px;
    }

    .template-joacademypage .section2-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .template-joacademypage .section2-brand-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
    }

    .template-joacademypage .section2-content-col {
        width: 100%;
        max-width: 820px;
    }
}

@media (max-width: 575.98px) {
    .template-joacademypage .section2-inner {
        padding: 48px 24px;
    }

    .template-joacademypage .section2-logo {
        width: min(200px, 72vw);
    }

    .template-joacademypage .section2-summary,
    .template-joacademypage .section2-summary p {
        font-size: 18px;
        line-height: 32px;
        letter-spacing: -0.14px;
    }
}

/* =========================================
   Jo Academy Page — Educational Scope
   ========================================= */

.template-joacademypage .edu-scope-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.template-joacademypage .edu-scope-bg,
.template-joacademypage .edu-scope-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.template-joacademypage .edu-scope-bg {
    background-color: #293579;
    background-image:
        linear-gradient(180deg, rgba(41, 53, 121, 0.35) 0%, rgba(21, 37, 50, 0.85) 100%),
        url("../../images/joacademy/edu-scope-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.template-joacademypage .edu-scope-overlay {
    background: #293579e5;
}

.template-joacademypage .edu-scope-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 40px 96px;
    text-align: center;
}

.template-joacademypage .edu-scope-header {
    max-width: 100%;
    margin: 0 0 56px;
    text-align: start;
}

.template-joacademypage .edu-scope-title {
    margin: 0 0 20px;
    font-family: var(--font-family-bold, "Granadia-Bold", Helvetica, Arial, sans-serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
}

.template-joacademypage .edu-scope-subtitle {
    margin: 0;
    font-family: var(--font-family-base, "Granadia-Book", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.template-joacademypage .edu-scope-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 80px;
    margin-bottom: 56px;
    padding-top: 45px;
}

.template-joacademypage .edu-scope-cards .ula-framed-card__card {
    min-height: 340px;
}

.template-joacademypage .edu-scope-cards .ula-framed-card__card-body {
    padding: 50px 24px 28px;
}

.template-joacademypage .edu-scope-cards .ula-framed-card__card-title {
    margin-top: 24px;
    text-align: start;
}

.template-joacademypage .scope-card {
    position: relative;
    min-width: 0;
}

.template-joacademypage .scope-card-line-box {
    position: relative;
    width: 100%;
    max-width: 418px;
    min-height: 346px;
    aspect-ratio: 418 / 346;
    margin: 0 auto;
    padding-block: 44px 32px;
    padding-inline: 16px 28px;
    text-align: start;
    background: transparent;
    box-sizing: border-box;
}

.template-joacademypage .scope-card-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.template-joacademypage .scope-card-icon-slot {
    position: absolute;
    top: 0;
    inset-inline-start: 56px;
    inset-inline-end: auto;
    transform: translate(-50%, -52%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    color: #ffffff;
    background: transparent;
    z-index: 2;
}

.template-joacademypage .scope-card-icon {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.template-joacademypage .scope-card-content {
    position: relative;
    z-index: 1;
}

.template-joacademypage .scope-card-title {
    margin: 0 0 2px;
    font-family: var(--font-family-bold, "Granadia-Bold", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-align: start;
}

.template-joacademypage .scope-card-summary,
.template-joacademypage .scope-card-summary p {
    margin: 0;
    font-family: var(--font-family-base, "Granadia-Book", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-align: start;
}

.template-joacademypage .edu-scope-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    max-width: 960px;
    margin: 0 auto;
}

.template-joacademypage .edu-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.template-joacademypage .edu-point-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    color: #ffffff;
}

.template-joacademypage .edu-point-icon {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.template-joacademypage img.edu-point-icon {
    filter: brightness(0) invert(1);
}

.template-joacademypage .edu-point-title {
    margin: 0;
    max-width: 10.5rem;
    font-family: var(--font-family-base, "Granadia-Book", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: #ffffff;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 991.98px) {
    .template-joacademypage .edu-scope-inner {
        padding: 72px 32px 80px;
    }

    .template-joacademypage .edu-scope-title {
        font-size: 32px;
    }

    .template-joacademypage .edu-scope-cards {
        grid-template-columns: 1fr;
        column-gap: 24px;
        row-gap: clamp(80px, 12vw, 80px);
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .template-joacademypage .scope-card {
        max-width: none;
        width: 100%;
    }

    .template-joacademypage .edu-scope-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .template-joacademypage .edu-point-title {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .template-joacademypage .edu-scope-inner {
        padding: 56px 20px 64px;
    }

    .template-joacademypage .edu-scope-title {
        font-size: 28px;
    }

    .template-joacademypage .edu-scope-subtitle {
        font-size: 16px;
    }

    .template-joacademypage .edu-scope-points {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
    }

    .template-joacademypage .edu-point-icon-wrap {
        width: 56px;
        height: 56px;
    }

    .template-joacademypage .edu-point-icon {
        width: 40px;
        height: 40px;
    }

    .template-joacademypage .edu-point-title {
        font-size: 15px;
        max-width: 9rem;
    }
}

/* =========================================
   Jo Academy Page — Market Impact
   ========================================= */

.template-joacademypage .market-impact-section {
    padding: clamp(3.5rem, 3rem, 5rem) 48px;
    background: #68b8f2;
    color: #0b1f4f;
    text-align: center;
}

.template-joacademypage .market-impact-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.template-joacademypage .market-impact-title {
    margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
    font-family: var(--font-family-bold, "Granadia-Bold", Helvetica, Arial, sans-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0b1f4f;
}

.template-joacademypage .market-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.template-joacademypage .market-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.template-joacademypage .market-number {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-family-bold, "Granadia-Bold", Helvetica, Arial, sans-serif);
    font-size: clamp(2.75rem, 5vw, 3.375rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    text-align: center;
}

.template-joacademypage .market-label {
    margin: 0;
    max-width: 20rem;
    font-family: var(--font-family-base, "Granadia-Book", Helvetica, Arial, sans-serif);
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    font-weight: 400;
    line-height: 1.25;
    color: #0b1f4f;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 991.98px) {
    .template-joacademypage .market-impact-section {
        padding: 3rem 32px;
    }

    .template-joacademypage .market-stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .template-joacademypage .market-impact-section {
        padding: 2.5rem 20px;
    }

    .template-joacademypage .market-impact-title {
        margin-bottom: 2rem;
    }
}

/* =========================================
   Jo Academy Page — Social Links
   (aligned with ULA KSA / ULA Iraq social bar)
   ========================================= */

.template-joacademypage .social-section {
    --ula-content-max: 1284px;
    --ula-content-gutter: clamp(24px, 5vw, 80px);
    padding: clamp(56px, 7vw, 79px) var(--ula-content-gutter);
    background: #f7f7f7;
}

.template-joacademypage .social-section-inner {
    max-width: var(--ula-content-max);
    margin: 0 auto;
}

.template-joacademypage .social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.template-joacademypage .social-title {
    margin: 0;
    font-family: "Granadia-Book", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.92px;
    color: #293579;
    white-space: nowrap;
}

.template-joacademypage .social-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 2.8vw, 32px);
}

.template-joacademypage .social-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #293579;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.template-joacademypage .social-link-item:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.template-joacademypage .social-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: #293579;
}

.template-joacademypage img.social-icon {
    filter: none;
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .template-joacademypage .social-bar {
        flex-direction: column;
        gap: 24px;
    }

    .template-joacademypage .social-title {
        font-size: 26px;
        letter-spacing: -1px;
        white-space: normal;
        text-align: center;
    }
}
