/* PE Blog — perguntasdaespecialidade.pt */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0065AE;
    --primary-dark: #005a9c;
    --text: #1a1a2e;
    --text-light: #555;
    --bg: #ffffff;
    --bg-alt: #f7f8fc;
    --border: #eeeeee;
    --radius: 10px;
    --shadow-sm: 0 2px 4px rgba(136,144,195,.2), 0 5px 15px rgba(37,44,97,.1);
    --shadow-md: 0 5px 15px rgba(37,44,97,.12), 0 2px 8px rgba(136,144,195,.15);
    --shadow-hover: 0 8px 30px rgba(37,44,97,.15), 0 2px 8px rgba(136,144,195,.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-brand {
    text-decoration: none;
    display: flex; align-items: center; gap: 0;
}
.nav-brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: var(--text); text-decoration: none;
    font-size: .9rem; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-btn {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary); padding: .5rem 1.5rem;
    border-radius: 50px; font-weight: 600; font-size: .9rem;
    transition: all .2s;
}
.nav-links .nav-btn:hover {
    background: var(--primary); color: #fff;
}

/* --- HERO (index) --- */
.hero {
    background: #fff;
    padding: 5rem 2rem 4rem; text-align: center;
}
.hero h1 {
    font-size: 2.8rem; font-weight: 800; line-height: 1.2;
    margin-bottom: 1rem; color: var(--text);
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero p {
    font-size: 1.1rem; color: var(--text-light);
    max-width: 540px; margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.hero-cta .btn-primary {
    background: var(--primary); color: #fff;
    padding: .75rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.hero-cta .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.hero-cta .btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
    padding: .75rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: all .2s;
}
.hero-cta .btn-outline:hover {
    background: var(--primary); color: #fff;
}

/* --- ARTICLE GRID (index) --- */
.grid-section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem; }
.grid-section h2 {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem;
    color: var(--text);
}
.article-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
.article-card {
    background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; transition: all .25s;
    text-decoration: none; color: inherit; display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: transparent;
}
.article-card h3 {
    font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: .5rem;
}
.article-card:hover h3 { color: var(--primary); }
.article-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }
.article-card .meta {
    font-size: .78rem; color: #999; margin-top: .75rem;
    display: flex; gap: 1rem;
}

/* --- CURSO DESTAQUE (homepage) --- */
.curso-destaque {
    max-width: 1100px; margin: 1rem auto 0; padding: 0 2rem;
}
.curso-card {
    background: linear-gradient(135deg, #0065AE 0%, #003c66 100%);
    color: #fff; border-radius: 16px;
    padding: 2.25rem 2.5rem;
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 2rem; align-items: center;
    box-shadow: 0 10px 40px rgba(0,101,174,.2);
}
@media (max-width: 720px) {
    .curso-card { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
}
.curso-tag {
    display: inline-block; background: rgba(255,255,255,.18);
    color: #fff; padding: .3rem 1rem; border-radius: 50px;
    font-weight: 600; font-size: .8rem; margin-bottom: .75rem;
    letter-spacing: .5px;
}
.curso-info h2 {
    font-size: 1.7rem; font-weight: 700; margin-bottom: .5rem;
    line-height: 1.25; color: #fff;
}
.curso-info p {
    color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1rem;
    line-height: 1.55;
}
.curso-features {
    list-style: none; padding: 0; margin: 0;
    font-size: .88rem; color: rgba(255,255,255,.92);
}
.curso-features li { padding: .25rem 0 .25rem 1.5rem; position: relative; }
.curso-features li::before {
    content: '\2713'; position: absolute; left: 0; color: #5ec4ff; font-weight: 700;
}
.curso-price {
    background: #fff; border-radius: 12px;
    padding: 1.5rem 1.25rem; text-align: center;
    color: var(--text);
}
.curso-price-label { font-size: .8rem; color: var(--text-light); margin-bottom: .25rem; }
.curso-price-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .25rem; }
.curso-price-hint { font-size: .75rem; color: var(--text-light); margin-bottom: 1rem; }
.curso-cta {
    display: inline-block; background: var(--primary); color: #fff;
    padding: .75rem 1.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: .95rem;
    transition: all .2s; width: 100%; box-sizing: border-box;
}
.curso-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* --- ARTICLE PAGE --- */
.article-header {
    background: #fff; padding: 4rem 2rem 2.5rem;
    border-bottom: 1px solid var(--border);
}
.article-header-inner {
    max-width: 720px; margin: 0 auto;
}
.article-header .breadcrumb {
    font-size: .82rem; color: var(--text-light); margin-bottom: 1.25rem;
}
.article-header .breadcrumb a { color: var(--primary); text-decoration: none; }
.article-header .breadcrumb a:hover { text-decoration: underline; }
.article-header h1 {
    font-size: 2.2rem; font-weight: 800; line-height: 1.2;
    color: var(--text); margin-bottom: .75rem;
}
.article-header .subtitle {
    font-size: 1.05rem; color: var(--text-light); line-height: 1.6;
}
.article-header .article-meta {
    margin-top: 1.25rem; font-size: .82rem; color: #999;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.article-body {
    max-width: 720px; margin: 0 auto; padding: 2.5rem 2rem 3rem;
}
.article-body h2 {
    font-size: 1.4rem; font-weight: 700; color: var(--text);
    margin: 2.5rem 0 1rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 {
    font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .6rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
    margin: 0 0 1rem 1.5rem;
}
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--text); }

