/* ============================================================
   Blog Page Styles - Lagos Aviation Academy
   Design: Figma-spec cards, same-line section header,
   left-aligned hero
   ============================================================ */

/* === Blog Section Layout === */
.hp-blog-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.hp-blog-section + .hp-blog-section {
    padding-top: 0;
}

/* === Section Header (line + label on same row) === */
.hp-blog-section-header {
    margin-bottom: 40px;
}

.hp-blog-section-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hp-blog-section-line {
    display: inline-block;
    width: 36px;
    height: 2px;
    background: #005F86;
    flex-shrink: 0;
}

.hp-blog-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #005F86;
}

.hp-blog-section-title {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 34px);
    text-transform: uppercase;
    color: #232323;
    margin: 0;
    line-height: 1.2;
}

/* === Blog Card Grid === */
.hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* === Blog Card (Figma specs) === */
.hp-blog-card {
    background: #ffffff;
    border: 0.5px solid #D9D9D9;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: box-shadow 0.2s ease;
}

.hp-blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* === Card Image === */
.hp-blog-card-img {
    overflow: hidden;
    line-height: 0;
    border-radius: 4px;
}

.hp-blog-card-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hp-blog-card:hover .hp-blog-card-img img {
    transform: scale(1.05);
}

/* === Card Body (category, title, description) === */
.hp-blog-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    flex: 1;
}

/* Category - BELOW image, not overlaid */
.hp-blog-category {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #007F95;
}

.hp-blog-card-body h3 {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0.15px;
    color: #1F1F1F;
    margin: 0;
}

.hp-blog-card-body > p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #636363;
    margin: 0;
    flex: 1;
}

/* === Read More Button (full width, bordered) === */
.hp-blog-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    width: 100%;
    height: 40px;
    border: 1px solid #026084;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: #237398;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.hp-blog-link:hover {
    background: #026084;
    color: #ffffff;
}

.hp-blog-link svg {
    flex-shrink: 0;
}

/* === Newsletter Section (Figma specs) === */
.hp-blog-newsletter {
    background: linear-gradient(90deg, #026084 0%, #01B2CB 100%);
    padding: 88px 0;
}

.hp-newsletter-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 88px;
}

/* Left side: text content */
.hp-newsletter-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 534px;
    max-width: 100%;
}

.hp-newsletter-text h2 {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
    text-transform: none;
}

.hp-newsletter-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.5px;
    color: #F0F0F0;
    margin: 0;
    width: 534px;
    max-width: 100%;
}

/* Right side: form container */
.hp-newsletter-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    gap: 16px;
    width: 400px;
    max-width: 100%;
    flex-shrink: 0;
}

.hp-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.hp-newsletter-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 16px;
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #F0F0F0;
    outline: none;
}

.hp-newsletter-input::placeholder {
    color: rgba(240, 240, 240, 0.7);
}

.hp-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.22);
}

.hp-newsletter-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 8px;
    width: 100%;
    height: 56px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: #237398;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.hp-newsletter-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hp-newsletter-inner {
        flex-direction: column;
        gap: 48px;
        align-items: center;
    }

    .hp-newsletter-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hp-newsletter-text h2 {
        font-size: clamp(36px, 6vw, 60px);
    }

    .hp-newsletter-text p {
        width: 100%;
        max-width: 534px;
    }

    .hp-newsletter-form-wrap {
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .hp-blog-section {
        padding: 48px 0;
    }

    .hp-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp-blog-card {
        padding: 16px;
        gap: 24px;
    }

    .hp-blog-card-img img {
        height: 120px;
    }

    .hp-blog-card-body h3 {
        font-size: 17px;
    }

    .hp-blog-card-body > p {
        font-size: 14px;
    }

    .hp-blog-section-header {
        margin-bottom: 28px;
    }

    .hp-blog-newsletter {
        padding: 48px 0;
    }

    .hp-newsletter-inner {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .hp-newsletter-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hp-newsletter-text h2 {
        font-size: 32px;
    }

    .hp-newsletter-text p {
        width: 100%;
    }

    .hp-newsletter-form-wrap {
        align-items: center;
        width: 100%;
    }
}
