/* === Reset & Box Sizing === */ 
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Base Typography === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f9fb;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* === Layout === */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  padding: 20px 30px; /* space inside the boxed layout */
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

/* Stats list in the sidebar */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

/* Sidebar stats header style (gradient bars like your widget titles) */
.sidebar ul::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,  /* orange */
        #f6a564,  /* peach */
        #6bceee,  /* pastel blue */
        #d9b6fd   /* pastel purple */
    );
}

/* Each stat row */
.sidebar li {
    padding: 8px 12px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar li:last-child {
    border-bottom: none;
}

/* Stat label text */
.sidebar li .label {
    font-weight: 600;
    color: #333;
}

/* Stat value text */
.sidebar li .value {
    font-weight: 600;
    color: #ef8354; /* Accent color from palette */
}

/* Hover effect */
.sidebar li:hover {
    background: #fafafa;
}


/* Styled UL for class="stats" */
ul.stats {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

ul.stats li {
    padding: 10px 15px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

ul.stats li:last-child {
    border-bottom: none;
}

/* Label text */
ul.stats li .label {
    font-weight: 600;
    color: #333;
}

/* Value text */
ul.stats li .value {
    font-weight: 600;
    color: #ef8354; /* Orange accent from your palette */
}

/* Optional hover effect */
ul.stats li:hover {
    background: #fafafa;
}

/* Gradient bar at the top (like your sidebar headers) */
ul.stats::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,
        #f6a564,
        #6bceee,
        #d9b6fd
    );
}

/* =========================
   Comment list layout + numbering
   ========================= */
/* -------- Base & numbering -------- */
.comment-list{ list-style:none; margin:0; padding:0; counter-reset:cnum; }
.comment-list > li.comment{ counter-increment:cnum; margin:14px 0; }
.comment-list .children{ margin-left:56px; }

/* -------- Card grid: left col (76px) + right col -------- */
.comment-list .comment-body{
  position:relative;
  display:grid;
  grid-template-columns: 76px 1fr;   /* LEFT = avatar/number/reply */
  grid-template-rows: auto auto 1fr; /* name row, meta row, content */
  gap: 8px 14px;
  padding:16px 16px 56px 16px;       /* bottom room for actions */
  border:1px solid #e9edf2;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
}

/* -------- Left column: avatar + number + reply -------- */
.comment-list .comment-author{ grid-column:1; grid-row:1 / span 2; position:relative; }
.comment-list .comment-author .avatar{
  width:60px; height:60px; border-radius:50%;
  margin-left: -90px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* numbered badge over avatar (top-right) */
.comment-list li.comment .comment-author::after{
  content: counter(cnum);
  position:absolute; top:-6px; left:-98px; /* sits on avatar’s top-right */
  width:26px; height:26px; display:grid; place-items:center;
  border-radius:999px;
  background: linear-gradient(135deg,#ef8354,#d9b6fd);
  color:#fff; font-weight:800; font-size:13px;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

/* Reply button pinned bottom-left (inside the card) */
.comment-list .reply{
  position:absolute; left:16px; bottom:12px;
}
.comment-list .reply a{
  display:inline-block; padding:8px 12px;
  border:1px solid #e9edf2; border-radius:10px;
  font-weight:800; text-decoration:none;
}
.comment-list .reply a:hover{ background:#f6f9fc; color:#ef8354; }

/* -------- Right column: header row, content, actions -------- */

/* Put the “{user} says” line above the comment text */
.comment-list .comment-meta{ grid-column:2; grid-row:1; display:flex; align-items:baseline; gap:6px; }
.comment-list .fn{ display:inline; font-weight:800; color:#2b2f35; text-transform: uppercase; margin-left: 120px; }
.comment-list .says{ display:inline; text-transform:uppercase; font-weight:800; letter-spacing:.02em; color:#8a98a6; }

/* Edit link top-right */
.comment-list .comment-metadata .edit-link{
  position:absolute; right:16px; top:10px;
}
.comment-list .comment-metadata .edit-link a{
  font-weight:800; text-decoration:none; color:#4f5d75;
}
.comment-list .comment-metadata .edit-link a:hover{ color:#ef8354; }

/* Date/time bottom-right (instead of Edit) */
.comment-list .comment-metadata > a{ /* the time permalink */
  position:absolute; right:16px; bottom:12px;
  font-size:.9rem; color:#8a98a6; text-decoration:none;
}
.comment-list .comment-metadata > a:hover{ color:#ef8354; }

/* Comment text */
.comment-list .comment-content{ grid-column:2; grid-row:2 / span 2; color:#2f3946; }
.comment-list .comment-content p{ margin:.6em 0; }

/* moderation pill */
.comment-awaiting-moderation{
  display:inline-block; margin-top:6px;
  padding:4px 8px; border-radius:999px;
  background:#fff2ee; color:#ef5a3a; font-weight:700;
}

/* mobile */
@media (max-width:520px){
  .comment-list .comment-body{ grid-template-columns:68px 1fr; padding-bottom:64px; }
  .comment-list .comment-author .avatar{ width:52px; height:52px; }
  .comment-list li.comment .comment-author::after{ left:40px; }
}


/* === Header & Logo === */
.site-header {
  position: relative;
  background: #85b9be;
  background-size: 1500px;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-logo-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.site-branding {
  display: none;
}

/* === Navigation === */
.main-navigation {
  display: flex;
  justify-content: center;
  background-color: #74B4B4;
  padding: 0.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* allows horizontal scroll on smaller screens */
  white-space: nowrap; /* keeps items on one line */
  max-width: 100%; /* ensures it doesn't overflow container */
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* prevent wrapping */
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: 0.3s ease all;
  background: transparent;
  border-radius: 5px;
}

.main-navigation a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* === Mobile Navigation === */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin: 1rem auto;
    background: #fff;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    cursor: pointer;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation a {
    color: #333;
    background: #f9f9f9;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
}

/* === Footer === */
.site-footer {
  background: #87B8B8;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-info {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.site-footer a {
  color: #fff;
  font-weight: bold;
}

.site-footer a:hover {
	color: #ddd;
	text-decoration: none;
}

.site-info i.fa-wordpress {
    font-size: 1.2em;
    color: #fff; /* WP blue */
    vertical-align: middle;
    margin-left: 4px;
}
.site-info a:hover i.fa-wordpress {
    color: #1d6b99; /* Slightly darker on hover */
}

/* === Main Content & Sidebar === */
.site-main {
  flex: 3;
}

.widget-area {
  flex: 1;
}

/* ============================
   POSTS (news) – cards & meta
   ============================ */

:root{
  --post-bg: #ffffff;
  --post-bdr: #e9edf2;
  --post-shadow: 0 8px 24px rgba(0,0,0,.06);
  --accent: #ef5a3a;            /* your orange from the screenshot */
  --accent-dark: #d94e32;
  --muted: #6b7785;
  --chip-bg: #fff2ee;
}

/* Card look */
.post, .page, .hentry {
  background: var(--post-bg);
  border: 1px solid var(--post-bdr);
  border-radius: 14px;
  box-shadow: var(--post-shadow);
  padding: 24px;
  margin: 0 0 24px;
}

/* Title */
.entry-title {
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 6px;
}
.entry-title a {
  color: #23262b;
  text-decoration: none;
}
.entry-title a:hover { color: var(--accent); }

/* Meta row */
.entry-meta, .posted-on, .byline, .cat-links, .tags-links, .comments-link {
  color: var(--muted);
  font-size: 12px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 4px 0 14px;
}
.entry-meta > span { position: relative; padding-right: 12px; }
.entry-meta > span:not(:last-child)::after {
  content: "•";
  position: absolute; right: 2px; top: 0; color: #c6cbd3;
}

/* Category chips */
.cat-links a, .tags-links a {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--accent);
  border: 1px solid #ffd7cc;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 6px;
}
.cat-links a:hover, .tags-links a:hover { background: #ffe7df; }

/* Featured image & content */
.post-thumbnail, .entry-content img { border-radius: 12px; overflow: hidden; }
.entry-content { color: #2f3946; }
.entry-content p { margin-bottom: 1em; }

/* Read more button */
.more-link, .read-more a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.more-link:hover, .read-more a:hover {
  background: var(--accent-dark);
}

/* Post navigation on singles */
.post-navigation .nav-links a {
  border: 1px solid var(--post-bdr);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
}

/* ============================
   SIDEBAR (300px) – tidy cards
   ============================ */

.post, .page, .hentry,
#secondary.widget-area {
    margin-bottom: 30px; /* space between stacked elements */
}

/* ====== SIDEBAR SEARCH - INPUT ONLY ====== */
.widget_search .search-form .search-submit {
    display: none; /* hide the button */
}

.widget_search .search-form {
    display: block;
    width: 100%;
}

.widget_search .search-form .search-field {
    width: 100%;              /* full width */
    box-sizing: border-box;   /* include padding in width calc */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
}

/* =========================
   404 Not Found Card
   ========================= */
.notfound-card{
  --nf-accent: #ef8354;          /* orange accent */
  --nf-accent-2: #4F5D75;        /* teal/blue accent */
  --nf-bdr: #e9edf2;

  background:#fff;
  border:1px solid var(--nf-bdr);
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  padding:28px 26px;
  overflow:hidden;

  /* slide-in animation */
  animation: nf-slide-in .45s ease-out both;
}
@keyframes nf-slide-in{
  from{ transform: translateY(14px); opacity: 0; }
  to{   transform: translateY(0);    opacity: 1; }
}

/* little pill badge */
.nf-badge{
  display:inline-block;
  padding:4px 10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-radius:999px;
  background:linear-gradient(90deg, #6bceee, #d9b6fd);
  color:#1b2a3a;
  margin-bottom:10px;
}

/* header block */
.nf-head{
  position:relative;
  padding-left:90px; /* space for big 404 */
  margin-bottom:14px;
}
.nf-404{
  position:absolute;
  left:0; top:-8px;
  font-size:72px;
  font-weight:900;
  line-height:1;
  color:#c9d9de;
  opacity:.5;
  letter-spacing:.02em;
}
.nf-title{
  margin:0;
  font-size:clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight:900;
  padding-left:87px;
  position:relative;
}

.nf-subtitle{
  color:#6b7785;
  margin-top: -12px;
	padding-left: 87px;
}

/* actions: search + buttons */
.nf-actions { margin-top:16px; }
.nf-actions .search-form{
  display:block;
  margin-bottom:12px;
}
.nf-actions .search-field{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--nf-bdr);
  border-radius:10px;
  padding:12px 14px;
  font-size:1rem;
}
.nf-actions .search-submit{ display:none; } /* Enter to submit */

.nf-buttons{
  display:flex; gap:10px; flex-wrap:wrap;
	padding-left: 200px;
}
.nf-buttons .btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  border:1px solid transparent;
}
.nf-buttons .nf-home{
  background: var(--nf-accent);
  color:#fff;
}
.nf-buttons .nf-home:hover{ background:#d86f43; }
.nf-buttons .nf-contact{
  background:#fff;
  border-color: var(--nf-bdr);
  color: var(--nf-accent-2);
}
.nf-buttons .nf-contact:hover{ background:#f6f9fc; }

/* helper links with gradient separators */
.nf-help{
  margin-top:16px; text-align:center;
}
.nf-help .nf-line{
  display:block; height:3px; width:60%; margin:0 auto 10px auto;
  border-radius:2px;
  background:linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
}
.nf-help p{ margin:0 0 8px; color:#7b8794; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.nf-links{ list-style:none; margin:0; padding:0; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.nf-links a{ text-decoration:none; font-weight:700; color: var(--nf-accent-2); }
.nf-links a:hover{ color: var(--nf-accent); }

/* responsive */
@media (max-width: 600px){
  .nf-head{ padding-left:70px; }
  .nf-404{ font-size:56px; top:-6px; }
}

/* ====== SIDEBAR HEADER STYLING ====== */
.widget-title, 
.widget .wp-block-heading {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 8px 0;
    margin: 0 0 16px;
    text-align: center;
}

/* line above and below but shorter than full width */
.widget-title::before,
.widget-title::after,
.widget .wp-block-heading::before,
.widget .wp-block-heading::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,   /* orange */
        #f6a564,   /* peach */
        #6bceee,   /* pastel blue */
        #d9b6fd    /* pastel purple */
    );
    width: 60%; /* shorter than full width */
    margin: 0 auto;
    border-radius: 2px;
}

.widget-title::before,
.widget .wp-block-heading::before {
    margin-bottom: 6px;
}
.widget-title::after,
.widget .wp-block-heading::after {
    margin-top: 6px;
}

#secondary.widget-area {
  background: #f6fafb;
  border: 1px solid var(--post-bdr);
  border-radius: 14px;
  padding: 5px;
}
.widget { 
  background: #ffffff;
  border: 1px solid var(--post-bdr);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}
.widget-title, .widget .wp-block-heading {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding-bottom: 8px;
}

/* Lists */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px dashed #e7ecf2; }
.widget ul li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--accent); }

/* Search widget */
.search-form .search-field {
  flex: 1;
  border: 1px solid var(--post-bdr);
  border-radius: 10px;
	width: 100%;
  padding: 10px 12px;
}
.search-form .search-submit {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* Optional: sticky sidebar */
@media (min-width: 992px){
  #secondary.widget-area { position: sticky; top: 20px; }
  body.admin-bar #secondary.widget-area { top: 52px; }
}

/* ============================
   SPACING & TWEAKS
   ============================ */

.posts-navigation, .navigation.posts-navigation { margin-top: 18px; }
.entry-footer { margin-top: 14px; }


/* === Links & Buttons === */
a {
  color: #F54927;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #927273;
  text-decoration: underline;
}

/* === Forms === */
input, textarea, select {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.5em;
  font-family: inherit;
}

/* === Accessibility === */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================
   Post head: date + title
   ========================= */
.post, .page, .hentry { position: relative; }

.post-head{
  display: grid;
  grid-template-columns: 84px 1fr; /* date badge + title area */
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

/* Date badge (like your sample) */
.date-badge{
  position: relative;
  width: 84px;
  min-height: 70px;
  display: grid;
  place-items: center;
  color: #f1a976;                 /* soft teal for numbers */
  font-weight: 600;
  line-height: 1;
}
.date-badge .day{
  font-size: 50px;
}
.date-badge .month{
  position: absolute;
  top: 8px; 
  left: 38px;
  font-size: 12px;
  background: #6d7c46;            /* little “pill” */
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.date-badge .year{
  position: absolute;
  bottom: 4px; left: 8px;
  font-size: 12px;
  font-style: italic;
  color: #98a7b2;
}

/* Title with vertical accent bar */
.title-wrap { position: relative; }
.title-wrap .entry-title {
  margin: 0;
  padding-left: 14px;              /* room for the bar */
	text-transform: uppercase;
}

.entry-title a{ text-decoration: none; color: #2b2f35; }
.entry-title a:hover{ color: #ef8354; }

/* Uppercase byline under title, right-aligned */
.byline-upper{
  margin-top: 4px;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  color: #8a98a6;
  text-align: right;               /* right side under title */
}

/* Comment section headings = match sidebar header style */
.comments-area .comments-title,
.comments-area .comment-reply-title{
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 1.05rem;
  margin: 0 0 16px;
  position: relative;
  padding: 8px 0; /* space for the lines */
}

/* gradient lines above and below */
.comments-area .comments-title::before,
.comments-area .comments-title::after,
.comments-area .comment-reply-title::before,
.comments-area .comment-reply-title::after{
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ef8354, #f6a564, #6bceee, #d9b6fd);
  width: 60%;
  margin: 0 auto;
  border-radius: 2px;
}
.comments-area .comments-title::before,
.comments-area .comment-reply-title::before{ margin-bottom: 6px; }
.comments-area .comments-title::after,
.comments-area .comment-reply-title::after{ margin-top: 6px; }

/* “Cancel reply” (small) sits neatly under the title */
.comment-reply-title small,
.comment-reply-title .cancel-comment-reply a{
  display: block;
  margin-top: 6px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* optional: a little breathing room above the thread & form */
.comment-list{ margin-top: 14px; }
#respond{ margin-top: 18px; }

/* mobile: shorten the lines a bit */
@media (max-width: 600px){
  .comments-area .comments-title::before,
  .comments-area .comments-title::after,
  .comments-area .comment-reply-title::before,
  .comments-area .comment-reply-title::after{
    width: 70%;
  }
}

/* EDD single product: style the Fields table in the sidebar */
.single-download #secondary table.edd-fields{
  display: block;                  /* lets padding/radius work on table */
  width: 100%;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
  padding: 14px;                   /* inner breathing room */
  border-collapse: separate;       /* keep spacing clean */
  overflow: hidden;
  position: relative;
}

/* gradient top bar like your widget titles */
.single-download #secondary table.edd-fields::before{
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
  position: absolute; left: 14px; right: 14px; top: 14px;
}
.single-download #secondary table.edd-fields { padding-top: 24px; } /* make room for the bar */

/* Rows: make each TR a neat two-column grid (Label | Value) */
.single-download #secondary table.edd-fields tr{
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  padding: 8px 0;
  border-bottom: 1px dashed #e7ecf2;
}
.single-download #secondary table.edd-fields tr:last-child{ border-bottom: 0; }

/* Label (left) */
.single-download #secondary table.edd-fields th{
  grid-column: 1;
  text-align: left;
  font-weight: 800;
  color: #2b2f35;
  padding: 0;
  margin: 0;
  white-space: normal;
}

/* Value (right) */
.single-download #secondary table.edd-fields td{
  grid-column: 2;
  text-align: right;
  color: #2f3946;
  padding: 0;
  margin: 0;
  white-space: normal;
}

/* Links inside values */
.single-download #secondary table.edd-fields td a{
  color: #ef5a3a;
  text-decoration: none;
  font-weight: 700;
}
.single-download #secondary table.edd-fields td a:hover{ text-decoration: underline; }

/* Optional: turn comma-separated values into small pills when they are links */
.single-download #secondary table.edd-fields td a{
  display: inline-block;
  background: #fff2ee;
  border: 1px solid #ffd9cf;
  color: #ef5a3a;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.single-download #secondary table.edd-fields td a:first-child{ margin-left: 0; }

#edd_show_discount,
#edd-discount-code-wrap {
    display: none !important;
}

/* =========================
   Quotes / blockquotes
   ========================= */

.wp-block-quote {
    background: #fff;
    border: none;
    padding: 20px 30px;
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    font-style: italic;
    color: #333;
    position: relative;
}

.wp-block-quote::before,
.wp-block-quote::after {
    content: '"';
    display: block;
    height: 3px;
    line-height: 0;
    background: linear-gradient(
        90deg,
        #ef8354,
        #f6a564,
        #6bceee,
        #d9b6fd
    );
    width: 60%;
    margin: 10px auto;
    border-radius: 2px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.wp-block-quote::before {
    margin-bottom: 15px;
}

.wp-block-quote::after {
    margin-top: 15px;
}


/* ===========================
	EDD STYLES 
   =========================== */
/* Only single product pages */
.single-download #secondary .widget-title::before,
.single-download #secondary .widget-title::after {
  background: linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
}

.single-download #secondary .widget { 
  border: 1px solid #e7edf3;
  border-radius: 12px;
  padding: 14px;
}

/* EDD purchase button in the sidebar (works for links and buttons) */
.single-download #secondary .edd-submit,
.single-download #secondary a.edd-add-to-cart {
  display: block;              /* Make it full-width block element */
  width: fit-content;           /* Size to fit the text */
  margin: 0 auto 1em;           /* Center horizontally, add bottom spacing */
  padding: 10px 14px;
  border-radius: 10px;
  background: #ff8a65;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  text-align: center;     
}

#edd-purchase-button, .edd-submit, [type=submit].edd-submit {
	font-weight: 600;
}
.single-download #secondary .edd-submit:hover,
.single-download #secondary a.edd-add-to-cart:hover { background: #dd8f17; }

/* “Download Categories:” line */
.single-download #secondary .download-cats,
.single-download #secondary .download-cats a {
  color: #ef5a3a;
  text-decoration: none;
}
.single-download #secondary .download-cats a:hover { text-decoration: underline; }

.edd-no-js {
    display: none !important;
}

/* Style for Download Categories on EDD single product pages */
.single-download .categories,
.single-download .categories a {
  font-family: 'Segoe UI', Tahoma, sans-serif; /* clean readable font */
}

.single-download .categories {
  display: block;
  font-weight: 600;
  color: #555; /* label color */
  margin-top: 3em;
  margin-bottom: -2.5em;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.single-download .categories a {
  background: linear-gradient(90deg, #ff8a65, #ff5252);
  color: #fff;
  padding: 4px 8px;
  margin-right: 5px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.single-download .categories a:hover {
  background: linear-gradient(90deg, #ff7043, #ff1744);
}

/* Style the review form container */
.edd-reviews-form,
.comment-form {
    background: #ffffff;
    padding: 20px;
}

/* Style form labels */
.edd-reviews-form label,
.comment-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Style text inputs and textarea */
.edd-reviews-form input[type="text"],
.edd-reviews-form textarea,
.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Style Post Review button */
.edd-reviews-form input[type="submit"],
.comment-form input[type="submit"] {
    background-color: #ff8a65;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edd-reviews-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    background-color: #ff7043;
}

.edd-reviews-heading {
	position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 8px 0;
    margin: 0 0 16px;
    text-align: center;
}

/* line above and below but shorter than full width */
.edd-reviews-heading::before,
.edd-reviews-heading::after,
.edd-reviews-heading::before,
.edd-reviews-heading::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ef8354,   /* orange */
        #f6a564,   /* peach */
        #6bceee,   /* pastel blue */
        #d9b6fd    /* pastel purple */
    );
    width: 60%; /* shorter than full width */
    margin: 0 auto;
    border-radius: 2px;
}


/* =========================
   Footer split: cats / comments
   ========================= */
.post-footer{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.post-footer .footer-left,
.post-footer .footer-right{ display: flex; align-items: center; gap: 8px; }

/* Category chips */
.post-footer .cat-links a{
  display: inline-block;
  padding: 0px 5px;
  border-radius: 999px;
  background: #fff2ee;
  border: 1px solid #ffd9cf;
  color: #ef5a3a;
  font-weight: 700;
  text-decoration: none;
  margin-right: 6px;
}
.post-footer .cat-links a:hover{ background:#ffe7df; }

/* Comments link on right */
.post-footer .comments-link a{
  text-decoration: none;
  font-weight: 800;
  color: #4f5d75;
  border: 1px solid #e7edf3;
  padding: 8px 12px;
  border-radius: 10px;
}
.post-footer .comments-link a:hover{
  background: #f5f9fc;
}

/* Center the form and give it the site card look */
.oa-cf7.wpcf7 {
  display:block;
  max-width: 720px;           /* center width */
  margin: 0 auto 22px;        /* centered */
  background:#fff;
  border:1px solid #e9edf2;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
  padding:22px;
}

/* Labels: uppercase + bold */
.oa-cf7 .wpcf7-form label{
  display:block;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  color:#2b2f35;
  margin:10px 0 6px;
}

/* Two-column rows */
.oa-cf7 .grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 700px){
  .oa-cf7 .grid-2{ grid-template-columns: 1fr; }
}

/* Inputs / selects / textareas */
.oa-cf7 .wpcf7-form input[type="text"],
.oa-cf7 .wpcf7-form input[type="email"],
.oa-cf7 .wpcf7-form input[type="url"],
.oa-cf7 .wpcf7-form select,
.oa-cf7 .wpcf7-form textarea,
.oa-cf7 .wpcf7-form input.wpcf7-quiz{
  width:100%;
  box-sizing:border-box;
  border:1px solid #e7ecf2;
  border-radius:10px;
  padding:10px 12px;
  font-size:1rem;
  background:#fff;
}
.oa-cf7 .wpcf7-form input:focus,
.oa-cf7 .wpcf7-form select:focus,
.oa-cf7 .wpcf7-form textarea:focus{
  outline:0;
  border-color:#cfd9e6;
  box-shadow:0 0 0 3px rgba(111,164,255,.15);
}

/* Submit button (600 weight, #ff8a65 bg, white text) */
.oa-cf7 .wpcf7-submit{
  background:#ff8a65;
  color:#fff;
  font-weight:600;
  border:0;
  border-radius:10px;
  padding:10px 16px;
  cursor:pointer;
  transition:background .2s ease;
}
.oa-cf7 .wpcf7-submit:hover{ background:#ff7043; }

/* Spacing */
.oa-cf7 .wpcf7-form p{ margin-bottom:14px; }

/* --- Arithmetic CF7 add-on styling (IDs you mentioned) --- */
.oa-cf7 #arithmetic_input_holder{
  display:flex; align-items:center; gap:10px;
  margin:10px 0 2px;
}
.oa-cf7 #arithmetic_recognation{      /* the "6 + 5 =" bit */
  font-weight:800; color:#2b2f35;
  background:#f6f9fc;
  border:1px solid #e7ecf2;
  border-radius:8px;
  padding:6px 10px;
}
.oa-cf7 #arithmetic_cal{              /* answer input */
  border:1px solid #e7ecf2;
  border-radius:10px;
  padding:0px 10px;
  width:180px; max-width:100%;
}
.oa-cf7 #arithmetic_refresh,
.oa-cf7 #arithmetic_refresh button,
.oa-cf7 #arithmetic_refresh a{
  display:inline-grid; place-items:center;
  width:34px; height:34px;
  border:1px solid #e9edf2;
  border-radius:999px;
  background:#fff;
  color:#4f5d75;
  text-decoration:none;
}
.oa-cf7 #arithmetic_refresh:hover,
.oa-cf7 #arithmetic_refresh button:hover,
.oa-cf7 #arithmetic_refresh a:hover{
  background:#f6f9fc; color:#ef8354;
}

/* Validation + messages (unchanged but kept for polish) */
.oa-cf7 .wpcf7-not-valid{ border-color:#ffb3a1; }
.oa-cf7 .wpcf7-not-valid-tip{ color:#e05a43; font-weight:600; margin-top:6px; }
.oa-cf7 .wpcf7-response-output{
  margin-top:14px; border-radius:10px; padding:10px 12px;
  border:1px solid #e7ecf2; background:#f6f9fc; color:#2f3946;
}

/* Sidebar project card */
#secondary .project-card{
  position: relative;
  padding-bottom: 28px;           /* room for the overlapping chips */
}

/* Image: fixed 200px wide, nice crop, centered */
#secondary .project-card .thumb{
  position: relative;
  width: 250px;
  aspect-ratio: 16/10;             /* nice landscape crop; remove if not supported */
  border-radius: 12px;
  overflow: visible; 
  background: #f3f6fa;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  margin: 0 auto 22px;             /* centered in 300px sidebar */
}

#secondary .project-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;               /* fills/crops cleanly */
  display: block;
  border-radius: 12px;
}

