/*
 Theme Name:   Dynamic Divi Child Theme
 Theme URI:    https://diviengine.com/
 Description:  Dynamic Divi Child Theme for Tiotion-Electris 2026
 Author:       Divi Engine
 Author URI:   https://diviengine.com/
 Template:     Divi
*/

/* Tab for profile page */

.electris-tab-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.electris-tab-btn{
  background:#f2f2f2;
  border:1px solid #ddd;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.electris-tab-btn.is-active{
  background:#3c434a;
  color:#fff;
  border-color:#3c434a;
}
.electris-tab-panel{
  display:none;
  padding:16px;
  border:1px solid #e6e6e6;
  border-radius:14px;
  background:#fff;
}
.electris-tab-panel.is-active{
  display:block;
}

/* END Tab for profile page */

/* Certificates */
/* ===== Electris Certificates V2 ===== */

.electris-certificates-header{
  background: linear-gradient(135deg, #272c31 0%, #3c434a 100%);
  color: #fff;
  border: 0;
}
.electris-certificates-header h3,
.electris-certificates-header p{
  color: #fff;
}
.electris-certificates-header p strong{
  color: #fff;
}

.electris-certificates-grid{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.electris-certificate-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e6e9ec;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.electris-certificate-card:before{
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(60,67,74,0.10);
}

.electris-certificate-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.electris-certificate-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}

.electris-certificate-badge:before{
  content: "🏆";
  font-size: 14px;
  line-height: 1;
}

/* Default badge */
.electris-certificate-badge{
  background: rgba(60,67,74,0.12);
  color: #272c31;
}

/* If you later add class modifiers, these are ready: */
.electris-badge-quiz{ background: rgba(39,44,49,0.10); color: #272c31; }
.electris-badge-course{ background: rgba(60,67,74,0.16); color: #272c31; }

.electris-certificate-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px 0;
  color: #272c31;
}

.electris-certificate-desc{
  margin: 0 0 14px 0;
  color: #556067;
  font-size: 14px;
  line-height: 1.55;
}

.electris-certificate-meta{
  font-size: 13px;
  color: #6b757c;
  margin: 0 0 14px 0;
}

.electris-certificate-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.electris-certificate-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

/* Primary */
.electris-certificate-btn{
  background: #272c31;
  color: #fff !important;
}
.electris-certificate-btn:hover{
  background: #3c434a;
}

/* Secondary (download) */
.electris-certificate-btn.electris-certificate-btn--secondary{
  background: #fff;
  color: #272c31 !important;
  border-color: #dfe4e8;
}
.electris-certificate-btn.electris-certificate-btn--secondary:hover{
  background: #f6f7f8;
}

/* Empty state V2 */
.electris-certificates-empty{
  border: 1px dashed #cfd5d9;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
}
.electris-certificates-empty h4{
  font-weight: 900;
}

/* Title of sections */

.electris-cert-section{
  margin-top: 18px;
}

.electris-cert-section-title{
  margin: 0 0 12px 0;
  font-weight: 900;
  font-size: 16px;
  color: #272c31;
}

.electris-cert-section-subtitle{
  margin: -6px 0 14px 0;
  color: #5a6268;
  font-size: 13px;
}

/* END Certificates */

/* Hide LearnDash "Edit profile" link that points to wp-admin/profile.php */
a[href*="/wp-admin/profile.php"]{
  display:none !important;
}

/* END Hide LearnDash "Edit profile" link that points to wp-admin/profile.php */