@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.grp-container {
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    background: #fdfdfd;
    overflow: hidden;
}

/* Summary Header (Horizontal Banner) */
.grp-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #eeeeee;
}

.grp-summary-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.google-logo-wrap svg {
    display: block;
}

.grp-status {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 !important;
}

.grp-summary .grp-stars {
    color: #ffc107;
    font-size: 18px;
    margin: 0 !important;
    display: flex;
    gap: 2px;
}

.grp-rating-num {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.grp-divider {
    color: #ccc;
    font-weight: 300;
    font-size: 18px;
}

.grp-review-count {
    font-size: 14px;
    color: #555;
}

.grp-review-count strong {
    color: #333;
}

/* Card Style */
.grp-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px 40px !important;
}

.grp-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.grp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.grp-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hide broken image icon/alt text in some browsers */
    color: transparent;
    text-indent: 10000px;
}

.grp-name-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.grp-author-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.grp-time {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.grp-source-icon .google-icon {
    width: 24px;
    height: 24px;
}

/* Ratings & Badges */
.grp-stars-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.grp-card-stars {
    color: #ffc107;
    font-size: 18px;
}

.grp-verified-badge {
    display: flex;
    align-items: center;
}

.grp-verified-badge svg {
    width: 16px;
    height: 16px;
}

/* Text Content */
.grp-text-content {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    position: relative;
    overflow: hidden;
}

.grp-text {
    margin: 0;
}

.grp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid #f9f9f9;
    padding-top: 10px;
}

.grp-read-more {
    color: #1DA1F2;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

/* Global Footer CTA Button */
.grp-footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.grp-main-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #4285F4;
    padding: 12px 32px;
    border-radius: 50px;
    color: #4285F4 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.1);
}

.grp-main-cta-btn:hover {
    background: #4285F4;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.25);
}

.grp-main-cta-btn svg {
    transition: transform 0.3s;
}

.grp-main-cta-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Navigation Buttons override Swiper default */
.grp-prev, .grp-next {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #444 !important;
}

.grp-prev:after, .grp-next:after {
    font-size: 24px !important;
    font-weight: bold;
}

.grp-prev { left: 0 !important; }
.grp-next { right: 0 !important; }

/* Actions Section */
.grp-actions {
    margin-left: auto;
}

.grp-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #000;
    padding: 8px 18px;
    border-radius: 8px;
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.grp-write-btn:hover {
    background: #000;
    color: #fff !important;
}

/* Extreme lock for the pen icon */
/* Extreme lock for the pen icon */
.grp-container .grp-write-btn svg.grp-pen-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* External Link below each card */
.grp-container .grp-card-ext-link {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

.grp-card-ext-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none !important;
    transition: all 0.3s;
    font-weight: 600;
}

.grp-card-ext-link a:hover {
    color: #4285F4;
    text-decoration: underline !important;
}

.grp-card-ext-link svg {
    opacity: 0.8;
}

/* Debug Box Styling */
.grp-debug-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border: 2px dashed #ff8080;
    border-radius: 8px;
    font-size: 13px;
    color: #cc0000;
}

.grp-debug-box strong {
    display: block;
    margin-bottom: 5px;
}

.grp-debug-box p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grp-slider { padding: 20px 20px !important; }
    
    .grp-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .grp-summary-main {
        gap: 10px;
    }

    .grp-actions {
        margin-left: 0;
        width: 100%;
    }

    .grp-write-btn {
        width: 100%;
        justify-content: center;
    }

    .grp-prev, .grp-next {
        width: 30px;
        height: 30px;
        opacity: 0.6;
    }

    .grp-prev:after, .grp-next:after {
        font-size: 18px !important;
    }
}
