/* Homepage presentation. Desktop keeps its existing preview/action placement.
 * 1.4.88: all homepage card variants use the working Study Catalogue UI 2.5.6 course-card geometry:
 * two columns, contained book + sample, flowing details and stacked actions.
 * Purchasable cards and course-only View options cards share these mobile rules.
 * Existing Core markup, product data and WooCommerce/wishlist handlers are reused.
 */
.vidyanik-home .vid-resource-surface .vid-product-card--home .vid-product-card__preview--media{display:none}

@media (min-width:721px){
  .vidyanik-home .vid-resource-surface .vid-product-card--home :where(.vid-product-card__buy,.vid-product-card__cart,.vid-product-card__details-link),
  .vidyanik-home .vid-resource-surface .vid-product-card--home .vid-product-card__cart.button{
    font-size:.78rem;
  }
}

.vidyanik-home .vid-resource-surface .vid-product-card--home .vid-product-card__preview{
  justify-content:center;
  gap:0;
  text-align:center;
}
.vidyanik-home .vid-resource-surface .vid-product-card--home .vid-product-card__preview-icon{display:none}

@media (max-width:720px){
  .vidyanik-home .vid-resource-grid{grid-template-columns:minmax(0,1fr)}
  .vidyanik-home .vid-resource-surface .vid-resource-card{
    display:grid;
    grid-template-columns:minmax(136px,39%) minmax(0,1fr);
    align-items:stretch;
    gap:0;
    min-height:0;
    height:auto;
    padding:0;
    overflow:hidden;
    border-radius:18px;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__media,.vid-resource-card__media){
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    align-self:stretch;
    gap:9px;
    width:auto;
    min-width:0;
    height:auto;
    min-height:244px;
    padding:14px 9px 12px;
    border-right:1px solid #edf2f5;
    background:linear-gradient(180deg,#f7fbfd 0%,#fff 100%);
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__cover,.vid-resource-card__cover){
    flex:0 0 auto;
    width:112px;
    min-width:0;
    max-width:100%;
    height:auto;
    aspect-ratio:3/4;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__content,.vid-resource-card__content){
    display:flex;
    flex-direction:column;
    grid-template-rows:none;
    gap:0;
    min-width:0;
    min-height:0;
    margin:0;
    padding:14px 13px;
  }
  /* A reserved first-row cell keeps the absolute wishlist out of the code.
   * The material badge always has its own full-width row below the code.
   * Intrinsic row heights also support font substitution and enlarged text. */
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__meta,.vid-resource-card__meta){
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    align-items:start;
    gap:6px;
    min-width:0;
    min-height:0;
    margin:0;
    padding:0;
    order:0;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__code,.vid-resource-card__code){
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    min-width:0;
    min-height:36px;
    max-width:100%;
    font-size:.73rem;
    line-height:1.3;
    font-weight:900;
    letter-spacing:.035em;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__type,.vid-resource-card__type){
    grid-column:1/-1;
    grid-row:2;
    justify-self:start;
    min-width:0;
    min-height:0;
    max-width:100%;
    border:1px solid #d5e7ef;
    background:#eff8fb;
    color:#0873a4;
    padding:4px 7px;
    font-size:.6rem;
    font-weight:900;
    line-height:1.3;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__wishlist,.vid-resource-card__wishlist){
    top:10px;
    right:10px;
    width:42px;
    height:42px;
    z-index:8;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__title,.vid-resource-card__title){
    display:block;
    min-height:0;
    max-height:none;
    margin:8px 0 0;
    overflow:visible;
    overflow-wrap:anywhere;
    -webkit-line-clamp:unset;
    line-clamp:unset;
    font-size:1rem;
    font-weight:900;
    line-height:1.28;
    letter-spacing:-.022em;
    order:1;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__details{
    gap:5px;
    min-height:0;
    margin:9px 0 0;
    font-size:.65rem;
    line-height:1.25;
    order:2;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__detail{
    min-width:0;
    border-radius:999px;
    background:#f4f8fa;
    padding:5px 7px;
    color:#667f91;
    overflow-wrap:anywhere;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__detail + .vid-product-card__detail::before{content:none}
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__price-row{
    flex-wrap:wrap;
    min-height:0;
    margin:11px 0 0;
    order:3;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__price{
    font-size:1.18rem;
    line-height:1.3;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__preview--media{
    display:inline-flex;
    width:100%;
    max-width:118px;
    min-height:43px;
    height:auto;
    margin:0;
    padding:8px 7px;
    border:1px solid #c5dce7;
    border-radius:9px;
    background:#f5fafc;
    color:#0a6b9b;
    font-size:.79rem;
    font-weight:900;
    line-height:1.15;
    white-space:normal;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__preview--content,
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__divider,.vid-resource-card__divider){display:none}
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__actions,.vid-resource-card__purchase){
    display:grid;
    width:100%;
    min-height:0;
    align-self:stretch;
    align-content:start;
    grid-template-columns:minmax(0,1fr);
    gap:7px;
    margin:11px 0 0;
    padding:0;
    order:4;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :where(.vid-product-card__buy,.vid-product-card__cart,.vid-product-card__details-link,.vid-resource-action--options),
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__cart.button{
    min-height:40px;
    height:auto;
    padding:8px 10px;
    border-radius:9px;
    font-size:.72rem;
    line-height:1.15;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-resource-card__purchase-buttons{
    grid-template-columns:minmax(0,1fr);
    gap:7px;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-resource-action--options{
    border-color:#0a4f83;
    background:#0a4f83;
    color:#fff;
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__cart.button:not(.vid-product-card__cart--view){
    border-color:#0b6ea8;
    background:#0b6ea8;
    color:#fff;
  }
}

@media (max-width:24rem){
  .vidyanik-home .vid-resource-surface .vid-resource-card{
    grid-template-columns:minmax(124px,38%) minmax(0,1fr);
  }
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__media,.vid-resource-card__media){padding-inline:7px}
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__cover,.vid-resource-card__cover){width:102px}
  .vidyanik-home .vid-resource-surface .vid-resource-card :is(.vid-product-card__content,.vid-resource-card__content){padding-inline:11px}
  .vidyanik-home .vid-resource-surface .vid-resource-card .vid-product-card__preview--media{max-width:108px;font-size:.76rem}
}

/* Core 1.5.20: inner alignment only; existing How-it-works card padding and outer rhythm stay unchanged. */
.vidyanik-home .vid-step-grid article{grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;row-gap:3px;align-content:center;align-items:start}
.vidyanik-home .vid-step-grid article>span{grid-column:1;grid-row:1/4;align-self:center}
.vidyanik-home .vid-step-grid article>b{grid-column:2;grid-row:1;align-self:end;margin:0}
.vidyanik-home .vid-step-grid article>strong{grid-column:2;grid-row:2;align-self:start;margin:0}
.vidyanik-home .vid-step-grid article>p{grid-column:2;grid-row:3;align-self:start;margin:0}
/* Minor top whitespace reduction before the homepage resource kicker. */
.vidyanik-home .vid-hero{padding-top:44px}
@media(max-width:47.99rem){.vidyanik-home .vid-hero{padding-top:22px}}
@media(max-width:30rem){.vidyanik-home .vid-hero{padding-top:20px}}

/* Homepage polish v1.1.1 merged from standalone addon; no additional request. */
/* Vidyanik Homepage Polish 14. Existing page geometry and functionality are unchanged.
   70% white/off-white, 20% navy/blue, 10% limited cyan/warm accent. Scoped to home only. */
.vidyanik-home{--vid14-navy:#102c51;--vid14-blue:#076bac;--vid14-cyan:#0785bf;--vid14-line:#d6e6f0}
.vidyanik-home .vid-hero{background:linear-gradient(125deg,#f3f8ff 0%,#f8fbff 48%,#fff 100%);border-bottom:1px solid #dce9f2}
.vidyanik-home .vid-hero-copy h1{color:var(--vid14-navy);text-wrap:balance}
.vidyanik-home .vid-hero-copy>p{color:#3d5870}
.vidyanik-home .vid-home-search .vid-search{border:1.5px solid #9ec5dd;box-shadow:0 10px 30px rgba(8,65,115,.1)}
.vidyanik-home .vid-home-search .vid-search:focus-within{border-color:#0b78b8;box-shadow:0 0 0 3px rgba(8,128,185,.10),0 10px 30px rgba(8,65,115,.09)}
.vidyanik-home .vid-home-search .vid-search .vid-button{background:#0865a5;border-color:#0865a5;font-weight:850}
.vidyanik-home .vid-home-search .vid-search .vid-button:hover{background:#074d83;border-color:#074d83}
.vidyanik-home .vid-search-hints a:hover{color:#075b93;border-color:#8bbbd9;background:#edf8ff}
.vidyanik-home .vid-hero-quick{border:1px solid #cadfee;box-shadow:0 16px 34px rgba(14,49,92,.07)}
.vidyanik-home .vid-hero-quick__head{border-top:3px solid #0e79bb;border-radius:16px 16px 0 0}
.vidyanik-home .vid-hero-quick__item--blue{border-left:3px solid #1e79c0}
.vidyanik-home .vid-hero-quick__item--cyan{border-left:3px solid #13a0b4}
.vidyanik-home .vid-hero-quick__item--amber{border-left:3px solid #db9937}
.vidyanik-home .vid-home-services .vid-service-card--assignment{border-top:3px solid #1c77b8}
.vidyanik-home .vid-home-services .vid-service-card--exam{border-top:3px solid #18a0b5}
.vidyanik-home .vid-home-services .vid-service-card--project{border-top:3px solid #dba349}
.vidyanik-home .vid-home-heading h2{color:var(--vid14-navy)}
.vidyanik-home .vid-home-programmes{background:linear-gradient(180deg,#f7fafc,#f2f8fc)}
.vidyanik-home .vid-programme-tile--active{border-color:#9bc5db;box-shadow:0 12px 26px rgba(16,78,134,.065)}
.vidyanik-home .vid-guide-grid :is(li,.vid-guide-card):hover{border-color:#c1dbea}
.vidyanik-home .vid-home-final__card{background:linear-gradient(115deg,#0b2750,#0c436c)}
/* Two restrained university *references* linking to the official university website.
   Footer's existing independent-platform disclosure remains untouched.
   Source PNG includes substantial white margins: zoom within a clipped image frame.
   No external font, JavaScript, or homepage structural changes. */
.vidyanik-home .vid14-hero-labels{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap;min-width:0}
.vidyanik-home .vid14-ignou-hero{display:inline-flex;align-items:center;gap:11px;max-width:100%;min-width:0;padding:6px 12px 6px 6px;border:1px solid #c9dfeb;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(14,62,101,.045);color:#315a76}
.vidyanik-home .vid14-ignou-hero__link{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 150px;width:150px;height:72px;overflow:hidden;border-radius:9px;background:#fff}
.vidyanik-home .vid14-ignou-hero__link img{display:block;flex:0 0 auto;width:260px;height:195px;max-width:none;object-fit:contain;object-position:center;transform:none}
.vidyanik-home .vid14-ignou-hero__copy{display:block;min-width:0;font-size:.81rem;font-weight:800;line-height:1.32;color:#1c425e}
.vidyanik-home .vid14-ignou-hero__copy small{display:block;margin-top:3px;color:#647d91;font-size:.71rem;font-weight:550}
.vidyanik-home .vid14-ignou-hero__fallback,.vidyanik-home .vid14-official-resource__fallback{display:none}
.vidyanik-home .vid14-official-resource{display:flex;align-items:center;gap:14px;margin:0 0 20px;padding:12px 17px;border:1px solid #d6e6ef;border-left:3px solid #096da8;border-radius:14px;background:#f7fbfe}
.vidyanik-home .vid14-official-resource__logo{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 130px;width:130px;height:70px;overflow:hidden;border-radius:8px;background:#fff}
.vidyanik-home .vid14-official-resource__logo img{display:block;flex:0 0 auto;width:235px;height:176.25px;max-width:none;object-fit:contain;object-position:center;transform:none}
.vidyanik-home .vid14-official-resource__text{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}
.vidyanik-home .vid14-official-resource__text strong{color:#133555;font-size:.88rem;line-height:1.3}
.vidyanik-home .vid14-official-resource__text small{color:#4a687f;font-size:.76rem;line-height:1.42}
.vidyanik-home .vid14-official-resource__action{flex:0 0 auto;white-space:nowrap;font-size:.79rem;font-weight:850;color:#056ca4;text-decoration:underline;text-underline-offset:3px}
.vidyanik-home .vid14-official-resource a:focus-visible,.vidyanik-home .vid14-ignou-hero a:focus-visible{outline:3px solid #0a79b6;outline-offset:3px}
@media(max-width:720px){
 .vidyanik-home .vid-hero{background:linear-gradient(160deg,#f3f9ff 0%,#fff 100%)}
 .vidyanik-home .vid14-hero-labels{gap:8px}
 .vidyanik-home .vid14-ignou-hero{gap:9px;padding:4px 9px 4px 4px;max-width:100%}
 .vidyanik-home .vid14-ignou-hero__link{flex-basis:118px;width:118px;height:62px}
 .vidyanik-home .vid14-ignou-hero__link img{width:100%;height:100%;object-fit:cover;transform:scale(1.48)}
 .vidyanik-home .vid14-ignou-hero__copy{font-size:.75rem}
 .vidyanik-home .vid14-ignou-hero__copy small{font-size:.67rem}
 .vidyanik-home .vid14-official-resource{display:grid;grid-template-columns:108px minmax(0,1fr);column-gap:10px;row-gap:3px;align-items:center;padding:11px 12px}
 .vidyanik-home .vid14-official-resource__logo{grid-column:1;grid-row:1 / 3;flex-basis:auto;width:108px;height:63px}
 .vidyanik-home .vid14-official-resource__logo img{width:100%;height:100%;object-fit:cover;transform:scale(1.46)}
 .vidyanik-home .vid14-official-resource__text{grid-column:2;grid-row:1}
 .vidyanik-home .vid14-official-resource__action{grid-column:2;grid-row:2;font-size:.72rem}
 .vidyanik-home .vid14-official-resource__text strong{font-size:.79rem}
 .vidyanik-home .vid14-official-resource__text small{font-size:.7rem}
}
@media(max-width:360px){
 .vidyanik-home .vid14-ignou-hero__link{flex-basis:101px;width:101px;height:57px}
 .vidyanik-home .vid14-ignou-hero__copy{font-size:.71rem}
 .vidyanik-home .vid14-ignou-hero__copy small{font-size:.63rem}
 .vidyanik-home .vid14-official-resource{grid-template-columns:94px minmax(0,1fr);padding:9px 10px}
 .vidyanik-home .vid14-official-resource__logo{width:94px;height:57px}
 .vidyanik-home .vid14-official-resource__text strong{font-size:.76rem}
 .vidyanik-home .vid14-official-resource__text small{font-size:.66rem}
 .vidyanik-home .vid14-official-resource__action{font-size:.69rem}
}
@media(prefers-reduced-motion:reduce){
 .vidyanik-home .vid-hero-quick__item,.vidyanik-home .vid-service-card{transition:none!important;transform:none!important}
}

/* 1.5.89 material type pills: shared brand colour language (CSS only). */
.vid-material-pill{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:23px;padding:4px 9px;border:1px solid #b8dced;border-radius:999px;background:#e9f5fd;color:#075e98;font-size:.68rem;font-weight:850;line-height:1.17;letter-spacing:0;white-space:normal;text-align:center;box-shadow:0 1px 2px rgba(4,42,79,.04)}
.vid-material-pill--solved{background:#e5f3ff;border-color:#add5f3;color:#075c94}
.vid-material-pill--guess{background:#fff3dc;border-color:#f3cc81;color:#8a5104}
.vid-material-pill--project{background:#f1eaff;border-color:#d5c1f5;color:#6739a0}
.vid-material-pill--notes{background:#e3faf5;border-color:#a5e2d6;color:#096c64}
.vid-material-pill--other{background:#eef5f8;border-color:#d4e2e9;color:#365e72}

/* Override previous low-contrast neutral type tags without altering card geometry. */
.vid-product-card__meta .vid-product-card__type.vid-material-pill--solved{background:#e5f3ff!important;color:#075c94!important;border:1px solid #add5f3!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--guess{background:#fff3dc!important;color:#8a5104!important;border:1px solid #f3cc81!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--project{background:#f1eaff!important;color:#6739a0!important;border:1px solid #d5c1f5!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--notes{background:#e3faf5!important;color:#096c64!important;border:1px solid #a5e2d6!important}
