/* --- Global Container --- */
.rg-container {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Header Section --- */
.rg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    justify-content: flex-end;
}

.rg-section-title {
    font-size: 28px;
    color: #273348;
    font-weight: 700;
    margin: 0;
}

.rg-view-all-btn {
    padding: 8px 28px !important;
    border: 1px solid #C5BA90 !important;
    border-radius: 30px !important;
    background-color: #C5BA90 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    background-image: none !important;
    box-shadow: none !important;
}

.rg-view-all-btn:hover {
    color: #303A54;
    transform: translateX(5px);
}

/* --- Grid Layout --- */
.rg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Card Styling --- */
.rg-card-wrapper {
    perspective: 1000px;
}

.rg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
}

/* --- Image & Hover Effects --- */
.rg-card-image-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.rg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rg-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

.rg-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #303A54;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(48, 58, 84, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.rg-overlay-text {
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* --- Content Styling --- */
.rg-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rg-location {
    font-size: 12px;
    color: #C5BA90;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.rg-title {
    font-size: 18px;
    color: #273348;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.rg-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rg-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
}

.rg-read-more {
    font-size: 13px;
    font-weight: 700;
    color: #303A54;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

/* --- Hover States --- */
.rg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #C5BA90;
}

.rg-card:hover .rg-image {
    transform: scale(1.1);
}

.rg-card:hover .rg-overlay {
    opacity: 1;
}

.rg-card:hover .rg-overlay-text {
    transform: translateY(0);
}

.rg-card:hover .rg-title {
    color: #C5BA90;
}

.rg-card:hover .rg-read-more {
    gap: 10px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rg-container {
        margin: 56px 0 0 0;
        padding: 0 10px;
    }

    .rg-grid {
        grid-template-columns: 1fr;
    }

    .rg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rg-section-title {
        font-size: 24px;
    }

    .rg-header {
        margin-top: 0px;
        margin-bottom: 20px;
    }
}