/* Academy 8899: isolated WooCommerce account / student dashboard polish */
.woocommerce-account .woocommerce-MyAccount-content:has(.a89-student){min-width:0;box-sizing:border-box}
.woocommerce-account .woocommerce-MyAccount-content .a89-student,
.woocommerce .a89-student,.a89-student{max-width:100%;width:100%;min-width:0;box-sizing:border-box;padding:0 0 28px;margin:0 auto;overflow-wrap:anywhere;direction:rtl}
html[lang^="en"] .a89-student{direction:ltr}
.a89-student :is(article,section,nav,div){min-width:0}
.a89-student .a89-student-hero{border-radius:20px;padding:clamp(16px,3vw,28px);box-shadow:0 12px 30px rgba(7,54,47,.12);background:linear-gradient(120deg,#103b48,#0d7766)}
.a89-student .a89-student-hero h2{font-size:clamp(21px,2.25vw,29px)!important;overflow-wrap:anywhere}
.a89-student .a89-student-stats{margin:14px 0 18px;gap:10px}
.a89-student .a89-student-stats>div{padding:clamp(11px,1.5vw,17px);border-radius:15px;background:linear-gradient(180deg,#fff,#f8fcfa)}
.a89-student .a89-student-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:17px 0 24px;padding:7px;background:#eef6f3;border:1px solid #e0efeb;border-radius:18px}
.a89-student .a89-student-nav a{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;min-width:0;min-height:56px;padding:11px 8px;border-radius:13px;white-space:normal;line-height:1.55;text-align:center;font-size:clamp(12px,1vw,14px);text-decoration:none!important;box-sizing:border-box}
.a89-student .a89-student-nav a span{flex:0 0 auto}
.a89-student .a89-student-nav a.a89-nav-active{background:#0e7668;color:#fff!important;box-shadow:0 5px 14px rgba(13,94,80,.2)}
.a89-student .a89-student-section{margin-bottom:27px;scroll-margin-top:100px}
.a89-student .a89-student-heading h2{font-size:clamp(20px,2vw,24px)}
.a89-student .a89-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.a89-student .a89-student-course{display:flex;flex-direction:column;max-width:100%;border-radius:18px;box-shadow:0 8px 24px rgba(20,68,57,.09)}
.a89-student .a89-course-cover{height:clamp(138px,14vw,180px);flex:none}
.a89-student .a89-course-body{display:flex;flex:1;flex-direction:column;padding:clamp(14px,2vw,19px)}
.a89-student .a89-course-name{margin:0 0 13px;font-size:clamp(18px,1.55vw,21px);line-height:1.7}
.a89-student .a89-course-meta{margin-bottom:14px}
.a89-student .a89-student-action{margin-top:auto;min-height:43px;padding:10px 15px;background:linear-gradient(120deg,#0b7864,#16967c);box-shadow:0 5px 13px rgba(16,112,94,.16);border:0;text-align:center}
.a89-student .a89-student-action:hover{background:#095b4d;color:#fff!important}
.a89-student .a89-student-list-item{flex-wrap:wrap;row-gap:10px}
.a89-student .a89-list-details{min-width:150px;overflow-wrap:anywhere}
.a89-student .a89-student-list-item>a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;white-space:normal;text-align:center}
.a89-student :is(input,select,textarea,button){max-width:100%;box-sizing:border-box}
/* A WooCommerce account content column is often only 70% of the page. */
@media(max-width:1200px){.woocommerce-account .woocommerce-MyAccount-content .a89-student-grid{grid-template-columns:minmax(0,1fr)}.woocommerce-account .woocommerce-MyAccount-content .a89-course-cover{height:180px}.woocommerce-account .woocommerce-MyAccount-content .a89-student-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.a89-student .a89-student-grid{grid-template-columns:minmax(0,1fr)}.a89-student .a89-student-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.a89-student .a89-course-cover{height:185px}}
@media(max-width:520px){.woocommerce-account .woocommerce-MyAccount-content .a89-student,.a89-student{padding:0 0 20px!important}.a89-student .a89-student-hero{padding:16px!important;border-radius:15px}.a89-student .a89-student-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.a89-student .a89-student-stats>div{padding:10px 7px}.a89-student .a89-student-nav{gap:7px;margin:14px 0 21px}.a89-student .a89-student-nav a{min-height:53px;padding:10px 7px;font-size:12px}.a89-student .a89-student-list-item{padding:12px}.a89-student .a89-list-details{min-width:0;flex-basis:calc(100% - 48px)}.a89-student .a89-student-list-item>a{margin-inline-start:45px}.a89-student .a89-course-cover{height:160px}}
@media(max-width:360px){.a89-student .a89-student-nav a{flex-direction:column;gap:1px}.a89-student .a89-student-stats small{font-size:10px}}
