/* Premium Posts Grid Showcase - IELTS Wave Brand Edition */
:root {
    --ppgs-primary: #193664;
    --ppgs-primary-dark: #0e1528;
    --ppgs-orange: #E85D04;
    --ppgs-orange-light: #F48C06;
    --ppgs-orange-dark: #BB3E03;
    --ppgs-white: #FFFFFF;
    --ppgs-gray-light: #F8FAFE;
    --ppgs-gray-border: #E8EDF2;
    --ppgs-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --ppgs-shadow-hover: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.ppgs-grid-container {
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ppgs-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ppgs-grid-item {
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.ppgs-col-1 { width: 100%; }
.ppgs-col-2 { width: 50%; }
.ppgs-col-3 { width: 33.333%; }
.ppgs-col-4 { width: 25%; }
.ppgs-col-6 { width: 16.666%; }

/* Post Card Base */
.ppgs-post-card {
    background: var(--ppgs-white);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ppgs-gray-border);
}

.ppgs-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--ppgs-orange);
    box-shadow: var(--ppgs-shadow-hover);
}

/* Thumbnail */
.ppgs-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.ppgs-post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ppgs-post-card:hover .ppgs-post-thumbnail img {
    transform: scale(1.05);
}

.ppgs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppgs-post-card:hover .ppgs-overlay {
    opacity: 1;
}

/* Category Badge */
.ppgs-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.ppgs-category-badge a {
    background: var(--ppgs-orange);
    color: var(--ppgs-white);
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ppgs-category-badge a:hover {
    background: var(--ppgs-orange-dark);
    transform: scale(1.05);
}

/* Post Content */
.ppgs-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ppgs-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.ppgs-post-title a {
    color: var(--ppgs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ppgs-post-title a:hover {
    color: var(--ppgs-orange);
}

/* Post Meta */
.ppgs-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #5a6874;
}

.ppgs-post-meta a {
    color: #5a6874;
    text-decoration: none;
}

.ppgs-post-meta a:hover {
    color: var(--ppgs-orange);
}

/* Excerpt */
.ppgs-post-excerpt {
    color: #5a6874;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.ppgs-post-excerpt p {
    margin: 0;
}

/* Read More Button */
.ppgs-read-more {
    margin-top: auto;
}

.ppgs-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ppgs-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ppgs-read-more-btn:hover {
    gap: 10px;
    color: var(--ppgs-orange-dark);
}

/* Style: Modern */
.ppgs-style-modern .ppgs-post-card {
    border-radius: 1.2rem;
}

/* Style: Classic */
.ppgs-style-classic .ppgs-post-card {
    border-radius: 0;
}

.ppgs-style-classic .ppgs-read-more-btn {
    background: var(--ppgs-primary);
    color: var(--ppgs-white);
    padding: 8px 20px;
    border-radius: 40px;
}

.ppgs-style-classic .ppgs-read-more-btn:hover {
    background: var(--ppgs-orange);
    gap: 5px;
}

/* Style: Elegant */
.ppgs-style-elegant .ppgs-post-card {
    background: linear-gradient(135deg, #fff 0%, var(--ppgs-gray-light) 100%);
    border-radius: 1.5rem;
}

.ppgs-style-elegant .ppgs-post-title {
    font-family: Georgia, serif;
}

/* LISTENING SPECIFIC STYLES */
.ppgs-listening-section {
    margin: 2rem 0;
}

.ppgs-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ppgs-section-tag {
    display: inline-block;
    background: rgba(232, 93, 4, 0.12);
    color: var(--ppgs-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ppgs-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ppgs-primary);
    margin-bottom: 1rem;
}

.ppgs-section-title span {
    color: var(--ppgs-orange);
}

.ppgs-section-subtitle {
    color: #5a6874;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

.ppgs-listening-card {
    background: var(--ppgs-white);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--ppgs-gray-border);
    transition: all 0.3s ease;
    height: 100%;
}

.ppgs-listening-card:hover {
    transform: translateY(-4px);
    border-color: var(--ppgs-orange);
    box-shadow: var(--ppgs-shadow-hover);
}

.ppgs-listening-thumbnail {
    position: relative;
    overflow: hidden;
}

.ppgs-listening-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ppgs-listening-card:hover .ppgs-listening-thumbnail img {
    transform: scale(1.05);
}

.ppgs-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--ppgs-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppgs-listening-card:hover .ppgs-play-icon {
    opacity: 1;
}

.ppgs-listening-content {
    padding: 1.2rem;
}

.ppgs-listening-badge {
    display: inline-block;
    background: rgba(232, 93, 4, 0.12);
    color: var(--ppgs-orange);
    padding: 0.2rem 0.8rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ppgs-listening-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ppgs-listening-content h3 a {
    color: var(--ppgs-primary);
    text-decoration: none;
}

.ppgs-listening-content h3 a:hover {
    color: var(--ppgs-orange);
}

.ppgs-listening-content p {
    font-size: 0.8rem;
    color: #5a6874;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ppgs-listening-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.ppgs-listening-date {
    font-size: 0.7rem;
    color: #5a6874;
}

.ppgs-listening-link {
    color: var(--ppgs-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.ppgs-listening-link:hover {
    color: var(--ppgs-orange-dark);
}

/* Pagination */
.ppgs-pagination {
    margin-top: 40px;
    text-align: center;
}

.ppgs-pagination-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.ppgs-pagination-list a,
.ppgs-pagination-list span {
    display: block;
    padding: 8px 14px;
    background: var(--ppgs-white);
    border: 1px solid var(--ppgs-gray-border);
    border-radius: 6px;
    color: var(--ppgs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ppgs-pagination-list a:hover {
    background: var(--ppgs-orange);
    border-color: var(--ppgs-orange);
    color: var(--ppgs-white);
}

.ppgs-pagination-list .current {
    background: var(--ppgs-orange);
    border-color: var(--ppgs-orange);
    color: var(--ppgs-white);
}

/* No Posts */
.ppgs-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--ppgs-gray-light);
    border-radius: 1.2rem;
    color: #5a6874;
    font-size: 1.1rem;
}

.ppgs-no-posts a {
    color: var(--ppgs-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .ppgs-col-3, .ppgs-col-4 { width: 50%; }
    .ppgs-section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .ppgs-col-2, .ppgs-col-3, .ppgs-col-4 { width: 100%; }
    .ppgs-post-thumbnail img { height: 200px; }
    .ppgs-section-title { font-size: 1.6rem; }
}