/* =========================================================
   11and12Solutions - custom.css
   ========================================================= */

:root{
  --navy: #0d3b66;
  --navy-dark: #0a2c4d;
  --blue: #1b6fc9;
  --sky: #eaf3fc;
  --orange: #f5820a;
  --accent: #f5820a;
  --green: #1a9e5c;
  --purple: #7c4dff;
  --teal: #0aa6a6;
  --pink: #ef476f;
  --yellow: #f0b429;
  --grey-bg: #f4f6f9;
  --text-muted: #6c7a89;
  --radius: 14px;
}

*{ box-sizing: border-box; }

body{
  font-family: 'Poppins', sans-serif;
  color: #1f2d3d;
  background: #ffffff;
  overflow-x: hidden;
}

a{ text-decoration: none; }
h1,h2,h3,h4,h5,h6{ font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); }

/* ============ NAVBAR ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(13,59,102,.08);
}

.brand-icon{
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.brand-title{
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.1;
}

.text-accent{ color: var(--orange); }

.brand-sub{
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.navbar-nav .nav-link{
  color: #33445a;
  font-weight: 500;
  padding: .5rem .9rem !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover{
  color: var(--blue);
}

.nav-search{
  background: #f1f4f8;
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  align-items: center;
  min-width: 230px;
}

.nav-search input{
  border: none;
  background: transparent;
  font-size: .85rem;
  box-shadow: none !important;
}

.nav-search .btn{
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.btn-neb{
  border: 1.5px solid #d33b3b;
  color: #d33b3b;
  border-radius: 30px;
  font-weight: 600;
  padding: .4rem 1rem;
  font-size: .85rem;
}
.btn-neb:hover{ background:#d33b3b; color:#fff; }

.icon-btn{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: #f1f4f8;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

/* ============ NAV DROPDOWNS (hover on desktop) ============ */
.dropdown-menu{
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(13,59,102,.14);
  padding: .5rem;
  margin-top: .4rem;
}
.dropdown-header{
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--blue);
}
.dropdown-item{
  border-radius: 8px;
  padding: .5rem .8rem;
  font-size: .88rem;
  color: #33445a;
}
.dropdown-item:hover{ background: var(--sky); color: var(--blue); }

@media (min-width: 992px){
  .navbar .dropdown:hover > .dropdown-menu{
    display: block;
    margin-top: 0;
  }
  .navbar .nav-item.dropdown > .dropdown-toggle::after{
    transition: transform .15s ease;
  }
  .navbar .nav-item.dropdown:hover > .dropdown-toggle::after{
    transform: rotate(180deg);
  }
}

/* ============ HERO ============ */
.hero-section{
  background: linear-gradient(180deg,#eaf3fc 0%, #d9ecfb 60%, #eaf3fc 100%);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.badge-pill{
  background: #fff;
  border: 1px solid #d7e6f7;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 30px;
  display: inline-block;
}

.hero-title{
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.hero-title span{
  font-size: 2.9rem;
  color: var(--navy-dark);
}

.hero-subtitle{
  font-size: 1.05rem;
  font-weight: 600;
  color: #33445a;
}

.hero-nepali{
  font-size: 1rem;
  color: var(--blue);
  font-weight: 600;
}

.hero-search{
  background: #fff;
  border-radius: 40px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(13,59,102,.12);
  max-width: 520px;
  align-items: center;
}

.hero-search .input-icon{
  color: #98a6b3;
  padding: 0 .8rem;
}

.hero-search input{
  border: none;
  box-shadow: none !important;
  font-size: .9rem;
}

.btn-search{
  background: var(--blue);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  padding: .55rem 1.6rem;
  white-space: nowrap;
}
.btn-search:hover{ background: var(--navy); color:#fff; }

.hero-checklist{
  list-style: none;
  padding: 0; margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: .6rem;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(13,59,102,.08);
}

.hero-checklist li{
  font-weight: 600;
  font-size: .92rem;
  color: #33445a;
}
.hero-checklist i{
  color: var(--blue);
  margin-right: .5rem;
}

.hero-checklist-mobile{
  display: inline-flex;
}

.hero-script{
  position: absolute;
  top: -6px;
  right: 10px;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--navy);
  transform: rotate(-4deg);
}

.hero-image{
  max-height: 380px;
  border-radius: 20px;
  object-fit: cover;
}

/* ============ FEATURE STRIP ============ */
.feature-strip{ padding: 2.2rem 0; }

.feature-box{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-box:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13,59,102,.08);
}
.feature-box h6{ font-size: .95rem; margin: .6rem 0 .3rem; }
.feature-box p{ font-size: .8rem; color: var(--text-muted); margin: 0; }

.feature-box-sm{ padding-top: .4rem; }
.feature-box-sm h6{ font-size: .78rem; margin-top: .4rem; font-weight: 600; }

.feature-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto;
}
.feature-box-sm .feature-icon{ width: 46px; height: 46px; font-size: 1.1rem; border-radius: 12px; }

