/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat;
    background-color: rgb(255, 255, 255);
    color: #000;
    line-height: 1;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.container-box {
    max-width: 1440px;
    margin: 0 auto;
}

/* Main Container */
.jerkmate-landing-grid-desktop-hero {
    background-color: rgb(255, 255, 255);
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 202px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 0 40px;
}

/* Header */
.header {
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.logo-container {
    width: 100%;
    max-width: 222px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.button {
    background-color: rgb(251, 77, 148);
    border-radius: 999px;
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
    text-decoration: none;
}

.cta-button {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16.0px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    white-space: pre;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover {
    background-color: #24d2e5;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.content {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0px, 1fr));
    grid-template-rows: repeat(4, minmax(0px, 1fr));
    gap: 8px;
    width: 100%;
    height: auto;
}

/* Video Preview Styles */
.video-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    width: 277px;
    height: auto;
    aspect-ratio: 277/210;
}

.video-preview-large {
    grid-area: 1 / 1 / span 2 / span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.username {
    position: absolute;
    bottom: 25px;
    left: 10.61px;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 14.0px;
    color: white;
    text-shadow: 0px 0px 4px #000000;
    transform: translateY(100%);
    white-space: pre;
}

.online-indicator {
    position: absolute;
    top: 10px;
    right: 10.32px;
    width: 14px;
    height: 14px;
    background-color: rgba(29, 201, 9, 1);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
}

/* Blurred Overlay */
.blurred-overlay {
    position: relative;
}

.blurred-overlay .video-image.blurred {
    filter: blur(6.5px);
}

.blurred-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(39, 35, 98, 0.5);
    border-radius: 6px;
}

.overlay-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 241px;
    height: 147px;
    z-index: 10;
    overflow: hidden;
}

.overlay-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 20px;
    color: white;
    text-align: center;
    text-transform: uppercase;
    line-height: 24px;
    width: min-content;
    min-width: 100%;
}

.overlay-cta {
    font-family: Montserrat;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16.0px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    white-space: pre;
}

.overlay-cta:hover {
    background-color: #24d2e5;
}

/* Grid Positioning */
.video-preview[data-position="1-3"] {
    grid-area: 1 / 3;
}

.video-preview[data-position="1-4"] {
    grid-area: 1 / 4;
}

.video-preview[data-position="2-3"] {
    grid-area: 2 / 3;
}

.video-preview[data-position="2-4"] {
    grid-area: 2 / 4;
}

.video-preview[data-position="3-1"] {
    grid-area: 3 / 1;
}

.video-preview[data-position="3-2"] {
    grid-area: 3 / 2;
}

.video-preview[data-position="3-3"] {
    grid-area: 3 / 3;
}

.video-preview[data-position="3-4"] {
    grid-area: 3 / 4;
}

.video-preview[data-position="4-1"] {
    grid-area: 4 / 1;
}

.video-preview[data-position="4-2"] {
    grid-area: 4 / 2;
}

.video-preview[data-position="4-3"] {
    grid-area: 4 / 3;
}

.video-preview[data-position="4-4"] {
    grid-area: 4 / 4;
}

/* Mobile Layout (Hidden) */
.mobile-hero {
    display: none;
}

/* Footer */
.footer {
    background: #ffff;
    padding: 20px 0;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid #909090;
    padding-top: 10px;
}

.footer-links a {
    color: #909090;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.rta-logo {
    height: 25px;
    width: 100%;
    max-width: 49px;
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .jerkmate-landing-grid-desktop-hero {
        display: none;
    }

    .logo-container {
        width: 100%;
        max-width: max-content;
    }

    .mobile-hero {
        display: grid;
        width: 100%;
        max-width: 850px;
        margin: 0 auto;
        overflow: hidden;
        padding: 10px 6px 40px;
    }

    /* Grid Container */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0px, 1fr));
        grid-template-rows: repeat(5, minmax(0px, 1fr));
        grid-auto-rows: minmax(0px, 1fr);
        gap: 4px;
        width: 100%;
        height: auto;
    }

    .mobile-hero .content-wrapper {
        justify-content: start;
    }

    .video-preview {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
        border-radius: 6px;
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 277px;
        height: auto;
        aspect-ratio: 277/210;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .username {
        font-size: 10px;
        left: 5px;
        bottom: 15px;
    }

    .logo {
        max-width: 130px;
    }

    .cta-button {
        font-size: 0.8rem;
    }

}

@media (max-width: 768px) {
    .overlay-title {
        font-size: 10px;
        font-weight: 400;
        line-height: 1;
        width: 64px;
        min-width: 100px;
    }

    .overlay-cta {
        font-size: 10px;
        font-weight: 400;
    }

    .video-preview {
        max-width: 210px;
        aspect-ratio: 210/210;
    }

    .video-preview.blurred-overlay .button {
        padding: 5px;
    }

    .video-preview.blurred-overlay .overlay-cta {
        font-size: 0.6rem;
        font-weight: 400;
    }

    .online-indicator {
        top: 8px;
        right: 8px;
        width: 8px;
        height: 8px;
    }

    .footer {
        padding: 15px 0;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
        text-align: center;
    }

    .rta-logo {
        height: 20px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .footer-copyright {
        font-size: 12px;
        text-align: center;
    }

    .footer-links {
        gap: 10px;
        justify-content: center;
        text-align: center;
        border: none;
        padding-top: 0;
    }

    .footer-links a {
        font-size: 12px;
    }

}