/* ===== News Header Style ===== */
.default-section h1 span {
    color: #dfffca;
    background: linear-gradient(98deg, #38ffbf, #ffd100);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== News Hero — Homepage Style ===== */
.hero-news {
    position: relative;
    background: url('/website/img/hero.jpg') no-repeat bottom #000000;
    background-size: cover;
    color: white;
    padding: 100px 0;
    height: 720px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-news:before {
    content: '';
    z-index: 1;
    background: rgb(0 0 0 / 40%);
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-news .container {
    position: relative;
    z-index: 2;
}

.hero-news h1 {
    color: #FFF;
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    margin-top: 1em;
}

.hero-news h1 span {
    color: #dfffca;
    background: linear-gradient(98deg, #38ffbf, #ffd100);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-news p {
    color: #FFF;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 168%;
    text-shadow: 1px 2px 2px #000000d9;
}

/* News Detail Hero */
.hero-news-detail {
    position: relative;
    background-size: cover;
    color: white;
    padding: 14px 0;
    min-height: 146px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-news-detail:before {
    content: '';
    z-index: 1;
    background: rgb(0 0 0 / 70%);
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-news-detail .container {
    position: relative;
    z-index: 2;
}

.hero-news-detail h1 {
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    margin-top: 0em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-news-detail .lead {
    color: #FFF;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 168%;
    text-shadow: 1px 2px 2px #000000d9;
    opacity: 0.95;
}

.news-meta {
    font-size: 0.95rem;
}

/* Featured News Card */
.card-news-featured {
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    background: #fff;
}

.card-news-featured:hover {
    transform: translateY(-2px);
}

.news-thumb-featured {
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
}

.news-thumb-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-news-featured:hover .news-thumb-featured img {
    transform: scale(1.02);
}

.news-title-featured {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-title-featured a:hover {
    color: #38b000;
}

.news-desc-featured {
    font-size: 1.1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Regular News Cards */
.card-news {
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.card-news:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-news .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    text-overflow: ellipsis;
}

.news-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.news-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-news:hover .news-thumb img {
    transform: scale(1.05);
}

.card-news:hover .news-thumb-overlay {
    opacity: 1;
}

.news-title a:hover {
    color: #38b000;
}

/* News Article */
.news-article {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
    color: #2d9000;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.5rem;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid #38b000;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-share {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

/* News Sidebar */
.news-sidebar .card {
    border-radius: 16px;
    overflow: hidden;
}

.related-post {
    transition: background-color 0.3s ease;
}

.related-post:hover {
    background-color: #f8f9fa;
}

.related-post:last-child {
    border-bottom: none !important;
}

.related-post h6 a {
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.related-post h6 a:hover {
    color: #38b000;
}

/* Badges */
.bg-vl-light {
    background-color: rgba(56, 176, 0, 0.15);
    color: #2d9000;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Hero Search Bar */
.search-container {
    max-width: 500px;
    margin-top: 2rem;
}

.search-form {
    margin: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    padding-right: 3rem;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: rgba(56, 255, 191, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(56, 255, 191, 0.2);
}

.search-input::placeholder {
    color: #666;
    font-weight: 400;
}

.search-clear {
    position: absolute;
    right: 15px;
    color: #666;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease;
    font-weight: bold;
}

.search-clear:hover {
    color: #38b000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

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

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

/* CTA Section */
.cta-news {
    background: linear-gradient(to bottom right, #FFF4E4 0%, #FFF 40%, #FFF 60%, #F2FFEE 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-news {
        height: 550px;
        padding: 60px 0;
        text-align: center;
        background-position: center center;
        background-size: cover;
    }

    .hero-news-detail {
        height: 212px;
        padding: 14px 0;
        text-align: center;
        background-position: center center;
        background-size: cover;
    }

    .hero-news h1,
    .hero-news-detail h1 {
        font-size: 2em;
        margin-top: 0.5em;
    }

    .hero-news p,
    .hero-news-detail .lead {
        font-size: 1em;
    }

    .search-container {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .search-input {
        padding: 10px 15px;
        padding-right: 2.5rem;
        font-size: 14px;
    }

    .search-clear {
        right: 12px;
        font-size: 16px;
    }

    .news-article {
        padding: 1.5rem;
    }

    .news-content {
        font-size: 1rem;
    }

    .news-content h2 {
        font-size: 1.5rem;
    }

    .news-content h3 {
        font-size: 1.3rem;
    }

    .news-sidebar {
        margin-top: 2rem;
    }

    .card-news-featured .row {
        flex-direction: column;
    }

    .news-thumb-featured {
        height: 250px;
        min-height: 250px;
    }

    .news-title-featured {
        font-size: 1.5rem;
    }

    .news-desc-featured {
        font-size: 1rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Button improvements */
.btn-green {
    background: linear-gradient(135deg, #E7FFD1, #B8FFA9);
    border: 1px solid rgba(56, 176, 0, 0.2);
    color: #0F7A58;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-green:hover {
    background: linear-gradient(135deg, #D4F5BC, #A0E895);
    color: #0C5D43;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 176, 0, 0.4);
}

.btn-green:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(56, 176, 0, 0.3);
}

.btn-green.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.share-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.share-btn:hover:before {
    transform: scale(1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    position: relative;
    z-index: 2;
}

/* Facebook Button */
.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.share-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #0b5ed7);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Twitter/X Button */
.share-twitter {
    background: linear-gradient(135deg, #000000, #1c1c1c);
}

.share-twitter:hover {
    background: linear-gradient(135deg, #1c1c1c, #2d2d2d);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Pinterest Button */
.share-pinterest {
    background: linear-gradient(135deg, #bd081c, #e60023);
}

.share-pinterest:hover {
    background: linear-gradient(135deg, #a5071a, #cc001f);
    box-shadow: 0 4px 12px rgba(189, 8, 28, 0.4);
}

/* Large Share Buttons (for news-detail page) */
.share-buttons-large {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.share-btn-large:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.share-btn-large:hover:before {
    transform: scale(1);
}

.share-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn-large i {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.share-btn-large span {
    position: relative;
    z-index: 2;
}

/* Large Facebook Button */
.share-btn-large.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.share-btn-large.share-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #0b5ed7);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

/* Large Twitter/X Button */
.share-btn-large.share-twitter {
    background: linear-gradient(135deg, #000000, #1c1c1c);
}

.share-btn-large.share-twitter:hover {
    background: linear-gradient(135deg, #1c1c1c, #2d2d2d);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Large Pinterest Button */
.share-btn-large.share-pinterest {
    background: linear-gradient(135deg, #bd081c, #e60023);
}

.share-btn-large.share-pinterest:hover {
    background: linear-gradient(135deg, #a5071a, #cc001f);
    box-shadow: 0 6px 20px rgba(189, 8, 28, 0.3);
}

/* Facebook Sidebar */
.facebook-sidebar {
    position: sticky;
    top: 2rem;
}

/* Facebook Timeline Container */
.facebook-timeline-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(24, 119, 242, 0.1);
}

.facebook-timeline-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.2);
}

/* Facebook Timeline Header */
.facebook-timeline-header {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    padding: 0.75rem 1.25rem;
    color: white;
    margin-bottom: 8px;
}

.facebook-logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.facebook-logo-circle i {
    color: white;
    font-size: 1.5rem;
}

.facebook-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.facebook-logo-fallback {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.facebook-timeline-header h4 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.facebook-timeline-header .btn-facebook {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.facebook-timeline-header .btn-facebook:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Facebook Timeline Iframe */
.facebook-timeline-iframe {
    position: relative;
    padding: 0;
    background: #f8f9fa;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.facebook-timeline-iframe iframe {
    width: 100%;
    min-width: 100%;
    border: none;
    display: block;
    background: transparent;
    transform: scale(1.05);
    transform-origin: top left;
    margin: -10px -20px;
}

/* Facebook Timeline Footer */
.facebook-timeline-footer {
    background: linear-gradient(to right, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(24, 119, 242, 0.1);
}

.facebook-timeline-footer .btn-facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

/* Facebook Button */
.btn-facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border: 1px solid rgba(24, 119, 242, 0.2);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.btn-facebook:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

.btn-facebook.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-facebook.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-facebook i {
    font-size: 0.9em;
}

/* Facebook Call to Action */
.facebook-cta {
    background: rgba(24, 119, 242, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(24, 119, 242, 0.1);
    transition: all 0.3s ease;
}

.facebook-cta:hover {
    background: rgba(24, 119, 242, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.15);
}

/* Facebook Button Center */
.facebook-button-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 3rem 2rem;
}

/* Responsive Facebook Timeline */
@media (min-width: 1200px) {
    .facebook-timeline-iframe iframe {
        height: 900px;
    }
}

@media (max-width: 1199px) {
    .facebook-timeline-iframe iframe {
        height: 900px;
    }
}

@media (max-width: 992px) {
    .facebook-sidebar {
        position: relative;
        margin-bottom: 2rem;
    }

    .facebook-timeline-iframe iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .facebook-timeline-header {
        padding: 1rem 1.5rem;
    }

    .facebook-timeline-header .d-flex {
        flex-direction: row;
        text-align: center;
        gap: 1rem;
    }

    .facebook-timeline-footer {
        padding: 1rem 1.5rem;
    }

    .facebook-timeline-iframe iframe {
        height: 500px;
    }

    .facebook-logo-circle {
        width: 40px;
        height: 40px;
    }

    .facebook-logo-circle i {
        font-size: 1.2rem;
    }

    .facebook-logo-image {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .facebook-timeline-container {
        margin: 0 1rem;
        border-radius: 16px;
    }

    .facebook-timeline-header {
        padding: 1rem;
    }

    .facebook-timeline-footer {
        padding: 1rem;
    }

    .facebook-timeline-iframe iframe {
        height: 400px;
        transform: scale(1.02);
        margin: -5px -10px;
    }

    .facebook-timeline-header h4 {
        font-size: 1.1rem;
    }

    /* Share Buttons Mobile */
    .share-buttons {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: row;
        gap: 0.25rem;
    }

    .share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* Large share buttons mobile */
    .share-buttons-large {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .share-btn-large {
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .share-btn-large i {
        font-size: 1rem;
    }
}

/* Back button wrapper */
.post-back {
    display: flex;
    justify-content: flex-start;
}

/* Back button style */
.btn-back {
    --btn-bg1: #38b000;
    --btn-bg2: #2d9000;
    --btn-shadow: rgba(56, 176, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--btn-bg1), var(--btn-bg2));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    box-shadow: 0 8px 18px var(--btn-shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-back i {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px var(--btn-shadow);
    filter: brightness(1.03);
}

.btn-back:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px var(--btn-shadow);
}

.btn-back:focus-visible {
    outline: 3px solid rgba(56, 176, 0, 0.35);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(56, 176, 0, 0.2);
}

/* Ajuste em telas pequenas */
@media (max-width: 480px) {
    .btn-back {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .btn-back {
        transition: none;
    }
}