.entry-title,
.page-title {
    color: #111;
}

/* 🔥 Fix ALL theme titles safely */
.entry-title,
.page-title,
.wp-block-post-title {
    color: #1d2327 !important;
    -webkit-text-fill-color: #1d2327 !important;
}

/* FORCE PAGE TITLES VISIBLE */
body .entry-title,
body .page-title,
body .wp-block-post-title,
body .ast-page-title {
    color: #1d2327 !important;
    -webkit-text-fill-color: #1d2327 !important;
}

body .entry-title,
body .page-title,
body .wp-block-post-title,
body .ast-page-title {
    color: #1d2327 !important;
    -webkit-text-fill-color: #1d2327 !important;
}

/* FORCE ALL PAGE TITLES VISIBLE */
body h1.entry-title,
body h1.page-title,
body .wp-block-post-title,
body .ast-page-title,
body .entry-header h1 {

    color: #1d2327 !important;
    -webkit-text-fill-color: #1d2327 !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/* kill parent interference */
body .entry-header,
body .site-content,
body .content-area {
    color: #1d2327 !important;
}

/* HARD OVERRIDE ASTRA TITLE VISIBILITY */
body .entry-title,
body .entry-title a,
body .page-title,
body .wp-block-post-title,
body .ast-page-title {

    color: #1d2327 !important;
    -webkit-text-fill-color: #1d2327 !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/* Astra transparent header fix */
.ast-theme-transparent-header .entry-title,
.ast-theme-transparent-header .page-title {
    color: #1d2327 !important;
}

/* Only affect content area */
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6,
.site-content .wp-block-heading {
    color: #1d2327 !important;
}

/* 🔥 FORCE FIX for Gutenberg headings overridden by Astra */
.wp-block-heading {
    color: #1d2327 !important;
}

.wp-block-heading strong,
.wp-block-heading span {
    color: inherit !important;
}
:root {
    --ast-global-color-5: #1d2327 !important;
}
.wp-block-heading {
    color: #1d2327 !important;
}

/* PREMIUM GRID SYSTEM (FINAL FIX) */
.rp-scope .premium-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* 🔥 handles BOTH row + column spacing */
}

/* Ensure consistent card sizing */
.rp-scope .premium-card {
    flex: 1 1 260px; /* responsive grid */
    max-width: 100%;
}

/* Optional: prevent weird stacking issues */
.rp-scope .premium-wrapper {
    margin-top: 20px;
}
/* 🔥 FIX vertical rhythm for Gutenberg content */

/* Space BEFORE headings (when something is above) */
.entry-content * + h1,
.entry-content * + h2,
.entry-content * + h3,
.entry-content * + h4 {
    margin-top: 28px !important;
}

/* Space AFTER headings */
.entry-content h1 + *,
.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
    margin-top: 12px !important;
}

/* Space BETWEEN cards */
.entry-content .card {
    margin-bottom: 20px;
}

.entry-content .card + .card {
    margin-top: 10px;
}
.entry-content > * + * {
    margin-top: 16px;
}

/* 🔥 FIX spacing for premium cards specifically */

/* Space BEFORE headings after cards */
.entry-content .premium.card + h1,
.entry-content .premium.card + h2,
.entry-content .premium.card + h3 {
    margin-top: 28px !important;
}

/* Space AFTER headings before cards */
.entry-content h1 + .premium.card,
.entry-content h2 + .premium.card,
.entry-content h3 + .premium.card {
    margin-top: 16px !important;
}

/* Space between cards (if consecutive) */
.entry-content .premium.card + .premium.card {
    margin-top: 20px;
}
/* 🔥 PREMIUM GRID – STABLE VERSION */
.rp-scope .premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/*.unread-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 6px;
}*/

.time {
    font-size: 12px;
    color: #777;
}

.conversation-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.conversation-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/*.msg {
    max-width: 75%;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 12px;
    font-size: 14px;
    word-wrap: break-word;
    display: block; /* 🔥 KEY FIX */
    clear: both;    /* 🔥 prevents float overlap */
}*/

#messages-box {
    display: flex;
    flex-direction: column;
    padding: 8px;
    padding-bottom: 70px; /* space for fixed input */
}

/* Message row (alignment) */
.msg-row {
    display: flex;
    margin: 4px 0; /* tighter spacing */
}

.msg-row.me {
    justify-content: flex-end;
	 margin-top: 6px;
}

.msg-row.other {
    justify-content: flex-start;
	 margin-top: 6px;
}

