/*===========================
  WhatsApp Button Pulse
============================ */
.btn-whatsapp-pulse {
    background: #25d366;
    color: white;
    position: fixed;
    bottom: 100px;
    right: 20px;
    font-size: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 0;
    padding: 35px;
    text-decoration: none;
    border-radius: 50%;
    z-index: 9999;
    animation-name: pulse;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.btn-whatsapp-pulse:hover {
    text-decoration: none;
}

.btn-whatsapp-pulse::after {
    content: "Me chame no WhatsApp";
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.2;
}

.btn-whatsapp-pulse:hover::after,
.btn-whatsapp-pulse:focus::after {
    opacity: 1;
    transform: translateY(-4px);
}

.btn-newsletter-pulse {
    background: #007bff;
    color: #ffffff;
    position: fixed;
    bottom: 190px;
    right: 20px;
    font-size: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 0;
    padding: 35px;
    text-decoration: none;
    border-radius: 50%;
    z-index: 9999;
    animation-name: pulse-newsletter;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.btn-newsletter-pulse:hover {
    text-decoration: none;
}

.btn-newsletter-pulse::after {
    content: "Escreva-se em nossa Newsletter";
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.2;
}

.btn-newsletter-pulse:hover::after,
.btn-newsletter-pulse:focus::after {
    opacity: 1;
    transform: translateY(-4px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    80% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-newsletter {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
    }

    80% {
        box-shadow: 0 0 0 14px rgba(0, 123, 255, 0);
    }
}

.btn-whatsapp-pulse-border {
    bottom: 120px;
    right: 20px;
    animation-play-state: paused;
}

.btn-whatsapp-pulse-border::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    padding: 25px;
    border: 5px solid #25d366;
    opacity: 0.75;
    animation-name: pulse-border;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.btn-newsletter-pulse-border {
    bottom: 210px;
    right: 20px;
    animation-play-state: paused;
}

.btn-newsletter-pulse-border::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    padding: 25px;
    border: 5px solid #007bff;
    opacity: 0.75;
    animation-name: pulse-border-newsletter;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

@keyframes pulse-border-newsletter {
    0% {
        padding: 25px;
        opacity: 0.75;
    }

    75% {
        padding: 50px;
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulse-border {
    0% {
        padding: 25px;
        opacity: 0.75;
    }

    75% {
        padding: 50px;
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/*===========================+
  Privacy, Cookies and others
============================+ */

#privacyModal .modal-dialog {
    max-width: 90%;
    margin: 30px auto;
}

#privacyModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#privacyModal .modal-body {
    padding: 30px 40px;
    max-height: 70vh;
    overflow-y: auto;
}

#privacyModal h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

#privacyModal h4 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

#privacyModal p {
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

#privacyModal ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

#privacyModal ul li {
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

#privacyModal a {
    color: #3498db;
    text-decoration: none;
}

#privacyModal a:hover {
    color: #2980b9;
    text-decoration: underline;
}

#privacyModal .star-primary {
    border-color: #3498db;
    border-width: 2px;
    margin: 20px 0;
}

#privacyModal .modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 40px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

#privacyModal .btn-default {
    background-color: #95a5a6;
    border-color: #95a5a6;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
}

#privacyModal .btn-default:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    color: white;
}

/* Scrollbar customization for webkit browsers */
#privacyModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#privacyModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#privacyModal .modal-body::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

#privacyModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Contact Form Input Styles */
#contact-section .form-control {
    color: #ffffff !important;
}

#contact-section .form-control::-webkit-input-placeholder {
    color: #cccccc !important;
}

#contact-section .form-control::-moz-placeholder {
    color: #cccccc !important;
    opacity: 1;
}

#contact-section .form-control:-ms-input-placeholder {
    color: #cccccc !important;
}

#contact-section .form-control::placeholder {
    color: #cccccc !important;
}

/* reCAPTCHA Styles */
.recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #3498db;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    margin: 0 0 10px 0;
    color: #3498db;
    font-size: 18px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ecf0f1;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #5dade2;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-consent-btn.accept:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cookie-consent-btn.decline {
    background: transparent;
    color: #bdc3c7;
    border: 2px solid #7f8c8d;
}

.cookie-consent-btn.decline:hover {
    background: #7f8c8d;
    color: white;
}

.cookie-consent-icon {
    font-size: 24px;
    color: #f39c12;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: auto;
    }

    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-consent-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Alertas do Formulário de e-mail */
.alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert .close span[aria-hidden="true"] {
    font-size: 20px;
    color: #000;
    opacity: 0.9;
    line-height: 1;
}

