/*
Theme Name: Hello Insurance Child
Description: A premium, USA-focused custom child theme for Hello Elementor. Includes custom CPTs, native meta boxes, AdSense integration, and premium Tailwind styling.
Author: Antigravity
Template: hello-elementor
Version: 1.0.0
*/

/* Custom CSS overriding Tailwind/Elementor where necessary */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.adsense-placeholder {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.875rem;
    min-height: 90px;
    margin: 1rem 0;
}

/* Fade-in animation for page sections */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Smooth hover lift for cards */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(10, 49, 97, 0.18);
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #0a3161, #b31942);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll-reveal: use Intersection Observer in JS or just animate on load */
section {
    animation: fadeInUp 0.5s ease-out both;
}

/* Hero gradient text pulse */
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stats counter glow on hover */
[data-counter]:hover {
    text-shadow: 0 0 20px rgba(10, 49, 97, 0.2);
}

/* Category card icon ring on focus */
a:focus-visible {
    outline: 3px solid #b31942;
    outline-offset: 3px;
    border-radius: 1rem;
}

/* ============================================================
   ARTICLE / BLOG POST BODY  (#article-content)
   Tailwind CDN does not ship the typography plugin, so we
   define all prose styles here explicitly.
   ============================================================ */

#article-content {
    font-size: 1.0625rem;      /* 17px */
    line-height: 1.8;
    color: #374151;
}

/* ── Paragraphs ── */
#article-content p {
    margin-top: 0;
    margin-bottom: 1.35em;
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.85;
}

/* ── Headings ── */
#article-content h2,
#article-content h3,
#article-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #0a3161;
    line-height: 1.25;
    scroll-margin-top: 7rem;
}

#article-content h2 {
    font-size: 1.625rem;       /* 26px */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2.5px solid #e2e8f0;
    position: relative;
}
#article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2.5px;
    width: 56px;
    height: 2.5px;
    background: linear-gradient(90deg, #0a3161, #b31942);
    border-radius: 2px;
}

#article-content h3 {
    font-size: 1.25rem;        /* 20px */
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e4476;
}

#article-content h4 {
    font-size: 1.0625rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e4476;
    font-weight: 700;
}

/* ── Lists ── */
#article-content ul,
#article-content ol {
    margin-top: 0.5rem;
    margin-bottom: 1.35rem;
    padding-left: 1.75rem;
    color: #374151;
}

#article-content ul {
    list-style-type: disc;
}
#article-content ol {
    list-style-type: decimal;
}

#article-content ul ul  { list-style-type: circle;  margin-bottom: 0.25rem; }
#article-content ul ul ul{ list-style-type: square; margin-bottom: 0.25rem; }

#article-content li {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
    line-height: 1.75;
    padding-left: 0.25rem;
}
#article-content li::marker {
    color: #0a3161;
    font-weight: 700;
}

/* ── Links ── */
#article-content a {
    color: #b31942;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(179,25,66,.3);
    transition: color .15s, border-color .15s;
}
#article-content a:hover {
    color: #8f1233;
    border-bottom-color: #8f1233;
}

/* ── Strong / Em ── */
#article-content strong {
    color: #0a3161;
    font-weight: 700;
}
#article-content em {
    color: #4b5563;
    font-style: italic;
}

/* ── Blockquote ── */
#article-content blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.4rem;
    border-left: 4px solid #b31942;
    background: #fff5f7;
    border-radius: 0 12px 12px 0;
    font-style: normal;
    color: #374151;
}
#article-content blockquote p {
    margin-bottom: 0;
}

/* ── Tables ── */
#article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
    margin: 1.5rem 0 1.75rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
#article-content thead {
    background: #0a3161;
    color: #fff;
}
#article-content th {
    padding: 11px 16px;
    text-align: left;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
#article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8edf5;
    vertical-align: top;
}
#article-content tbody tr:nth-child(even) { background: #f8fafc; }
#article-content tbody tr:hover           { background: #f0f4ff; }

/* ── Images ── */
#article-content img {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    margin: 1.25rem auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Code ── */
#article-content code {
    background: #f1f5f9;
    color: #0a3161;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: .9em;
    font-family: 'Courier New', monospace;
}
#article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .9rem;
    line-height: 1.7;
}
#article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ── HR ── */
#article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
    margin: 2.5rem 0;
    border-radius: 2px;
}

/* ── First paragraph lead ── */
#article-content > p:first-of-type {
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 400;
    line-height: 1.9;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    #article-content            { font-size: 1rem; }
    #article-content h2         { font-size: 1.375rem; margin-top: 2rem; }
    #article-content h3         { font-size: 1.125rem; }
    #article-content > p:first-of-type { font-size: 1.0625rem; }
}
