:root{
  --cfm-cream:#FFF8E8;
  --cfm-cream-2:#FFF0C7;
  --cfm-card:#FFFDF6;
  --cfm-gold:#D9A441;
  --cfm-gold-light:#F4C95D;
  --cfm-gold-deep:#9A5A12;
  --cfm-brown:#624023;
  --cfm-brown-2:#5D3B20;
  --cfm-brown-dark:#3E200A;
  --cfm-maroon:#4A150C;
  --cfm-text:#2A1208;
  --cfm-muted:#684733;
  --cfm-border:rgba(230,190,103,.78);
  --cfm-shadow:0 20px 48px rgba(74,21,12,.14);
}

.cfm-wrap,.cfm-auth,.cfm-dashboard{
  width:min(1180px,92%);
  max-width:1180px;
  margin:42px auto;
  font-family:'Poppins',Arial,sans-serif;
  color:var(--cfm-text);
}

.cfm-wrap *,.cfm-auth *,.cfm-dashboard *{box-sizing:border-box}

.cfm-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  align-items:stretch;
}

.cfm-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:linear-gradient(145deg,#fff,var(--cfm-card));
  border:1px solid var(--cfm-border);
  border-radius:26px;
  box-shadow:0 14px 34px rgba(74,21,12,.10);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}

.cfm-card:hover{
  transform:translateY(-7px);
  box-shadow:0 24px 48px rgba(74,21,12,.17);
  border-color:var(--cfm-gold);
}

.cfm-card:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:6px;
  z-index:2;
  background:linear-gradient(90deg,var(--cfm-gold-light),var(--cfm-gold),var(--cfm-brown));
}

.cfm-thumb{
  width:100%;
  height:235px;
  object-fit:cover;
  display:block;
  background:var(--cfm-cream-2);
  border-bottom:1px solid var(--cfm-border);
}

.cfm-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:26px;
}

.cfm-card h3{
  margin:13px 0 12px;
  color:var(--cfm-brown-dark);
  font-size:25px;
  line-height:1.25;
  font-weight:800;
}

.cfm-card-body>p,
.cfm-course-content{
  color:var(--cfm-muted);
  font-size:15px;
  line-height:1.75;
}

.cfm-course-content{margin:3px 0 18px}
.cfm-course-content p:last-child{margin-bottom:0}

.cfm-badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:7px;
  padding:8px 13px;
  border-radius:50px;
  background:linear-gradient(135deg,var(--cfm-cream),var(--cfm-cream-2));
  border:1px solid var(--cfm-border);
  color:var(--cfm-brown-dark);
  font-size:12px;
  line-height:1;
  font-weight:800;
  box-shadow:0 8px 18px rgba(154,90,18,.08);
}

.cfm-badge:before{content:"✦";color:var(--cfm-gold-deep);font-size:13px}

.cfm-meta,
.cfm-detail-list{
  display:grid;
  gap:10px;
  margin:18px 0;
  padding:17px;
  border:1px solid var(--cfm-border);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,248,232,.95),rgba(255,240,199,.62));
}

.cfm-meta span,
.cfm-detail-list p{
  margin:0;
  color:var(--cfm-muted);
  font-size:14px;
  line-height:1.55;
}

.cfm-meta strong,.cfm-detail-list strong{color:var(--cfm-brown-dark);font-weight:800}

.cfm-price{
  margin:4px 0 20px;
  color:var(--cfm-brown-dark);
  font-size:29px;
  line-height:1;
  font-weight:900;
}

.cfm-actions{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
  margin-top:auto;
}

.cfm-dashboard-actions{margin-top:12px}

.cfm-btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 19px;
  border:1px solid transparent;
  border-radius:50px;
  background:linear-gradient(135deg,var(--cfm-gold-light),var(--cfm-gold),var(--cfm-gold-deep));
  color:var(--cfm-brown-dark)!important;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:0 11px 24px rgba(154,90,18,.22);
  transition:transform .24s ease,box-shadow .24s ease,filter .24s ease;
}

.cfm-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(154,90,18,.30);
  filter:saturate(1.08);
}

.cfm-btn:disabled{opacity:.58;cursor:not-allowed;transform:none}

.cfm-btn-light{
  background:#fff!important;
  color:var(--cfm-brown)!important;
  border-color:var(--cfm-border)!important;
  box-shadow:0 9px 20px rgba(74,21,12,.08);
}
.cfm-btn-light:hover{background:var(--cfm-cream)!important;border-color:var(--cfm-gold)!important}

