﻿/* HOME V10 — scoped to the public homepage; does not restyle dashboard or catalog. */
#tp-home-v10{--tph-green:#146b49;--tph-deep:#0b5036;--tph-ink:#1e293b;--tph-muted:#64748b;--tph-line:#e3e9e5;background:#f8faf9;color:var(--tph-ink);font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;padding-bottom:52px;min-height:52vh}
#tp-home-v10 *,#tp-home-v10 *:before,#tp-home-v10 *:after{box-sizing:border-box}
#tp-home-v10 .tph-container{width:calc(100% - 40px);max-width:1160px;margin-inline:auto}
#tp-home-v10 .tph-intro{background:#fff;border-bottom:1px solid var(--tph-line)}
#tp-home-v10 .tph-intro-layout{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:42px 38px}
#tp-home-v10 .tph-intro-text{max-width:730px;min-width:0}
#tp-home-v10 .tph-eyebrow{color:var(--tph-green);font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:7px;margin-bottom:10px}
#tp-home-v10 .tph-eyebrow i{font-size:19px}
#tp-home-v10 .tph-intro h1{font-size:clamp(24px,2.7vw,33px);line-height:1.6;color:#182d25!important;font-weight:750;margin:0 0 8px}
#tp-home-v10 .tph-intro p{color:#546478;font-size:15px;line-height:1.95;max-width:680px;margin:0}
#tp-home-v10 .tph-intro-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
#tp-home-v10 .tph-button{border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:9px 17px;text-decoration:none!important;font-size:13px;font-weight:700;line-height:1.6;transition:background .15s ease}
#tp-home-v10 .tph-button i{font-size:17px}
#tp-home-v10 .tph-button-primary{background:var(--tph-green);color:#fff!important;border:1px solid var(--tph-green)}
#tp-home-v10 .tph-button-primary:hover{background:var(--tph-deep)}
#tp-home-v10 .tph-button-secondary{background:#fff;border:1px solid #cbdad2;color:var(--tph-deep)!important}
#tp-home-v10 .tph-button-secondary:hover{background:#ecf5f0}
#tp-home-v10 .tph-live-count{display:flex;align-items:center;gap:14px;border:1px solid #dcebe1;background:#f3faf5;padding:16px 20px;border-radius:12px;min-width:205px;max-width:240px;flex-shrink:0}
#tp-home-v10 .tph-live-count-icon{width:44px;height:44px;background:#deefe5;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--tph-green)}
#tp-home-v10 .tph-live-count-label{display:block;font-size:12px;color:#365b48;font-weight:650}
#tp-home-v10 .tph-live-count strong{display:block;font-size:27px;line-height:1.5;color:#143c2b}
#tp-home-v10 .tph-live-count small{display:block;color:#668472;font-size:11px}
#tp-home-v10 .tph-section{padding-top:35px}
#tp-home-v10 .tph-section+.tph-section{padding-top:38px}
#tp-home-v10 .tph-section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:18px}
#tp-home-v10 .tph-section-eyebrow{display:inline-block;color:var(--tph-green);font-size:12px;font-weight:700;margin-bottom:3px}
#tp-home-v10 .tph-section-heading h2{font-size:clamp(19px,2vw,24px);font-weight:750;color:#21352b;line-height:1.5;margin:0 0 3px}
#tp-home-v10 .tph-section-heading p{font-size:13px;color:var(--tph-muted);margin:0;line-height:1.8}
#tp-home-v10 .tph-more{color:var(--tph-deep);font-weight:700;font-size:13px;text-decoration:none!important;white-space:nowrap;padding:7px 10px;border:1px solid #d7e6dc;border-radius:8px;background:#fff}
#tp-home-v10 .tph-more:hover{background:#eaf5ee}
#tp-home-v10 .tph-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#tp-home-v10 .tph-course-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--tph-line);background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 3px 13px rgba(20,40,30,.035);transition:box-shadow .15s,transform .15s}
#tp-home-v10 .tph-course-card:hover{box-shadow:0 8px 20px rgba(20,40,30,.09);transform:translateY(-2px)}
/* Image v26: preserve every poster in full, fill side space with a soft copy. */
#tp-home-v10 .tph-card-image{height:220px;display:block;overflow:hidden;background:#edf2ef;position:relative;isolation:isolate}
#tp-home-v10 .tph-card-image img{width:100%;height:100%;display:block;object-position:center}
#tp-home-v10 .tph-card-image .tph-card-backdrop{position:absolute;inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px);object-fit:cover;filter:blur(18px) saturate(.84);opacity:.56;z-index:0;pointer-events:none}
#tp-home-v10 .tph-card-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(242,247,245,.08),rgba(242,247,245,.24));z-index:1;pointer-events:none}
#tp-home-v10 .tph-card-image img.tph-card-poster,
#tp-home-v10 .tph-card-image > img:not(.tph-card-backdrop){position:relative;z-index:2;width:100%;height:100%;padding:7px;object-fit:contain;background:transparent}
#tp-home-v10 .tph-card-image .tph-card-featured{z-index:3}
#tp-home-v10 .tph-card-featured{position:absolute;right:12px;top:12px;background:#fff;color:#12633e;padding:4px 11px;border-radius:7px;font-size:11px;font-weight:700;box-shadow:0 2px 6px #0001}
#tp-home-v10 .tph-card-body{padding:15px 16px 13px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
#tp-home-v10 .tph-card-dept{font-size:12px;line-height:1.65;color:#577162;min-height:19px;overflow-wrap:anywhere}
#tp-home-v10 .tph-card-dept i{margin-inline-end:5px;color:#187b51}
#tp-home-v10 .tph-card-body h3{font-size:16px;line-height:1.7;font-weight:750;min-height:53px;margin:0}
#tp-home-v10 .tph-card-body h3 a{color:#203347;text-decoration:none;overflow-wrap:anywhere}
#tp-home-v10 .tph-card-body h3 a:hover{color:var(--tph-green)}
#tp-home-v10 .tph-card-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:#6b7b89;font-size:12px;line-height:1.6;min-height:20px}
#tp-home-v10 .tph-card-meta span{overflow-wrap:anywhere}
#tp-home-v10 .tph-card-meta i{color:#46866c;margin-inline-end:3px}
#tp-home-v10 .tph-card-bottom{margin-top:auto;padding-top:12px;border-top:1px solid #edf1ee;display:flex;align-items:center;justify-content:space-between;gap:12px}
#tp-home-v10 .tph-card-price{font-size:12px;color:#455b50;font-weight:650;overflow-wrap:anywhere}
#tp-home-v10 .tph-card-bottom a{font-size:12px;font-weight:750;color:var(--tph-green);white-space:nowrap;text-decoration:none}
#tp-home-v10 .tph-card-bottom a:hover{text-decoration:underline}
#tp-home-v10 .tph-status-panel{margin-top:30px;text-align:center;padding:35px 20px;background:#fff;border:1px solid var(--tph-line);border-radius:13px}
#tp-home-v10 .tph-status-panel>i{font-size:28px;color:var(--tph-green)}
#tp-home-v10 .tph-status-panel h2{font-size:19px;font-weight:750;color:#334155;margin:10px 0}
#tp-home-v10 .tph-status-panel p{font-size:13px;color:var(--tph-muted);margin-bottom:16px}
#tp-home-v10 a:focus-visible{outline:3px solid #57a58a;outline-offset:2px}
@media(max-width:980px){#tp-home-v10 .tph-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tp-home-v10 .tph-intro-layout{gap:18px}}
@media(max-width:700px){#tp-home-v10 .tph-container{width:calc(100% - 30px)}#tp-home-v10 .tph-intro-layout{padding-block:27px;flex-wrap:wrap}#tp-home-v10 .tph-intro p{font-size:13px}#tp-home-v10 .tph-live-count{max-width:none;min-width:0;width:100%;padding:11px 15px}#tp-home-v10 .tph-live-count strong{font-size:22px}#tp-home-v10 .tph-section{padding-top:27px}#tp-home-v10 .tph-section-heading{align-items:start;flex-wrap:wrap}#tp-home-v10 .tph-card-grid{grid-template-columns:minmax(0,1fr)}#tp-home-v10 .tph-card-image{height:200px}#tp-home-v10 .tph-card-body h3{min-height:0}}
@media(prefers-reduced-motion:reduce){#tp-home-v10 .tph-course-card{transition:none}#tp-home-v10 .tph-course-card:hover{transform:none}}
