/* VGT Blog System Styles */
.vgt-news-knowledge-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vgt-header {
    text-align: center;
    margin-bottom: 50px;
}

.vgt-section-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vgt-main-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.vgt-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Posts Container Layout */
.vgt-posts-container {
    margin-bottom: 40px;
    width: 100%;
}

.vgt-posts-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Row 1: col-8 + col-4 */
.vgt-row-1 {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
}

/* Row 2: col-3 + col-3 + col-3 */
.vgt-row-2 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.vgt-col-8,
.vgt-col-4,
.vgt-col-3 {
    position: relative;
    display: flex;
    width: 100%;
}

/* Post Cards */
.vgt-post-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    width: 100%;
    flex: 1;
}

.vgt-large-card {
    min-height: 350px;
}

.vgt-medium-card {
    min-height: 350px;
}

.vgt-equal-card {
    min-height: 280px;
}

.vgt-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vgt-category-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Different tag colors */
.vgt-category-tag.service-tag {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.vgt-category-tag.knowledge-tag {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.vgt-category-tag.news-tag {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.vgt-post-content {
    color: white;
}

/* Layout cho large card - mô tả và nút cùng hàng */
.vgt-large-card .vgt-post-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vgt-large-card .vgt-post-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.vgt-large-card .vgt-post-excerpt {
    flex: 1;
    margin-bottom: 0;
}

.vgt-large-card .vgt-read-more {
    flex-shrink: 0;
    align-self: flex-end;
}

.vgt-post-title {
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Different title sizes for different card types */
.vgt-large-card .vgt-post-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.vgt-medium-card .vgt-post-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.vgt-equal-card .vgt-post-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.vgt-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.vgt-read-more {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vgt-read-more:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.vgt-read-more .arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.vgt-read-more:hover .arrow {
    transform: translateX(5px);
}

/* Placeholder card */
.vgt-placeholder-card {
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    flex: 1;
}

.vgt-col-4 .vgt-placeholder-card {
    min-height: 350px;
}

.vgt-col-3 .vgt-placeholder-card {
    min-height: 280px;
}

.vgt-placeholder-text {
    color: #999;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* View All Button */
.vgt-view-all {
    text-align: center;
}

.vgt-view-all-btn {
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.vgt-view-all-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vgt-row-1 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vgt-row-2 {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .vgt-large-card,
    .vgt-medium-card {
        min-height: 280px;
    }
    
    .vgt-equal-card {
        min-height: 250px;
    }
    
    .vgt-main-title {
        font-size: 28px;
    }
    
    .vgt-large-card .vgt-post-title {
        font-size: 24px;
    }
    
    .vgt-medium-card .vgt-post-title {
        font-size: 18px;
    }
    
    .vgt-equal-card .vgt-post-title {
        font-size: 15px;
    }
    
    /* Stack layout on tablet for large card */
    .vgt-large-card .vgt-post-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vgt-large-card .vgt-read-more {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .vgt-row-1,
    .vgt-row-2 {
        grid-template-columns: 1fr;
    }
    
    .vgt-post-overlay {
        padding: 20px;
    }
    
    .vgt-large-card .vgt-post-title {
        font-size: 20px;
    }
    
    .vgt-medium-card .vgt-post-title,
    .vgt-equal-card .vgt-post-title {
        font-size: 16px;
    }
    
    .vgt-post-excerpt {
        font-size: 14px;
    }
    
    .vgt-main-title {
        font-size: 24px;
    }
    
    .vgt-large-card,
    .vgt-medium-card,
    .vgt-equal-card {
        min-height: 220px;
    }
    
    /* Stack layout on mobile for large card */
    .vgt-large-card .vgt-post-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* News & Knowledge Widget */
.vgt-news-knowledge-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vgt-header {
    text-align: center;
    margin-bottom: 50px;
}

.vgt-section-title {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vgt-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vgt-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Grid */
.vgt-posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-bottom: 40px;
}

.vgt-post-item.large-post {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vgt-post-item.large-post:hover {
    transform: translateY(-5px);
}

.vgt-post-item.large-post:first-child {
    grid-row: 1 / 3;
}

.vgt-post-item.small-post {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vgt-post-item.small-post:hover {
    transform: translateY(-3px);
}

.vgt-post-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.large-post .vgt-post-image {
    min-height: 400px;
}

.vgt-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vgt-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vgt-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vgt-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 30px 30px;
}

.vgt-post-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.small-post .vgt-post-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.vgt-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.vgt-read-more {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vgt-read-more:hover {
    color: #4CAF50;
}

.vgt-read-more .arrow {
    transition: transform 0.3s ease;
}

.vgt-read-more:hover .arrow {
    transform: translateX(5px);
}

/* View All Button */
.vgt-view-all {
    text-align: center;
}

.vgt-view-all-btn {
    background: #4CAF50;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.vgt-view-all-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Post Grid Widget */
.vgt-post-grid {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.vgt-post-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vgt-post-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vgt-post-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.vgt-grid-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vgt-grid-item:hover {
    transform: translateY(-5px);
}

.vgt-grid-image {
    position: relative;
    width: 100%;
    height: 250px;
}

.vgt-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vgt-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.vgt-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.vgt-grid-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.vgt-grid-link:hover {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vgt-posts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .vgt-post-item.large-post:first-child {
        grid-row: auto;
    }
    
    .vgt-main-title {
        font-size: 28px;
    }
    
    .vgt-post-grid.columns-3,
    .vgt-post-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vgt-post-grid {
        grid-template-columns: 1fr;
    }
    
    .vgt-main-title {
        font-size: 24px;
    }
    
    .vgt-post-content {
        padding: 20px 15px 15px;
    }
    
    .vgt-post-title {
        font-size: 18px;
    }
}