/* =========================================================
   EduOrk Academy — events page styles
   ========================================================= */

/* Photo gallery — masonry: every photo keeps its own natural
   size/aspect ratio (no cropping), so mixed portrait, landscape
   and square photos all sit neatly in balanced columns. */
.simple-gallery-grid {
    column-count: 2;
    column-gap: .9rem
}

@media(min-width:640px) {
    .simple-gallery-grid {
        column-count: 3;
        column-gap: 1.15rem
    }
}

@media(min-width:1024px) {
    .simple-gallery-grid {
        column-count: 4;
        column-gap: 1.25rem
    }
}

.gallery-item {
    position: relative;
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: .9rem;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media(min-width:640px) {
    .gallery-item {
        margin-bottom: 1.15rem
    }
}

@media(min-width:1024px) {
    .gallery-item {
        margin-bottom: 1.25rem
    }
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(15, 23, 42, 0.2);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* =====================================================
   Life At EduOrk — page polish
   ===================================================== */
.lx-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 5.5rem 1rem 6.5rem;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(220, 38, 38, .16), transparent 60%),
        radial-gradient(800px 420px at 90% 10%, rgba(245, 158, 11, .07), transparent 60%),
        linear-gradient(180deg, #0f172a 0%, #111c33 100%);
}

.lx-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
    pointer-events: none;
}

.lx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.lx-orb-a {
    width: 320px;
    height: 320px;
    left: -80px;
    bottom: -80px;
    background: rgba(220, 38, 38, .12);
}

.lx-orb-b {
    width: 260px;
    height: 260px;
    right: -60px;
    top: 40px;
    background: rgba(245, 158, 11, .07);
}

.lx-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
}

.lx-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fecaca;
    background: rgba(220, 38, 38, .14);
    border: 1px solid rgba(248, 113, 113, .35);
}

.lx-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, .6);
    animation: lxPing 2s ease-out infinite;
}

@keyframes lxPing {
    70% {
        box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    }
}

.lx-title {
    margin-top: 1.25rem;
    font-size: clamp(2.1rem, 5.4vw, 3.9rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.lx-sub {
    margin: 1.25rem auto 0;
    max-width: 40rem;
    color: #cbd5e1;
    font-size: clamp(.95rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.lx-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.lx-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border-radius: 1rem;
    font-size: .85rem;
    font-weight: 800;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, background .25s ease;
}

.lx-btn:hover {
    transform: translateY(-2px);
}

.lx-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--edu-red, #dc2626), var(--edu-red-dark, #b91c1c));
    box-shadow: 0 12px 28px -10px rgba(220, 38, 38, .7);
}

.lx-btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
}

.lx-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
}

/* stats strip overlapping the hero's bottom edge */
.lx-stats-wrap {
    position: relative;
    z-index: 5;
    max-width: 64rem;
    margin: -3.25rem auto 0;
    padding: 0 1rem;
}

.lx-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

@media(min-width:768px) {
    .lx-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

.lx-stat {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .35);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}

.lx-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -18px rgba(220, 38, 38, .3);
}

.lx-stat-ic {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--edu-red, #dc2626);
    background: #fef2f2;
    font-size: 1rem;
}

.lx-stat b {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
}

.lx-stat div>span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: #64748b;
    margin-top: .1rem;
}

/* section headings */
.lx-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.lx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--edu-red, #dc2626);
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.lx-h2 {
    margin-top: .9rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.lx-lead {
    margin-top: .8rem;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.7;
}

/* gallery header + count pill */
.lx-count {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .55));
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    border: 4px solid #fff;
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .35);
}

/* closing call-to-action */
.lx-cta-band {
    position: relative;
    overflow: hidden;
    max-width: 72rem;
    margin: 0 auto;
    padding: 3.25rem 1.5rem;
    border-radius: 2rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(500px 240px at 90% 0%, rgba(245, 158, 11, .35), transparent 65%),
        linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 30px 60px -28px rgba(185, 28, 28, .7);
}

.lx-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
    mask-image: linear-gradient(120deg, #000, transparent 70%);
    pointer-events: none;
}

.lx-cta-band>* {
    position: relative;
}

.lx-cta-band h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
}

.lx-cta-band p {
    margin: .8rem auto 0;
    max-width: 34rem;
    color: #fee2e2;
    font-size: .98rem;
    line-height: 1.7;
}

#main {
    background: #f8fafc;
}

.lx-cta-section {
    padding-top: 2rem;
    padding-bottom: 5.5rem;
}

.lx-title-grad {
    display: block;
    padding-bottom: .1em;
}

.lx-cta-band .lx-btn-ghost {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .55);
}

.lx-cta-band .lx-btn-ghost:hover {
    background: rgba(255, 255, 255, .24);
}

@media(max-width:640px) {
    .lx-hero {
        padding: 4rem 1rem 5.5rem;
    }

    .lx-stat {
        padding: .85rem .8rem;
        gap: .6rem;
    }

    .lx-stat-ic {
        width: 2.2rem;
        height: 2.2rem;
    }

    .lx-stat b {
        font-size: 1rem;
    }
}