/* Bubble */
.msg {
    max-width: 70%;
    padding: 6px 10px; /* tighter */
    border-radius: 12px;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05); /* subtle smoothness */
}

/* Colors + tail effect */
.msg-row.me .msg {
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
	margin-right: 4px;
}

.msg-row.other .msg {
    background: #f1f1f1;
    border-bottom-left-radius: 4px;
	  margin-left: 4px;
}

/* Text + time */
.msg-text {
    display: block;
}

.msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    text-align: right;
}

/* Reply input (mobile-friendly) */
.reply-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 8px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 6px;
}

#reply-text {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    padding: 8px 12px;
    font-size: 14px;
}

.chat-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #eee;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* left section */
.chat-meta {
    flex: 1;
    margin-left: 10px;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    color: #888;
}

.chat-status.online { color: #4caf50; }
.chat-status.recent { color: #ff9800; }


.chat-title {
    font-size: 16px;
    font-weight: 600;
}

/* back button */
.back-btn {
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

/* menu */
.chat-menu {
    position: relative;
    cursor: pointer;
    font-size: 18px;
}

/* dropdown */
.chat-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 120px;
}

.chat-dropdown div {
    padding: 8px 10px;
    cursor: pointer;
}

.chat-dropdown div:hover {
    background: #f5f5f5;
}
/* user section */
.chat-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* avatar */
/*.chat-user img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}*/

/* name + subtitle */
.chat-meta {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
}
.chat-subtitle {
    font-size: 12px;
    color: #777;
}

.blocked-msg {
    padding: 12px;
    text-align: center;
    background: #fff3f3;
    color: #d32f2f;
    border-top: 1px solid #ddd;
}

.chat-dropdown {
    position: absolute;
    z-index: 9999;
}
.chat-dropdown.show {
    display: block;
}	

.conv-top {
    display: flex;
    align-items: center;
    gap: 8px; /* controls spacing between name, time, badge */
}

.conv-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0; /* prevents overflow */
}

.conv-name {
    font-weight: 600;
}

.conv-time {
    font-size: 12px;
    color: #777;
    
}

.unread-badge {
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}
.conversation-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.conversation-item a {
    display: block;
}

/* Unread highlight */
.conversation-item.unread {
    background: #f5f9ff;
}

.conversation-item.unread .conv-name {
    font-weight: 700;
}

/* Optional: slightly stronger preview */
.conversation-item.unread .conv-last {
    font-weight: 500;
}

/* "You:" prefix */
.you-prefix {
    color: #2271b1;
    font-weight: 500;
}

.conv-last {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-item:hover {
    background: #eef5ff;
}

.rp-title {
    /* your styles */
}

.enquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;

    justify-content: center;
    align-items: center;
}

.enquiry-modal.show {
    display: flex;
}

.enquiry-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 16px;
}

.enquiry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

#enquiry-text {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 8px;
}

.rp-enquire-btn{
width: 10%;
}

.rp-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.rp-title {
    font-size: 18px;
    font-weight: bold;
}

.rp-price {
    color: green;
    font-weight: 600;
}

.rp-user-type {
    font-size: 12px;
    color: #777;
}
.rp-contact-no-credits {
    text-align: center;
    padding: 15px;
}

.rp-buy-credits-btn {
    margin-top: 10px;
    background: #ff9800;
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.rp-hero {
    width: 100%;
    margin: -40px auto 40px;
    text-align: center;
}

.rp-hero-logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 4px;
    border-radius: 20px;
}

.rp-hero h1 {
    font-size: 31px;
    font-weight: 500;
    line-height: 1.2;
    color: #111827;
    margin: 0px;
}
.site-content {
    padding-top: 0 !important;
}

.entry-content {
    margin-top: 0 !important;
}

.ast-container {
    padding-top: 0 !important;
}
.rp-app button[type="submit"] {
    margin-top: 10px;
}
.rp-hero h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.15;
}

.rp-hero-logo {
    margin-bottom: 0.1px !important;
}
.rp-app p:has(a) {
    margin-bottom: 2.7 px;
}
/* HIDE HEADER LOGO ONLY ON HOMEPAGE */
.home .custom-logo-link,
.home .site-logo-img,
.home .site-branding img {
    display: none !important;
}
.rp-error-box {
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
}
.rp-error {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 4px;
}

.rp-input-error {
    border: 1px solid #ff4d4d !important;
}
.rp-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}
#rp-edit-form label {
    color: #fff;
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
}

#rp-edit-form input,
#rp-edit-form select,
#rp-edit-form textarea {
    margin-bottom: 10px;
}