/* ==========================================================================
   GUIDES & RESOURCES GRID SECTION
   ========================================================================== */

.ow-guides-grid-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6;
    padding: 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-guides-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ow-guides-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ==========================================================================
   Individual Guide Card
   ========================================================================== */

.ow-guide-card {
    background-color: #E2DFF8; /* Light purple baseline */
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Chamfered top-left corner (fixed 20px cut at every screen size) */
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ow-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.ow-guide-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ow-guide-card-link:focus-visible {
    outline: 2px solid #7E6DEB;
    outline-offset: 2px;
}

/* --------------------------------------------------
   Top Half: Text Content
   -------------------------------------------------- */
.ow-guide-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px 24px 24px; /* Matches your 4px 24px 24px logic but balanced for content */
    background-color: #E2DFF8;
    flex: 1; /* Pushes the image to the very bottom */
    gap: 32px;
}

.ow-guide-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ow-guide-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    background-color: rgba(42, 42, 42, 0.12); /* #2a2a2a1f */
    border-radius: 4px;
    font-family: 'DM Mono-Medium', 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 16.8px;
    color: #2A2A2A;
    text-transform: uppercase;
}

.ow-guide-text-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Title: Aspekta 400, 28px */
.ow-guide-title {
    font-family: 'Aspekta-400', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 110%; /* 30.8px */
    letter-spacing: -0.56px;
    color: #111111;
    margin: 0;
}

/* Excerpt: Inter 400, 16px */
.ow-guide-excerpt {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: rgba(17, 17, 17, 0.75); /* #111111bf */
    margin: 0;
}

/* --------------------------------------------------
   Bottom Half: Image
   -------------------------------------------------- */
.ow-guide-card-media {
    width: 100%;
    height: 244px; /* Locked height per your requirements */
    background-size: cover;
    background-position: center;
    background-color: #111111;
    flex-shrink: 0; /* Prevents the image from squishing */
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-guides-grid-section {
        padding: 72px 32px;
    }
    
    .ow-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ow-guides-grid-section {
        padding: 48px 16px;
    }

    .ow-guides-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    
    .ow-guide-card-content {
        padding: 24px;
        gap: 24px;
    }

    .ow-guide-title {
        font-size: 24px;
    }
}
/* ==========================================================================
   Guides grid: carousel on tablet (design 768px) and mobile (design 390px).
   Position indicator bottom left, arrow buttons bottom right.
   ========================================================================== */
.ow-guides-controls {
    display: none;
}

@media (max-width: 1023px) {
    .ow-guides-grid-section {
        padding: 36px;
    }

    .ow-guides-container {
        gap: 36px;
        align-items: stretch;
    }

    .ow-guides-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ow-guides-grid::-webkit-scrollbar {
        display: none;
    }

    .ow-guide-card {
        flex: 0 0 384px;
        width: 384px;
        height: auto;
        scroll-snap-align: start;
    }

    .ow-guide-card-content {
        min-height: 324px;
        padding: 20px 24px 24px;
        gap: 24px;
    }

    .ow-guides-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .ow-guides-indicator {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 7px 8px;
        background-color: #111111;
        border-radius: 8px;
    }

    .ow-guides-indicator-bar {
        width: 6px;
        height: 16px;
        border-radius: 2px;
        background-color: rgba(255, 255, 255, 0.25);
        transition: background-color 0.2s ease;
    }

    .ow-guides-indicator-bar.active {
        background-color: #FFFFFF;
    }

    .ow-guides-nav {
        display: flex;
        gap: 4px;
    }

    .ow-guides-nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 9999px;
        background-color: #111111;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background-color 0.2s ease;
    }

    .ow-guides-nav-btn:hover {
        background-color: #2a2a2a;
    }

    .ow-guides-nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .ow-guides-grid-section {
        padding: 24px 16px;
    }

    .ow-guide-card {
        flex-basis: 358px;
        width: 358px;
        max-width: 100%;
    }

    .ow-guide-card-content {
        min-height: 300px;
        padding: 20px 24px 24px;
    }

    .ow-guide-title {
        font-size: 24px;
        line-height: 26.4px;
        letter-spacing: -0.48px;
    }
}
