/* ==========================================================
   DAWN ENTERPRISE BLOG
   Responsive Blog Homepage
========================================================== */

.dawn-blog-main {
    background: #ffffff;
    color: #17243b;
    min-height: 60vh;
}

.dawn-blog-main *,
.dawn-blog-main *::before,
.dawn-blog-main *::after {
    box-sizing: border-box;
}

.dawn-blog-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* HERO */

.dawn-blog-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 105px;
    background: linear-gradient(
        125deg,
        #071b3a 0%,
        #102f65 55%,
        #244a98 100%
    );
    color: #ffffff;
}

.dawn-blog-hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    top: -180px;
    border-radius: 50%;
    background: rgba(112, 154, 255, 0.12);
    filter: blur(10px);
    pointer-events: none;
}

.dawn-blog-hero .dawn-blog-container {
    position: relative;
    z-index: 1;
}

.dawn-blog-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #426fe0;
}

.dawn-blog-hero .dawn-blog-eyebrow {
    color: #9bbcff;
}

.dawn-blog-hero h1 {
    max-width: 850px;
    margin: 18px 0 22px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 750;
    line-height: 1.13;
    letter-spacing: -1.5px;
}

.dawn-blog-hero p {
    max-width: 690px;
    margin: 0;
    color: #d6e2f6;
    font-size: 18px;
    line-height: 1.85;
}

/* ARTICLE SECTION */

.dawn-blog-section {
    padding: 90px 0 105px;
}

.dawn-blog-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 38px;
}

.dawn-blog-section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(29px, 3vw, 40px);
    line-height: 1.2;
    color: #102448;
    letter-spacing: -0.8px;
}

/* SEARCH */

.dawn-blog-section-heading .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dawn-blog-section-heading .search-field {
    width: 230px;
    max-width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce5f1;
    border-radius: 8px;
    background: #ffffff;
    color: #17243b;
    font-size: 14px;
    outline: none;
}

.dawn-blog-section-heading .search-field:focus {
    border-color: #426fe0;
    box-shadow: 0 0 0 3px rgba(66, 111, 224, 0.12);
}

.dawn-blog-section-heading .search-submit {
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: #254caa;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ARTICLE GRID */

.dawn-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.dawn-blog-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 36, 72, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dawn-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(16, 36, 72, 0.11);
}

.dawn-blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eaf0fa;
}

.dawn-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dawn-blog-card:hover .dawn-blog-card-image img {
    transform: scale(1.045);
}

.dawn-blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b2550, #3465c4);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dawn-blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px 25px 29px;
}

.dawn-blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    color: #728098;
    font-size: 12px;
}

.dawn-blog-category {
    padding: 5px 10px;
    border-radius: 5px;
    background: #edf3ff;
    color: #315bb5;
    font-weight: 650;
}

.dawn-blog-card h3 {
    margin: 0 0 15px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.3px;
}

.dawn-blog-card h3 a {
    color: #102448;
    text-decoration: none;
}

.dawn-blog-card h3 a:hover {
    color: #315bb5;
}

.dawn-blog-card-content > p {
    margin: 0 0 23px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.85;
}

.dawn-blog-read-more {
    margin-top: auto;
    color: #2854b8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dawn-blog-read-more:hover {
    color: #102448;
}

/* PAGINATION */

.dawn-blog-pagination {
    margin-top: 55px;
}

.dawn-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dawn-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    color: #23416f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.dawn-blog-pagination .page-numbers.current,
.dawn-blog-pagination .page-numbers:hover {
    background: #254caa;
    border-color: #254caa;
    color: #ffffff;
}

/* EMPTY STATE */

.dawn-blog-empty {
    padding: 70px 30px;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    background: #f7faff;
    text-align: center;
}

.dawn-blog-empty h2 {
    margin: 0 0 12px;
    color: #102448;
}

.dawn-blog-empty p {
    margin: 0;
    color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .dawn-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dawn-blog-hero {
        padding: 90px 0;
    }
}

@media (max-width: 700px) {
    .dawn-blog-container {
        width: min(100% - 32px, 1180px);
    }

    .dawn-blog-hero {
        padding: 75px 0;
    }

    .dawn-blog-hero h1 {
        font-size: 36px;
        letter-spacing: -0.7px;
    }

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

    .dawn-blog-section {
        padding: 65px 0 80px;
    }

    .dawn-blog-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dawn-blog-section-heading .search-form {
        width: 100%;
    }

    .dawn-blog-section-heading .search-form label {
        flex: 1;
        min-width: 0;
    }

    .dawn-blog-section-heading .search-field {
        width: 100%;
    }

    .dawn-blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .dawn-blog-card-content {
        padding: 24px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dawn-blog-card,
    .dawn-blog-card-image img {
        transition: none;
    }
}

/* ==========================================================
   DAWN BLOG - TYPOGRAPHY ALIGNMENT
   Match existing Dawn website
========================================================== */

.dawn-blog-main,
.dawn-blog-main h1,
.dawn-blog-main h2,
.dawn-blog-main h3,
.dawn-blog-main h4,
.dawn-blog-main h5,
.dawn-blog-main h6,
.dawn-blog-main p,
.dawn-blog-main a,
.dawn-blog-main span,
.dawn-blog-main input,
.dawn-blog-main button,
.dawn-blog-main textarea,
.dawn-blog-main select {
    font-family: 'Inter', Arial, sans-serif;
}

.dawn-blog-hero h1,
.dawn-single-hero h1 {
    font-weight: 700;
}

.dawn-blog-section-heading h2,
.dawn-single-related h2 {
    font-weight: 700;
}

.dawn-blog-card h3 {
    font-weight: 700;
}