/* =====================================================
   Unified EduOrk look (matches Home page)
   ===================================================== */
.lx-hero {
    color: #0f172a;
    padding: 4.5rem 1rem 4.5rem;
    background: linear-gradient(135deg, rgba(255, 241, 242, .55) 0%, #f8fafc 50%, #fff 100%);
}

.lx-hero-grid {
    background-image:
        linear-gradient(rgba(220, 38, 38, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, .06) 1px, transparent 1px);
}

.lx-orb-a {
    background: rgba(220, 38, 38, .08);
}

.lx-orb-b {
    background: rgba(220, 38, 38, .10);
}

.lx-badge {
    color: #dc2626;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #fecdd3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.lx-dot {
    background: #dc2626;
}

.lx-title {
    color: #0f172a;
    font-weight: 900;
}

.lx-sub {
    color: #475569;
    font-weight: 500;
}

.lx-btn {
    padding: 1rem 2rem;
    font-size: .95rem;
    font-weight: 800;
}

.lx-btn-ghost {
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.lx-btn-ghost:hover {
    background: #f1f5f9;
}

/* stats: full-width white bar, same as Home */
.lx-stats-wrap {
    max-width: none;
    margin: 0;
    padding: 2.25rem 1rem;
    background: #fff;
    border-top: 1px solid rgba(226, 232, 240, .8);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.lx-stats {
    max-width: 80rem;
    margin: 0 auto;
}

.lx-stat {
    flex-direction: column;
    text-align: center;
    gap: .55rem;
    padding: .5rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lx-stat:hover {
    transform: none;
    box-shadow: none;
}

@media(min-width:768px) {
    .lx-stat:not(:last-child) {
        border-right: 1px solid #f1f5f9;
    }
}

.lx-stat b {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #dc2626;
}

.lx-stat:nth-child(even) b {
    color: #0f172a;
}

.lx-stat:nth-child(4n) b {
    color: #f59e0b;
}

.lx-stat div>span {
    font-size: .82rem;
    color: #64748b;
}

/* bands */
.lx-band {
    padding: 3.5rem 0;
}

@media(min-width:1024px) {
    .lx-band {
        padding: 4.5rem 0;
    }
}

.lx-band-paper {
    background: #f8fafc;
}

.lx-eyebrow {
    background: #fff1f2;
    border-color: #fecdd3;
}

/* closing CTA: dark band like Home's dark sections */
.lx-cta-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1rem;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

.lx-cta-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10rem;
    width: 36rem;
    height: 36rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(220, 38, 38, .14);
    filter: blur(70px);
    pointer-events: none;
}

.lx-cta-band {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.lx-cta-band::before {
    display: none;
}

.lx-cta-band p {
    color: #cbd5e1;
}

.lx-cta-band .lx-btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: none;
}

.lx-cta-band .lx-btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
}

/* =====================================================
   Visibility safety: strong text colours on every
   background + no hidden-until-scroll content
   ===================================================== */
.lx-hero .lx-title {
    color: #0f172a !important;
}

.lx-hero .lx-sub {
    color: #334155 !important;
}

.lx-badge {
    color: #b91c1c !important;
    background: #fff !important;
    border: 1px solid #fca5a5 !important;
}

.lx-eyebrow {
    color: #b91c1c !important;
    background: #fff1f2 !important;
    border: 1px solid #fca5a5 !important;
}

.lx-h2 {
    color: #0f172a !important;
}

.lx-lead {
    color: #334155 !important;
}

.lx-stat b {
    color: #dc2626 !important;
}

.lx-stat:nth-child(even) b {
    color: #0f172a !important;
}

.lx-stat:nth-child(4n) b {
    color: #d97706 !important;
}

.lx-stat div>span {
    color: #475569 !important;
}

.lx-stat-ic {
    color: #dc2626 !important;
    background: #fee2e2 !important;
}

.lx-cta-band h2 {
    color: #fff !important;
}

.lx-cta-band p {
    color: #e2e8f0 !important;
}

.lx-cta-band .lx-btn-primary {
    color: #fff !important;
}

.lx-hero .reveal,
.lx-stats-wrap .reveal,
.lx-band .reveal,
.lx-cta-section .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* if a browser can't clip gradients to text, fall back to plain red */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .gradient-text-anim {
        background: none !important;
        color: #dc2626 !important;
    }
}

/* Photos are display-only: clicking does nothing */
.gallery-item {
    cursor: default !important;
}

.gallery-item:hover {
    transform: none !important;
}

.gallery-item:hover img {
    transform: none !important;
}

.gallery-item::after {
    display: none !important;
}

.gallery-item img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* three stats in one row: keep them inside the screen on very small phones */
@media (max-width: 480px) {
    .lx-stats {
        gap: .35rem;
    }

    .lx-stat {
        padding: .25rem;
    }

    .lx-stat b {
        font-size: .95rem;
    }

    .lx-stat div>span {
        font-size: .68rem;
        overflow-wrap: anywhere;
    }
}