/*
Theme Name: Mercury Child
Theme URI: https://mercurytheme.com/
Description: Child theme for Mercury theme
Author: MercuryTheme.com
Author URI: https://mercurytheme.com/
Template: mercury
Version: 3.9.9
*/
@import url("../mercury/style.css");

/* Author Info Section */
.author-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.author-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c2f38; /* Dark background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Darker shadow */
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.author-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    max-width: 500px;
}

.author-details h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #f2f2f2; /* Light text color for dark background */
}

.author-bio {
    font-size: 16px;
    color: #bbb; /* Lighter gray text for better readability */
    margin: 10px 0;
}

.author-email a {
    color: #0099ff; /* Light blue for email */
    text-decoration: none;
}

.author-email a:hover {
    text-decoration: underline;
}

/* Optional: Adjust page background */
body {
    background-color: #121212; /* Dark background for the page */
    color: #f0f0f0; /* Default light text color */
}

/* Optional: Style for other text sections */
h1, h2, h3, h4, h5, h6 {
    color: #fff; /* Ensure headings are readable */
}

a {
    color: #66ccff; /* Light blue links */
}

a:hover {
    color: #ffcc00; /* Change color on hover for links */
}

.latest-posts-heading {
    font-size: 28px;
    font-weight: bold;
    color: #fff; /* White text for better contrast on dark background */
    margin-bottom: 20px;
    text-align: center;
}

/* 1. Remove the white box */
.offer-items {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;               /* so it hugs the dark card background */
}

/* 2. Tighter, smaller text lines */
.offer-items .offer-item {
  display: flex;
  align-items: center;
  font-size: 0. Nine rem;   /* smaller than before—adjust as you like */
  font-weight: 400;        /* normal weight */
  color: #dddddd;          /* light grey on dark BG */
  margin-bottom: 8px;      /* small gap */
  padding: 0;              /* no extra padding */
}

.offer-items .offer-item:last-child {
  margin-bottom: 0;
}

/* 3. Slimmer check icons */
.offer-items .offer-item::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-color: transparent;  /* no circle—just the check */
  color: #28a745;                 /* green check */
  font-size: 16px;                /* slightly smaller */
}

.offer-items .offer-item:hover {
  background-color: rgba(255,255,255,0.05);
  border-radius: 4px;
  transition: background-color 0.15s ease-in-out;
}

/* Main container - No longer a flexbox row */
.compact-author-box {
    margin: 25px 0;
    font-family: sans-serif;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 12px 0;
}

/* Left part: image and text */
.author-details {
    display: flex;
    align-items: center;
    gap: 2px; !important;
	
}

.author-image-compact {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.author-name-compact {
    margin: 0;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
}

.author-details .author-name-compact {
    padding-bottom: 0 !important;
}

/* MODIFIED: Reduced top margin to make it tighter to the name */
.post-modified-compact {
    margin: 1px 0 0 0; 
    color: #aaaaaa;
    font-size: 0.8em;
}

/* Right part: trust info link and popup */
.trust-info-compact {
    position: relative;
    margin-top: 12px; /* ADDED: Creates space below the author info */
}

.trust-trigger {
    color: #8cb4ff;
    font-size: 0.85em;
    text-decoration: none;
    transition: color 0.2s;
}

.trust-trigger:hover {
    color: #ffffff;
}

/* The popup box */
.trust-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; /* MODIFIED: Aligned to the left instead of the right */
    margin-top: 8px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
    width: 300px;
    z-index: 10;
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.trust-popup p {
    margin: 0;
}

/* Class added by JavaScript to show the popup */
.trust-info-compact.is-open .trust-popup {
    display: block;
}