/* ClearTEF Student Portal — polished, theme-resistant responsive styling */
.ctefp-shell,.ctefp-shell *,.ctefp-memberships,.ctefp-memberships *{box-sizing:border-box}
.ctefp-shell{width:min(100% - 32px,980px);margin:42px auto;padding:16px;background:#f2f6fc;border:1px solid #edf2f9;border-radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:#17324f;font-size:16px;line-height:1.55;letter-spacing:normal}
.ctefp-card{background:#fff;border:1px solid #dce7f5;border-radius:16px;padding:34px;box-shadow:0 8px 26px rgba(14,52,103,.06);color:#17324f;font-family:inherit!important;font-size:16px;line-height:1.55;letter-spacing:normal}
.ctefp-brand{display:flex;align-items:center;gap:12px;margin:0 0 24px;color:#155da8;font-family:inherit!important}.ctefp-brand strong{display:block;font-size:20px;font-weight:750;line-height:1.25;color:#124f91}.ctefp-brand small{display:block;margin-top:3px;color:#637b98;font-size:13px;font-weight:500;line-height:1.4}.ctefp-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#1768b5;color:#fff;font-size:17px;font-weight:800;letter-spacing:-.5px}
.ctefp-card h1{font-family:inherit!important;font-size:clamp(30px,4vw,40px)!important;font-weight:750!important;line-height:1.18!important;letter-spacing:-1.1px!important;margin:8px 0 24px!important;padding:0!important;color:#102b4c!important;text-transform:none!important}
.ctefp-card h2,.ctefp-memberships h2{font-family:inherit!important;font-size:clamp(22px,3vw,28px)!important;font-weight:730!important;line-height:1.25!important;letter-spacing:-.45px!important;margin:0 0 16px!important;padding:0!important;color:#102b4c!important;text-transform:none!important;overflow:visible!important;clip:auto!important;max-height:none!important}
.ctefp-card h3,.ctefp-membership h3{font-family:inherit!important;font-size:19px!important;font-weight:700!important;line-height:1.35!important;margin:0 0 12px!important;color:#174f88!important}
.ctefp-card p,.ctefp-memberships p{font-family:inherit!important;font-size:15px!important;line-height:1.6!important;letter-spacing:normal!important;margin:12px 0;color:#304a67}
.ctefp-form{font-family:inherit!important}.ctefp-form label{display:block;font-size:14px;font-weight:650;margin:0 0 17px;color:#17385d}.ctefp-form input{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:7px;padding:13px 14px;border:1px solid #d8e2ee;border-radius:8px;background:#fff;min-height:48px;color:#17324f;font:inherit;font-size:16px}.ctefp-form input:focus{outline:2px solid #a9cbed;outline-offset:1px;border-color:#1768b5}.ctefp-form small{display:block;color:#6b7f98;font-weight:400;margin-top:5px;font-size:13px}
.ctefp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:8px;background:#1768b5;color:#fff!important;text-decoration:none!important;padding:12px 22px;font-family:inherit!important;font-size:15px;font-weight:700;line-height:1.3;cursor:pointer;text-align:center;transition:background .18s ease,transform .18s ease}.ctefp-btn:hover{background:#105697;color:#fff!important;transform:translateY(-1px)}.ctefp-form .ctefp-btn{width:100%;margin-top:8px}.ctefp-secondary{background:#eaf2fb;color:#155da8!important}.ctefp-secondary:hover{background:#dceafa;color:#104f91!important}.ctefp-links{text-align:center;margin:18px 0 0!important;font-size:14px!important}.ctefp-links a{color:#1768b5;text-decoration:none;font-weight:600}.ctefp-links a:hover{text-decoration:underline}
.ctefp-notice{padding:13px 16px;background:#eef4fb;border:1px solid #dce8f6;border-radius:9px;margin:14px 0;color:#244665}.ctefp-error{background:#fff2f1;border-color:#f5d5d2;color:#922d29}.ctefp-success{background:#effaf2;border-color:#d4eedb;color:#176c32}
.ctefp-profile{display:grid;gap:0;margin:4px 0 20px}.ctefp-profile p{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e7eef6;padding:13px 0;margin:0!important}.ctefp-profile span{color:#647d99}.ctefp-profile strong{color:#17385d;font-weight:700;text-align:right;overflow-wrap:anywhere}
.ctefp-memberships{width:min(100% - 32px,980px);margin:22px auto 42px;padding:26px 28px;background:#fff;border:1px solid #dce7f5;border-radius:16px;box-shadow:0 8px 26px rgba(14,52,103,.05);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:#17324f;font-size:15px;line-height:1.55;letter-spacing:normal}.ctefp-membership{border:1px solid #e1eaf4;border-radius:12px;padding:18px 20px;margin:14px 0 20px;background:#fbfdff}.ctefp-membership p{margin:8px 0!important}.ctefp-active{color:#168044;font-weight:700}.ctefp-expired{color:#b33b3b;font-weight:700}
.ctefp-memberships .ctefp-module{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0!important;padding:15px 16px;border:1px solid #e5edf6;border-radius:10px;background:#fff}.ctefp-memberships .ctefp-module+.ctefp-module{margin-top:9px!important}.ctefp-module span{color:#244665;font-weight:600}.ctefp-module strong{font-size:14px;text-align:right}
@media(max-width:640px){.ctefp-shell{width:calc(100% - 20px);margin:18px auto;padding:9px;border-radius:14px}.ctefp-card{padding:23px 18px;border-radius:12px}.ctefp-card h1{font-size:30px!important}.ctefp-profile p{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ctefp-profile strong{text-align:left}.ctefp-memberships{width:calc(100% - 20px);margin:16px auto 28px;padding:20px 16px}.ctefp-memberships .ctefp-module{align-items:flex-start;flex-direction:column;gap:5px}.ctefp-module strong{text-align:left}}

/* v1.0.4 dashboard membership layout */
.ctefp-memberships{display:block;clear:both;position:relative;margin:24px auto 42px!important;padding:26px 28px!important;overflow:visible!important}
.ctefp-memberships h2{display:block!important;visibility:visible!important;position:static!important;margin:0 0 16px!important;padding:0!important;line-height:1.25!important;clip:auto!important;max-height:none!important;overflow:visible!important}
.ctefp-empty-membership{display:block;margin:0 0 18px;padding:13px 16px;border:1px solid #dce8f6;border-radius:10px;background:#f4f8fd;color:#385674;line-height:1.55}
.ctefp-membership{display:block;clear:both;margin:14px 0 18px!important;padding:18px 20px!important}
.ctefp-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;clear:both}
.ctefp-module-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:16px 18px;border:1px solid #e1eaf4;border-radius:11px;background:#fff}
.ctefp-module-name{font-weight:700;color:#17385d}.ctefp-module-card strong{font-size:13px;text-align:right}
@media(max-width:640px){.ctefp-memberships{width:calc(100% - 20px);padding:20px 16px!important}.ctefp-module-grid{grid-template-columns:1fr}.ctefp-module-card{align-items:flex-start;flex-direction:column;gap:5px}.ctefp-module-card strong{text-align:left}}
