/* ==========================================================================
   MiGynae Category-Based Blog Redesign Styles
   Brand Palette:
   --primary-color: #F4A4A3;
   --primary-dark: #e88a89;
   --secondary-color: #2c3e50;
   --accent-color: #f8f9fa;
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.blog-breadcrumbs {
    padding: 16px 0;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6c757d;
}

.blog-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.blog-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-breadcrumbs li:not(:last-child)::after {
    content: "›";
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
}

.blog-breadcrumbs a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
    color: #e88a89;
    text-decoration: underline;
}

.blog-breadcrumbs li[aria-current="page"] {
    color: #1f2937;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Header Mega-Menu (Desktop) & Mobile Accordion
   -------------------------------------------------------------------------- */
.nav-item-has-menu {
    position: relative;
}

.mega-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mega-menu-trigger .chevron-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
}

/* Desktop Mega-Menu Container */
@media (min-width: 901px) {
    .nav-item-has-menu:hover .mega-menu,
    .nav-item-has-menu:focus-within .mega-menu,
    .mega-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-item-has-menu:hover .chevron-icon,
    .nav-item-has-menu:focus-within .chevron-icon {
        transform: rotate(180deg);
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: -180px;
        width: 760px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
        border: 1px solid #f1f3f4;
        padding: 28px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        z-index: 1000;
        pointer-events: none;
    }

    .mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .mega-menu-col-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #e88a89;
        margin-bottom: 12px;
        padding-bottom: 6px;
        border-bottom: 2px solid #fce7e7;
    }

    .mega-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mega-menu-list li a {
        display: block;
        font-size: 13.5px;
        color: #2c3e50;
        text-decoration: none;
        padding: 4px 6px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        line-height: 1.4;
    }

    .mega-menu-list li a:hover,
    .mega-menu-list li a:focus {
        background: #fff5f5;
        color: #e88a89;
    }

    .mega-menu-footer {
        margin-top: 20px;
        padding-top: 14px;
        border-top: 1px solid #f1f3f4;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mega-menu-footer a {
        font-size: 13px;
        font-weight: 600;
        color: #e88a89;
        text-decoration: none;
    }

    .mega-menu-footer a:hover {
        text-decoration: underline;
    }
}

/* Mobile Accordion in Nav */
@media (max-width: 900px) {
    .nav-item-has-menu {
        width: 100%;
    }

    .mega-menu {
        display: none;
        padding: 10px 0 10px 16px;
        background: transparent;
        box-shadow: none;
        border: none;
        width: 100%;
    }

    .nav-item-has-menu.mobile-open .mega-menu {
        display: block;
    }

    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mega-menu-col-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: #e88a89;
        margin-bottom: 6px;
    }

    .mega-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mega-menu-list a {
        font-size: 14px;
        color: #4b5563;
        text-decoration: none;
        padding: 4px 0;
        display: block;
    }

    .mega-menu-footer {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   BabyCenter-Style Category Cards Grid on /blog
   -------------------------------------------------------------------------- */
.category-showcase-section {
    padding: 40px 0 60px;
    background: #fafafa;
}

.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #f1f3f4;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(244, 164, 163, 0.4);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.category-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 164, 163, 0.2), rgba(232, 138, 137, 0.3));
    color: #e88a89;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.category-card-title a {
    color: inherit;
    text-decoration: none;
}

.category-card-title a:hover {
    color: #e88a89;
}

.category-card-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

.category-card-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-card-links li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.category-card-links li::before {
    content: "•";
    color: #F4A4A3;
    font-size: 16px;
    line-height: 1;
}

.category-card-links a {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.category-card-links a:hover {
    color: #e88a89;
    text-decoration: underline;
}

.category-card-action {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #e88a89;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.btn-see-all:hover {
    color: #c96766;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Category & Subcategory Chips
   -------------------------------------------------------------------------- */
.category-chips-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0 30px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
    background: #F4A4A3;
    border-color: #F4A4A3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 164, 163, 0.35);
}

/* --------------------------------------------------------------------------
   Category & Sub-Category Hub Header
   -------------------------------------------------------------------------- */
.hub-header {
    background: linear-gradient(135deg, #fff7f7 0%, #fafafa 100%);
    padding: 130px 0 50px;
    border-bottom: 1px solid #f1f3f4;
}

.hub-header-inner {
    max-width: 860px;
}

.hub-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e88a89;
    margin-bottom: 12px;
}

.hub-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hub-intro {
    font-size: 1.15rem;
    color: #555e68;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Articles Grid & Cards
   -------------------------------------------------------------------------- */
.articles-section {
    padding: 50px 0 80px;
    background: #ffffff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #f1f3f4;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(244, 164, 163, 0.35);
}

.article-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
    overflow: hidden;
}

.article-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-thumb {
    transform: scale(1.03);
}

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-badge {
    background: linear-gradient(135deg, #F4A4A3, #e88a89);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
}

.category-badge:hover {
    opacity: 0.95;
}

.article-meta-date {
    font-size: 13px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-card-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-card-excerpt {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #9ca3af;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.read-more-link {
    font-weight: 700;
    color: #e88a89;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.article-card:hover .read-more-link {
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Pagination Component
   -------------------------------------------------------------------------- */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: #F4A4A3;
    color: #e88a89;
}

.page-link.active {
    background: #F4A4A3;
    border-color: #F4A4A3;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   App Download CTA Block
   -------------------------------------------------------------------------- */
.app-cta-banner {
    background: linear-gradient(135deg, #fff2f2 0%, #fdf5f5 100%);
    border: 1px solid #fbdcdc;
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0 30px;
    text-align: center;
}

.app-cta-banner h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 12px;
}

.app-cta-banner p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.app-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.app-cta-btn {
    display: inline-block;
    height: 52px;
    transition: transform 0.2s;
}

.app-cta-btn:hover {
    transform: translateY(-2px);
}

.app-cta-btn img {
    height: 52px;
    width: auto;
}

/* --------------------------------------------------------------------------
   More in Category Block on Post Pages
   -------------------------------------------------------------------------- */
.more-in-category-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f3f4;
}

.more-in-category-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Medical Reviewer Box
   -------------------------------------------------------------------------- */
.medical-reviewer-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 20px;
}

.medical-reviewer-banner i {
    color: #22c55e;
}

/* --------------------------------------------------------------------------
   Footer Blog Topics Column
   -------------------------------------------------------------------------- */
.footer-content {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr !important;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}
