/* News Grid and Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    text-decoration: none !important;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.news-date {
    color: #00d2b3;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212934;
    line-height: 1.4;
}

.news-link {
    margin-top: auto;
    color: #00d2b3;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Post Detail */
.post-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.post-meta {
    color: #00d2b3;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212934;
    margin-bottom: 30px;
    line-height: 1.2;
}

.featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Botones personalizados en el contenido */
.post-content .custom-button,
.post-content a.custom-button,
.post-content p.ql-align-center a,
.post-content p[style*="text-align: center"] a {
    display: inline-block !important;
    padding: 14px 35px !important;
    background: #00d2b3 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 2px solid #00d2b3 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 210, 179, 0.3) !important;
    margin: 0 !important;
}

.post-content .custom-button:hover,
.post-content a.custom-button:hover,
.post-content p.ql-align-center a:hover,
.post-content p[style*="text-align: center"] a:hover {
    background: #00b89d !important;
    border-color: #00b89d !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 210, 179, 0.4) !important;
    transform: translateY(-2px);
}

/* Asegurar que los párrafos con botones estén centrados */
.post-content p.ql-align-center,
.post-content p[style*="text-align: center"] {
    text-align: center !important;
    margin: 25px 0 !important;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00d2b3;
    text-decoration: none;
    font-weight: 600;
}

/* Loading Spinner */
.fusion-loading-container {
    display: inline-block;
}

.fusion-loading-spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 auto;
}

.fusion-loading-dot1,
.fusion-loading-dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: #00d2b3;
    border-radius: 100%;
    animation: fusion-bounce 2.0s infinite ease-in-out;
}

.fusion-loading-dot2 {
    top: auto;
    bottom: 0;
    animation-delay: -1.0s;
}

@keyframes fusion-bounce {

    0%,
    100% {
        transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
    }
}