/* Chips row overlaps the bottom of the image */
#secondary .project-card .chip-row{
  position: absolute;
  left: 50%;
  bottom: -14px;                   /* overlap */
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* Base chip */
#secondary .project-card .chip{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
  border: 1px solid #e9edf2;
  background: #fff;
  color: #4f5d75;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* Download (accent) */
#secondary .project-card .chip-download{
  background: #ef8354;
  border-color: #ef8354;
  color: #fff;
}
#secondary .project-card .chip-download:hover{ background:#d86f43; border-color:#d86f43; }

/* Version (neutral) */
#secondary .project-card .chip-version{
  background: #fbfcff;
}

/* Price (warm) */
#secondary .project-card .chip-price{
  background: #fff2ee;
  border-color: #ffd9cf;
  color: #ef5a3a;
}

/* Optional: full-width on very narrow sidebars */
@media (max-width: 360px){
  #secondary .project-card .thumb{ width: 100%; }
}

/* ===== mini shop (pure HTML/CSS) ===== */
.oa-shop-lite .shop-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap:18px;
}

/* Card */
.oa-shop-lite .shop-card{
  background:#fff;
  border:1px solid #e9edf2;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Thumb */
.oa-shop-lite .shop-card .thumb{ position:relative; display:block; border-radius:12px; overflow:hidden; }
.oa-shop-lite .shop-card .thumb{ aspect-ratio:16/10; background:#f3f6fa; }
.oa-shop-lite .shop-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Platform chips over image */
.oa-shop-lite .shop-card .badge-row{
  position:absolute; left:10px; top:10px; display:flex; gap:6px;
}

/* Title / desc */
.oa-shop-lite .shop-card .title{ margin:0; font-size:1.05rem; text-align: center; }
.oa-shop-lite .shop-card .title a{ text-decoration:none; color:#2b2f35; }
.oa-shop-lite .shop-card .title a:hover{ color:#ef8354; }
.oa-shop-lite .shop-card .desc{ margin:0; color:#2f3946; min-height:3.2em; }

/* Meta */
.oa-shop-lite .shop-card .meta{
  display:flex; justify-content:space-between; align-items:center; color:#6b7785;
}
.oa-shop-lite .shop-card .price{ font-weight:900; color:#4f5d75; }

/* Buttons */
.oa-shop-lite .shop-card .actions{ display:flex; gap:10px; margin-top:auto; }
.oa-shop-lite .btn{ display:inline-block; padding:0px 21px; border-radius:10px; width: 100%; text-align: center; font-weight:500; text-decoration:none; }
.oa-shop-lite .btn-ghost{ border:1px solid #e7ecf2; background:#fff; color:#4f5d75; }
.oa-shop-lite .btn-ghost:hover{ background:#f6f9fc; }
.oa-shop-lite .btn-primary{ background:#ef8354; color:#fff; border:1px solid #ef8354; }
.oa-shop-lite .btn-primary:hover{ background:#d86f43; border-color:#d86f43; }

/* Optional: gradient bar at top of grid (matches your theme) */
.oa-shop-lite .shop-grid::before{
  content:""; display:block; grid-column:1/-1; height:3px; border-radius:2px;
  background:linear-gradient(90deg,#ef8354,#f6a564,#6bceee,#d9b6fd);
  margin-bottom:4px;
}

/* position chips */
.oa-shop-lite .shop-card .badge-left,
.oa-shop-lite .shop-card .badge-right{
  position:absolute; top:10px; display:flex; gap:6px; z-index:2;
}
.oa-shop-lite .shop-card .badge-left{ left:10px; }
.oa-shop-lite .shop-card .badge-right{ right:10px; }

/* base chip (already similar to yours, repeated for clarity) */
.oa-shop-lite .chip{
  padding:4px 8px;
  border-radius:999px;
  font-weight:800;
  font-size:.75rem;
  background:#fbfcff;
  border:1px solid #e7ecf2;
  color:#4f5d75;
}

/* platform chips */
.oa-shop-lite .chip-wp{ background:#fff2ee; border-color:#ffd9cf; color:#ef5a3a; }
.oa-shop-lite .chip-cpg{ background:#eef7ff; border-color:#d9e7ff; color:#3b74c5; }

/* price chip (top-right) */
.oa-shop-lite .chip-price{
  background:#ef8354;      /* your orange */
  border-color:#ef8354;
  color:#fff;
  text-transform:uppercase;
}
.oa-shop-lite .chip-price.is-free{           /* optional “Free” look */
  background:#4caf50;
  border-color:#4caf50;
  color:#fff;
}

/* ========= EDD Account – scoped styles ========= */
:root{
  /* Tweak these to match your brand */
  --acc-bg: #f7f8fb;
  --acc-card: #ffffff;
  --acc-text: #2b2d42;
  --acc-muted: #6b7280;
  --acc-border: #e5e7eb;
  --acc-accent: #6bceee;          /* accent */
  --acc-accent-ink: #073b4c;      /* readable on light accent */
  --acc-radius: 16px;
  --acc-shadow: 0 8px 24px rgba(0,0,0,.06);
  --acc-gap: 22px;
}

.edd-account{
  --_max: 1100px;
  color: var(--acc-text);
}

/* Sticky sub-nav */
.edd-account__nav{
  position: sticky;
  top: 72px; /* adjust if you have admin bar or a tall header */
  z-index: 2;
  justify-content: center;
  align-items: center; /* optional, keeps rows tidy when wrapping */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: -10px -10px var(--acc-gap);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--acc-border);
  border-top-left-radius: var(--acc-radius);
  border-top-right-radius: var(--acc-radius);
}

.edd-account__nav a{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--acc-border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--acc-text);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.edd-account__nav a:hover{ transform: translateY(-1px); }
.edd-account__nav a:focus{ outline: 3px solid color-mix(in srgb, var(--acc-accent) 40%, transparent); outline-offset: 2px; }
.edd-account__nav a[href*="#"]:target,
.edd-account__nav a[aria-current="true"]{
  background: var(--acc-accent);
  color: var(--acc-accent-ink);
  border-color: color-mix(in srgb, var(--acc-accent) 40%, var(--acc-border));
}

/* Sections (cards) */
.account-section{
  max-width: var(--_max);
  margin: 0 auto var(--acc-gap);
  background: var(--acc-card);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: clamp(16px, 2.4vw, 28px);
  scroll-margin-top: 90px; /* avoids sticky header overlap */
}
.account-section h2{
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.account-section h2::after{
  content: "";
  height: 3px; width: 36px;
  background: var(--acc-accent);
  border-radius: 3px;
  display: inline-block;
}

/* Make EDD tables pretty without knowing exact classes */
.account-section table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--acc-border);
  border-radius: 12px;
}
.account-section thead th{
  text-align: left;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 12px 14px;
  color: var(--acc-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--acc-border);
}
.account-section tbody td{
  padding: 12px 14px;
  border-top: 1px solid var(--acc-border);
  vertical-align: middle;
}
.account-section tbody tr:hover td{ background: #fcfcff; }

/* Buttons (covers EDD anchors that look like buttons) */
.account-section a.button,
.account-section .edd-submit,
.account-section input[type="submit"],
.account-section button{
  display: inline-block;
  border: 1px solid transparent;
  background: var(--acc-accent);
  color: var(--acc-accent-ink);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.account-section a.button:hover,
.account-section .edd-submit:hover,
.account-section input[type="submit"]:hover,
.account-section button:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* Small badges (e.g., status, license state) */
.badge{
  display:inline-block;padding:.25rem .5rem;border-radius:999px;
  font-size:.75rem;font-weight:700;line-height:1;border:1px solid var(--acc-border);
  background:#f4f7ff;color:#334155;
}
.badge--ok{ background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.badge--warn{ background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.badge--danger{ background:#fef2f2; color:#991b1b; border-color:#fecaca; }

/* Forms inside Profile Editor & Renewal Form */
.account-section input[type="text"],
.account-section input[type="email"],
.account-section input[type="password"],
.account-section input[type="url"],
.account-section input[type="number"],
.account-section select,
.account-section textarea{
  width: 100%;
  border: 1px solid var(--acc-border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--acc-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-section input:focus,
.account-section select:focus,
.account-section textarea:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--acc-accent) 50%, var(--acc-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc-accent) 22%, transparent);
}
.account-section label{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  color: var(--acc-muted);
  display:block; margin: 14px 0 6px;
}
.account-section .form-row{ margin-bottom: 10px; }

/* EDD notices / alerts (generic) */
.account-section .edd_errors,
.account-section .edd_success,
.account-section .edd-alert{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--acc-border);
  background: #f9fafb;
  color: var(--acc-text);
  margin: 12px 0;
}
.account-section .edd_success{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.account-section .edd_errors{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

/* Make long license keys wrap nicely */
.account-section code, .account-section .license-key{
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #f5f7fb; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--acc-border);
}

/* Mobile tweaks */
@media (max-width: 640px){
  .edd-account__nav{ top: 56px; }
  .account-section table, .account-section thead{ display: block; }
  .account-section thead tr{ display:none; }
  .account-section tbody{ display:block; }
  .account-section tbody tr{ display:grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px; }
  .account-section tbody td{ border: 0; padding: 4px 0; }
  .account-section tbody td:first-child{ grid-column: 1 / -1; font-weight: 700; }
}

/* Optional: light dark-mode respect */
@media (prefers-color-scheme: dark){
  :root{
    --acc-bg: #0f1623;
    --acc-card: #131c2b;
    --acc-text: #e8edf7;
    --acc-muted: #a6b0c3;
    --acc-border: #243248;
    --acc-shadow: 0 10px 28px rgba(0,0,0,.35);
    --acc-accent: #6bceee;
    --acc-accent-ink: #082a36;
  }
  .account-section thead th{ background: #0f1a2a; }
  .account-section tbody tr:hover td{ background: #0e1522; }
  .account-section input, .account-section select, .account-section textarea{ background:#0f1623; color: var(--acc-text); }
}

/* --- EDD Profile Editor: remove box + side gradients on legends --- */

/* kill the fieldset border */
.edd-account #account fieldset,
#edd_profile_editor_form fieldset{
  border: 0 !important;
  margin: 0 0 22px;
  padding: 18px 0;
}

/* center the section titles (legends) */
.edd-account #account legend,
#edd_profile_editor_form legend{
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;                 /* space between text and the lines */
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: .02em;
  color: var(--acc-text);
}

/* the flanking gradient lines */
.edd-account #account legend::before,
.edd-account #account legend::after,
#edd_profile_editor_form legend::before,
#edd_profile_editor_form legend::after{
  content: "";
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
        90deg,
        #ef8354,  /* orange */
        #f6a564,  /* peach */
        #6bceee,  /* pastel blue */
        #d9b6fd   /* pastel purple */
    );
}

/* mirror the gradient on the right so it feels symmetrical */
.edd-account #account legend::after,
#edd_profile_editor_form legend::after{
  transform: scaleX(-1);
}

/* Remove the ugly fieldset border everywhere inside EDD forms */
.edd-account fieldset,
.account-section fieldset,
.edd_form fieldset,
#edd_profile_editor_form fieldset{
  border: 0 !important;
  border-image: none !important;
  padding: 18px 0;
  margin: 24px 0 16px;
}

/* Center the titles and make them behave */
.edd-account legend,
.account-section legend,
.edd_form legend,
#edd_profile_editor_form legend{
  display: block;            /* override display:table */
  text-align: center;        /* center the text */
  position: relative;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: .04em;
  /* keep your theme’s uppercase if you like; remove next line to use normal case */
  text-transform: uppercase;
}

/* Gradient lines on left + right of the legend text */
.edd-account legend::before,
.edd-account legend::after,
.edd_form legend::before,
.edd_form legend::after{
  content: "";
  position: relative;
  top: 50%;
  height: 4px;
  width: 15%;                 /* tweak to taste */
  border-radius: 999px;
  /* use your sidebar gradient var if set; otherwise fallback to your pastel set */
  background: var(--sidebar-gradient,
    linear-gradient(90deg,#f996ae,#6bceee,#d9b6fd,#f6f0a3));
}
.edd-account legend::before,
.edd_form legend::before{ left: 0; }
.edd-account legend::after,
.edd_form legend::after{ right: 0; transform: translateY(-50%) scaleX(-1); }

/* Tighten spacing above the Save button */
#edd_profile_editor_form fieldset:last-of-type{ margin-bottom: 8px; }