/* ==========================================================================
   ASHIRWADA BABY NAMES - DEDICATED ARTICLE / KNOWLEDGE PAGES STYLES
   ========================================================================== */

/* 1. Article Page Layout */
.article-page-main {
    padding-top: 110px;
    padding-bottom: 90px;
    min-height: 90vh;
    background: radial-gradient(circle at 50% 8%, rgba(245, 158, 11, 0.08) 0%, rgba(37, 7, 66, 0.35) 45%, #05000c 80%);
    position: relative;
    overflow-x: hidden;
}

.article-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* 2. Breadcrumbs */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #fef08a;
    text-decoration: underline;
}

.article-breadcrumb span.sep {
    color: #64748b;
}

.article-breadcrumb span.current {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* 3. Article Header */
.article-header {
    text-align: left;
    margin-bottom: 32px;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-title {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #94a3b8;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* 4. Featured Image / Hero Media Area */
.article-featured-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(88, 28, 135, 0.35) 50%, rgba(5, 0, 12, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-featured-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.article-featured-box:hover img {
    transform: scale(1.02);
}

/* Luxury Placeholder when image is not yet provided */
.article-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #ffffff;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18) 0%, rgba(20, 2, 40, 0.85) 75%);
}

.placeholder-icon {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 15px rgba(245, 158, 11, 0.5));
}

.placeholder-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fef08a;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.placeholder-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 480px;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

/* 5. Article Content Typography */
.article-content {
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
    font-size: 1.06rem;
    line-height: 1.88;
    color: #cbd5e1;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content h2 {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    color: #fef08a;
    line-height: 1.35;
    margin: 44px 0 18px 0;
    padding-left: 16px;
    border-left: 4px solid #f59e0b;
    position: relative;
}

.article-content h3 {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    color: #f59e0b;
    line-height: 1.4;
    margin: 30px 0 14px 0;
}

.article-content ul,
.article-content ol {
    margin: 18px 0 26px 26px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Highlight Box (Golden Insight) */
.article-highlight-box {
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 24px 26px;
    margin: 32px 0;
    backdrop-filter: blur(10px);
}

.article-highlight-box h4 {
    color: #fcd34d;
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
}

.article-highlight-box p {
    margin-bottom: 0;
    color: #e2e8f0;
    font-size: 0.98rem;
}

/* Quick Table Style */
.article-table-wrapper {
    overflow-x: auto;
    margin: 28px 0 32px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.article-table th {
    background: rgba(245, 158, 11, 0.15);
    color: #fef08a;
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.article-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* 6. Social Share & Direct WhatsApp Share */
.article-share-bar {
    margin: 45px 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.share-label {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.share-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.share-facebook {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.share-facebook:hover {
    background: #1464cc;
    transform: translateY(-2px);
}

.share-copy {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.share-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 7. Conversion CTA Box at Bottom of Article */
.article-conversion-cta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(45, 10, 75, 0.8) 50%, rgba(18, 2, 36, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 24px;
    padding: 42px 36px;
    text-align: center;
    margin: 50px 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15);
    overflow: hidden;
}

.article-conversion-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-title {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(24px, 3.5vw, 34px);
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.35;
}

.cta-desc {
    font-size: 1.02rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 28px auto;
    line-height: 1.7;
}

.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #05000c;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.cta-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fef08a, #f59e0b);
}

/* 8. Related Articles Grid */
.related-articles-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-title {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.related-card-title {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.5;
    margin-bottom: 14px;
}

.related-card-link {
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-page-main {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .article-container {
        padding: 0 16px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-conversion-cta {
        padding: 30px 20px;
    }

    .cta-action-btn {
        width: 100%;
        justify-content: center;
    }

    .article-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   THE PERFECT BLOG POST STRUCTURE (Photo 1 Reference)
   - Clean Headline (No Category Badge / No Meta Bar)
   - Opening Text + Half-Width Image
   - Mid-Article CTA (CTA 1)
   - High-Converting Closing CTA (CTA 2)
   ========================================================================== */
.article-lead-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    margin: 28px 0 40px 0;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-lead-text {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #e2e8f0;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-lead-text p {
    margin: 0 0 16px 0;
    font-size: 1.12rem;
    line-height: 1.85;
    color: #e2e8f0;
}

.article-lead-text p:last-child {
    margin-bottom: 0;
}

.article-lead-text strong {
    color: #fcd34d;
}

.article-half-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
    background: #0d0d14;
}

.article-half-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-half-media:hover img {
    transform: scale(1.05);
}

/* Mid-Article CTA (CTA 1) */
.article-mid-cta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(37, 7, 66, 0.5) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 36px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.article-mid-cta .mid-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fcd34d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-mid-cta .mid-cta-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.45;
    margin: 0;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-mid-cta .mid-cta-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-mid-cta .mid-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 22px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    margin-top: 4px;
    font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif;
}

.article-mid-cta .mid-cta-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    color: #000000;
}

@media (max-width: 768px) {
    .article-lead-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 20px 0 30px 0;
        padding-bottom: 24px;
    }

    .article-half-media {
        aspect-ratio: 16 / 10;
    }

    .article-mid-cta {
        padding: 20px;
    }
}

/* 9. Nakath Letters & Astrological Category Chips */
.nakath-char {
    display: inline-block;
    color: #fef08a;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 8px;
    min-width: 38px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.article-table tr:hover .nakath-char {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.astro-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 28px 0 34px 0;
}

.astro-cat-card {
    border-radius: 18px;
    padding: 24px;
    position: relative;
    backdrop-filter: blur(10px);
}

.astro-cat-card.subha {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 46, 22, 0.25) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.08);
}

.astro-cat-card.asubha {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, rgba(69, 10, 10, 0.25) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.08);
}

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

.astro-cat-card.subha .cat-badge-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 700;
}

.astro-cat-card.asubha .cat-badge-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 700;
}

.astro-cat-card h4 {
    font-family: 'UN-Agni', 'Noto Sans Sinhala', sans-serif;
    font-size: 1.15rem;
    margin: 0;
    color: #ffffff;
}

.astro-cat-card ul {
    margin: 0;
    padding-left: 18px;
}

.astro-cat-card li {
    font-size: 0.96rem;
    margin-bottom: 8px;
    line-height: 1.7;
    color: #cbd5e1;
}

.astro-cat-card.subha strong {
    color: #a7f3d0;
}

.astro-cat-card.asubha strong {
    color: #fecaca;
}

@media (max-width: 768px) {
    .astro-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-table td,
    .article-table th {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .nakath-char {
        font-size: 0.95rem;
        padding: 2px 6px;
        min-width: 30px;
    }
}