/* Main Container */
.gpg-main-wrapper {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tabs Navigation */
.gpg-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tabs */
    gap: 20px;
}

.gpg-tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px; /* Reduced font size */
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gpg-tab-btn:hover {
    color: var(--fs-color-primary);
}

.gpg-tab-btn.active {
    color: var(--fs-color-primary);
    font-weight: 700;
}

/* HERO Section */
.gpg-hero-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #f3f4f6;
}

@media (min-width: 992px) {
    .gpg-hero-card {
        flex-direction: row;
        height: 450px; /* Fixed height for desktop */
    }
}

.gpg-hero-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .gpg-hero-image {
        width: 70%;
    }
}

.gpg-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.gpg-hero-content {
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .gpg-hero-content {
        width: 30%;
    }
}

.gpg-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 15px;
    text-align: left;
}

.gpg-tag {
    color: #1d4ed8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpg-sep {
    margin: 0 8px;
    color: #d1d5db;
}

.gpg-date {
    color: #9ca3af;
    font-weight: 500;
}

.gpg-hero-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 15px;
    text-align: left;
}

@media (min-width: 1200px) {
    .gpg-hero-title {
        font-size: 28px;
    }
}

.gpg-hero-title a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s;
}

.gpg-hero-title a:hover {
    color: var(--fs-color-primary);
}

.gpg-hero-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    display: -webkit-box;
    /*-webkit-line-clamp: 4;*/
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.gpg-read-more {
    color: var(--fs-color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Push to bottom if needed */
}

.gpg-read-more:hover {
    text-decoration: underline;
}

/* More Button Container */
.gpg-more-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Grid Section */
.gpg-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .gpg-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gpg-grid-item {
    display: flex;
    flex-direction: column;
}

.gpg-grid-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f3f4f6;
}

.gpg-grid-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gpg-grid-item:hover .gpg-grid-image img {
    transform: scale(1.05);
}

.gpg-grid-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #1d4ed8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-top-right-radius: 6px;
}

.gpg-grid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gpg-grid-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px;
}

.gpg-grid-title a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s;
}

.gpg-grid-item:hover .gpg-grid-title a {
    color: var(--fs-color-primary);
}

.gpg-grid-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}