/* Hora Sutra dashboard welcome panel */
.cfm-profile{
  position:relative;
  overflow:hidden;
  margin-bottom:30px;
  padding:38px 40px;
  border:1px solid rgba(244,201,93,.58);
  border-radius:30px;
  background:
    radial-gradient(circle at 90% 15%,rgba(244,201,93,.24),transparent 24%),
    linear-gradient(135deg,var(--cfm-brown-dark),var(--cfm-brown-2) 52%,var(--cfm-brown));
  color:#fff;
  box-shadow:var(--cfm-shadow);
}

.cfm-profile:after{
  content:"✦";
  position:absolute;
  right:34px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(244,201,93,.35);
  font-size:110px;
  line-height:1;
}

.cfm-profile h2{
  position:relative;
  z-index:1;
  margin:0 0 10px;
  color:#fff;
  font-size:36px;
  line-height:1.2;
  font-weight:900;
}

.cfm-profile p{
  position:relative;
  z-index:1;
  margin:0;
  color:#FFF3D2;
  font-size:16px;
}
.cfm-profile strong{color:var(--cfm-gold-light)}

/* Dashboard course cards become the same premium course panel */
.cfm-dashboard .cfm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cfm-dashboard .cfm-card-body{padding:28px}
.cfm-dashboard .cfm-card h3{font-size:28px}

