/* Lagale English Subject Notes — premium responsive cards */
body:has(.topic-list){
  background:
    radial-gradient(circle at 8% 8%,rgba(14,165,233,.10),transparent 28%),
    linear-gradient(180deg,#eef6ff 0%,#f5f8fc 48%,#edf4fb 100%);
}
.topic-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:12px 14px 15px;
}
.chapter-card{
  border:1px solid #d6e3ef!important;
  border-radius:18px!important;
  overflow:hidden;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 8px 24px rgba(30,64,95,.075)!important;
  margin:0 0 17px!important;
}
.chapter-head{
  padding:17px 19px!important;
  background:linear-gradient(115deg,#f0f7ff,#f8fbff)!important;
  border-bottom:1px solid #e2ebf4!important;
}
.chapter-title{
  font-size:18px!important;
  letter-spacing:-.2px;
  color:#164b78!important;
}
.chapter-desc{font-size:13px!important;line-height:1.55}
.topic{
  position:relative;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:60px;
  margin:0!important;
  padding:13px 15px!important;
  border:1px solid #d9e6f1!important;
  border-left:4px solid #8bbde0!important;
  border-radius:15px!important;
  background:linear-gradient(120deg,#fff 0%,#f7fbff 100%)!important;
  box-shadow:0 3px 10px rgba(32,76,112,.045)!important;
  color:#194f7b!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.topic:hover{
  transform:translateY(-2px)!important;
  border-color:#9bc9e8!important;
  border-left-color:#1685bd!important;
  background:linear-gradient(120deg,#f5fbff,#eaf5ff)!important;
  box-shadow:0 8px 18px rgba(24,91,139,.11)!important;
  text-decoration:none!important;
}
.topic-left{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  flex:1;
  color:#24577e;
  font-size:15px;
  font-weight:650;
  line-height:1.55;
}
.topic-left:only-child::before,
.topic-left:not(:has(.topic-num))::before{
  content:"";
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-radius:3px;
  background:linear-gradient(135deg,#1c91c8,#5bb7df);
  box-shadow:0 0 0 4px #e6f4fc;
  transform:rotate(45deg);
  margin:0 3px;
}
.topic-num{
  width:31px!important;
  height:31px!important;
  flex:0 0 31px!important;
  border-radius:10px!important;
  background:#e8f3fc!important;
  color:#176b9e!important;
  border:1px solid #d4e9f8;
  font-size:12px!important;
}
.topic-name{font-size:15px!important;font-weight:700!important;line-height:1.5}
.topic-note{font-size:11px!important;color:#71869a!important}
.topic .arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  width:29px;
  height:29px;
  flex:0 0 29px;
  border-radius:9px;
  background:#eaf4fc;
  color:#1976a9!important;
  font-size:21px!important;
  line-height:1;
}
.notes-tools{
  border-radius:16px!important;
  box-shadow:0 6px 18px rgba(30,64,95,.06);
}
.notes-tools input{font-size:16px!important}
.section-title{
  border-radius:15px!important;
  box-shadow:0 5px 15px rgba(30,64,95,.05);
}
@media(min-width:760px){
  .topic-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:15px 17px 18px}
  .topic{min-height:70px}
  .topic-left{font-size:14px}
}
@media(max-width:520px){
  .topic-list{gap:9px;padding:10px}
  .topic{min-height:58px;padding:12px 11px!important;border-radius:13px!important}
  .topic-left,.topic-name{font-size:14px!important}
  .topic .arrow{width:27px;height:27px;flex-basis:27px}
  .chapter-head{padding:15px!important}
}
@media(prefers-reduced-motion:reduce){
  .topic{transition:none!important}
}
