
   :root{
    /* ---- color tokens ---- */
    --ink:#0F3D5C;          /* primary navy, from logo */
    --ink-dark:#0A2A40;     /* deep navy, headers/footer */
    --ink-tint:#E7EEF3;     /* pale navy tint for chips/bg */
    --gold:#C68A2E;         /* achievement accent */
    --gold-dark:#A5711F;
    --gold-tint:#FBF0DC;
    --paper:#F6F4EF;        /* page background */
    --white:#FFFFFF;
    --ink-text:#1E2328;     /* body copy */
    --muted:#5B6572;        /* secondary text */
    --line:#E1DDD2;         /* hairline borders on paper */
    --line-soft:#EDEAE1;
    --success:#2F7A52;
    --success-tint:#E6F2EB;
    --alert:#B23A32;
    --alert-tint:#FBEAE8;
  
    /* ---- type ---- */
    --font-display:'Fraunces', Georgia, serif;
    --font-body:'Inter', -apple-system, Segoe UI, sans-serif;
    --font-mono:'IBM Plex Mono', 'Courier New', monospace;
  
    /* ---- radius / shadow ---- */
    --r-sm:6px;
    --r-md:10px;
    --r-lg:18px;
    --shadow-card:0 1px 2px rgba(15,61,92,.06), 0 8px 24px -12px rgba(15,61,92,.18);
    --shadow-hover:0 4px 10px rgba(15,61,92,.10), 0 16px 32px -14px rgba(15,61,92,.28);


    --primary:var(--ink);

    --primary-dark:var(--ink-dark);

    --secondary:var(--gold);

    --border:var(--line);

    --surface:var(--white);

    --text:var(--ink-text);

    --text-light:var(--muted);

    --radius:var(--r-md);

    --radius-lg:var(--r-lg);

    --shadow-sm:var(--shadow-card);

    --shadow-md:var(--shadow-card);

    --shadow-lg:var(--shadow-hover);

    --transition:.25s ease;
  }
  
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:var(--font-body);
    color:var(--ink-text);
    /* background:var(--paper); */
    font-size:16px;
    line-height:1.6;
  }
  h1,h2,h3,h4,.font-display{
    font-family:var(--font-display);
    color:var(--ink-dark);
    font-weight:600;
    letter-spacing:-.01em;
  }
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;display:block;}
  .container-hip{
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:0 24px;
  }
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
  }
  

  

  /*==================================================
FLOATING WIDGETS
==================================================*/

.floating-widgets{

    position:fixed;

    right:24px;

    bottom:24px;

    display:flex;

    flex-direction:column;

    align-items:flex-end;

    gap:14px;

    z-index:1050;

    pointer-events:none;

}

.floating-widgets > *{

    pointer-events:auto;

}

/*==================================================
WHATSAPP
==================================================*/

.whatsapp-float{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 18px;

    border-radius:999px;

    background:#25D366;

    color:#fff;

    font-size:.95rem;

    font-weight:600;

    box-shadow:var(--shadow-card);

    transition:var(--transition);

}

.whatsapp-float:hover{

    background:#1ebe5d;

    color:#fff;

    transform:translateY(-3px);

    box-shadow:var(--shadow-hover);

}

.whatsapp-float i{

    font-size:1.2rem;

}

/*==================================================
BACK TO TOP
==================================================*/

.back-to-top{

    width:50px;

    height:50px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:50%;

    background:var(--ink);

    color:#fff;

    font-size:18px;

    cursor:pointer;

    box-shadow:var(--shadow-card);

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:var(--transition);

}

.back-to-top:hover{

    background:var(--ink-dark);

    color:#fff;

    transform:translateY(-3px);

    box-shadow:var(--shadow-hover);

}

.back-to-top.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

/*==================================================
AI ASSISTANT
==================================================*/

.ai-widget{

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
        135deg,
        var(--gold),
        var(--gold-dark)
    );

    color:#fff;

    cursor:pointer;

    box-shadow:var(--shadow-card);

    transition:var(--transition);

}

.ai-widget:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow-hover);

}

.ai-widget i{

    font-size:1.35rem;

}

