.lp,
.lp * {
    box-sizing: border-box;
}

.lp {
    margin: 0;
    padding: 0;
    font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Reset common text spacing inside lp (safer than wiping * margins) */
.lp h1,
.lp h2,
.lp h3,
.lp h4,
.lp h5,
.lp h6,
.lp p {
    margin: 0;
    padding: 0;
}

/* Typography */
.lp h1,
.lp h2,
.lp h3,
.lp h4,
.lp h5,
.lp h6 {
    font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lp h1 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lp h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lp h3 {
    font-weight: 700;
}

/* Utility: container */
.lp .lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   A) HERO (original red hero used on games landing)
   ========================================================= */
.lp .hero {
    background: linear-gradient(135deg, #ce3838 0%, #ce3838 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.lp .hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
}

.lp .hero p {
    font-size: 20px;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Buttons (scoped) */
.lp .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lp .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lp .btn-primary {
    background: #e63329;
    color: #fff;
}

.lp .btn-primary:hover {
    background: #c72a22;
    transform: translateY(-2px);
}

.lp .btn-secondary {
    background: #fff;
    color: #e63329;
    border: 2px solid #fff;
}

.lp .btn-secondary:hover {
    background: #e63329;
    color: #fff;
    border-color: #e63329;
}

/* =========================================================
   B) GAMES CAROUSEL (Swiper)
   ========================================================= */
.lp .games {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 40px;
    position: relative;
    text-align: center;
}

.lp .games h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
}

.lp .carousel-outer-wrapper {
    position: relative;
    padding: 0 80px;
}

.lp .gamesSwiper {
    overflow: hidden !important;
    padding: 40px 0;
}

.lp .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.lp .game-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    width: 100%;
}

.lp .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.lp .game-image {
    margin-bottom: 20px;
}

.lp .game-icon {
    width: 150px;
    height: 150px;
    border-radius: 20%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lp .game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.lp .game-content h3 {
    font-size: 24px;
    margin-bottom: 4rem;
    color: #333;
}

.lp .game-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.lp .store-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.lp .store-buttons p {
    margin: 0 !important;
    padding: 0 !important;
}

.lp .store-buttons a {
    display: inline-flex;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.lp .store-btn {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.lp .store-btn:hover {
    transform: scale(1.05);
}

.lp .swiper-button-prev,
.lp .swiper-button-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    background: #fff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100 !important;
}

.lp .swiper-button-prev {
    left: 10px !important;
}

.lp .swiper-button-next {
    right: 10px !important;
}

.lp .swiper-button-prev:after,
.lp .swiper-button-next:after {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #999 !important;
}

.lp .swiper-button-prev:hover,
.lp .swiper-button-next:hover {
    color: #333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.lp .swiper-button-prev:hover:after,
.lp .swiper-button-next:hover:after {
    color: #333 !important;
}

.lp .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.lp .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}

.lp .swiper-pagination-bullet-active {
    background: #333;
}

/* =========================================================
   C) 2-COLUMN HERO + PILLARS (new page layout)
   ========================================================= */

/* FULL-WIDTH HERO (you already had this right) */
.lp .lp-hero-2col {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ce3838;

    /* IMPORTANT: let image reach bottom */
    padding: 0;

    /* Reduced padding top for better height control */
    min-height: auto;
}

/* NEW: give spacing via the container, not the whole section */
.lp .lp-hero-2col .lp-container {
    padding-top: 3rem;
    padding-bottom: 0;
    /* 👈 so image can touch hero bottom */
}

/* grid layout */
.lp .lp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
}

/* make the right column a "bottom anchor" */
.lp .lp-hero-right {
    display: flex;
    align-items: flex-end;
}

/* if you want the left text to not sit too low, keep a little breathing room */
.lp .lp-hero-left {
    padding-bottom: 0;
    /* adjust 40–72px depending on taste */
}

.lp .lp-eyebrow {
    color: #2563eb;
    font-weight: 600;
    margin: 0 0 10px;
}

.lp .lp-hero-title {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.lp .lp-hero-subtitle {
    margin: 0 0 24px;
    color: #374151;
    font-size: 18px;
    line-height: 1.6;
    max-width: 52ch;
}

.lp .lp-hero-2col .lp-eyebrow,
.lp .lp-hero-2col .lp-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.lp .lp-hero-2col .lp-hero-title {
    color: #ffffff;
}

.lp .lp-hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.lp a.lp-btn,
.lp a.lp-btn:visited {
    text-decoration: none !important;
}

/* CTA BUTTON */
.lp .lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    height: 52px;
    /* locks vertical centering */
    padding: 0 26px;
    /* horizontal padding only */

    border-radius: 999px;
    border: 1px solid transparent;

    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1;

    cursor: pointer;
    text-decoration: none;

    will-change: transform;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp .lp-btn-primary {
    background: #ffffff;
    color: #ce3838 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.lp .lp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.lp .lp-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.lp .lp-btn:focus {
    outline: none;
}

/* HERO IMAGE */
.lp .lp-hero-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: block;

    /* ensure it touches the bottom */
    margin-bottom: -24px;
}

/* Page-Specific: Builders/Careers (Smaller image) */
.lp .hero.hero-builders .hero-image {
    max-width: 340px;
    width: auto;
    margin-left: auto;
    margin-bottom: -80px;
}

/* Pillars */
.lp .lp-pillars {
    padding: 3rem 0 0;
    background: transparent;
}

.lp .lp-pillars .lp-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 24px;
    margin-bottom: 64px;
}

.lp .lp-pillars-header {
    margin-bottom: 28px;
}

.lp .lp-section-title {
    font-size: 40px;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #333;
}

.lp .lp-section-subtitle {
    margin: 0;
    color: #4b5563;
    max-width: 70ch;
    line-height: 1.6;
}

.lp .lp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.lp .lp-pillar {
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.lp .lp-pillar-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    display: block;
}

.lp .lp-pillar h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.lp .lp-pillar p {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
}

/* =========================
   Publish Game Modal
========================= */

.lp .lp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.lp .lp-modal.is-open {
    display: block;
}

.lp .lp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.lp .lp-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    /* critical for flex scrolling */
    overflow-y: auto;
    /* vertical scroll */
    overflow-x: hidden;
    /* no bottom scrollbar */
    padding-right: 12px;
    /* optional: keep content away from scrollbar */
}

