/*
Theme Name: ITLecturer
Theme URI: https://itlecturer.lk
Author: itlecturer.lk
Description: Clean, mobile-friendly theme for an ICT video lesson website with student logins. Works with the ICT Student Access plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: itlecturer
*/

:root{
  --blue:#1d4ed8; --blue-dark:#1e3a8a; --sky:#0ea5e9; --ink:#0f172a; --muted:#64748b;
  --bg:#f8fafc; --card:#ffffff; --line:#e2e8f0; --soft:#eff6ff; --radius:14px;
  --shadow:0 1px 2px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 "Inter","Noto Sans Sinhala",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
img,iframe,video{max-width:100%;height:auto}
a{color:var(--blue)}
a:hover{color:var(--blue-dark)}
.wrap{width:min(1120px,100% - 32px);margin-inline:auto}
.screen-reader-text{position:absolute;left:-9999px}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.header-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;font-size:20px}
.brand .logo-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--blue),var(--sky));color:#fff;font-size:15px;font-weight:700}
.brand small{display:block;font-weight:400;font-size:12px;color:var(--muted);line-height:1.2}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}
#site-nav{display:flex;align-items:center;gap:6px}
#site-nav ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
#site-nav li a{display:block;padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px}
#site-nav li a:hover,#site-nav li.current-menu-item a{background:var(--soft);color:var(--blue)}
.btn{display:inline-block;background:var(--blue);color:#fff!important;padding:11px 20px;border-radius:999px;text-decoration:none;font-weight:600;border:2px solid var(--blue);transition:.15s}
.btn:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn.ghost{background:transparent;color:var(--blue)!important}
.btn.ghost:hover{background:var(--soft)}
.btn.light{background:#fff;color:var(--blue)!important;border-color:#fff}
.btn.outline-light{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.7)}
.btn.small{padding:8px 16px;font-size:14px}

/* Hero */
.hero{background:linear-gradient(135deg,var(--blue-dark),var(--blue) 55%,var(--sky));color:#fff;padding:80px 0 90px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.08)}
.hero h1{font-size:clamp(32px,5vw,52px);line-height:1.15;margin:0 0 16px;max-width:16ch}
.hero p{font-size:clamp(17px,2vw,20px);max-width:56ch;margin:0 0 28px;opacity:.95}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px}
.hero .pill{display:inline-block;background:rgba(255,255,255,.16);padding:6px 14px;border-radius:999px;font-size:14px;margin-bottom:18px}

/* Sections */
.section{padding:64px 0}
.section.alt{background:#fff;border-block:1px solid var(--line)}
.section h2{font-size:clamp(24px,3vw,32px);margin:0 0 8px}
.section .lead{color:var(--muted);margin:0 0 32px;max-width:60ch}
.grid{display:grid;gap:20px}
.grid.grades{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid.steps{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.grid.cards{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

.grade{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);transition:.15s}
.grade:hover{transform:translateY(-3px);border-color:var(--blue)}
.grade .num{font-size:44px;font-weight:700;line-height:1;color:var(--blue)}
.grade .lbl{font-weight:600;margin-top:6px}
.grade .cnt{color:var(--muted);font-size:14px}

.step{background:var(--soft);border-radius:var(--radius);padding:24px}
.step .n{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;margin-bottom:12px}
.step h3{margin:0 0 6px;font-size:18px}
.step p{margin:0;color:var(--muted)}

/* Cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.card .thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#dbeafe,#bae6fd);display:grid;place-items:center;position:relative}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .thumb .play{width:54px;height:54px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:var(--shadow)}
.card .thumb .play::after{content:"";border-left:16px solid var(--blue);border-block:10px solid transparent;margin-left:4px}
.card .lock{position:absolute;top:10px;right:10px;background:rgba(15,23,42,.85);color:#fff;font-size:12px;padding:4px 10px;border-radius:999px}
.card .body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:6px;flex:1}
.chip{display:inline-block;background:var(--soft);color:var(--blue);font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;text-decoration:none;align-self:flex-start}
.card h3{margin:2px 0 0;font-size:18px;line-height:1.35}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a:hover{color:var(--blue)}
.card .date{color:var(--muted);font-size:13px;margin-top:auto}

/* CTA */
.cta{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;border-radius:20px;padding:40px;display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between}
.cta h2{margin:0 0 6px}
.cta p{margin:0;opacity:.9}

/* Content pages */
.page-head{background:#fff;border-bottom:1px solid var(--line);padding:36px 0}
.page-head h1{margin:0;font-size:clamp(26px,4vw,38px);line-height:1.25}
.page-head .desc{color:var(--muted);margin-top:6px}
.page-head .crumbs{margin-bottom:10px}
.content{padding:36px 0 64px}
.entry{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:clamp(18px,3vw,36px);box-shadow:var(--shadow);max-width:900px;margin-inline:auto}
.entry>*:first-child{margin-top:0}
.entry iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:10px}
.entry .wp-block-embed__wrapper{position:relative}
.entry img{border-radius:10px}
.lesson-nav{display:flex;justify-content:space-between;gap:12px;max-width:900px;margin:20px auto 0;flex-wrap:wrap}
.contact-box{background:var(--soft);border-radius:var(--radius);padding:20px}
.pagination{margin-top:32px}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:10px;text-decoration:none;background:#fff}
.pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}
.empty{background:#fff;border:1px dashed var(--line);border-radius:var(--radius);padding:40px;text-align:center;color:var(--muted)}
.search-form{display:flex;gap:8px;max-width:420px}
.search-form input[type=search]{flex:1;padding:10px 14px;border:1px solid var(--line);border-radius:999px;font:inherit}
.search-form input[type=submit]{background:var(--blue);color:#fff;border:0;border-radius:999px;padding:10px 18px;font:inherit;cursor:pointer}

/* Footer */
.site-footer{background:var(--ink);color:#cbd5e1;padding:40px 0;margin-top:0;font-size:14px}
.site-footer a{color:#e2e8f0}
.footer-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}

/* Mobile */
@media (max-width:820px){
  .nav-toggle{display:block}
  #site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:12px 16px 16px}
  #site-nav.open{display:flex}
  #site-nav ul{flex-direction:column}
  .hero{padding:56px 0 64px}
  .section{padding:44px 0}
  .cta{padding:28px}
}
