/* Remove Astra's default padding/margin */
body .ast-container { max-width: 100% !important; padding: 0 !important; }
body .site-content { padding: 0 !important; }
body .entry-content { margin: 0 !important; }
body #primary { margin: 0 !important; }
body .ast-separate-container .ast-article-single { padding: 0 !important; }
body .site-main { padding: 0 !important; }

/* ===== MAIN CONTAINER ===== */
/* Figma: page column gap=128px, centred children */
.guides-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 128px;
    padding: 128px 0;
    box-sizing: border-box;
    background: #FFFFFF;
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

/* ===== HERO SECTION ===== */
/* Figma: column, gap=16px, width=808px */
.guides-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 809px;
    width: 100%;
    padding: 0;
}

/* Figma: Inter 600, 56px, line-height 1.4286em, centre, #333333 */
.guides-hero-title {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 56px;
    line-height: 1.4286em;
    color: #333333;
    text-align: center;
    margin: 0;
}

/* Figma: Inter 400, 16px, line-height 1.5em, centre, #333333 */
.guides-hero-subtitle {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #333333;
    text-align: center;
    margin: 0;
}

/* ===== GUIDES CONTAINER ===== */
/* Figma: column, gap=96px, width=1170px */
.guides-container {
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: column;
    gap: 96px;
    box-sizing: border-box;
}

/* ===== GUIDE SECTION ===== */
/* Figma: row, gap=40px, align-items=center */
/* row-reverse = image left / content right (odd sections per Figma) */
.guide-section {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Figma: column, gap=16px */
.guide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Reset any Astra overrides that could visually reorder flex children */
.guide-content > * {
    float: none !important;
    position: static !important;
    margin: 0 !important;
}

/* Figma: Inter 600, 32px, line-height 1.5em, #333333 — order 1 */
.guide-title {
    order: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.5em;
    color: #333333;
}

/* Figma: Inter 400, 16px, line-height 1.5em, #333333 — order 2 */
.guide-description {
    order: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #333333;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-description p {
    margin-bottom: 8px;
}

/* Figma: padding 12px 20px, #334EC8, radius 8px, Inter 500 16px, shadow xs — order 3 */
.guide-cta {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #334EC8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0px 1px 2px 0px rgba(13, 16, 23, 0.06);
    align-self: flex-start;
    transition: background 0.3s ease;
}

.guide-cta:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #334EC8;
    box-shadow: 0 1px 2px 0 rgba(13, 16, 23, 0.06);
    border-radius: 8px;
    color: #FFFFFF;
}

.guide-cta:focus {
    border-radius: 8px;
    background: #334EC8;
    box-shadow: 0 1px 2px 0 rgba(122, 81, 255, 0.50), 0 0 0 4px rgba(122, 81, 255, 0.40);
    outline: none;
    color: #FFFFFF;
}

.guide-cta:active {
    border-radius: 8px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #334EC8;
    box-shadow: 0 1px 2px 0 rgba(13, 16, 23, 0.06);
    color: #FFFFFF;
}

/* Figma: fixed 580×420px, radius 8px, image fills with cover */
.guide-image-wrapper {
    width: 580px;
    height: 420px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .guide-image-wrapper {
        width: 460px;
        height: 340px;
    }
}

@media (max-width: 1024px) {
    .guides-landing {
        gap: 80px;
        padding: 80px 20px;
    }

    .guides-container {
        gap: 64px;
    }

    .guide-image-wrapper {
        width: 380px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .guides-landing {
        gap: 80px;
        padding: 16px 16px 80px 16px;
    }

    .guides-hero {
        width: 100%;
    }

    .guides-hero-subtitle {
        text-align: start;
    }

    .guides-hero-title {
        font-size: 44px;
        line-height: 121%;
        text-align: start;
    }

    .guides-container {
        gap: 80px;
    }

    .guide-section {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .guide-section:nth-child(even) {
        flex-direction: column;
        gap: 24px;
    }

    .guide-image-wrapper {
        width: 100%;
        height: 248px;
    }
}