/* Login */
.cfm-auth{
  max-width:500px;
  padding:34px;
  background:linear-gradient(145deg,#fff,var(--cfm-card));
  border:1px solid var(--cfm-border);
  border-radius:28px;
  box-shadow:var(--cfm-shadow);
}
.cfm-auth:before{
  content:"Hora Sutra Student Login";
  display:block;
  margin:-34px -34px 28px;
  padding:24px 30px;
  border-radius:27px 27px 0 0;
  background:linear-gradient(135deg,var(--cfm-brown-dark),var(--cfm-brown-2),var(--cfm-brown));
  color:#fff;
  font-size:21px;
  font-weight:900;
}
.cfm-auth h2{margin:0 0 18px;color:var(--cfm-brown-dark);font-size:28px}

.cfm-modal label,.cfm-auth label{
  display:block;
  margin:14px 0 7px;
  color:var(--cfm-brown-dark);
  font-weight:800;
}

.cfm-modal input,.cfm-modal textarea,.cfm-auth input{
  width:100%;
  padding:14px 15px;
  border:1px solid var(--cfm-border);
  border-radius:14px;
  background:#fff;
  color:var(--cfm-text);
  font:inherit;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.cfm-modal input:focus,.cfm-modal textarea:focus,.cfm-auth input:focus{
  border-color:var(--cfm-gold-deep);
  box-shadow:0 0 0 4px rgba(217,164,65,.13);
}
.cfm-modal form .cfm-btn,.cfm-auth form .cfm-btn{width:100%;margin-top:17px}

/* Popup */
.cfm-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(32,14,5,.74);
  backdrop-filter:blur(7px);
}
.cfm-modal.is-open{display:flex}
.cfm-modal-box{
  position:relative;
  width:min(560px,100%);
  max-height:90vh;
  overflow:auto;
  padding:32px;
  border:1px solid var(--cfm-border);
  border-radius:28px;
  background:linear-gradient(145deg,#fff,var(--cfm-card));
  box-shadow:0 32px 90px rgba(0,0,0,.36);
}
.cfm-modal-box h2{margin:0 45px 18px 0;color:var(--cfm-brown-dark);font-size:27px;line-height:1.3}
.cfm-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:1px solid var(--cfm-border);
  border-radius:50%;
  background:var(--cfm-cream);
  color:var(--cfm-brown-dark);
  font-size:27px;
  line-height:1;
  cursor:pointer;
}

.cfm-success,.cfm-error,.cfm-notice{
  margin:14px 0;
  padding:14px 16px;
  border-radius:14px;
  font-size:14px;
  line-height:1.55;
  border:1px solid transparent;
}
.cfm-success{background:#eef9f1;color:#176b3a;border-color:#bfe6ca}
.cfm-error{background:#fff1f1;color:#a51f1f;border-color:#f0c2c2}
.cfm-notice{background:var(--cfm-cream);color:var(--cfm-brown-dark);border-color:var(--cfm-border)}
.cfm-notice a{color:var(--cfm-gold-deep);font-weight:800}


@media(max-width:980px){
  .cfm-grid,.cfm-dashboard .cfm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .cfm-wrap,.cfm-auth,.cfm-dashboard{width:min(94%,1180px);margin:25px auto}
  .cfm-grid,.cfm-dashboard .cfm-grid{grid-template-columns:1fr;gap:20px}
  .cfm-thumb{height:220px}
  .cfm-card-body,.cfm-dashboard .cfm-card-body{padding:22px}
  .cfm-card h3,.cfm-dashboard .cfm-card h3{font-size:23px}
  .cfm-profile{padding:28px 24px;border-radius:24px}
  .cfm-profile h2{font-size:28px}
  .cfm-profile:after{right:12px;font-size:75px}
  .cfm-actions{display:grid;grid-template-columns:1fr}
  .cfm-actions>*{width:100%}
  .cfm-auth{padding:25px 20px;border-radius:23px}
  .cfm-auth:before{margin:-25px -20px 24px;padding:20px;border-radius:22px 22px 0 0;font-size:18px}
  .cfm-modal-box{padding:25px 19px;border-radius:23px}
  .cfm-modal-box h2{font-size:22px}
}

@media(max-width:420px){
  .cfm-profile h2{font-size:24px}
  .cfm-profile p{font-size:14px;overflow-wrap:anywhere}
  .cfm-card-body{padding:19px}
  .cfm-meta,.cfm-detail-list{padding:14px}
  .cfm-price{font-size:25px}
}

/* v1.6 student registration, email/password login, and dashboard */
.cfm-landing-enroll{border:0}
.cfm-register-head{text-align:center;margin-bottom:18px}
.cfm-register-head>span{display:inline-flex;padding:7px 12px;border-radius:999px;background:var(--cfm-cream-2);color:var(--cfm-gold-deep);font-size:11px;font-weight:900;letter-spacing:1px}
.cfm-register-head h2{margin:12px 0 7px;color:var(--cfm-brown-dark);font-size:28px;line-height:1.25}
.cfm-register-head p,.cfm-auth-intro{margin:0;color:var(--cfm-muted);font-size:13px;line-height:1.7}
.cfm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.cfm-form-grid .cfm-full{grid-column:1/-1}
.cfm-consent{display:flex!important;align-items:flex-start;gap:9px;margin:17px 0!important;font-size:12px!important;color:var(--cfm-muted)!important;font-weight:600!important}
.cfm-consent input{width:auto!important;margin-top:3px}
.cfm-register-submit{width:100%}
.cfm-profile-with-actions{display:flex;align-items:center;justify-content:space-between;gap:22px}
.cfm-profile-with-actions>div{position:relative;z-index:1}
.cfm-logout{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;padding:12px 21px;border-radius:999px;background:linear-gradient(135deg,var(--cfm-gold-light),var(--cfm-gold));color:var(--cfm-brown-dark)!important;font-weight:900;text-decoration:none!important;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.cfm-dashboard-course .cfm-thumb{height:250px}
.cfm-dashboard-course .cfm-course-content{max-height:150px;overflow:auto;padding-right:5px}
.cfm-auth form .cfm-btn{width:100%;margin-top:17px}

@media(max-width:680px){
  .cfm-form-grid{grid-template-columns:1fr}
  .cfm-form-grid .cfm-full{grid-column:auto}
  .cfm-profile-with-actions{align-items:flex-start;flex-direction:column;padding:28px 24px}
  .cfm-logout{width:100%}
  .cfm-dashboard-course .cfm-thumb{height:210px}
}


/* v1.5 responsive dashboard course image */
.cfm-dashboard-course .cfm-thumb{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
  background:linear-gradient(135deg,var(--cfm-cream),var(--cfm-cream-2));
}
.cfm-dashboard-course .cfm-card{
  overflow:hidden;
}
@media(max-width:700px){
  .cfm-dashboard-course .cfm-thumb{
    width:100%;
    height:auto;
    aspect-ratio:16/10;
    object-fit:cover;
  }
}
@media(max-width:420px){
  .cfm-dashboard-course .cfm-thumb{
    aspect-ratio:4/3;
  }
}

.cfm-remember{display:flex!important;align-items:center;gap:9px;margin:2px 0 16px;font-size:13px;color:#6b4736}.cfm-remember input{width:auto!important;margin:0!important;accent-color:#7a2415}

/* Zoom access details in the student dashboard */
.cfm-zoom-access{width:100%;padding:16px;border:1px solid #e3c477;border-radius:14px;background:#fffaf0}
.cfm-zoom-access p{margin:10px 0 0;overflow-wrap:anywhere}


/* Course video on student dashboard */
.cfm-youtube-wrap{margin-top:18px;padding:18px;border:1px solid #e6be67;border-radius:18px;background:#fffaf0}
.cfm-youtube-wrap h4{margin:0 0 12px;color:#4a2b16;font-size:18px}
.cfm-youtube-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#000;box-shadow:0 12px 28px rgba(74,21,12,.14)}
.cfm-youtube-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:640px){.cfm-youtube-wrap{padding:12px;border-radius:14px}.cfm-youtube-frame{border-radius:10px}}

/* Multiple YouTube course videos */
.cfm-youtube-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cfm-youtube-item{min-width:0}
.cfm-youtube-number{margin:0 0 8px;font-size:13px;font-weight:800;color:#8a5a20}
@media(max-width:760px){.cfm-youtube-grid{grid-template-columns:1fr}}
