/* Frontend styles for custom column layouts */

/* Base column styles */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
}

/* Custom column width styles */
.wp-block-column[style*="flex-basis:75%"],
.wp-block-column[style*="flex-basis: 75%"] {
    flex-basis: 75%;
    flex-grow: 0;
}

.wp-block-column[style*="flex-basis:25%"],
.wp-block-column[style*="flex-basis: 25%"] {
    flex-basis: 25%;
    flex-grow: 0;
}

.wp-block-column[style*="flex-basis:85%"],
.wp-block-column[style*="flex-basis: 85%"] {
    flex-basis: 85%;
    flex-grow: 0;
}

.wp-block-column[style*="flex-basis:15%"],
.wp-block-column[style*="flex-basis: 15%"] {
    flex-basis: 15%;
    flex-grow: 0;
}

.wp-block-column[style*="flex-basis:80%"],
.wp-block-column[style*="flex-basis: 80%"] {
    flex-basis: 80%;
    flex-grow: 0;
}

.wp-block-column[style*="flex-basis:20%"],
.wp-block-column[style*="flex-basis: 20%"] {
    flex-basis: 20%;
    flex-grow: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
        flex-basis: 100% !important;
        flex-grow: 1;
    }
}

/* News Post Block Frontend Styles */
.geo-news-post-block {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    background: #ffffff;
    margin: 0 0 20px 0;
    overflow: hidden;
}

.geo-news-post-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.geo-news-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.geo-news-post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #000;
}

.geo-news-post-excerpt {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.geo-news-post-button {
    display: inline-block;
    color: #4CAF50;
    text-decoration: underline;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    margin-top: auto;
    align-self: flex-start;
}

.geo-news-post-button:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .geo-news-post-block {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .geo-news-post-content {
        padding: 15px;
    }
    
    .geo-news-post-title {
        font-size: 20px;
    }
    
    .geo-news-post-excerpt {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .geo-news-post-content {
        padding: 12px;
    }
    
    .geo-news-post-title {
        font-size: 18px;
    }
    
    .geo-news-post-excerpt {
        font-size: 14px;
    }
    
    .geo-news-post-button {
        padding: 10px 0;
        font-size: 14px;
    }
}