.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-alt); padding: 1.25rem 1.5rem;
    margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-light);
}

/* Tables */
.article-body table {
    width: 100%; border-collapse: collapse; margin: 1.5rem 0;
    font-size: .9rem;
}
.article-body th, .article-body td {
    padding: .65rem .85rem; border: 1px solid var(--border); text-align: left;
}
.article-body th {
    background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem;
}
.article-body tr:nth-child(even) { background: var(--bg-alt); }

/* Info boxes */
.info-box {
    background: #eef5fc; border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box strong { display: block; margin-bottom: .3rem; color: var(--primary); }

.tip-box {
    background: #f0faf5; border-left: 4px solid #27ae60;
    padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.tip-box strong { display: block; margin-bottom: .3rem; color: #27ae60; }

/* FAQ */
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 {
    font-size: 1.05rem; margin-bottom: .3rem; color: var(--text);
}
.faq-item p { color: var(--text-light); }

/* CTA */
.cta-section {
    background: var(--primary);
    color: #fff; padding: 3rem 2rem; text-align: center;
    margin: 3rem 0 0; border-radius: var(--radius);
}
.cta-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; color: #fff; border: none; padding: 0; }
.cta-section p { opacity: .85; margin-bottom: 1.5rem; font-size: .95rem; }
.cta-btn {
    display: inline-block; background: #fff; color: var(--primary);
    padding: .75rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Related */
.related-posts {
    border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem;
}
.related-posts h2 { font-size: 1.2rem; margin-bottom: 1rem; border: none; padding: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { margin-bottom: .6rem; }
.related-list a {
    color: var(--primary); text-decoration: none; font-weight: 500;
}
.related-list a:hover { text-decoration: underline; }

/* --- FOOTER --- */
.footer {
    background: #fff; color: var(--text-light);
    padding: 3rem 2rem; text-align: center; font-size: .85rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}
.footer-links {
    margin-bottom: 1rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.footer p { color: #999; font-size: .8rem; }

/* --- RESPONSIVE --- */
@media (min-width: 640px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { padding: 0 1rem; }
    .nav-inner { height: 60px; }
    .nav-brand img { height: 38px; }
    .nav-links { display: none; }
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero h1 { font-size: 2rem; }
    .grid-section { padding: 2.5rem 1.25rem; }
    .article-header { padding: 2.5rem 1.25rem 2rem; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body { padding: 2rem 1.25rem; }
}