/*==================================================
FLOATING WIDGETS RESPONSIVE
==================================================*/

@media (max-width:767.98px){

    .floating-widgets{

        right:18px;

        bottom:18px;

        gap:12px;

    }

    .whatsapp-float{

        padding:0;

        width:50px;

        height:50px;

        border-radius:50%;

        justify-content:center;

    }

    .whatsapp-float span{

        display:none;

    }

    .back-to-top{

        width:46px;

        height:46px;

        font-size:16px;

    }

    .ai-widget{

        width:52px;

        height:52px;

    }

}

     /* =========================================================
        SECTIONS
        ========================================================= */
        .section{padding:76px 0;}
        .section--tight{padding:52px 0;}
        .section--ink{background:var(--ink-dark); color:#fff; padding:76px 0;}
        .section--ink h2{color:#fff;}
        .section--ink p{color:#B9C9D4;}
        .section--tint{background:var(--ink-tint);}
        .section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:38px; flex-wrap:wrap;}
        .section__head h2{font-size:clamp(26px,3vw,36px); margin:10px 0 0;}
        .section__head p{color:var(--muted); max-width:520px; margin:10px 0 0;}
        .section__head.justify-content-center{justify-content:center; text-align:center;}
        .section__head.justify-content-center h2,
        .section__head.justify-content-center p{margin-left:auto; margin-right:auto;}
        .section__head p.mx-auto{max-width:600px;}
        

     /* =========================================================
        FOOTER
        ========================================================= */
        .hip-footer{background:var(--ink-dark); color:#B9C9D4; padding:60px 0 0;}
        .hip-footer h6{color:#fff; font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px;}
        .hip-footer ul{list-style:none; padding:0; margin:0;}
        .hip-footer li{margin-bottom:10px;}
        .hip-footer a{color:#B9C9D4; font-size:14px; transition:color .15s;}
        .hip-footer a:hover{color:var(--gold);}
        .hip-footer__bottom{border-top:1px solid rgba(255,255,255,.1); margin-top:44px; padding:20px 0; font-size:12.5px; color:#8CA0AF; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

         /* =========================================================
     UTILITY / MONO ELEMENTS — subject codes, roll no, prices
     ========================================================= */
     .mono{font-family:var(--font-mono);}
    
     .code-tag{
       font-family:var(--font-mono);
       font-size:12px;
       letter-spacing:.04em;
       padding:3px 9px;
       border-radius:5px;
       background:var(--ink-tint);
       color:var(--ink);
       font-weight:600;
       display:inline-block;
       white-space:nowrap;
     }
     .code-tag--gold{background:var(--gold-tint);color:var(--gold-dark);}
     .code-tag--success{background:var(--success-tint);color:var(--success);}
     
     /* =========================================================
        BUTTONS
        ========================================================= */
     .btn-hip{
       font-family:var(--font-body);
       font-weight:600;
       font-size:15px;
       padding:12px 24px;
       border-radius:var(--r-sm);
       border:1.5px solid transparent;
       display:inline-flex;
       align-items:center;
       justify-content:center;
       gap:8px;
       cursor:pointer;
       transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
       line-height:1.2;
     }
     .btn-hip:focus-visible{outline:2px solid var(--gold-dark); outline-offset:2px;}
     .btn-hip--primary{background:var(--ink); color:var(--white); border-color:var(--ink);}
     .btn-hip--primary:hover{background:var(--ink-dark); color:var(--white); transform:translateY(-1px); box-shadow:var(--shadow-hover);}
     .btn-hip--gold{background:var(--gold); color:var(--white); border-color:var(--gold);}
     .btn-hip--gold:hover{background:var(--gold-dark); color:var(--white); transform:translateY(-1px); box-shadow:var(--shadow-hover);}
     .btn-hip--outline{background:transparent; color:var(--ink); border-color:var(--ink);}
     .btn-hip--outline:hover{background:var(--ink); color:var(--white);}
     .btn-hip--ghost{background:transparent; color:var(--ink); border-color:transparent; padding:12px 14px;}
     .btn-hip--ghost:hover{background:var(--ink-tint);}
     .btn-hip--sm{padding:8px 16px; font-size:13.5px;}
     .btn-hip--block{width:100%;}
     .btn-hip:disabled{opacity:.55; cursor:not-allowed; transform:none !important; box-shadow:none !important;}
     
     /* outline button used on dark/ink backgrounds (hero, CTA) */
     .btn-hip--outline.cta-outline,
     .hip-hero .btn-hip--outline{
       border-color:rgba(255,255,255,.35);
       color:#fff;
     }
     .btn-hip--outline.cta-outline:hover,
     .hip-hero .btn-hip--outline:hover{
       background:rgba(255,255,255,.12);
       border-color:rgba(255,255,255,.6);
       color:#fff;
     }
     


        .eyebrow{
            font-family:var(--font-mono);
            font-size:12.5px;
            letter-spacing:.14em;
            text-transform:uppercase;
            color:var(--gold-dark);
            display:inline-flex;
            align-items:center;
            gap:8px;
          }
          .eyebrow::before{
            content:"";
            width:18px;height:1px;
            background:var(--gold-dark);
            display:inline-block;
          }
          .eyebrow.text-white{color:var(--gold);}
          .eyebrow.text-white::before{background:var(--gold);}

               /* =========================================================
        FORMS (login / register reused globally)
        ========================================================= */
     .field{margin-bottom:18px;}
     .field label{display:block; font-size:13px; font-weight:600; margin-bottom:7px; color:var(--ink-dark);}
     .field .input-hip{
       width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:var(--r-sm);
       font-family:var(--font-body); font-size:14.5px; background:var(--white); color:var(--ink-text);
       transition:border-color .15s;
     }
     .field .input-hip:focus{outline:none; border-color:var(--ink);} 

/* =========================================================
   CARDS — Course / Test-Series / Product (hip-card)
   ========================================================= */
   .hip-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hip-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-soft);
}

/* Card Media & Image Cover Layer */
.hip-card__media {
    aspect-ratio: 16 / 10;
    background: var(--ink-tint, #f1f5f9);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hip-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.hip-card:hover .hip-card__img {
    transform: scale(1.06);
}

/* Tag Overlays */
.hip-card__media .code-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.hip-card__level {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Card Body Content */
.hip-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hip-card__body h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--ink-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Data Grid */
.hip-card__meta {
    display: flex;
    gap: 12px 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
}

.hip-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hip-card__meta span i {
    font-size: 13px;
    opacity: 0.75;
}

/* Footer Section */
.hip-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 17px;
    color: var(--ink-dark);
}

.price small {
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--gold-dark, #d97706);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Interactive Footer Action Button */
.hip-card__action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink-tint, #f1f5f9);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hip-card:hover .hip-card__action {
    background: var(--ink);
    color: #ffffff;
    transform: translateX(2px);
}


        /* resource cards (Learning Resources — real images instead of icons) */
       /* =========================================================
   RESOURCE CARDS - MODERN EDTECH UI
   ========================================================= */

/* Canvas Base Container */
.resource-media {
  position: relative;
  height: 180px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-neutral, #e2e8f0);
}

/* Category Accent Gradients */
.resource-media--notes {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.18) 100%);
}

.resource-media--pyq {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(56, 189, 248, 0.18) 100%);
}

.resource-media--video {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(244, 114, 182, 0.18) 100%);
}

/* Code Tag Overlay */
.resource-media .code-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-primary, #0f172a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Interactive Center Visual Wrapper */
.resource-visual {
  width: 85%;
  max-width: 260px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover .resource-visual {
  transform: translateY(-4px) scale(1.02);
}

/* --- Document Skeleton (Notes) --- */
.doc-preview {
  background: #ffffff;
  border: 1px solid var(--border-neutral, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.doc-header span {
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-skeleton {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.sk-line--title { width: 60%; background: #6366f1; }
.sk-line--full { width: 100%; }
.sk-line--80 { width: 80%; }

.sk-badge {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- PYQ Micro-UI --- */
.pyq-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.pyq-chip-group {
  display: flex;
  gap: 8px;
}

.pyq-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.pyq-stat-bar {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Video Play Pulse Widget --- */
.video-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.play-pulse-btn {
  width: 52px;
  height: 52px;
  background: #ec4899;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
  box-shadow: 0 0 0 8px rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
}

.resource-card:hover .play-pulse-btn {
  transform: scale(1.1);
  background: #db2777;
  box-shadow: 0 0 0 12px rgba(236, 72, 153, 0.25);
}

.video-runtime {
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
        
         /* =========================================================
        FILTER SIDEBAR (courses & products pages)
        ========================================================= */
        .filter-panel{background:var(--white); border:1px solid var(--line); border-radius:var(--r-md); padding:20px; position:sticky; top:96px;}
        .filter-panel h6{font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 12px;}
        .filter-group{margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid var(--line-soft);}
        .filter-group:last-child{border-bottom:none; margin-bottom:0; padding-bottom:0;}
        .filter-cat{display:flex; align-items:center; justify-content:space-between; padding:8px 10px; margin:0 -10px; border-radius:7px; font-size:14px; font-weight:600; cursor:pointer; transition:background .15s;}
        .filter-cat:hover{background:var(--ink-tint);}
        .filter-cat.is-active{background:var(--ink); color:#fff;}
        .filter-cat .count{font-family:var(--font-mono); font-size:11px; opacity:.7;}
        .filter-sub{padding-left:14px; margin-top:2px; display:none;}
        .filter-cat.is-active + .filter-sub{display:block;}
        .filter-sub label{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); padding:6px 8px; border-radius:6px; cursor:pointer;}
        .filter-sub label:hover{background:var(--paper); color:var(--ink-text);}
        .filter-sub input{accent-color:var(--ink);}
        
        .toolbar{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px;}
        .toolbar__count{color:var(--muted); font-size:14px;}
        .pill-tabs{display:flex; gap:8px; flex-wrap:wrap;}
        .pill-tabs button{
          font-family:var(--font-mono); font-size:12.5px; letter-spacing:.03em;
          padding:8px 15px; border-radius:999px; border:1.5px solid var(--line); background:var(--white); color:var(--ink-text);
          cursor:pointer; transition:.15s;
        }
        .pill-tabs button.is-active{background:var(--ink); border-color:var(--ink); color:#fff;}
        .select-hip{
          font-family:var(--font-mono); font-size:13px; padding:9px 12px; border-radius:var(--r-sm);
          border:1.5px solid var(--line); background:var(--white); color:var(--ink-text);
        }
        

      /* =========================================================
   EXPLORE PAGINATION
   ========================================================= */
.explore-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
}

/* Base styles for pagination links & static items */
.explore-pagination a,
.explore-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 8px);
  background-color: var(--white, #ffffff);
  color: var(--ink-text, #1e2328);
  text-decoration: none;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Hover & Focus States */
.explore-pagination a:hover {
  border-color: var(--ink, #0f3d5c);
  color: var(--ink, #0f3d5c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.explore-pagination a:focus-visible {
  outline: 2px solid var(--ink, #0f3d5c);
  outline-offset: 2px;
}

/* Active State */
.explore-pagination li.is-active a,
.explore-pagination li.is-active span {
  background-color: var(--ink, #0f3d5c);
  border-color: var(--ink, #0f3d5c);
  color: var(--white, #ffffff);
  box-shadow: 0 4px 12px rgba(15, 61, 92, 0.25);
  transform: none;
}

/* Disabled State */
.explore-pagination li.is-disabled span,
.explore-pagination li.is-disabled a {
  opacity: 0.45;
  background-color: var(--paper, #f6f4ef);
  border-color: var(--line, #e2e8f0);
  color: var(--muted, #5b6572);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Ellipsis styling */
.explore-pagination .pagination-ellipsis span {
  border-color: transparent;
  background-color: transparent;
  color: var(--muted, #5b6572);
  padding: 0 4px;
  min-width: auto;
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 576px) {
  .explore-pagination ul {
      gap: 5px;
      font-size: 12px;
  }

  .explore-pagination a,
  .explore-pagination span {
      min-width: 34px;
      height: 34px;
      padding: 0 8px;
  }
}
          