/* Custom Post Widget Styles */
.main-title{

    text-align: center;
    width: 65%;
    margin: auto;
}


.custom-post-widget {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7700 100%);
    width: 100%;
      overflow: hidden;

    /*transition: transform 0.3s ease;*/
}

/*.custom-post-widget:hover {
    transform: translateY(-5px);
}*/

.widget-container {
    display: flex;
    align-items: center;
    min-height: 300px;
    position: relative;
    width: 100%;
}

.content-section {
    flex: 1;
    z-index: 2;
}

.widget-title {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 20px 0;
    
}

.post-excerpt {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    
    
}

.button-container {
    margin-top: 30px!important;
    margin: auto;
    text-align: center;
}

.custom-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: #FFFFFF;
    padding: 8px 50px;
    border-radius: 50px;
    text-decoration: none!important;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    
}

.custom-button:hover {
    background: linear-gradient(135deg, #0097A7 0%, #00838F 100%);
    transform: translateY(-2px);
    
    color: #FFFFFF;
    text-decoration: none;
}

.custom-button i {
    font-size: 16px!important;
    color: #fff;
}

.e-font-icon-svg {
  width: 16px;
  height: 16px;
   fill: white;
}
.image-section {
    flex: 1;
    position: relative;
    height: 30%;
    min-height: 300px;
}

.post-image {
    position: relative;
    width: 80%;
    height: 80%;
    overflow: hidden;
    
    padding-top: 50px;
    padding-bottom: 50px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-post-widget:hover .post-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.network-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.network-dots .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.network-dots .dot:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.network-dots .dot:nth-child(2) {
    top: 15%;
    right: 25%;
    animation-delay: 0.3s;
}

.network-dots .dot:nth-child(3) {
    top: 35%;
    left: 8%;
    animation-delay: 0.6s;
}

.network-dots .dot:nth-child(4) {
    top: 45%;
    right: 15%;
    animation-delay: 0.9s;
}

.network-dots .dot:nth-child(5) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1.2s;
}

.network-dots .dot:nth-child(6) {
    bottom: 25%;
    right: 30%;
    animation-delay: 1.5s;
}

.network-dots .dot:nth-child(7) {
    top: 60%;
    left: 45%;
    animation-delay: 1.8s;
}

.network-dots .dot:nth-child(8) {
    bottom: 15%;
    left: 40%;
    animation-delay: 2.1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Conectores entre puntos */
.network-dots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.3) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.3) 51%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.5;
    animation: networkFlow 3s linear infinite;
}

@keyframes networkFlow {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 20px 20px, -20px 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .widget-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .content-section {
        padding: 30px 20px;
        order: 2;
    }
    
    .image-section {
        order: 1;
        min-height: 250px;
    }
    
    .post-image {
        border-radius: 15px 15px 0 0;
    }
    
    .widget-title {
        font-size: 24px;
        text-align: center;
    }
    
    .post-excerpt {
        font-size: 14px;
        text-align: center;
    }
    
    .button-container {
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 20px 15px;
    }
    
    .widget-title {
        font-size: 20px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .custom-button {
        padding: 12px 25px;
        font-size: 12px;
    }
}