:root {
    /* Paleta de Cores CB Drogarias */
    --cb-red: #E31C23;
    /* Vermelho vibrante */
    --cb-red-dark: #b71c1c;
    --cb-yellow: #FFD200;
    /* Amarelo destaque */
    --cb-blue: #0A2342;
    /* Azul escuro profissional */
    --cb-text: #333333;
    --cb-light: #f4f6f8;
    --white: #ffffff;

    /* Variáveis de layout */
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--cb-light);
    color: var(--cb-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--cb-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Barra de Progresso --- */
.reading-progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 9999;
}

.reading-progress-bar {
    height: 4px;
    background: var(--cb-yellow);
    width: 0%;
}

/* --- Header --- */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--cb-blue);
    font-weight: 700;
}

.logo span {
    color: var(--cb-red);
}

.logo .blog-tag {
    background: var(--cb-yellow);
    color: var(--cb-blue);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--cb-text);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--cb-red);
}

.btn-cta {
    background-color: var(--cb-yellow);
    color: var(--cb-blue);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 0, 0.4);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 15px;
    color: var(--cb-blue);
}

/* --- Hero Section --- */
.hero {
    background: url('img/bg2.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 4rem 0;
    border-bottom-right-radius: 10px;
    /* Detalhe moderno */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.badge {
    background: var(--cb-yellow);
    color: var(--cb-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-text p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--cb-red);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--cb-yellow);
    color: var(--cb-blue);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
    border: 4px solid var(--white);
}

/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 20px;
    border-left: 5px solid var(--cb-red);
    padding-left: 10px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    display: flex;
    /* Layout horizontal no desktop */
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cb-blue);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.card-content {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.meta i {
    margin-right: 5px;
    color: var(--cb-red);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--cb-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    border: 2px solid #eee;
    border-radius: 30px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}

.search-form button {
    background: var(--cb-blue);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.newsletter-widget {
    background: var(--cb-blue);
    color: var(--white);
    text-align: center;
}

.newsletter-widget h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin: 15px 0 10px 0;
}

.btn-block {
    width: 100%;
    background: var(--cb-yellow);
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    color: var(--cb-blue);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tags-container a {
    background: #eee;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tags-container a:hover {
    background: var(--cb-red);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--cb-blue);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--cb-yellow);
}

/* --- Modo Escuro (Dark Mode) --- */
body.dark-mode {
    background-color: #121212;
    --cb-text: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .main-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

body.dark-mode .card p {
    color: #bbb;
}

body.dark-mode .tags-container a {
    background: #333;
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {

    .hero-grid,
    .main-layout {
        grid-template-columns: 1fr;
    }

    .card {
        flex-direction: column;
    }

    .card-img,
    .card-content {
        width: 100%;
    }

    .card-img {
        height: 200px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
}

/* Logo Image Style */
.header-logo {
    max-height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Single Post Styles */
.single-post .post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--cb-blue);
}

.single-post .meta {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-post .post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.single-post .post-body p {
    margin-bottom: 20px;
}

.single-post .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-post .post-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Founder Profile Widget */
.founder-widget {
    text-align: center;
}

.founder-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    padding: 5px;
    border: 2px solid var(--cb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-widget h4 {
    color: var(--cb-blue);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.founder-widget p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.founder-role {
    font-weight: 600;
    color: var(--cb-text);
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tags-container a:hover {
    background: var(--cb-red);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--cb-blue);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--cb-yellow);
}

/* --- Modo Escuro (Dark Mode) --- */
body.dark-mode {
    background-color: #121212;
    --cb-text: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .main-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

body.dark-mode .card p {
    color: #bbb;
}

body.dark-mode .tags-container a {
    background: #333;
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {

    .hero-grid,
    .main-layout {
        grid-template-columns: 1fr;
    }

    .card {
        flex-direction: column;
    }

    .card-img,
    .card-content {
        width: 100%;
    }

    .card-img {
        height: 200px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
}

/* Logo Image Style */
.header-logo {
    max-height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Single Post Styles */
.single-post .post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--cb-blue);
}

.single-post .meta {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-post .post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.single-post .post-body p {
    margin-bottom: 20px;
}

.single-post .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-post .post-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Founder Profile Widget */
.founder-widget {
    text-align: center;
}

.founder-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    padding: 5px;
    border: 2px solid var(--cb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-widget h4 {
    color: var(--cb-blue);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.founder-widget p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.founder-role {
    font-weight: 600;
    color: var(--cb-text);
    display: block;
}

.founder-company {
    font-size: 0.85rem;
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.btn-page {
    display: inline-block;
    padding: 10px 15px;
    background: var(--white);
    color: var(--cb-blue);
    border-radius: 5px;
    text-decoration: none;
    align-items: center;
}

.socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--cb-yellow);
}

/* --- Modo Escuro (Dark Mode) --- */
body.dark-mode {
    background-color: #121212;
    --cb-text: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .main-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

body.dark-mode .card p {
    color: #bbb;
}

body.dark-mode .tags-container a {
    background: #333;
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {

    .hero-grid,
    .main-layout {
        grid-template-columns: 1fr;
    }

    .card {
        flex-direction: column;
    }

    .card-img,
    .card-content {
        width: 100%;
    }

    .card-img {
        height: 200px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
}

/* Logo Image Style */
.header-logo {
    max-height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Single Post Styles */
.single-post .post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--cb-blue);
}

.single-post .meta {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-post .post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.single-post .post-body p {
    margin-bottom: 20px;
}

.single-post .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-post .post-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Founder Profile Widget */
.founder-widget {
    text-align: center;
}

.founder-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    padding: 5px;
    border: 2px solid var(--cb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-widget h4 {
    color: var(--cb-blue);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.founder-widget p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.founder-role {
    font-weight: 600;
    color: var(--cb-text);
    display: block;
}

.founder-company {
    font-size: 0.85rem;
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.btn-page {
    display: inline-block;
    padding: 10px 15px;
    background: var(--white);
    color: var(--cb-blue);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-page:hover,
.btn-page.active {
    background: var(--cb-red);
    color: var(--white);
}

/* History Widget */
.history-month {
    margin-bottom: 15px;
}

.history-month h5 {
    font-size: 1rem;
    color: var(--cb-blue);
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.history-month ul {
    list-style: none;
    padding: 0;
}

.history-month ul li {
    margin-bottom: 5px;
}

.history-month ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: var(--transition);
}

.history-month ul li a:hover {
    color: var(--cb-red);
    padding-left: 5px;
}

/* --- Contact Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 15px;
    right: 20px;
    background: #0A2342;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.close-modal:hover,
.close-modal:focus {
    background: #E31C23;
    text-decoration: none;
}

.modal-title {
    text-align: center;
    color: #0A2342;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-form-modal .form-group {
    margin-bottom: 15px;
}

.contact-form-modal input,
.contact-form-modal select,
.contact-form-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.contact-form-modal input:focus,
.contact-form-modal select:focus,
.contact-form-modal textarea:focus {
    border-color: #0A2342;
}

.form-radio-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #333;
    font-weight: 500;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
}

.radio-container:hover input~.checkmark {
    border-color: #0A2342;
}

.radio-container input:checked~.checkmark {
    background-color: #fff;
    border-color: #0A2342;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0A2342;
}

.btn-submit-modal {
    width: 100%;
    background-color: #0A2342;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-modal:hover {
    background-color: #06152a;
}