/* ==========================================================================
   JAN JAGRITI EWAM SAMAJ KALYAN FOUNDATION — CORE DESIGN SYSTEM
   ========================================================================== */

:root{
  --navy: #4A1D33;
  --navy-2: #6E2A4A;
  --bg: #FFFAF2;
  --white: #FFFFFF;
  --green: #E4570C;
  --green-light: #FFEBDD;
  --gold: #F5A314;
  --gold-light: #FFF1D2;
  --text: #33202A;
  --muted: #6B5560;
  --border: #F1E2D0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 1px 2px rgba(74,29,51,.04), 0 8px 24px -12px rgba(74,29,51,.12);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,.font-head{ font-family: var(--font-head); color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
h1{ font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h2{ font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; }
h3{ font-size: 1.3rem; }
p{ color: var(--text); }
a{ text-decoration:none; color: inherit; }
::selection{ background: var(--gold-light); }
:focus-visible{ outline: 2px solid var(--green); outline-offset: 2px; }

.text-muted-custom{ color: var(--muted) !important; }
.bg-navy{ background: var(--navy) !important; }
.text-navy{ color: var(--navy) !important; }
.text-green{ color: var(--green) !important; }
.bg-cream{ background: var(--bg) !important; }

/* ---------- Buttons ---------- */
.btn-primary-custom{
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary-custom:hover{ background: var(--navy-2); color:#fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(74,29,51,.35); }
.btn-outline-custom{
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: .68rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline-custom:hover{ background: var(--navy); color:#fff; }
.btn-green-custom{
  background: var(--green); color:#fff; border:1px solid var(--green);
  border-radius:999px; padding:.7rem 1.6rem; font-weight:600; font-size:.95rem;
  transition: all .2s ease; display:inline-flex; align-items:center; gap:.5rem;
}
.btn-green-custom:hover{ filter:brightness(1.08); color:#fff; transform: translateY(-2px); }
.btn-sm-pill{ border-radius:999px; font-size:.82rem; padding:.4rem 1rem; font-weight:600; }

/* ---------- Layout helpers ---------- */
.section-padding{ padding: 4rem 0; }
.no-aos [data-aos]{ opacity:1 !important; transform:none !important; }
@media (max-width: 767.98px){ .section-padding{ padding: 3rem 0; } }
.section-title{ margin-bottom: .6rem; }
.section-lead{ color: var(--muted); max-width: 620px; }
.container-narrow{ max-width: 760px; margin: 0 auto; }

.rule-gold{
  width: 46px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 1.1rem;
}

/* Signature sun-mark divider, used sparingly */
.sun-anchor{ display:flex; align-items:center; gap:.6rem; margin-bottom: .9rem; }
.sun-anchor img{ width: 30px; height: 30px; opacity:.9; }
.sun-anchor span{ font-family: var(--font-head); font-weight:700; color: var(--green); font-size: .95rem; }

/* ---------- Top info bar ---------- */
.topbar{
  background: var(--navy);
  color: #F3D6E1;
  font-size: .8rem;
  padding: .45rem 0;
}
.topbar a{ color:#F3D6E1; }
.topbar .divider{ opacity:.35; margin: 0 .6rem; }

/* ---------- Navbar ---------- */
.site-navbar{
  background: rgba(255,250,242,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-navbar.scrolled{ box-shadow: 0 6px 24px -14px rgba(74,29,51,.25); background: rgba(255,255,255,.96); }
.brand-mark{ display:flex; align-items:center; gap:.65rem; }
.brand-mark img{ width: 46px; height:46px; border-radius:50%; }
.brand-text{ line-height:1.15; }
.brand-text .name{ font-family: var(--font-head); font-weight:800; color: var(--navy); font-size: .95rem; display:block; }
.brand-text .reg{ font-size: .68rem; color: var(--muted); display:block; }
.site-navbar .nav-link{ font-weight:600; color: var(--text); font-size:.93rem; padding: .5rem .9rem !important; position:relative; }
.site-navbar .nav-link.active{ color: var(--navy); }
.site-navbar .nav-link.active::after{
  content:""; position:absolute; left:.9rem; right:.9rem; bottom: .18rem; height:2px; background: var(--gold);
  border-radius:2px;
}

/* ---------- Hero ---------- */
.hero-section{ position:relative; padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-blob{
  position:absolute; top:-120px; right:-120px; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--green-light), transparent 70%);
  z-index:0;
}
.hero-section .container{ position:relative; z-index:1; }
.hero-image-wrap{ position:relative; }
.hero-image-wrap img{ border-radius: 20px; width:100%; box-shadow: var(--shadow-soft); }
.hero-eyebrow-badge{
  display:inline-flex; align-items:center; gap:.5rem; background:#fff; border:1px solid var(--border);
  padding:.4rem .9rem; border-radius:999px; font-size:.8rem; font-weight:600; color: var(--green);
  box-shadow: var(--shadow-soft);
}

/* ---------- Stat cards ---------- */
.stat-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.3rem; text-align:left; transition: transform .2s ease, box-shadow .2s ease;
  height:100%;
}
.stat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stat-card .icon{
  width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background: var(--green-light); color: var(--green); font-size:1.25rem; margin-bottom: .9rem;
}
.stat-card .num{ font-family: var(--font-head); font-size:1.9rem; font-weight:800; color: var(--navy); }

/* ---------- Custom cards ---------- */
.custom-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; height:100%; transition: transform .2s ease, box-shadow .2s ease;
}
.custom-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.custom-card .icon{
  width:50px;height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background: var(--navy); color:#fff; font-size:1.3rem; margin-bottom:1rem;
}
.custom-card .learn-more{ color: var(--green); font-weight:600; font-size:.9rem; display:inline-flex; align-items:center; gap:.35rem; }

.hover-lift{ transition: transform .2s ease, box-shadow .2s ease; }
.hover-lift:hover{ transform: translateY(-4px); }

/* ---------- Mission / Vision ---------- */
.mv-card{
  border-radius: var(--radius); padding: 2.2rem; height:100%; color:#fff;
  position:relative; overflow:hidden;
}
.mv-card.mission{ background: var(--navy); }
.mv-card.vision{ background: var(--green); }
.mv-card i{ font-size:2rem; opacity:.9; margin-bottom: 1rem; }
.mv-card h3{ color:#fff; }
.mv-card p{ color: rgba(255,255,255,.85); }

/* ---------- Notice cards ---------- */
.notice-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.3rem; height:100%; border-left: 3px solid var(--gold);
}
.notice-card .cat-badge{ font-size:.7rem; font-weight:700; text-transform: uppercase; letter-spacing:.03em; color: var(--green); }
.notice-card .date{ font-size:.78rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-item{ position:relative; border-radius: var(--radius-sm); overflow:hidden; cursor:pointer; aspect-ratio: 4/3; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.gallery-item .overlay{
  position:absolute; inset:0; background: linear-gradient(0deg, rgba(74,29,51,.55), transparent 55%);
  display:flex; align-items:flex-end; justify-content:flex-end; padding: .8rem; opacity:0; transition: opacity .25s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item:hover .overlay{ opacity:1; }
.gallery-item .overlay i{ color:#fff; background: rgba(255,255,255,.2); border-radius:50%; padding:.5rem; }
.filter-pill{
  border:1px solid var(--border); background:#fff; border-radius:999px; padding:.45rem 1.1rem;
  font-size:.85rem; font-weight:600; color: var(--muted); transition: all .2s ease;
}
.filter-pill.active, .filter-pill:hover{ background: var(--navy); color:#fff; border-color:var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width:640px; margin:0 auto; text-align:center; }
.testimonial-card img{ width:64px;height:64px;border-radius:50%; object-fit:cover; margin-bottom:1rem; }
.testimonial-card .quote{ font-size:1.05rem; color:var(--text); font-style:italic; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: #F3D6E1; padding: 3.5rem 0 1.4rem; }
.site-footer h6{ color:#fff; font-family: var(--font-head); font-weight:700; margin-bottom:1rem; font-size:.95rem; }
.site-footer a{ color:#EBC3D2; font-size:.9rem; }
.site-footer a:hover{ color:#fff; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer li{ margin-bottom:.55rem; }
.site-footer .social-icon{
  width:36px;height:36px;border-radius:50%;background: rgba(255,255,255,.08);
  display:inline-flex;align-items:center;justify-content:center; margin-right:.5rem; transition: background .2s ease;
}
.site-footer .social-icon:hover{ background: var(--gold); }
.footer-credit{ margin-top:.9rem; padding-top:.8rem; border-top:1px dashed rgba(255,255,255,.12); font-size:.8rem; color:#D99DB4; }
.footer-credit a{ color:#F5A314; font-weight:700; text-decoration:none; }
.footer-credit a:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.2rem; font-size:.8rem; color:#D99DB4; }

/* ---------- Page hero / breadcrumb ---------- */
.page-header{ background: var(--navy); color:#fff; padding: 3.2rem 0 2.4rem; position:relative; overflow:hidden; }
.page-header::after{
  content:""; position:absolute; right:-80px; top:-80px; width:280px;height:280px;border-radius:50%;
  background: radial-gradient(circle, rgba(245,163,20,.25), transparent 70%);
}
.page-header .breadcrumb{ margin-bottom:.6rem; }
.page-header .breadcrumb a{ color:#E3B0C3; }
.page-header .breadcrumb .active{ color:#fff; }
.page-header h1{ color:#fff; margin-bottom:0; }

/* ---------- Timeline (About page) ---------- */
.timeline{ position:relative; padding-left: 2rem; border-left: 2px solid var(--border); }
.timeline-item{ position:relative; padding-bottom: 2rem; }
.timeline-item::before{
  content:""; position:absolute; left:-2.44rem; top:.2rem; width:14px;height:14px;border-radius:50%;
  background: var(--green); border:3px solid var(--green-light);
}
.timeline-item .year{ font-family: var(--font-head); font-weight:800; color: var(--gold); font-size:.9rem; }

/* ---------- Forms ---------- */
.form-control-custom, .form-select-custom{
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .68rem .9rem; font-size: .95rem;
  background:#fff;
}
.form-control-custom:focus, .form-select-custom:focus{ border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.form-label-custom{ font-weight:600; font-size:.88rem; color: var(--text); margin-bottom:.35rem; }
.upload-box{
  border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 1.4rem; text-align:center;
  background: #fff; cursor:pointer; transition: border-color .2s ease;
}
.upload-box:hover{ border-color: var(--green); }
.upload-preview{ width:96px;height:96px;border-radius:10px;object-fit:cover; }

/* ---------- Status badges ---------- */
.status-badge{ font-size:.75rem; font-weight:700; padding:.32rem .75rem; border-radius:999px; display:inline-block; }
.status-badge.active, .status-badge.approved, .status-badge.published{ background:#FFEBDD; color:#E4570C; }
.status-badge.pending{ background:#FFF1D2; color:#B36B00; }
.status-badge.rejected, .status-badge.inactive{ background:#FBE9E7; color:#C81E45; }

/* ---------- Login page ---------- */
.login-shell{ min-height:100dvh; display:flex; }
.login-branding{
  flex: 1.1; background: var(--navy); color:#fff; display:flex; flex-direction:column;
  justify-content:center; padding: 4rem; position:relative; overflow:hidden;
}
.login-branding::after{ content:""; position:absolute; left:-100px; bottom:-100px; width:320px;height:320px;border-radius:50%; background: radial-gradient(circle, rgba(228,87,12,.35), transparent 70%); }
.login-branding img{ width:64px;height:64px;border-radius:50%; margin-bottom:1.4rem; }
.login-form-side{ flex:1; display:flex; align-items:center; justify-content:center; padding: 2rem; background: var(--bg); }
.login-card{ width:100%; max-width: 420px; background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-soft); }
.role-toggle{ display:flex; background: var(--bg); border-radius:999px; padding:.25rem; margin-bottom:1.5rem; }
.role-toggle button{ flex:1; border:none; background:transparent; padding:.55rem; border-radius:999px; font-weight:700; font-size:.88rem; color: var(--muted); }
.role-toggle button.active{ background: var(--navy); color:#fff; }
@media (max-width: 991.98px){ .login-branding{ display:none; } }

/* ---------- Utility scrollbar hide ---------- */
.scroll-x-hide{ overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; }
.scroll-x-hide::-webkit-scrollbar{ display:none; }

/* ---------- Toast / misc ---------- */
.toast-custom{ border-radius: var(--radius-sm); border:1px solid var(--border); }

/* ---------- AOS override (respect reduced motion) ---------- */
@media (prefers-reduced-motion: reduce){
  [data-aos]{ transform:none !important; opacity:1 !important; transition:none !important; }
}

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; right:1.2rem; bottom:1.2rem; width:44px;height:44px;border-radius:50%;
  background: var(--navy); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft); opacity:0; pointer-events:none; transition: opacity .2s ease; z-index: 60;
}
.back-to-top.show{ opacity:1; pointer-events:auto; }

/* ---------- Logo on dark surfaces ---------- */
.id-card-head img, .admit-card-head img, .site-footer img[src*="logo-emblem"], .sidebar img[src*="logo-emblem"], .mobile-app-header img[src*="logo-emblem"]{
  background:#fff; border-radius:50%; padding:2px;
}

/* ---------- Certificates & Recognitions (About) ---------- */
.cert-group-title{ display:flex; align-items:center; gap:.5rem; margin-bottom:1.1rem; color:var(--navy); }
.cert-group-title i{ color:var(--green); }
.cert-group-note{ font-family:var(--font-body); font-weight:600; font-size:.75rem; color:var(--muted); background:var(--gold-light); border-radius:999px; padding:.15rem .7rem; margin-left:.4rem; }
.cert-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; height:100%; box-shadow:var(--shadow-soft); transition:transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.cert-card:hover{ transform:translateY(-4px); box-shadow:0 14px 30px -14px rgba(228,87,12,.35); }
.cert-thumb{ position:relative; display:block; width:100%; aspect-ratio:4/3; padding:0; border:0; border-bottom:3px solid var(--gold); background:var(--gold-light); overflow:hidden; cursor:zoom-in; }
.cert-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top center; transition:transform .35s ease; }
.cert-card:hover .cert-thumb img{ transform:scale(1.04); }
.cert-zoom{ position:absolute; right:.6rem; bottom:.6rem; background:var(--navy); color:#fff; border-radius:999px; font-size:.72rem; font-weight:600; padding:.25rem .75rem; opacity:0; transform:translateY(6px); transition:all .2s ease; }
.cert-card:hover .cert-zoom, .cert-thumb:focus-visible .cert-zoom{ opacity:1; transform:none; }
.cert-body{ padding:1rem 1.1rem 1.15rem; }
.cert-title{ font-family:var(--font-head); font-weight:800; color:var(--navy); font-size:1rem; line-height:1.3; }
.cert-issuer{ font-size:.82rem; color:var(--muted); margin:.15rem 0 .6rem; }
.cert-meta{ display:flex; flex-wrap:wrap; gap:.35rem .9rem; font-size:.75rem; color:var(--text); font-weight:600; }
.cert-meta i{ color:var(--green); margin-right:.25rem; }
.cert-modal .modal-header{ border-bottom:3px solid var(--gold); }
.cert-modal .modal-body{ background:var(--bg); }
.cert-modal .modal-body img{ max-height:75vh; border:1px solid var(--border); border-radius:8px; box-shadow:var(--shadow-soft); }

/* ---------- Amin course focus (Home) ---------- */
.amin-hero-card{ background:#fff; border:1px solid var(--border); border-radius:20px; padding:1rem; box-shadow:var(--shadow-soft); }
.amin-svg{ width:100%; height:auto; display:block; border-radius:14px; }
.amin-facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; margin-top:.9rem; }
.amin-facts div{ background:var(--gold-light); border-radius:12px; padding:.7rem .5rem; text-align:center; display:flex; flex-direction:column; gap:.1rem; }
.amin-facts i{ color:var(--green); font-size:1.2rem; }
.amin-facts span{ font-size:.72rem; color:var(--muted); font-weight:600; }
.amin-facts strong{ font-family:var(--font-head); color:var(--navy); font-size:.95rem; }
.amin-step{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.2rem; height:100%; position:relative; border-top:4px solid var(--gold); }
.amin-step .n{ width:34px; height:34px; border-radius:50%; background:var(--green); color:#fff; font-family:var(--font-head); font-weight:800; display:flex; align-items:center; justify-content:center; margin-bottom:.7rem; }

/* ---------- Photo blocks ---------- */
.photo-frame{ border-radius:14px; overflow:hidden; }
.photo-frame img{ width:100%; height:auto; display:block; aspect-ratio:3/2; object-fit:cover; }
.step-photo{ margin:0; border-radius:var(--radius); overflow:hidden; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-soft); height:100%; }
.step-photo img{ width:100%; aspect-ratio:3/2; object-fit:cover; display:block; }
.step-photo figcaption{ padding:.7rem 1rem; font-size:.88rem; font-weight:600; color:var(--navy); }
.program-card img{ width:100%; aspect-ratio:3/2; object-fit:cover; display:block; }
#imgModal .img-caption{ color:#fff; text-align:center; margin:.75rem 0 0; font-size:.95rem; }

/* ---------- Home hero banner (photo right, cream left, maroon corner) ---------- */
.hb{ position:relative; background:linear-gradient(100deg,#fffaf2 0%,#fff6e8 55%,#fffdf8 100%); overflow:hidden; }
.hb-slide{ position:relative; min-height:clamp(540px, 45vw, 690px); display:flex; align-items:center; }
.hb-photo{ position:absolute; top:0; right:0; bottom:0; width:66%; }
.hb-photo img{ width:100%; height:100%; object-fit:cover; object-position:62% center; display:block;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 44%); mask-image:linear-gradient(90deg,transparent 0,#000 44%); }
.hb-leaf{ position:absolute; left:-70px; bottom:-60px; width:300px; height:300px; border-radius:50%; background:radial-gradient(circle at 60% 40%, rgba(84,150,62,.55), rgba(84,150,62,0) 68%); filter:blur(6px); pointer-events:none; }
.hb-leaf-2{ left:auto; right:-40px; top:-50px; bottom:auto; width:240px; height:240px; background:radial-gradient(circle, rgba(120,170,70,.35), rgba(120,170,70,0) 70%); }
.hb-content{ position:relative; z-index:2; padding-top:2.2rem; padding-bottom:3rem; }
.hb-text{ max-width:720px; }
.hb-tag{ display:inline-block; transform:rotate(-5deg); margin:0 0 1.1rem -.4rem; }
.hb-tag span{ display:inline-block; font-family:'Caveat','Segoe Script',cursive; font-weight:700; font-size:clamp(1.25rem,2vw,1.7rem); line-height:1.05; color:#4A1D33; padding:.9rem 2.1rem 1rem 1.6rem; background:#f7c52b;
  clip-path:polygon(2% 20%,10% 6%,30% 14%,52% 3%,74% 12%,96% 2%,99% 30%,94% 55%,100% 78%,82% 96%,58% 90%,36% 100%,14% 92%,0 80%,4% 52%); }
.hb h1{ font-family:var(--font-head); font-weight:800; color:#4A1D33; font-size:clamp(1.9rem,3.5vw,3.1rem); line-height:1.12; letter-spacing:-.01em; margin:0 0 1.2rem; }
.hb-hl{ position:relative; display:inline-block; color:#f08c00; }
.hb-hl svg{ position:absolute; left:0; bottom:-.28em; width:100%; height:.24em; color:#f08c00; }
.hb-lead{ font-size:clamp(.95rem,1.25vw,1.1rem); line-height:1.75; color:#3d3340; max-width:560px; margin-bottom:1.6rem; }
.hb-cta{ display:flex; flex-wrap:wrap; gap:.8rem; margin-bottom:1.7rem; }
.hb-cta a{ padding:.85rem 1.5rem; }
.hb-badges{ display:flex; flex-wrap:wrap; gap:1.2rem 1.6rem; }
.hb-badges > div{ display:flex; align-items:center; gap:.7rem; }
.hb-badges b{ font-size:.92rem; color:#4A1D33; font-weight:600; line-height:1.25; max-width:120px; }
.hb-ico{ width:50px; height:50px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.35rem; color:#e4570c; background:radial-gradient(circle at 35% 30%,#fff3d6,#fbd78a); box-shadow:0 4px 12px rgba(228,87,12,.22); }
.hb-corner{ position:absolute; right:0; bottom:0; width:min(36%,520px); aspect-ratio:2/1; z-index:3; pointer-events:none; }
.hb-corner svg{ position:absolute; inset:0; width:100%; height:100%; }
.hb-corner span{ position:absolute; right:7%; bottom:15%; transform:rotate(-8deg); text-align:right; color:#fff; font-family:'Caveat','Segoe Script',cursive; font-weight:700; font-size:clamp(1.15rem,2.1vw,1.9rem); line-height:1.1; text-shadow:0 2px 6px rgba(0,0,0,.25); }
.hb-ind{ z-index:5; margin-bottom:.6rem; }
.hb-ind [data-bs-target]{ width:28px; height:4px; border:0; border-radius:4px; background:#4A1D33; opacity:.3; }
.hb-ind .active{ opacity:1; background:#f08c00; }
@media (max-width:991.98px){
  .hb-slide{ display:block; min-height:0; }
  .hb-photo{ position:relative; width:100%; height:clamp(220px,52vw,340px); }
  .hb-photo img{ -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%); mask-image:linear-gradient(180deg,#000 55%,transparent 100%); object-position:60% 30%; }
  .hb-content{ padding-top:0; margin-top:-1.4rem; padding-bottom:2.8rem; }
  .hb-corner{ display:none; }
  .hb-tag{ margin-bottom:.8rem; }
}
@media (max-width:575.98px){ .hb-cta a{ width:100%; justify-content:center; } .hb-badges{ gap:1rem; } .hb-ico{ width:42px; height:42px; font-size:1.1rem; } .hb-badges b{ font-size:.82rem; max-width:96px; } }

/* ---------- Trending courses + Why choose ---------- */
.tc-section{ background:linear-gradient(180deg,#fdf6ee,#fff); }
.tc-card{ background:linear-gradient(145deg,#fff 0%,#fbf1ff 100%); border:1px solid #e6d8ee; border-radius:18px; padding:1.5rem; box-shadow:0 10px 30px rgba(74,29,51,.08); }
.why-card{ background:linear-gradient(145deg,#fff 0%,#eef6ff 100%); border-color:#d6e4f3; }
.tc-title{ font-size:1.5rem; text-align:center; color:#1593b6; margin-bottom:1.1rem; display:flex; align-items:center; justify-content:center; gap:.5rem; }
.tc-pills{ display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
.course-pill{ display:flex; align-items:center; justify-content:center; gap:.45rem; text-align:center; color:#fff; font-weight:600; font-size:.82rem; line-height:1.2; border-radius:8px; padding:.7rem .6rem; min-height:46px; text-decoration:none; transition:transform .15s, box-shadow .15s; }
.course-pill:hover{ color:#fff; transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.18); }
.course-pill i{ font-size:.95rem; flex:none; }
.why-list{ list-style:none; padding:0; margin:1rem 0; }
.why-list li{ position:relative; padding:.45rem 0 .45rem 1.9rem; font-size:.95rem; border-bottom:1px dashed #d8e2ee; }
.why-list li::before{ content:"\f26a"; font-family:"bootstrap-icons"; position:absolute; left:0; top:.45rem; color:#1fa75a; font-size:1.15rem; }
@media (max-width:575.98px){ .tc-pills{ grid-template-columns:1fr; } }

/* ---------- Courses page ---------- */
.course-thumb{ height:150px; display:flex; align-items:center; justify-content:center; color:#fff; }
.course-thumb i{ font-size:3.6rem; opacity:.92; }
.course-card{ scroll-margin-top:96px; }
.course-card .cat-tag{ display:inline-block; color:#fff; font-size:.7rem; font-weight:700; border-radius:999px; padding:.15rem .6rem; letter-spacing:.03em; }