.bg-blue{ background: linear-gradient(135deg,#3b82f6,#1b6fc9); }
.bg-green{ background: linear-gradient(135deg,#22c55e,#1a9e5c); }
.bg-orange{ background: linear-gradient(135deg,#fb923c,#f5820a); }
.bg-purple{ background: linear-gradient(135deg,#a78bfa,#7c4dff); }
.bg-teal{ background: linear-gradient(135deg,#2dd4bf,#0aa6a6); }
.bg-navy{ background: linear-gradient(135deg,#1e3a5f,#0d3b66); }
.bg-pink{ background: linear-gradient(135deg,#fb7185,#ef476f); }
.bg-lgreen{ background: linear-gradient(135deg,#86efac,#4ade80); }
.bg-cyan{ background: linear-gradient(135deg,#67e8f9,#22d3ee); }
.bg-yellow{ background: linear-gradient(135deg,#fde68a,#f0b429); }
.bg-indigo{ background: linear-gradient(135deg,#a5b4fc,#6366f1); }
.bg-rose{ background: linear-gradient(135deg,#fda4af,#e11d48); }
.bg-grey{ background: linear-gradient(135deg,#94a3b8,#64748b); }

/* ============ CHOOSE YOUR LEVEL ============ */
.level-section{ padding: 1rem 0 2.5rem; }

.level-card{
  display: block;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  height: 100%;
  color: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.level-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(13,59,102,.12);
  color: var(--navy);
}
.level-card h5{ margin: .9rem 0 .5rem; font-size: 1.15rem; }
.level-card p{ font-size: .87rem; color: var(--text-muted); margin-bottom: 1rem; min-height: 3.4em; }

.level-icon{
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}
.level-see .level-icon{ background: linear-gradient(135deg,#22c55e,#1a9e5c); }
.level-plus2 .level-icon{ background: linear-gradient(135deg,#3b82f6,#1b6fc9); }
.level-bachelor .level-icon{ background: linear-gradient(135deg,#a78bfa,#7c4dff); }

.level-stat{
  display: inline-block;
  background: var(--sky);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}
.level-cta{
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--blue);
}
.level-card:hover .level-cta i{ transform: translateX(4px); }
.level-cta i{ transition: transform .2s ease; margin-left: .3rem; }

/* ============ EXPLORE TABS ============ */
.explore-section{ padding: 2.5rem 0; background: var(--grey-bg); }

.level-tabs{ background:#fff; padding:.3rem; border-radius: 30px; box-shadow: 0 3px 10px rgba(13,59,102,.06); }
.level-tabs .nav-link{
  border-radius: 30px;
  color: #33445a;
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1.1rem;
}
.level-tabs .nav-link.active{
  background: var(--blue);
  color: #fff;
}

/* ============ LEVEL TAG BADGES (lists section) ============ */
.level-tag{
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
}
.tag-see{ background:#e6f8ee; color:#1a9e5c; }
.tag-plus2{ background:#e7f1fd; color:#1b6fc9; }
.tag-bachelor{ background:#f3f0ff; color:#7c4dff; }

/* ============ SUBJECTS SECTION ============ */
.subjects-section, .subjects-section-mobile{ padding: 2.5rem 0; background: var(--grey-bg); }

.section-heading{
  font-size: 1.15rem;
  color: var(--navy);
}

.link-view-all{
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
}

.sidebar-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(13,59,102,.06);
}
.sidebar-title{
  color: var(--navy);
  font-size: 1rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--blue);
  margin-bottom: .6rem;
}
.sidebar-list{ list-style: none; margin: 0; padding: 0; }
.sidebar-list li a{
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .2rem;
  color: #33445a;
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px dashed #eef1f6;
}
.sidebar-list li:last-child a{ border-bottom: none; }
.sidebar-list li a:hover{ color: var(--blue); padding-left: .4rem; }
.sidebar-list li a i{ font-size: .7rem; color: #b7c1cc; }

.subject-card{
  display: block;
  border-radius: var(--radius);
  padding: 1.1rem .8rem;
  text-align: center;
  height: 100%;
  color: var(--navy);
  border: 1px solid rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.subject-card:hover{ transform: translateY(-3px); box-shadow: 0 8px 18px rgba(13,59,102,.1); color: var(--navy); }

.subject-icon{
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.subject-name{
  display: block;
  font-weight: 700;
  font-size: .88rem;
}
.subject-card small{
  color: var(--text-muted);
  font-size: .72rem;
}

.subject-card.bg-blue{ background:#e7f1fd; } .subject-card.bg-blue .subject-icon{ color:#1b6fc9; }
.subject-card.bg-pink{ background:#fdeef1; } .subject-card.bg-pink .subject-icon{ color:#e11d48; }
.subject-card.bg-green{ background:#e8f9ef; } .subject-card.bg-green .subject-icon{ color:#1a9e5c; }
.subject-card.bg-lgreen{ background:#f0fdf4; } .subject-card.bg-lgreen .subject-icon{ color:#4ade80; }
.subject-card.bg-purple{ background:#f3f0ff; } .subject-card.bg-purple .subject-icon{ color:#7c4dff; }
.subject-card.bg-orange{ background:#fff2e6; } .subject-card.bg-orange .subject-icon{ color:#f5820a; }
.subject-card.bg-cyan{ background:#e7fbfd; } .subject-card.bg-cyan .subject-icon{ color:#0aa6a6; }
.subject-card.bg-yellow{ background:#fef9e7; } .subject-card.bg-yellow .subject-icon{ color:#d69e08; }
.subject-card.bg-teal{ background:#e6fbf8; } .subject-card.bg-teal .subject-icon{ color:#0aa6a6; }
.subject-card.bg-indigo{ background:#eef0fe; } .subject-card.bg-indigo .subject-icon{ color:#6366f1; }
.subject-card.bg-rose{ background:#fdecef; } .subject-card.bg-rose .subject-icon{ color:#e11d48; font-weight:800; }
.subject-card.bg-grey{ background:#eef1f4; } .subject-card.bg-grey .subject-icon{ color:#64748b; }

.promo-card{
  background: linear-gradient(160deg,#0d3b66,#1b6fc9);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  /* height: 100%; */
  position: relative;
}
.promo-flag{ font-size: 1.4rem; opacity:.85; }
.promo-card h6{ color: #fff; margin: .6rem 0 1rem; }
.nepali-small{ font-size: .8rem; font-weight: 500; opacity: .85; }
.promo-card ul{ list-style: none; padding: 0; margin: 0 0 1rem; }
.promo-card ul li{ font-size: .85rem; margin-bottom: .55rem; }
.promo-card ul li i{ color: #7de08d; margin-right: .5rem; }
.promo-script{
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.2;
}

/* ============ CTA BANNER ============ */
.cta-banner{ padding: 0 0 2.5rem; }
.cta-inner{
  background: linear-gradient(120deg,#12508c,#1b6fc9);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  color: #fff;
  gap: 1rem;
}
.cta-inner h4{ color:#fff; margin-bottom:.2rem; font-size: 1.3rem; }
.cta-inner p{ margin: 0; opacity: .9; font-size: .9rem; }
.btn-cta{
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 30px;
  padding: .6rem 1.6rem;
  white-space: nowrap;
}
.btn-cta:hover{ background:#fff; color: var(--navy); }

/* ============ LISTS SECTION ============ */
.lists-section{ padding-bottom: 2.5rem; }
.list-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(13,59,102,.06);
  height: 100%;
}
.list-card-header{
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #eef1f6;
  padding-bottom: .7rem; margin-bottom: .5rem;
}
.list-card-header h6{ margin:0; font-size: .95rem; color: var(--navy); }
.list-card-header a{ font-size: .78rem; font-weight: 600; color: var(--blue); }

.list-card ul{ list-style: none; margin:0; padding:0; }
.list-card ul li{
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 0;
  border-bottom: 1px dashed #f0f2f5;
}
.list-card ul li:last-child{ border-bottom: none; }

.list-icon{
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #e7f1fd;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
}
.list-icon.icon-orange{ background:#fff2e6; color: var(--orange); }
.list-icon.icon-red{ background:#fdeaea; color:#d33b3b; }

.list-body{ flex: 1; min-width: 0; }
.list-body strong{
  display: block;
  font-size: .85rem;
  color: #223349;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-body small{ color: var(--text-muted); font-size: .74rem; }

.list-date{
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-pdf{
  background: #fdeaea;
  color: #d33b3b;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  font-size: .68rem;
}

/* ============ TESTIMONIALS ============ */
.testimonial-section{ padding-bottom: 2.5rem; }
.review-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.2rem;
  height: 100%;
}
.review-avatar{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1b6fc9,#0d3b66);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.review-card p{ font-size: .87rem; color: #445064; font-style: italic; }

.quick-links-card, .newsletter-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.2rem;
}
.quick-links-card h6, .newsletter-card h6{ color: var(--navy); margin-bottom: .8rem; font-size: .95rem; }
.quick-links-card ul{ list-style: none; margin:0; padding:0; }
.quick-links-card ul li a{
  display: block; padding: .4rem 0; color: #33445a; font-size: .85rem;
}
.quick-links-card ul li a i{ font-size: .65rem; color: var(--blue); margin-right: .5rem; }
.quick-links-card ul li a:hover{ color: var(--blue); }

.btn-subscribe{
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
.btn-subscribe:hover{ background: var(--navy); color:#fff; }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--navy-dark);
  color: #cbd6e2;
  padding: 3rem 0 0;
}
.site-footer h6{ color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.text-light-50{ color: #9fb0c3; font-size: .85rem; }
.footer-list{ list-style: none; padding:0; margin:0; }
.footer-list li{ margin-bottom: .55rem; }
.footer-list a{ color: #9fb0c3; font-size: .85rem; }
.footer-list a:hover{ color: #fff; }
.footer-contact li{ color: #9fb0c3; font-size: .85rem; }

.social-icons a{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: .5rem;
  font-size: .85rem;
}
.social-icons a:hover{ background: var(--blue); }

.footer-divider{ border-color: rgba(255,255,255,.1); margin-top: 2rem; }

/* ============ BACK TO TOP ============ */
.back-to-top{
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(13,59,102,.25);
  z-index: 1050;
}
.back-to-top.show{ display: flex; }

/* =========================================================
   INNER PAGES (Class / Program detail) - content-only sections
   ========================================================= */

/* ---- Page banner + breadcrumb ---- */
.page-banner{
  background: linear-gradient(120deg,#0d3b66,#1b6fc9);
  padding: 2.4rem 0 2rem;
  color: #fff;
}
.breadcrumb-nav{
  font-size: .82rem;
  margin-bottom: .8rem;
  opacity: .9;
}
.breadcrumb-nav a{ color: #dceafd; font-weight: 500; }
.breadcrumb-nav a:hover{ color: #fff; text-decoration: underline; }
.breadcrumb-nav i{ font-size: .65rem; margin: 0 .5rem; opacity: .7; }
.breadcrumb-nav span{ color: #fff; font-weight: 600; }

.banner-title{
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .4rem;
}
.banner-title-sub{
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: .9;
  margin-top: .2rem;
}
.banner-subtitle{
  color: #eaf3fc;
  font-size: .95rem;
  margin-bottom: 0;
}

.stream-tabs, .semester-tabs{
  background: rgba(255,255,255,.12);
  padding: .3rem;
  border-radius: 30px;
  display: inline-flex;
  gap: .2rem;
}
.stream-tabs .nav-link, .semester-tabs .nav-link{
  border-radius: 30px;
  color: #eaf3fc;
  font-weight: 600;
  font-size: .82rem;
  padding: .5rem 1.1rem;
}
.stream-tabs .nav-link.active, .semester-tabs .nav-link.active{
  background: #fff;
  color: var(--navy);
}
.semester-tabs{ background: #fff; box-shadow: 0 3px 10px rgba(13,59,102,.06); }
.semester-tabs .nav-link{ color: #33445a; }
.semester-tabs .nav-link.active{ background: var(--blue); color: #fff; }

/* ---- Content section wrapper ---- */
.content-section{ padding: 2.5rem 0; background: var(--grey-bg); }

/* ---- Subject detail card (class pages) ---- */
.subject-detail-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.subject-detail-card:hover{ box-shadow: 0 10px 22px rgba(13,59,102,.08); transform: translateY(-3px); }

.subject-detail-icon{
  width: 50px; height: 50px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.subject-detail-icon.bg-blue{ background: linear-gradient(135deg,#3b82f6,#1b6fc9); }
.subject-detail-icon.bg-pink{ background: linear-gradient(135deg,#fb7185,#ef476f); }
.subject-detail-icon.bg-green{ background: linear-gradient(135deg,#22c55e,#1a9e5c); }
.subject-detail-icon.bg-lgreen{ background: linear-gradient(135deg,#86efac,#4ade80); }
.subject-detail-icon.bg-purple{ background: linear-gradient(135deg,#a78bfa,#7c4dff); }
.subject-detail-icon.bg-cyan{ background: linear-gradient(135deg,#67e8f9,#22d3ee); }
.subject-detail-icon.bg-orange{ background: linear-gradient(135deg,#fb923c,#f5820a); }
.subject-detail-icon.bg-yellow{ background: linear-gradient(135deg,#fde68a,#f0b429); }
.subject-detail-icon.bg-teal{ background: linear-gradient(135deg,#2dd4bf,#0aa6a6); }
.subject-detail-icon.bg-indigo{ background: linear-gradient(135deg,#a5b4fc,#6366f1); }
.subject-detail-icon.bg-rose{ background: linear-gradient(135deg,#fda4af,#e11d48); font-weight: 800; }

.subject-detail-body h6{ margin: 0 0 .2rem; font-size: .95rem; color: var(--navy); }
.subject-detail-body small{ color: var(--text-muted); font-size: .76rem; }
.subject-detail-links{ display: flex; gap: .9rem; margin-top: .6rem; flex-wrap: wrap; }
.subject-detail-links a{ font-size: .78rem; font-weight: 600; color: var(--blue); }
.subject-detail-links a:hover{ color: var(--navy); }

/* ---- Paper card (bachelor semester pages) ---- */
.paper-list{ display: flex; flex-direction: column; gap: .8rem; }
.paper-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .2s ease;
}
.paper-card:hover{ box-shadow: 0 8px 18px rgba(13,59,102,.08); }
.paper-code{
  background: var(--sky);
  color: var(--blue);
  font-weight: 700;
  font-size: .78rem;
  padding: .35rem .6rem;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 78px;
  text-align: center;
}
.paper-body{ flex: 1; min-width: 0; }
.paper-body h6{ margin: 0; font-size: .9rem; color: var(--navy); }
.paper-body small{ color: var(--text-muted); font-size: .76rem; }
.paper-links{ display: flex; gap: .4rem; flex-shrink: 0; }
.paper-links a{
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
}
.paper-links a:hover{ background: var(--blue); color: #fff; }

/* ---- Sidebar widgets (inner pages) ---- */
.side-widget{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.1rem;
}
.side-widget h6{ font-size: .92rem; color: var(--navy); margin-bottom: .8rem; }
.side-btn{
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600;
  color: #33445a;
  padding: .55rem .2rem;
  border-bottom: 1px dashed #eef1f6;
}
.side-btn:last-child{ border-bottom: none; }
.side-btn i{ color: var(--blue); width: 16px; }
.side-btn:hover{ color: var(--blue); }

.side-list{ list-style: none; margin: 0; padding: 0; }
.side-list li a{
  display: block;
  padding: .5rem 0;
  font-size: .84rem;
  color: #33445a;
  border-bottom: 1px dashed #eef1f6;
}
.side-list li:last-child a{ border-bottom: none; }
.side-list li a:hover{ color: var(--blue); }

.program-info-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.1rem;
}
.program-info-card h6{ font-size: .92rem; color: var(--navy); margin-bottom: .8rem; }
.program-info-card ul{ list-style: none; margin: 0; padding: 0; }
.program-info-card ul li{
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0;
  border-bottom: 1px dashed #eef1f6;
  font-size: .82rem;
}
.program-info-card ul li:last-child{ border-bottom: none; }
.program-info-card ul li span{ color: var(--text-muted); }
.program-info-card ul li strong{ color: var(--navy); }

@media (max-width: 767.98px){
  .banner-title{ font-size: 1.5rem; }
  .banner-title-sub{ font-size: .95rem; }
  .paper-card{ flex-wrap: wrap; }
  .paper-links{ margin-left: auto; }
}

/* =========================================================
   NOTES LIST PAGE
   ========================================================= */
.banner-tab-links{ display: flex; flex-wrap: wrap; gap: .6rem; }
.tab-link{
  background: rgba(255,255,255,.12);
  color: #eaf3fc;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 30px;
}
.tab-link.active{ background: #fff; color: var(--navy); }
.tab-link:hover:not(.active){ background: rgba(255,255,255,.22); color: #fff; }

.chapter-list{ display: flex; flex-direction: column; gap: .8rem; }
.chapter-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.chapter-card:hover{ box-shadow: 0 10px 22px rgba(13,59,102,.09); transform: translateY(-2px); color: inherit; }

.chapter-number{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chapter-body{ flex: 1; min-width: 0; }
.chapter-body h6{ margin: 0 0 .25rem; font-size: .92rem; color: var(--navy); }
.chapter-body small{ color: var(--text-muted); font-size: .76rem; }

.chapter-actions{ display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.chapter-read{ font-size: .82rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.chapter-download{
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.chapter-download:hover{ background: var(--blue); color: #fff; }

/* =========================================================
   NOTE READER PAGE
   ========================================================= */
.page-banner-sm{ padding: 1.8rem 0 1.5rem; }
.banner-title-sm{ font-size: 1.5rem; }

.note-reader-section{ align-items: flex-start; }

.chapter-nav-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 90px;
}
.chapter-nav-card h6{ font-size: .88rem; color: var(--navy); margin-bottom: .8rem; }
.chapter-nav-list{ list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.chapter-nav-list li a{
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .5rem;
  border-radius: 8px;
  font-size: .82rem;
  color: #33445a;
}
.chapter-nav-list li a:hover{ background: var(--sky); color: var(--blue); }
.chapter-nav-list li.active a{ background: var(--blue); color: #fff; font-weight: 600; }
.chapter-nav-num{
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  flex-shrink: 0;
}
.chapter-nav-list li:not(.active) .chapter-nav-num{ background: var(--sky); color: var(--blue); }

.note-content-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: 1.6rem;
}
.note-toolbar{
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #eef1f6;
  font-size: .82rem;
  color: var(--text-muted);
}
.note-toolbar-actions{ display: flex; gap: .5rem; margin-left: auto; }
.tool-btn{
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #eef1f6;
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.tool-btn:hover{ background: var(--sky); color: var(--blue); }

.note-body{ font-size: .95rem; line-height: 1.8; color: #2c3a4d; }
.note-body h3{ font-size: 1.15rem; color: var(--navy); margin-top: 1.6rem; }
.note-body h4{ font-size: 1rem; color: var(--navy); margin-top: 1.2rem; }
.note-body p, .note-body ul{ margin-bottom: 1rem; }
.note-body ul{ padding-left: 1.3rem; }

.note-formula{
  background: var(--sky);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 1rem 0;
  font-size: .92rem;
}
.note-tip{
  background: #fff8e6;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 1rem 0;
  font-size: .88rem;
  color: #6b5510;
}

.note-pager{ display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pager-btn{
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.pager-btn small{ display: block; color: var(--text-muted); font-weight: 500; font-size: .72rem; }
.pager-btn:hover{ border-color: var(--blue); color: var(--blue); }
.pager-next{ justify-content: flex-end; text-align: right; margin-left: auto; }

.related-cta{
  background: linear-gradient(120deg,#12508c,#1b6fc9);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.related-cta h6{ color: #fff; margin-bottom: .2rem; }
.related-cta p{ opacity: .9; font-size: .85rem; margin: 0; }

@media (max-width: 991.98px){
  .chapter-nav-card{ position: static; margin-bottom: 1rem; }
}

/* =========================================================
   RESPONSIVE - MOBILE (matches provided mobile mock)
   ========================================================= */
@media (max-width: 991.98px){
  .site-header .navbar{ padding: .6rem 0; }
  .brand-icon{ width: 36px; height: 36px; font-size: .95rem; }
  .brand-title{ font-size: 1.05rem; }
  .brand-sub{ display: none; }

  .navbar-collapse{
    background: #fff;
    margin-top: .6rem;
    border-radius: 10px;
    padding: .6rem 0;
  }
  .navbar-nav .nav-link{ padding: .6rem 1rem !important; border-bottom: 1px solid #f2f4f7; }

  .hero-section{ padding: 2rem 0 1.5rem; text-align: center; }
  .hero-title{ font-size: 1.7rem; }
  .hero-title span{ font-size: 2rem; }
  .hero-subtitle{ font-size: .92rem; }
  .hero-search{ max-width: 100%; }
  .hero-image{ max-height: 260px; margin-top: 1rem; }
  .hero-checklist-mobile{
    width: 100%;
    align-items: flex-start;
  }

  .subjects-section-mobile .subject-card{ padding: .9rem .5rem; }
  .subject-icon{ font-size: 1.3rem; }
  .subject-name{ font-size: .8rem; }

  .cta-inner{ text-align: center; padding: 1.4rem; }
  .cta-inner .btn-cta{ margin-top: .8rem; }
}

@media (max-width: 575.98px){
  .hero-title{ font-size: 1.5rem; }
  .hero-title span{ font-size: 1.8rem; }
  .list-body strong{ font-size: .8rem; }
}
.subject-detail-links .link-disabled{
  font-size: .78rem;
  font-weight: 600;
  color: #b0bac5;
  cursor: not-allowed;
}
/* =========================================================
   SYLLABUS PAGE
   ========================================================= */

/* ---- Banner chips ---- */
.syl-banner .banner-title{ font-size: 2rem; margin-bottom: .9rem; }
.syl-chips{ display: flex; flex-wrap: wrap; gap: .5rem; }
.syl-chip{
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #eaf3fc;
  font-size: .78rem;
  font-weight: 500;
  padding: .38rem .85rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}
.syl-chip i{ font-size: .72rem; opacity: .85; }
.syl-chip-accent{ background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }

/* ---- Share bar ---- */
.share-bar{
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(13,59,102,.04);
}
.share-label{
  font-size: .82rem; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: .5rem;
}
.share-label i{ color: var(--blue); }
.share-buttons{ display: flex; flex-wrap: wrap; gap: .5rem; }

.share-btn{
  display: inline-flex; align-items: center; gap: .45rem;
  border: none;
  border-radius: 30px;
  padding: .45rem .95rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.share-btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.15); color: #fff; opacity: .95; }
.share-btn i{ font-size: .9rem; }
.share-whatsapp{ background: #25d366; }
.share-facebook{ background: #1877f2; }
.share-x{ background: #111; }
.share-telegram{ background: #229ed9; }
.share-copy{ background: #eaf3fc; color: var(--navy); }
.share-copy:hover{ color: var(--navy); }
.share-copy.is-done{ background: #e6f8ee; color: var(--green); }
.share-native{ background: var(--navy); }

/* ---- Main card ---- */
.syl-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(13,59,102,.04);
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.syl-card-head{
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eef1f6;
}
.syl-card-title{ display: flex; align-items: center; gap: .9rem; min-width: 0; }
.syl-card-title h2{ font-size: 1.05rem; margin: 0; color: var(--navy); }
.syl-card-title small{ color: var(--text-muted); font-size: .76rem; }
.syl-card-icon{
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.syl-card-icon.is-pdf{ background: #fdeaea; color: #d33b3b; }
.syl-card-icon.is-img{ background: #e6f8ee; color: var(--green); }

.syl-open-btn{
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--sky);
  color: var(--blue);
  font-size: .8rem; font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.syl-open-btn:hover{ background: var(--blue); color: #fff; }

.syl-pdf-wrap{ background: #f1f4f8; padding: .8rem; min-height: 200px; }
.pdf-page{
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13,59,102,.1);
  margin-bottom: .8rem;
  overflow: hidden;
}
.pdf-page:last-child{ margin-bottom: 0; }
.pdf-page canvas{ display: block; width: 100%; height: auto; }

.pdf-loading{
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: .85rem;
}
.pdf-spinner{
  width: 38px; height: 38px;
  border: 4px solid var(--sky);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: pdfspin .8s linear infinite;
}
@keyframes pdfspin{ to{ transform: rotate(360deg); } }

.pdf-fallback{ text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.pdf-fallback i{ font-size: 1.8rem; color: var(--orange); margin-bottom: .5rem; }
.pdf-fallback p{ font-size: .88rem; margin-bottom: 1rem; }

@media (max-width: 767.98px){
  .syl-pdf-wrap{ padding: .5rem; }
}
.syl-image-wrap{ display: block; background: #f1f4f8; padding: .8rem; }
.syl-image-wrap img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.syl-note{
  margin: 0;
  padding: .7rem 1.2rem;
  font-size: .76rem;
  color: var(--text-muted);
  border-top: 1px solid #eef1f6;
}
.syl-note i{ color: var(--blue); margin-right: .4rem; }

/* ---- Course outline (editor content) ---- */
.syl-content{ padding: 1.4rem 1.5rem; }
.syl-content-title{
  font-size: 1.1rem;
  color: var(--navy);
  padding-bottom: .9rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--sky);
  display: flex; align-items: center; gap: .6rem;
}
.syl-content-title i{ color: var(--blue); font-size: 1rem; }

.syllabus-body{ overflow-x: auto; word-wrap: break-word; }
.syllabus-body img{ max-width: 100%; height: auto; border-radius: 8px; }
.syllabus-body h2, .syllabus-body h3, .syllabus-body h4{ color: var(--navy); margin-top: 1.4rem; }
.syllabus-body table{ width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; }
.syllabus-body table th{ background: var(--sky); color: var(--navy); font-weight: 700; }
.syllabus-body table th, .syllabus-body table td{ border: 1px solid #e3e8ee; padding: .55rem .75rem; text-align: left; vertical-align: top; }
.syllabus-body table tr:nth-child(even) td{ background: #fafbfd; }
.syllabus-body ul li, .syllabus-body ol li{ margin-bottom: .35rem; }

/* ---- Empty state ---- */
.syl-empty{ text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.syl-empty i{ font-size: 2rem; color: #b7c1cc; margin-bottom: .6rem; }
.syl-empty p{ margin: 0; font-size: .9rem; }

/* ---- Responsive ---- */
@media (max-width: 991.98px){
  .syl-pdf-wrap iframe{ height: 70vh; min-height: 440px; }
}
@media (max-width: 767.98px){
  .syl-banner .banner-title{ font-size: 1.4rem; }
  .syl-chip{ font-size: .72rem; padding: .32rem .7rem; }

  .share-bar{ padding: .8rem; gap: .6rem; }
  .share-buttons{ width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .share-btn{ justify-content: center; padding: .5rem .4rem; font-size: .72rem; }

  .syl-card-head{ padding: .85rem; }
  .syl-card-title h2{ font-size: .95rem; }
  .syl-card-icon{ width: 38px; height: 38px; font-size: 1rem; }
  .syl-open-btn{ padding: .45rem .7rem; font-size: .74rem; }

  .syl-pdf-wrap, .syl-image-wrap{ padding: .5rem; }
  .syl-pdf-wrap iframe{ height: 60vh; min-height: 360px; }
  .syl-content{ padding: 1.1rem 1rem; }
}
@media (max-width: 400px){
  .syl-open-btn span{ display: none; }
}

/* ---- PDF toolbar ---- */
.pdf-toolbar{
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}
.pdf-tool-group{ display: flex; align-items: center; gap: .5rem; }
.pdf-tool-group button{
  width: 34px; height: 34px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background .15s ease, color .15s ease;
}
.pdf-tool-group button:hover{ background: var(--blue); border-color: var(--blue); color: #fff; }
.pdf-page-count, .pdf-zoom-label{
  font-size: .82rem; font-weight: 600; color: #33445a;
  min-width: 54px; text-align: center;
}

/* ---- PDF viewer (fixed height, scrolls inside) ---- */
.syl-pdf-wrap{ background: #f1f4f8; padding: 0; }
.pdf-scroll{
  position: relative;
  height: 75vh;
  min-height: 420px;
  max-height: 800px;
  overflow: auto;
  padding: .8rem;
  -webkit-overflow-scrolling: touch;
}
#pdfPages{ margin: 0 auto; }
.pdf-page{
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(13,59,102,.12);
  margin-bottom: .8rem;
  overflow: hidden;
}
.pdf-page:last-child{ margin-bottom: 0; }
.pdf-page canvas{ display: block; width: 100%; height: auto; }

@media (max-width: 767.98px){
  .pdf-toolbar{ padding: .5rem .6rem; }
  .pdf-scroll{ height: 70vh; min-height: 360px; padding: .5rem; }
}

/* =========================================================
   NOTES (list + reader with left TOC)
   ========================================================= */

/* ---- Unit blocks on list page ---- */
.unit-block{ margin-bottom: 1.6rem; }
.unit-block-head{
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: .8rem;
}
.unit-block-head h5{ margin: 0; font-size: 1.02rem; color: var(--navy); }
.unit-block-head small{ color: var(--text-muted); font-size: .76rem; }
.unit-block-num{
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#3b82f6,#1b6fc9);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.chapter-number-wide{ width: auto; min-width: 46px; padding: 0 .6rem; border-radius: 20px; font-size: .8rem; height: 34px; }
.chapter-card.is-soon{ opacity: .6; cursor: not-allowed; }
.chapter-card.is-soon:hover{ box-shadow: none; transform: none; }

/* ---- Reader: TOC panel ---- */
.toc-panel{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.toc-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #eef1f6;
}
.toc-head h6{ margin: 0; font-size: .9rem; color: var(--navy); }
.toc-close{
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: var(--sky); color: var(--navy);
}
.toc-body{ overflow-y: auto; padding: .6rem .7rem 1rem; position: relative; }
.toc-body::-webkit-scrollbar{ width: 5px; }
.toc-body::-webkit-scrollbar-thumb{ background: #cfd8e3; border-radius: 10px; }

.toc-unit{ margin-top: .8rem; }
.toc-unit:first-child{ margin-top: .2rem; }
.toc-unit-title{
  display: flex; gap: .4rem;
  font-size: .8rem; font-weight: 700; color: var(--navy);
  padding: .4rem .5rem;
  background: var(--sky);
  border-radius: 8px;
}
.toc-unit-num{ color: var(--blue); }

.toc-chapters{ list-style: none; margin: .3rem 0 0; padding: 0; }
.toc-chapters li a,
.toc-chapters li .toc-soon{
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .5rem .5rem .5rem .6rem;
  border-radius: 8px;
  font-size: .8rem;
  color: #33445a;
  line-height: 1.35;
}
.toc-chapters li a:hover{ background: var(--sky); color: var(--blue); }
.toc-ch-num{ font-weight: 700; color: var(--blue); flex-shrink: 0; min-width: 30px; }
.toc-chapters li.active a{ background: var(--blue); color: #fff; font-weight: 600; }
.toc-chapters li.active .toc-ch-num{ color: #fff; }
.toc-chapters li.is-disabled .toc-soon{ color: #aab6c3; cursor: not-allowed; }
.toc-chapters li.is-disabled .toc-ch-num{ color: #c5cfda; }

/* ---- Reader: content ---- */
.note-unit-tag{
  display: inline-block;
  background: var(--sky); color: var(--blue);
  font-size: .74rem; font-weight: 700;
  padding: .28rem .75rem; border-radius: 20px;
  margin-bottom: .6rem;
}
.note-chapter-title{
  font-size: 1.35rem; color: var(--navy);
  padding-bottom: .9rem; margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--sky);
}

/* ---- Prev / Next ---- */
.note-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-top: 1.2rem;
}
.note-nav-btn{
  display: flex; align-items: center; gap: .9rem;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  font-size: .86rem; font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.note-nav-btn small{
  display: block; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); margin-bottom: .15rem;
}
.note-nav-btn i{ font-size: .95rem; color: var(--blue); flex-shrink: 0; }
.note-nav-btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13,59,102,.1); border-color: var(--blue); color: var(--navy); }
.note-nav-next{ justify-content: space-between; text-align: right; grid-column: 2; }
.note-nav-prev{ grid-column: 1; }
.note-nav-spacer{ grid-column: 1; }
.note-nav-next{
  background: linear-gradient(120deg,#12508c,#1b6fc9);
  border-color: transparent; color: #fff;
}
.note-nav-next small{ color: rgba(255,255,255,.75); }
.note-nav-next i{ color: #fff; }
.note-nav-next:hover{ color: #fff; border-color: transparent; }

/* ---- Mobile TOC drawer ---- */
.toc-open-btn{
  display: flex; align-items: center; gap: .6rem;
  width: 100%;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  font-size: .86rem; font-weight: 600; color: var(--navy);
}
.toc-open-btn i:first-child{ color: var(--blue); }
.toc-overlay{
  display: none; position: fixed; inset: 0;
  background: rgba(10,44,77,.55);
  z-index: 1055;
}
.toc-overlay.show{ display: block; }

@media (max-width: 991.98px){
  .toc-panel{
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 86%; max-width: 340px;
    max-height: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 1060;
  }
  .toc-panel.open{ transform: translateX(0); }
  .note-chapter-title{ font-size: 1.15rem; }
}
@media (max-width: 575.98px){
  .note-nav{ grid-template-columns: 1fr; }
  .note-nav-next, .note-nav-prev, .note-nav-spacer{ grid-column: 1; }
  .note-nav-spacer{ display: none; }
  .note-nav-next{ order: -1; }
}

/* ---- Prev / Next pills (notes) ---- */
.nx-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.4rem;
}
.nx-pill{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 48%;
  padding: .6rem 1.15rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nx-pill span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-pill i{ font-size: .75rem; flex-shrink: 0; }

.nx-prev{
  background: #fff;
  border: 1px solid #e3e8ee;
  color: var(--navy);
}
.nx-prev:hover{
  border-color: var(--blue);
  color: var(--blue);
}

.nx-next{
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  margin-left: auto;
}
.nx-next:hover{
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 14px rgba(13,59,102,.18);
}

@media (max-width: 575.98px){
  .nx-pill{ padding: .55rem .9rem; font-size: .8rem; max-width: 49%; }
}
/* ---- Up Next (right col-2) ---- */
.upnext-sticky{ position: sticky; top: 90px; }
.upnext-card{
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.upnext-head{
  background: linear-gradient(120deg,#12508c,#1b6fc9);
  color: #fff; font-size: .82rem; font-weight: 700;
  padding: .7rem .9rem;
}
.upnext-head i{ margin-right: .4rem; }
.upnext-unit{
  font-size: .76rem; font-weight: 700; color: var(--navy);
  padding: .7rem .9rem .3rem;
}
.upnext-list{ list-style: none; margin: 0; padding: 0 .5rem .6rem; }
.upnext-list li a,
.upnext-list li .upnext-soon{
  display: flex; gap: .45rem; align-items: flex-start;
  padding: .45rem .4rem;
  border-radius: 8px;
  font-size: .76rem; line-height: 1.35; color: #33445a;
}
.upnext-list li a:hover{ background: var(--sky); color: var(--blue); }
.upnext-num{ font-weight: 700; color: var(--blue); flex-shrink: 0; }
.upnext-list li.is-disabled .upnext-soon{ color: #aab6c3; cursor: not-allowed; }
.upnext-list li.is-disabled .upnext-num{ color: #c5cfda; }

/* ---- Ad slot ---- */
.ad-slot{
  min-height: 250px;
  background: #f4f6f9;
  border: 1px dashed #cfd8e3;
  border-radius: var(--radius);
  display: flex; align-items: flex-start; justify-content: center;
  padding: .5rem;
  overflow: hidden;
}
.ad-label{
  font-size: .62rem; text-transform: uppercase; letter-spacing: .06em;
  color: #9aa8b8;
}

@media (max-width: 991.98px){
  .upnext-sticky{ position: static; }
}
@media (max-width: 575.98px){
  .nx-btn{ flex-basis: 100%; }
  .nx-next{ order: -1; }
}