.lp .lp-modal-dialog {
    position: relative;
    width: min(720px, calc(100% - 32px));
    margin: 6vh auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lp .lp-modal-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp .lp-modal-subtitle {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

.lp .lp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #f3f4f6;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #6b7280;
    transition: all 0.2s ease;
}

.lp .lp-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.lp .lp-modal .forminator-button-submit {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
    text-align: center;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 20px;
}

.lp .lp-modal .forminator-button-submit:hover {
    background: #f9fafb !important;
}

.lp .lp-modal .forminator-ui,
.lp .lp-modal .forminator-ui form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.lp .hero.hero-2col {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #ce3838;
    /* same red */
    text-align: left;
    padding: 24px 0 0 0;
    /* CHANGED: Reduced from 64px to 24px top, 0 bottom */
    min-height: auto;
    /* CHANGED: Override min-height: 600px */
}

/* Use your existing container */
.lp .hero.hero-2col .lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.lp .hero-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Prevent global theme img margin messing with the hero */
.lp .hero.hero-2col img,
.lp .hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* Make text white in the red hero */
.lp .hero.hero-2col h1,
.lp .hero.hero-2col p {
    color: #fff;
}

/* Keep buttons aligned left now (remove inline styles on HTML) */
.lp .hero.hero-2col .cta-buttons {
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 980px) {
    .lp .hero-grid {
        grid-template-columns: 1fr;
    }

    .lp .hero-right {
        justify-content: center;
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
    .lp .carousel-outer-wrapper {
        padding: 0;
    }

    .lp .swiper-button-prev,
    .lp .swiper-button-next {
        display: none !important;
    }

    .lp .games {
        padding: 0 20px;
    }

    .lp .gamesSwiper {
        padding: 40px 20px;
    }
}

@media (max-width: 980px) {
    .lp .lp-hero-grid {
        grid-template-columns: 1fr;
    }

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

    /* on mobile/tablet, give hero some bottom padding again so image doesn't crash into edge too aggressively */
    .lp .lp-hero-2col .lp-container {
        padding-top: 54px;
        padding-bottom: 0;
    }

    .lp .lp-hero-left {
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .lp .gamesSwiper {
        padding: 30px 10px;
    }
}

@media (max-width: 968px) {
    .lp .hero {
        padding: 40px 20px;
        min-height: 500px;
    }

    .lp .hero h1 {
        font-size: 32px;
    }

    .lp .hero p {
        font-size: 16px;
    }

    .lp .games {
        margin: 60px auto;
    }

    .lp .games h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .lp .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* IMPORTANT: removed your old rule that re-added padding on .lp-hero-2col */
@media (max-width: 560px) {
    .lp .lp-pillars-grid {
        grid-template-columns: 1fr;
    }

    /* keep spacing on container, not section */
    .lp .lp-hero-2col .lp-container {
        padding-top: 3rem;
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .lp .lp-hero-right {
        transform: translateX(3rem);
        margin-right: -3rem;
    }
}

@media (max-width: 480px) {
    .lp .hero h1 {
        font-size: 28px;
    }

    .lp .hero p {
        font-size: 14px;
    }

    .lp .games h2 {
        font-size: 28px;
    }

    .lp .game-card {
        padding: 25px 20px;
    }

    .lp .game-icon {
        width: 120px;
        height: 120px;
    }

    .lp .game-content h3 {
        font-size: 20px;
    }

    .lp .game-content p {
        font-size: 14px;
    }

    .lp .store-btn {
        max-width: 180px;
        height: 35px;
    }
}