/* ==========================================================================
   LAYOUT BLOG & SINGLE POST - PAT.TEC.BR
   ========================================================================== */
:root {
    --pat-orange: #f27a22;
    --pat-orange-hover: #d66415;
    --pat-dark-blue: #121a2f;
    --pat-bg-gray: #f8f9fa;
    --pat-text-dark: #222;
    --pat-text-light: #666;
}

body { background-color: var(--pat-bg-gray); }
.pat-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pat-main-bg { background-color: var(--pat-bg-gray); padding-bottom: 60px; }

/* Tipografia de links base */
.pat-main-bg a, .pat-blog-hero a { text-decoration: none; }

/* ================== HERO GERAL (Topo escuro) ================== */
.pat-blog-hero {
    background-color: var(--pat-dark-blue);
    background-image: linear-gradient(to right, #0f1526 1px, transparent 1px), linear-gradient(to bottom, #0f1526 1px, transparent 1px);
    background-size: 50px 50px;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.pat-hero-subtitle {
    color: var(--pat-orange);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}
.pat-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    margin-bottom: 45px;
}
.pat-single-header-meta {
    color: #a0a5b5;
    font-size: 0.95rem;
    margin-top: 20px;
}

/* ================== HOME DO BLOG ================== */
.pat-featured-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: -40px auto 50px; /* Sobe no fundo azul */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.pat-featured-post:hover { transform: translateY(-5px); }
.pat-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.pat-featured-content { padding: 30px 40px; }
.pat-featured-content .entry-title { font-size: 1.8rem; color: var(--pat-text-dark); margin-bottom: 10px; }
.pat-featured-content .entry-summary { color: var(--pat-text-light); font-size: 1.05rem; margin-bottom: 15px;}

/* Layout Colunas Home */
.pat-content-area { display: flex; gap: 40px; align-items: flex-start; }
.pat-posts-grid-section { flex: 1; }
.pat-sidebar { width: 350px; flex-shrink: 0; display: flex; flex-direction: column; gap: 25px; }

/* Grid de Posts Home */
.pat-section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; color: var(--pat-text-dark); }
.pat-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.pat-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.pat-grid-card:hover { transform: translateY(-3px); }
.pat-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pat-card-content { padding: 25px; }
.pat-card-content .entry-title { font-size: 1.2rem; line-height: 1.4; color: var(--pat-text-dark); margin-bottom: 10px; }
.pat-card-content .entry-summary { font-size: 0.9rem; color: var(--pat-text-light); margin-bottom: 15px; }
.pat-leia-mais { color: var(--pat-orange); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }

/* Paginação */
.pat-pagination { margin-top: 30px; text-align: center; }
.pat-pagination .page-numbers { padding: 10px 15px; background: #fff; color: #333; border-radius: 6px; font-weight: bold; margin: 0 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.pat-pagination .page-numbers.current, .pat-pagination .page-numbers:hover { background: var(--pat-orange); color: #fff; }

/* Sidebar Widgets */
.pat-widget { padding: 30px; border-radius: 12px; }
.pat-widget h4 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.3; }
.pat-widget-white { background: #fff; border: 1px solid var(--pat-orange); }
.pat-widget-black { background: #1a1a1a; color: #fff; }
.pat-widget-black h4 { color: #fff; }
.pat-widget-tag { display: inline-block; color: #999; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 15px; }
.pat-check-list { list-style: none; padding: 0; margin: 20px 0; }
.pat-check-list li { margin-bottom: 10px; font-size: 0.9rem; color: #ddd; }
.pat-btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: bold; text-align: center; transition: background 0.3s; cursor: pointer; text-decoration: none; }
.pat-btn-orange { background: var(--pat-orange); color: #fff !important; }
.pat-btn-orange:hover { background: var(--pat-orange-hover); }
.pat-widget-author { text-align: center; border-color: #ddd; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.pat-author-img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; display: block; }
.pat-linkedin-link { color: var(--pat-orange); font-weight: bold; font-size: 0.9rem; }

/* ================== INTERNA DO POST (SINGLE) ================== */
.pat-single-container {
    max-width: 900px; /* Largura ideal para leitura de texto */
}
.pat-single-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: -40px auto 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 50px;
}
.pat-single-thumbnail {
    margin: -50px -50px 30px -50px; /* Faz a imagem encostar nas bordas do card */
}
.pat-single-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}
.pat-single-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}
.pat-single-content p {
    margin-bottom: 1.5em;
}
.pat-single-content h2, .pat-single-content h3 {
    color: var(--pat-text-dark);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}
.pat-single-content ul, .pat-single-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}
.pat-single-content li {
    margin-bottom: 10px;
}
.pat-single-content a {
    color: var(--pat-orange);
    text-decoration: underline;
    font-weight: 600;
}
.pat-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.pat-single-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.tags-links a {
    background: #f1f1f1;
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 5px;
    display: inline-block;
}

/* ================== CTA INFERIOR ================== */
.pat-cta-bottom {
    background-color: var(--pat-dark-blue);
    background-image: linear-gradient(to right, #0f1526 1px, transparent 1px), linear-gradient(to bottom, #0f1526 1px, transparent 1px);
    background-size: 50px 50px;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.pat-cta-bottom h2 { font-size: 2.2rem; color: #fff; margin-bottom: 15px; line-height: 1.3;}
.pat-cta-bottom p { font-size: 1.1rem; color: #ccc; margin-bottom: 30px; }

/* ================== RESPONSIVO ================== */
@media(max-width: 992px) {
    .pat-content-area { flex-direction: column; }
    .pat-sidebar { width: 100%; }
}
@media(max-width: 768px) {
    .pat-posts-grid { grid-template-columns: 1fr; }
    .pat-hero-title { font-size: 2rem; }
    .pat-cta-bottom h2 { font-size: 1.8rem; }
    .pat-featured-content { padding: 20px; }
    
    .pat-single-article { padding: 25px; margin-top: -20px; }
    .pat-single-thumbnail { margin: -25px -25px 20px -25px; }
}