/*===========================
  Social Button CSS (Melhorado)
============================ */
.row-centered {
    text-align: center;
}
.col-centered {
    display: inline-block;
    float: none;
    margin-right: -4px;
}
.social-meta {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-btns {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn_old {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    margin: 0 0.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.15s,
        opacity 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.share-btn_old i {
    font-size: 1.3em;
    margin-right: 0.3em;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: #fff;
    border: none;
    padding: 0.18em 0.5em;
    /* menor */
    border-radius: 12px;
    /* menor */
    font-size: 0.75em;
    /* menor */
    font-weight: 600;
    margin: 0 0.15em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.15s,
        opacity 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.share-btn i {
    font-size: 1em;
    /* menor */
    margin-right: 0.2em;
    /* menor */
}

.share-btn:focus,
.share-btn:hover {
    opacity: 0.92;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.share-btn:active {
    color: #e2e2e2;
    transform: scale(0.98);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #55acee 60%, #2795e9 100%);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998 60%, #30487b 100%);
}

.share-btn.threads {
    background: linear-gradient(135deg, #444444 60%, #222222 100%);
}

.share-btn.substack {
    background: linear-gradient(135deg, #ff6719 60%, #ffb84d 100%);
    color: #fff;
}

.share-btn.reddit {
    background: linear-gradient(135deg, #ff5700 60%, #c44100 100%);
}

.share-btn.hackernews {
    background: linear-gradient(135deg, #ff6600 60%, #c44d00 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #4875b4 60%, #25497d 100%);
}
.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 60%, #005f8c 100%);
}

.share-btn.pinterest {
    background: linear-gradient(135deg, #e60023 60%, #b8001b 100%);
}

.share-btn.tumblr {
    background: linear-gradient(135deg, #36465d 60%, #222f3e 100%);
}

.share-btn.pocket {
    background: linear-gradient(135deg, #ef4056 60%, #b92b3a 100%);
}
.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 60%, #1ebc5a 100%);
}

.share-btn.email {
    background: linear-gradient(135deg, #444444 60%, #222222 100%);
}

.share-btn.link {
    background: linear-gradient(135deg, #ef4056 60%, #b92b3a 100%);
}

/* Responsivo: botões menores em telas pequenas */
@media (max-width: 480px) {
    .share-btn {
        font-size: 0.95em;
        padding: 0.35em 0.9em;
        border-radius: 22px;
    }

    .share-btn i {
        font-size: 1.1em;
        margin-right: 0.25em;
    }

    .share-btns {
        gap: 0.3em;
    }
}

/* Responsivo: ainda menores em telas pequenas */
@media (max-width: 600px) {
    .share-btn {
        font-size: 0.88em;
        padding: 0.28em 0.7em;
        border-radius: 18px;
    }
    .share-btn i {
        font-size: 1em;
    }
    .share-btns {
        gap: 0.18em;
    }
}

/*=====================================
  Estilo para a seção de tags do blog
=====================================*/
.blog-tags {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 18px 16px 12px 16px;
    margin: 20px 0 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.blog-tags-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    letter-spacing: 0.5px;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    display: inline-block;
    background: #e3e7ed;
    color: #2a3b4d;
    font-size: 0.90rem;      /* Aumentado */
    padding: 10px 22px;      /* Aumentado */
    border-radius: 28px;     /* Aumentado */
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1px solid #d1d9e6;
    box-shadow: 0 1px 2px rgba(44, 62, 80, 0.04);
    margin-bottom: 4px;
}

.blog-tag:hover,
.blog-tag:focus {
    background: #2a3b4d;
    color: #fff;
    border-color: #2a3b4d;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    text-decoration: none;
}

/* Responsivo: .blog-tag menor em smartphones */
@media (max-width: 600px) {
    .blog-tag {
        font-size: 0.68rem;
        padding: 7px 14px;
        border-radius: 18px;
    }
}

/*=====================================
  Estilo para a search box
=====================================*/
.header-search-wrap {
    position: relative;
    margin: 10px 0 10px 0;
}

input[name="q"].form-control {
    border: 2px solid #007bff;
    border-radius: 25px;
    padding: 10px 35px 10px 20px;
    font-size: 16px;
    background: #f9f9f9;
    transition: border-color 0.3s, background 0.3s;
    box-shadow: none;
}

input[name="q"].form-control:focus {
    border-color: #0056b3;
    background: #fff;
    outline: none;
}

/* Estilo para o botão de pesquisa */
button.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #007bff;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.header-search-wrap {
    position: relative;
}

/*=============================
	Instagram
===============================*/
.offCanvas-instagram {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 0;
    margin-left: -5px;
    margin-right: -5px;
    margin-top: 55px;
}

.offCanvas-instagram li {
    width: 25%;
    flex: 0 0 25%;
    padding-left: 5px;
    padding-right: 5px;}

.offCanvas-instagram li a img {
    height: 70px; /* ajuste conforme necessário */
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.blog-details-social .list-wrap li:nth-child(3) a {
    background: var(--instagram);
}
.instagram-inner-wrap {
    padding: 0 10px;
}

.instagram-inner-wrap .row {
    --bs-gutter-x: 10px;
}

/*
.instagram-inner-wrap .row .col {
    width: 100% !important;
    display: block !important;
    padding: 0 5px;
}
*/
.instagram-inner-wrap .row .col,
.instagram-inner-wrap .row .col-6,
.instagram-inner-wrap .row .col-md-3 {
    width: auto !important;
    display: block !important;
    padding: 8px;
}


.instagram-item {
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
}

.instagram-item a {
    position: relative;
}

.instagram-item a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--tg-secondary-color);
    opacity: 0;
    pointer-events: none;
    transition: all ease 0.8s;
    transform: scale(0);
}

.instagram-item a::before {
    content: "\f16d";
    position: absolute;
    z-index: 2;
    font-family: "Font Awesome 5 Brands";
    font-weight: 500;
    font-size: 30px;
    color: var(--tg-white);
    left: 50%;
    top: -250%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all ease 0.8s;
    transition: all ease 0.8s;
}

.instagram-item a:hover::before {
    visibility: visible;
    opacity: 1;
}

.instagram-item:hover a::after {
    opacity: .8;
    transform: scale(1);
}

.instagram-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.instagram-item img:hover {
    transform: scale(1.1);
}
@media (max-width: 600px) {
    .instagram-item img {
        max-height: 80px;
    }
    .instagram-item {
        width: 100%;
    }
    .instagram-item a::before {
        top: -150%;
    }
}
