/* Component Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.cta-button,
.cta-button:visited,
.cta-button:active {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--dark-red);
    color: var(--white);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background-color: #eee;
}

.skeleton-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Better alignment for 2-card layouts */
#editais .cards-grid {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Items */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

/* Contact Components */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-red);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    /* Ensure vertical alignment */
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    padding: 0.3rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    /* Flexbox for anchor to center image */
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    background-color: var(--primary-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--dark-red);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-decoration: none;
    font-size: 30px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* News Components */

/* Featured News */
.featured-news-container {
    margin-bottom: 3rem;
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
}

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

.featured-news-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

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

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

.featured-news-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    flex-wrap: wrap;
    align-items: center;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date::before {
    content: "📅";
}

.news-read-time::before {
    content: "⏱️";
    margin-right: 0.3rem;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.featured-news-summary {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.news-read-more-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.news-modal-content {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.news-modal-header {
    position: relative;
}

.news-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-modal-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: var(--white);
}

.news-modal-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.news-modal-body {
    padding: 2rem;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.news-modal-content-body {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

.news-modal-content-body h2 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.news-modal-content-body h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
}

.news-modal-content-body ul,
.news-modal-content-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

.news-modal-content-body strong {
    color: var(--text-dark);
}

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

    .featured-news-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-news-content {
        padding: 1.5rem;
    }

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

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-modal-content {
        margin: 0.5rem;
        border-radius: 8px;
    }

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

    .news-modal-body {
        padding: 1.5rem;
    }

    .news-modal-image {
        height: 200px;
    }

    .news-modal-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Article Page Styles */
.breadcrumb-section {
    background: var(--light-gray);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-info {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.article-image-container {
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.article-summary {
    margin-bottom: 2rem;
}

.article-summary .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 0;
}


.article-content {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
}

.article-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

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

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

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content strong {
    color: var(--text-dark);
}

.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.back-button {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-red);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-red);
    color: var(--white);
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Mobile responsiveness for articles */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
        color: var(--text-dark) !important;
        position: static !important;
        background: none !important;
    }

    .article-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .article-image {
        height: 250px;
    }

    .article-summary .lead {
        font-size: 1.1rem;
    }

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

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

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