/* public/css/blog-list.css */

/* ============================================ */
/* BLOG LIST PAGE - CUSTOM STYLES */
/* ============================================ */

:root {
    --navy: #0A2647;
    --cobalt: #1C5FAE;
    --teal: #0E8A82;
    --gold: #C99A3E;
    --ink: #1A2430;
    --paper: #FBFAF7;
    --card: #FFFFFF;
    --line: #E4E7EC;
    --muted: #5B6572;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(10, 38, 71, 0.08);
}

.blog-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* HERO */
/* ============================================ */
.blog-list-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1C5FAE 100%);
    padding: 56px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-list-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.blog-list-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.blog-list-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.blog-list-hero-content h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.blog-hero-sub strong {
    color: #fff;
}

.blog-list-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-list-stats .stat-item {
    text-align: center;
}

.blog-list-stats .stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.blog-list-stats .stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ============================================ */
/* FILTER BAR */
/* ============================================ */
.blog-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.blog-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pill {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.blog-pill:hover {
    border-color: var(--cobalt);
    color: var(--cobalt);
}

.blog-pill.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.blog-search-box {
    position: relative;
    flex: 0 1 280px;
    min-width: 220px;
}

.blog-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.blog-search-box input {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 40px 10px 40px;
    font-size: 0.88rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease;
}

.blog-search-box input:focus {
    border-color: var(--cobalt);
    background: #fff;
}

.blog-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
}

.blog-search-clear:hover {
    color: var(--navy);
}

/* ============================================ */
/* SECTION / LOADING STATE */
/* ============================================ */
.blog-list-section {
    padding: 44px 0 20px;
    background: var(--paper);
    min-height: 400px;
    transition: opacity 0.15s ease;
}

.blog-is-loading {
    opacity: 0.55;
}

/* ============================================ */
/* SPOTLIGHT CARD */
/* ============================================ */
.blog-spotlight {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    margin-bottom: 40px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(10, 38, 71, 0.14);
}

.blog-spotlight-media {
    background-size: cover;
    background-position: center;
    min-height: 260px;
    position: relative;
}

.blog-spotlight-tag {
    position: absolute;
    left: 18px;
    top: 18px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.blog-spotlight-body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-spotlight-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--navy);
    margin: 12px 0 12px;
}

.blog-spotlight-body p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.blog-spotlight-meta i {
    color: var(--teal);
    margin-right: 4px;
}

.blog-spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cobalt);
}

.blog-spotlight:hover .blog-spotlight-cta {
    color: var(--navy);
}

/* ============================================ */
/* CATEGORY BADGE */
/* ============================================ */
.blog-cat-badge {
    display: inline-block;
    background: rgba(14, 138, 130, 0.1);
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(14, 138, 130, 0.2);
    width: fit-content;
}

.blog-cat-badge.on-image {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
}

/* ============================================ */
/* BLOG GRID / CARD */
/* ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 38, 71, 0.12);
}

.blog-card-media {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.blog-card-meta i {
    color: var(--teal);
    margin-right: 3px;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    line-height: 1.4;
    margin: 0 0 10px;
}

.blog-card-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: var(--cobalt);
}

.blog-card-excerpt {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.blog-card-author {
    font-size: 0.78rem;
    color: var(--muted);
}

.blog-card-author i {
    color: var(--teal);
    margin-right: 4px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cobalt);
    text-decoration: none;
    white-space: nowrap;
}

.blog-card-link:hover {
    color: var(--navy);
}

/* ============================================ */
/* EMPTY STATE */
/* ============================================ */
.blog-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.blog-empty-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.blog-empty-state h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.blog-empty-state p {
    color: var(--muted);
    max-width: 44ch;
    margin: 0 auto 20px;
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */
.blog-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.blog-pagination nav {
    width: 100%;
}

.blog-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.blog-pagination .page-item {
    display: inline-block;
}

.blog-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    box-shadow: none;
}

.blog-pagination .page-item a.page-link:hover {
    background: var(--cobalt);
    color: #fff;
    border-color: var(--cobalt);
}

.blog-pagination .page-item.active .page-link {
    background: var(--cobalt);
    color: #fff;
    border-color: var(--cobalt);
}

.blog-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fff;
}

.blog-pagination .small.text-muted {
    color: var(--muted) !important;
    font-size: 0.85rem;
}

/* ============================================ */
/* APPOINTMENT CTA */
/* ============================================ */
.blog-list-appointment {
    padding: 20px 0 60px;
    background: var(--paper);
}

.blog-appointment-card {
    background: linear-gradient(135deg, var(--navy), var(--cobalt));
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.blog-appointment-content h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.blog-appointment-content p {
    color: #cfdcee;
    margin: 0;
    max-width: 46ch;
}

.blog-appointment-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 12px 22px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    background: #0fa8c7;
    color: #fff;
    text-decoration: none;
}

.blog-appointment-actions .btn-primary:hover {
    background: #0c87a1;
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 11px 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    color: #fff;
    background: transparent;
    text-decoration: none;
}

.blog-appointment-actions .btn-outline:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.blog-empty-state .btn-outline {
    color: var(--cobalt);
    border-color: var(--cobalt);
}

.blog-empty-state .btn-outline:hover {
    background: var(--cobalt);
    color: #fff;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 900px) {
    .blog-spotlight {
        grid-template-columns: 1fr;
    }

    .blog-spotlight-media {
        min-height: 220px;
    }

    .blog-spotlight-body {
        padding: 26px 24px;
    }
}

@media (max-width: 768px) {
    .blog-list-hero {
        padding: 40px 0 44px;
    }

    .blog-list-stats {
        gap: 24px;
    }

    .blog-list-stats .stat-number {
        font-size: 1.4rem;
    }

    .blog-filter-bar {
        position: static;
    }

    .blog-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search-box {
        flex: 1 1 auto;
    }

    .blog-list-section {
        padding: 32px 0 10px;
    }

    .blog-appointment-card {
        padding: 28px 24px;
        text-align: center;
        justify-content: center;
    }

    .blog-appointment-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-list-stats {
        gap: 16px;
    }

    .blog-list-stats .stat-item {
        flex: 1 1 45%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-spotlight-body h2 {
        font-size: 1.3rem;
    }
}
