/* ========================================
   GLAMZN LATEST ARTICLES SECTION
   Design: Card Grid with Pagination
   Theme: Indigo/Violet (#6366f1, #8b5cf6)
======================================== */

/* Section Container - Simple */
.glamzn-latest-articles-section {
    padding: 40px 0;
    background: transparent;
    position: relative;
}

/* Dark Mode */
.dark-mode .glamzn-latest-articles-section {
    background: transparent;
}

/* Header Section - Compact */
.glamzn-latest-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.glamzn-latest-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.glamzn-latest-icon {
    font-size: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glamzn-latest-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.glamzn-latest-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.dark-mode .glamzn-latest-subtitle {
    color: #9ca3af;
}

/* Pagination Wrapper */
.glamzn-latest-pagination-wrapper {
    position: relative;
    z-index: 1;
}

/* Articles Grid - 2x2 Grid */
.glamzn-latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 16px;
    min-height: 400px;
}

/* Article Card - Simple without animations */
.glamzn-latest-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.dark-mode .glamzn-latest-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.glamzn-latest-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Container - No animations */
.glamzn-latest-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.glamzn-latest-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove overlay - not needed */
.glamzn-latest-overlay {
    display: none;
}

/* View Count Badge - Compact */
.glamzn-latest-views-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.glamzn-latest-views-badge i {
    font-size: 12px;
}

/* Content Section - Compact */
.glamzn-latest-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Meta Information */
.glamzn-latest-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.glamzn-latest-category,
.glamzn-latest-date {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glamzn-latest-category {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
}

.glamzn-latest-date {
    color: #6b7280;
}

.dark-mode .glamzn-latest-date {
    color: #9ca3af;
}

/* Title - Simple no hover effect */
.glamzn-latest-article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .glamzn-latest-article-title {
    color: #f3f4f6;
}

/* Description - Compact */
.glamzn-latest-description {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .glamzn-latest-description {
    color: #9ca3af;
}

/* Read More Link - No animations */
.glamzn-latest-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.dark-mode .glamzn-latest-read-more {
    border-top-color: #374151;
}

.glamzn-latest-read-more i {
    font-size: 14px;
}

/* Pagination Controls */
.glamzn-latest-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 0 16px;
}

/* Page Button */
.glamzn-latest-page-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.glamzn-latest-page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.glamzn-latest-page-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.dark-mode .glamzn-latest-page-btn:disabled {
    background: #4b5563;
}

/* Page Indicators */
.glamzn-latest-page-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.glamzn-latest-page-ellipsis {
    color: #6366f1;
    font-weight: 700;
    font-size: 20px;
}

.glamzn-latest-page-dot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #6366f1;
    background: transparent;
    color: #6366f1;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glamzn-latest-page-dot:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.glamzn-latest-page-dot.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .glamzn-latest-articles-section {
        padding: 50px 0;
    }

    .glamzn-latest-title {
        font-size: 36px;
    }

    .glamzn-latest-icon {
        font-size: 32px;
    }

    .glamzn-latest-articles-grid {
        gap: 24px;
    }

    .glamzn-latest-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .glamzn-latest-articles-section {
        padding: 40px 0;
    }

    .glamzn-latest-articles-section::before,
    .glamzn-latest-articles-section::after {
        width: 300px;
        height: 300px;
    }

    .glamzn-latest-title {
        font-size: 30px;
    }

    .glamzn-latest-icon {
        font-size: 28px;
    }

    .glamzn-latest-subtitle {
        font-size: 14px;
    }

    .glamzn-latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    .glamzn-latest-image-container {
        height: 200px;
    }

    .glamzn-latest-content {
        padding: 20px;
    }

    .glamzn-latest-article-title {
        font-size: 18px;
    }

    .glamzn-latest-pagination-controls {
        gap: 20px;
        margin-top: 40px;
    }

    .glamzn-latest-page-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .glamzn-latest-page-btn span {
        display: none;
    }

    .glamzn-latest-page-dot {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .glamzn-latest-articles-section {
        padding: 30px 0;
    }

    .glamzn-latest-header {
        margin-bottom: 30px;
    }

    .glamzn-latest-title {
        font-size: 26px;
    }

    .glamzn-latest-icon {
        font-size: 24px;
    }

    .glamzn-latest-articles-grid {
        gap: 16px;
    }

    .glamzn-latest-image-container {
        height: 180px;
    }

    .glamzn-latest-content {
        padding: 16px;
        gap: 12px;
    }

    .glamzn-latest-article-title {
        font-size: 16px;
    }

    .glamzn-latest-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .glamzn-latest-pagination-controls {
        gap: 15px;
        margin-top: 30px;
    }

    .glamzn-latest-page-indicators {
        gap: 8px;
    }

    .glamzn-latest-page-dot {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* No animations needed */
