/* ============================================================
   ReleaseOwl Profile — styles
   Part of the ReleaseOwl Profile plugin. Auto-enqueued only on
   pages using the [ro_profile] shortcode or the "RO Profile
   (Full Page)" template — never loaded site-wide.
============================================================= */
.ro-profile{
  --ro-green:#27A955;
  --text-main:#17241d;
  --text-muted:#6b7770;
  --border:#e6e9e7;
  /* --radius-lg:16px; */
  --radius-sm:8px;
  max-width:1400px;
  margin:0 auto;
  padding:30px 0px 60px;
}
.ro-profile *{box-sizing:border-box;}
span.line {
    border: 1px solid #E2E2E2;
    display:block;
}
span.line:last-child {
    margin-top: 30px;
}
/**************nEw add css********/
.form-actions button#ro-post-btn {background-color:#fff;color:#000;border-radius:5px;border:1px solid #27A955;}
.form-actions button#ro-post-btn:hover {background-color:#27A955;color:#fff;}

button#ro-draft-btn {background-color:#fff;color:#000;border-radius:5px;border:1px solid #27A955;}

button#ro-draft-btn:hover{background-color:#27A955;color:#fff;}

a.btn-cancel {
    color: #000;
    text-decoration: underline !important;
    text-underline-position: under;
    font-weight: 500;
}
.profile-meta {
    height: 165px;
}
/*************************************/
.ro-profile .profile-strip{
  display:flex; align-items:center; gap:22px;
  padding:0px 0px 26px 0px; border-radius:var(--radius-lg);

  flex-wrap:wrap;
}
.ro-profile .avatar{background-color:#fff;width:189px; height:189px; border-radius:20px; object-fit:cover; border:3px solid #fff; box-shadow:0 4px 14px rgba(0,0,0,.12);}
.ro-profile .profile-meta h1{color:#fff !important;margin:0 0 6px; font-size:26px; display:flex; align-items:center; gap:8px;}
.ro-profile .profile-meta h1 .star{color:#f5b400; font-size:20px;}
.ro-profile .profile-meta .level{color:#fff !important;font-weight:700; font-size:14.5px; margin:0 0 16px;}
.ro-profile .stats{display:flex; gap:26px; margin-top:50px; font-size:14px; color:rgba(255,255,255,.82);}
.ro-profile .stats span{display:flex; align-items:center; gap:6px;color:#000;}

.ro-profile .grid{display:block; grid-template-columns:1fr 340px; gap:24px; align-items:start;}

.ro-profile .panel{background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden;}
.ro-profile .courses-head{display:none; align-items:center; justify-content:space-between; background:#eef0ee; padding:20px 28px; flex-wrap:wrap; gap:10px;}
.ro-profile .courses-head .brandmark{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.5px;}
.ro-profile .courses-head .brandmark small{display:block; font-size:11px; letter-spacing:2px; color:var(--text-muted); font-weight:600;}
.ro-profile .courses-head .title{font-size:19px; font-weight:700; margin-left:14px; padding-left:14px; border-left:1px solid #cfd6d1;}
.ro-profile .courses-head .tagline{color:var(--text-muted); font-size:14px; font-style:italic;}

.ro-profile .courses-body{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:20px; padding:34px 28px;}
.ro-profile .course-card{text-align:center;}
.ro-profile .badge-stage{position:relative; width:150px; height:150px; margin:0 auto 16px;}
.ro-profile .ring-svg{position:absolute; inset:0; transform:rotate(-90deg);}
.ro-profile .ring-track{fill:none; stroke:#e7e9e7; stroke-width:8;}
.ro-profile .ring-fill{fill:none; stroke-width:8; stroke-linecap:round; transition:stroke-dashoffset 1.1s ease;}
.ro-profile .badge-hex-wrap{position:absolute; top:23px; left:16px; right:16px; height:78px; border-radius:50%; overflow:hidden; background:#fff;}
.ro-profile .badge-img-base,
.ro-profile .badge-img-reveal{
  position:absolute; inset:0; width:51%; height:100%; object-fit:cover;margin:auto;
}
.ro-profile .badge-img-base{filter:grayscale(1); opacity:.18;}
.ro-profile .badge-img-reveal{
  clip-path:inset(100% 0 0 0);
  -webkit-clip-path:inset(100% 0 0 0);
  transition:clip-path 1.1s cubic-bezier(.22,.9,.3,1);
}
.ro-profile .badge-noimg{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:13px; color:var(--text-muted); background:#f4f6f5;
}
.ro-profile .badge-stage .progress-count{
  position:absolute;
  left:0;
  right:0;
  bottom:22px;
  font-weight:700;
  font-size:17px;
  margin-top:0;
  z-index:2;
}
.ro-profile .course-name{font-weight:700; font-size:15px; margin:10px 0 2px;}
.ro-profile .course-desc{font-size:12.5px; color:var(--text-muted); line-height:1.4; min-height:40px; margin:2px 0 14px;}
.ro-profile .continue-btn{display:inline-flex; align-items:center; gap:6px; border:1.5px solid var(--ro-green); color:var(--ro-green); font-weight:700; font-size:13.5px; padding:8px 20px; border-radius:20px; background:transparent; text-decoration:none;}
.ro-profile .continue-btn:hover{background:var(--ro-green); color:#fff;}
.ro-profile .empty-note{padding:30px 28px; color:var(--text-muted); font-size:14px;}

.ro-profile .activity-panel{margin-top:26px;}
.ro-profile .activity-head{display:flex; align-items:center; justify-content:space-between; padding:6px 4px 18px; flex-wrap:wrap; gap:10px;}
.ro-profile .activity-head h2{margin:0; font-size:22px; position:relative; padding-bottom:10px;}
.ro-profile .activity-head h2::after{content:''; position:absolute; left:0; bottom:0; width:34px; height:3px; background:var(--ro-green);}
.ro-profile .start-disc-btn{border:1.5px solid var(--ro-green); color:var(--ro-green); background:#fff; font-weight:700; font-size:14px; padding:9px 20px; border-radius:20px; text-decoration:none;}
.ro-profile .activity-card{display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 4px; border-top:0px solid var(--border); flex-wrap:wrap;}
.ro-profile .activity-card:first-of-type{border-top:none;}
.ro-profile .activity-main{flex:1; min-width:260px;}
.ro-profile .activity-main h3{margin:0 0 6px; font-size:16.5px;}
.ro-profile .activity-main h3 a{color:inherit; text-decoration:none;}
.ro-profile .activity-main p{margin:0 0 12px; font-size:14px; color:#3c463f; line-height:1.5;}
.ro-profile .tag-row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px;}
.ro-profile .tag{background:#eef2ef; color:#42504a; font-size:12px; padding:4px 12px; border-radius:14px;}
.ro-profile .meta-row{display:flex; align-items:center; gap:18px; font-size:13px; color:var(--text-muted); flex-wrap:wrap;}
.ro-profile .meta-row span{display:flex; align-items:center; gap:5px;}
.ro-profile .meta-row .meta-link{color:inherit; text-decoration:none;}
.ro-profile .meta-row .meta-link:hover{color:var(--ro-green); text-decoration:underline;}
.ro-profile .activity-side{display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex-shrink:0; width:230px;}
.ro-profile .activity-user{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted);}
.ro-profile .activity-user img{width:30px; height:30px; border-radius:50%; object-fit:cover;}
.ro-profile .activity-shortcode{width:100%; min-height:44px; border:1.5px dashed #cdd6d0; border-radius:var(--radius-sm); background:#fbfcfb; display:flex; align-items:center; justify-content:center; font-size:11.5px; color:#a7b1ab; text-align:center; padding:6px 8px;}
.ro-profile .empty-activity{padding:30px 4px; color:var(--text-muted); font-size:14px;}
.ro-profile .view-more{display:block; margin-top:-20px; width:140px; text-align:center; border:1.5px solid var(--ro-green); color:var(--ro-green); background:#fff; font-weight:700; font-size:14px; padding:9px 0; border-radius:20px; text-decoration:none;}
button.view-more.ro-activity-view-more:hover {
        text-align: center;
    border: 1.5px solid var(--ro-green);
    color: var(--ro-green);
    background: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 0;
    border-radius: 20px;
    text-decoration: none;
    
}
/*.ro-profile .side-panel{background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 22px; margin-bottom:20px;}*/
.ro-profile .side-panel h3{margin:0 0 14px; font-size:17px; border-left:4px solid var(--ro-green); padding-left:10px;}
.ro-profile .quicklinks a{display:block; padding:7px 0; font-size:14.5px; text-decoration:underline; color:var(--text-main);}
.ro-profile .lb-row{display:flex; align-items:center; gap:12px; padding:8px 0;}
.ro-profile .lb-row .rank{width:16px; font-weight:700; color:var(--text-muted); font-size:14px;}
.ro-profile .lb-row img{width:34px; height:34px; border-radius:50%; object-fit:cover;}
.ro-profile .lb-row .name{font-size:14px; font-weight:600;}
.ro-profile .lb-row .pts{font-size:12px; color:var(--text-muted);}
.ro-profile .tags-wrap{display:flex; flex-wrap:wrap; gap:8px;}

@media (max-width:1000px){
  .ro-profile .grid{grid-template-columns:1fr;}
}

/* ============================================================
   Start Discussion form
============================================================= */
.ro-profile.ro-discussion-page .disc-tabs{display:flex; gap:30px; border-bottom:1px solid var(--border); margin-bottom:14px;}
.ro-profile.ro-discussion-page .tab-btn{
  background:none; border:none; cursor:pointer; padding:0 0 12px; font-size:16px; font-weight:700;
  color:var(--text-muted); border-bottom:2px solid transparent; margin-bottom:-1px;
}
.ro-profile.ro-discussion-page .tab-btn.active{color:var(--text-main); border-bottom-color:var(--ro-green);}
.ro-profile.ro-discussion-page .disc-sub{color:var(--text-muted); font-size:14px; margin:0 0 26px; line-height:1.5;}
div#ro-tag-box {border: none;}
.ro-disc-form{display:flex; flex-direction:column; gap:24px;}
.ro-disc-form .field-row{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.ro-disc-form .field{display:flex; flex-direction:column; gap:6px;}
.ro-disc-form .field.full{width:100%;}
.ro-disc-form label{font-weight:700; font-size:14.5px;}
.ro-disc-form input[type="text"],
.ro-disc-form select{
  border:1px solid #C0C0C0; border-radius:8px; padding:11px 14px; font-size:14px;
  font-family:inherit; color:var(--text-main); background:#fff; width:100%;
}
.ro-disc-form input[type="text"]:focus,
.ro-disc-form select:focus{outline:none; border-color:var(--ro-green);}
.ro-disc-form small{color:var(--text-muted); font-size:12.5px;}

.ro-editor-wrap{border: 1px solid #C0C0C0 !important; border-radius:8px; overflow:hidden;}
.ro-editor-toolbar{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  background:#f4f6f5; border-bottom:1px solid var(--border); padding:8px 10px;    justify-content: flex-start;
}
.ro-editor-toolbar button{
  border:none; background:transparent; width:30px; height:30px; border-radius:6px; cursor:pointer;
  font-size:13.5px; color:#42504a; display:flex; align-items:center; justify-content:center;
}
.ro-editor-toolbar button:hover{background:#072412;}
.ro-toolbar-sep{width:1px; height:20px; background:var(--border); margin:0 6px;}
.ro-editor{
  min-height:170px; padding:16px; font-size:14.5px; line-height:1.6; color:var(--text-main);
}
.ro-editor:empty::before{content:attr(data-placeholder); color:#a7b1ab;}
.ro-editor:focus{outline:none;}

.ro-tag-box{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  border:1px solid #C0C0C0; border-radius:8px; padding:8px 10px;
}
.ro-tag-box input{border:none; outline:none; flex:1; min-width:160px; font-size:14px; font-family:inherit; padding:4px;}
.ro-tag-chip{
  display:flex; align-items:center; gap:6px; background:#eef2ef; color:#42504a;
  font-size:12.5px; padding:5px 8px 5px 12px; border-radius:14px;
}
.ro-tag-chip button{border:none; background:none; cursor:pointer; color:#7a857f; font-size:13px; line-height:1;}

.ro-upload-drop{
      border: 1.5px dashed #C0C0C0; border-radius:10px; padding:34px 20px; text-align:center;
  cursor:pointer; color:var(--text-main); background:#fbfcfb;
}
.ro-upload-drop.is-dragover{border-color:var(--ro-green); background:#f2faf5;}
.ro-upload-drop .ro-upload-icon{font-size:20px; display:block; margin-bottom:10px; opacity:.5;}
.ro-upload-drop small{display:block; margin-top:6px; color:var(--text-muted);}
.ro-upload-filename{margin-top:8px; font-size:13px; color:var(--ro-green); font-weight:600;}

.form-actions{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.btn-primary{
  background:var(--ro-green); color:#fff; border:none; font-weight:700; font-size:14.5px;
  padding:12px 26px; border-radius:8px; cursor:pointer;
}
.btn-primary:disabled{opacity:.6; cursor:not-allowed;}
.btn-secondary{
  background:#fff; color:var(--text-main); border:1px solid var(--border); font-weight:700; font-size:14.5px;
  padding:12px 22px; border-radius:8px; cursor:pointer;
}
.btn-cancel{color:var(--text-muted); font-size:14.5px; text-decoration:underline;}

.ro-disc-message{
  padding:12px 16px; border-radius:8px; font-size:14px; margin-bottom:18px;
}
.ro-disc-message.is-success{background:#e9f8ef; color:#1f8a4c; border:1px solid #b9e6c8;}
.ro-disc-message.is-error{background:#fdecec; color:#b3261e; border:1px solid #f3c2c0;}

.ro-poll-stub{
  border:1px dashed var(--border); border-radius:10px; padding:40px; text-align:center; color:var(--text-muted);
}

@media (max-width:700px){
  .ro-disc-form .field-row{grid-template-columns:1fr;}
  .ro-profile .profile-meta h1 {
    color: #000 !important;
  }
  .ro-profile .profile-meta .level

 {
    color: #000 !important;
 }
}

/* ============================================================
   Breadcrumb
============================================================= */
.ro-profile .ro-breadcrumb{
  display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-muted);
  margin:-50px 0 18px 0;
}

.ro-profile.ro-discussion-page .grid {margin-top:-80px;}

.ro-profile .ro-breadcrumb a{color:var(--text-muted); text-decoration:none;}
.ro-profile .ro-breadcrumb a:hover{text-decoration:underline;}
.ro-profile .ro-breadcrumb-sep{color:#c3cbc6;}
.ro-profile .ro-breadcrumb-current{color:var(--ro-green); font-weight:700;}

/* ============================================================
   View Certificate trigger + Certificate / Share modals
============================================================= */
.ro-profile .view-cert-btn{
  display:block; width:100%; margin-top:10px; background:#fff8e6; color:#946200;
  border:1px solid #f0d99a; font-weight:700; font-size:13px; padding:8px 14px;
  border-radius:20px; cursor:pointer;
}
.ro-profile .view-cert-btn:hover{background:#fdeecb;}

.ro-modal-overlay{
  position:fixed; inset:0; background:rgba(15, 25, 20, .55); z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.ro-modal{
  background:#fff; border-radius:18px; max-width:400px; width:100%; padding:34px 30px 28px;
  text-align:center; position:relative; box-shadow:0 20px 60px rgba(0,0,0,.25);
  max-height:92vh; overflow-y:auto;
}
.ro-modal-close{
  position:absolute; top:16px; right:16px; border:none; background:none; font-size:20px;
  color:#8a948e; cursor:pointer; line-height:1;
}

/* Frame 345 */
.ro-cert-modal{border:2px solid #2f80ed;}
.ro-cert-badge{width:78px; height:78px; object-fit:contain; margin:0 auto 14px;}
.ro-cert-modal h3{margin:0 0 6px; font-size:19px;}
.ro-cert-star{color:#2f80ed; font-size:16px; margin-bottom:14px;}
.ro-cert-congrats{color:var(--ro-green); font-weight:700; font-size:16px; margin-bottom:4px;}
.ro-cert-sub{font-size:13.5px; color:var(--text-muted); margin:0 0 20px;}
.ro-cert-preview{
  background:#f4f6f5; border:1px solid var(--border); border-radius:10px; padding:18px;
  margin-bottom:22px;
}
.ro-cert-preview-title{font-size:11px; letter-spacing:1px; color:var(--text-muted); text-transform:uppercase; margin-bottom:10px;}
.ro-cert-preview-name{font-size:17px; font-weight:700; color:var(--ro-green); margin-bottom:4px;}
.ro-cert-preview-course{font-size:12.5px; color:var(--text-muted);}
.ro-cert-btn-primary{
  display:block; width:100%; background:#2f80ed; color:#fff; border:none; font-weight:700;
  font-size:14.5px; padding:12px; border-radius:24px; text-decoration:none; margin-bottom:10px;
  box-sizing:border-box;
}
.ro-cert-btn-secondary{
  display:block; width:100%; background:#fff; color:var(--text-main); border:1.5px solid var(--border);
  font-weight:700; font-size:14.5px; padding:11px; border-radius:24px; cursor:pointer;
}

/* Frame 346 */
.ro-share-modal .ro-share-icon{font-size:30px; margin-bottom:10px;}
.ro-share-modal h3{margin:0 0 6px; font-size:19px;}
.ro-share-sub{font-size:13.5px; color:var(--text-muted); margin:0 0 26px; line-height:1.5;}
.ro-share-steps{display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:26px;}
.ro-share-step{flex:1; max-width:130px;}
.ro-share-step-num{
  width:20px; height:20px; border-radius:50%; background:#e4ecff; color:#2f80ed; font-size:11px;
  font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 8px;
}
.ro-share-step:last-child .ro-share-step-num{background:#e1f5e9; color:var(--ro-green);}
.ro-share-step-icon{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:18px; margin:0 auto 8px;
}
.ro-linkedin-icon{background:#0a66c2; color:#fff; font-weight:700;}
.ro-gift-icon{background:#e1f5e9;}
.ro-share-step-label{font-size:12.5px; font-weight:700; margin-bottom:3px;}
.ro-share-step-desc{font-size:11px; color:var(--text-muted); line-height:1.35;}
.ro-share-step-arrow{color:#c3cbc6; font-size:16px;}
.ro-share-linkedin-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:#0a66c2; color:#fff; font-weight:700; font-size:14.5px; padding:12px; border-radius:24px;
  text-decoration:none; margin-bottom:10px;
}
.ro-linkedin-mark{background:#fff; color:#0a66c2; width:18px; height:18px; border-radius:4px; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center;}
.ro-share-giftcard-btn{
  display:block; width:100%; background:#fff; color:var(--ro-green); border:1.5px solid var(--ro-green);
  font-weight:700; font-size:14.5px; padding:11px; border-radius:24px; cursor:pointer;
}
.ro-share-footnote{font-size:11.5px; color:#a7b1ab; margin:14px 0 0;}
.ro-share-message{
  margin-top:14px; padding:10px 14px; border-radius:8px; font-size:13px;
  background:#e9f8ef; color:#1f8a4c; border:1px solid #b9e6c8;
}

