/* =============================================================================
   eVidyarthi – home.css   (HOME PAGE ONLY)
   Loaded only on https://www.evidyarthi.in/ via the Home page's
   "Header Scripts" box, AFTER custom.css:
     <link rel="stylesheet" href="https://www.evidyarthi.in/wp-content/themes/evidya/home.css?v=1">
   It must load after custom.css: several rules here override custom.css rules
   of equal strength (e.g. .content img, .content h2, .entry-content li a).
   Contents: tabs (.tab-wrapper), v1 home (.ev-home), v2/v3 colour layer (.ev2).
   ============================================================================= */


/* =============================================================================
   HOME TABS (.tab-wrapper) + HOME WIDGETS (.home-middle)
   Merged from tabs.css. Everything is scoped to .tab-wrapper / .home-middle,
   so it does not affect the rest of the site. Base page styles (body/html/img)
   from tabs.css were left out on purpose – the theme owns those.
   Theme-conflict resets are at the end of this section.
   ============================================================================= */

/* ---------- Design tokens ---------- */
.tab-wrapper,
.home-middle {
  --tab-blue: #0253b9;
  --tab-blue-light: #049ae4;
  --tab-violet: #6d3df5;
  --tab-ink: #0f1f3d;
  --tab-muted: #5b6b85;
  --tab-border: #dbe7f6;
  --tab-surface: #ffffff;
  --tab-soft: #f3f8ff;
  --tab-grad: linear-gradient(135deg, var(--tab-blue-light) 0%, var(--tab-blue) 55%, var(--tab-violet) 100%);
  --tab-radius: 16px;
  --tab-shadow-sm: 0 1px 2px rgba(15, 31, 61, .06), 0 2px 6px rgba(15, 31, 61, .05);
  --tab-shadow-md: 0 6px 18px rgba(2, 83, 185, .14), 0 2px 6px rgba(15, 31, 61, .06);
  --tab-shadow-lg: 0 14px 32px rgba(2, 83, 185, .24), 0 4px 10px rgba(15, 31, 61, .08);
  --tab-ease: cubic-bezier(.22, 1, .36, 1);
}


.tab-wrapper {
  max-width: 100%;
  margin: 0 auto 24px;
  box-sizing: border-box;
  color: var(--tab-ink);
}
.tab-wrapper *,
.tab-wrapper *::before,
.tab-wrapper *::after { box-sizing: border-box; }

.tab-container { width: 100%; }

/* ==========================================================================
   Tab bar – floating segmented "pill" control
   ========================================================================== */
.tab-wrapper .tab-buttons {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border: 1px solid var(--tab-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tab-soft) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--tab-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tab-wrapper .tab-buttons::-webkit-scrollbar { display: none; }

.tab-wrapper .tab-button {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  margin: 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tab-muted);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  transition: color .3s var(--tab-ease), transform .3s var(--tab-ease), background-color .3s var(--tab-ease);
  -webkit-tap-highlight-color: transparent;
}

/* gradient layer that fades/scales in for the active tab */
.tab-wrapper .tab-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--tab-grad);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s var(--tab-ease), transform .35s var(--tab-ease);
}
/* glossy shine sweep */
.tab-wrapper .tab-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
}

.tab-wrapper .tab-button:hover {
  color: var(--tab-blue);
  background-color: color-mix(in srgb, var(--tab-blue) 8%, transparent);
}
.tab-wrapper .tab-button:active { transform: scale(.97); }

.tab-wrapper .tab-button.active {
  color: #fff;
  background-color: transparent;
  box-shadow: var(--tab-shadow-md);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.tab-wrapper .tab-button.active::before {
  opacity: 1;
  transform: scale(1);
  background-size: 200% 200%;
  animation: tab-grad-flow 6s ease-in-out infinite;
}

/* small pulsing dot on inactive tabs – invites a click */
.tab-wrapper .tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tab-wrapper .tab-button:not(.active)::after {
  position: static;
  z-index: auto;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tab-blue-light);
  opacity: 1;
  transform: none;
  animation: tab-dot-pulse 2s ease-out infinite, tab-blink 1s ease-in-out infinite;
}
.tab-wrapper .tab-button.active::after { opacity: 1; animation: tab-shine-loop 4s .1s ease-in-out infinite; }

.tab-wrapper .tab-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tab-blue-light) 55%, transparent);
  outline-offset: 2px;
}

/* Optional scroll arrows (only used if you add .scroll-left / .scroll-right) */
.tab-wrapper .scroll-left,
.tab-wrapper .scroll-right {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--tab-grad);
  color: #fff;
  box-shadow: var(--tab-shadow-md);
}

/* ==========================================================================
   Tab panels – only the active one is visible, animated entrance
   ========================================================================== */
.tab-wrapper .tab-content { display: none; padding: 4px 0 8px; }
.tab-wrapper .tab-content.active {
  display: block;
  animation: tab-panel-in .5s var(--tab-ease) both;
}

.tab-wrapper .tab-content > h1 {
  margin: 8px 0 20px;
  font-size: clamp(1.35em, 3.5vw, 1.9em);
  line-height: 1.25;
  text-align: center;
  font-weight: 800;
  background: var(--tab-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tab-wrapper .tab-content > h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: var(--tab-grad);
}

/* ==========================================================================
   Collapsible sections (accordion) – card style
   ========================================================================== */
.tab-wrapper .collapsible-section {
  margin-bottom: 14px;
  border: 1px solid var(--tab-border);
  border-radius: var(--tab-radius);
  background: var(--tab-surface);
  box-shadow: var(--tab-shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s var(--tab-ease), border-color .3s var(--tab-ease), transform .3s var(--tab-ease);
}
.tab-wrapper .collapsible-section:hover {
  box-shadow: var(--tab-shadow-md);
  border-color: color-mix(in srgb, var(--tab-blue-light) 35%, var(--tab-border));
}
/* open section gets a gradient ring */
.tab-wrapper .collapsible-section:has(> h2:not(.closed)) {
  border-color: transparent;
  background:
    linear-gradient(var(--tab-surface), var(--tab-surface)) padding-box,
    var(--tab-grad) border-box;
  box-shadow: var(--tab-shadow-lg);
}

.tab-wrapper .collapsible-section h2 {
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 16px 60px 16px 22px;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  color: #fff;
  background: var(--tab-grad);
  box-shadow: none;
  user-select: none;
  transition: background .3s var(--tab-ease), color .3s var(--tab-ease), padding .3s var(--tab-ease);
}
/* closed headers: light, clean, with an accent stripe */
.tab-wrapper .collapsible-section h2.closed {
  color: var(--tab-ink);
  background: var(--tab-surface);
}
.tab-wrapper .collapsible-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--tab-grad);
  transition: opacity .3s var(--tab-ease);
}
/* open header: stripe turns into a repeating shine sweep */
.tab-wrapper .collapsible-section h2:not(.closed)::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  pointer-events: none;
  transform: translateX(-120%);
  animation: tab-shine-loop 3.5s ease-in-out infinite;
}
.tab-wrapper .collapsible-section h2.closed:hover { color: var(--tab-blue); background: var(--tab-soft); }

/* chevron in a round badge */
.tab-wrapper .collapsible-section h2::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    rgba(255, 255, 255, .22);
  transform: translateY(-50%) rotate(0deg);
  transition: transform .4s var(--tab-ease), background-color .3s;
}
.tab-wrapper .collapsible-section h2.closed::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230253b9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    color-mix(in srgb, var(--tab-blue) 10%, transparent);
  transform: translateY(-50%) rotate(180deg);
}

/* ----- header hover: text nudges, stripe grows, arrow badge fills & bounces ----- */
.tab-wrapper .collapsible-section h2.closed:hover { padding-left: 28px; }
.tab-wrapper .collapsible-section h2.closed:hover::before { top: 8px; bottom: 8px; width: 6px; }
.tab-wrapper .collapsible-section h2::before { transition: opacity .3s var(--tab-ease), top .3s var(--tab-ease), bottom .3s var(--tab-ease), width .3s var(--tab-ease); }

.tab-wrapper .collapsible-section h2.closed:hover::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--tab-grad);
  box-shadow: 0 4px 12px rgba(2, 83, 185, .35);
  animation: tab-arrow-bounce .9s var(--tab-ease) infinite;
}
.tab-wrapper .collapsible-section h2:not(.closed):hover::after {
  background-color: rgba(255, 255, 255, .38);
  transform: translateY(-50%) rotate(0deg) scale(1.12);
}

.tab-wrapper .collapsible-content {
  display: none;
  padding: 18px 16px 16px;
}
.tab-wrapper .collapsible-content.active {
  display: block;
  animation: tab-drop-in .45s var(--tab-ease) both;
}

/* ==========================================================================
   Lists of links – tiles
   ========================================================================== */
.tab-wrapper .containerbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.tab-wrapper .containerbox li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tab-wrapper .containerbox li::before { content: none; }

/* staggered entrance for tiles when a section opens */
.tab-wrapper .collapsible-content.active .containerbox li {
  animation: tab-tile-in .45s var(--tab-ease) both;
}
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(2) { animation-delay: .03s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(3) { animation-delay: .06s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(4) { animation-delay: .09s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(5) { animation-delay: .12s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(6) { animation-delay: .15s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(7) { animation-delay: .18s; }
.tab-wrapper .collapsible-content.active .containerbox li:nth-child(n+8) { animation-delay: .21s; }

.tab-wrapper .bottom {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 64px;
  padding: 14px 12px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--tab-soft) 100%);
  border: 1px solid var(--tab-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s var(--tab-ease), box-shadow .3s var(--tab-ease), border-color .3s var(--tab-ease);
}
/* gradient fill revealed on hover */
.tab-wrapper .bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tab-grad);
  opacity: 0;
  transition: opacity .3s var(--tab-ease);
}
.tab-wrapper .bottom:hover,
.tab-wrapper .bottom:focus-within {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--tab-shadow-lg);
}
.tab-wrapper .bottom:hover::before,
.tab-wrapper .bottom:focus-within::before { opacity: 1; }

/* small arrow that slides in on tile hover */
.tab-wrapper .bottom::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(255, 255, 255, .22);
  opacity: 0;
  transform: translate(-6px, 6px) scale(.6);
  transition: opacity .3s var(--tab-ease), transform .35s var(--tab-ease);
  pointer-events: none;
}
.tab-wrapper .bottom:hover::after,
.tab-wrapper .bottom:focus-within::after { opacity: 1; transform: none; }
/* undo the theme's big glowing "button" style for links inside the tabs */
.tab-wrapper .tab-content li a,
.tab-wrapper .tab-content a {
  display: inline;
  margin: 0;
  padding: 0;
  float: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--tab-blue);
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
  transition: color .25s var(--tab-ease);
}
.tab-wrapper .tab-content li a::before,
.tab-wrapper .tab-content li a::after,
.tab-wrapper .tab-content p a::before,
.tab-wrapper .tab-content p a::after { content: none; display: none; }
.tab-wrapper .tab-content a:hover { text-decoration: none; }

/* whole tile is clickable: stretch the link over the card */
.tab-wrapper .bottom a::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tab-wrapper .bottom:hover a,
.tab-wrapper .bottom:focus-within a { color: #fff; }
.tab-wrapper .bottom a:focus-visible { outline: none; }
.tab-wrapper .bottom:has(a:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--tab-blue-light) 55%, transparent);
  outline-offset: 2px;
}

/* ---------- Logos / images ---------- */
.tab-wrapper img { max-width: 100%; height: auto; }

.tab-wrapper .school-logo {
  display: block;
  margin: 0 auto 16px;
  max-height: 80px;
  width: auto;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 4px 8px rgba(15, 31, 61, .12));
}
.tab-wrapper .exam-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 0;
  margin: 0;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--tab-shadow-sm);
  transition: transform .35s var(--tab-ease);
}
.tab-wrapper .bottom:hover .exam-logo { transform: scale(1.08) rotate(-4deg); }

/* ==========================================================================
   Widget blocks (Maths Class 8, ...) that sit BELOW the tabs
   ========================================================================== */
.home-middle { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.home-middle-left,
.home-middle-right { flex: 1 1 280px; min-width: 0; }
.home-middle .widget { margin: 0 0 16px; padding: 0; }
.home-middle .widget-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  text-align: center;
  color: var(--tab-ink);
  transition: color .3s var(--tab-ease);
}
.home-middle .widget:hover .widget-title { color: var(--tab-blue); }

.home-middle .textwidget { text-align: center; }

/* clean, borderless image card: rounded corners + soft zoom on hover */
.home-middle .textwidget a {
  display: inline-block;
  position: relative;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;                      /* keeps rounded corners clean while zooming */
  line-height: 0;
  vertical-align: top;
}
.home-middle .textwidget a::after {           /* thin gradient line that grows on hover */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--tab-grad);
  transform: translateX(-50%);
  transition: width .4s var(--tab-ease);
}
.home-middle .textwidget a:hover::after { width: 100%; }
.home-middle .textwidget img {
  display: block;
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
  background: none;
  transform: translateZ(0) scale(1);       /* own GPU layer = jitter-free zoom */
  backface-visibility: hidden;
  will-change: transform;
  transition: transform .9s cubic-bezier(.25, .8, .25, 1);
}
.home-middle .textwidget a:hover img {
  transform: translateZ(0) scale(1.05);
}
.home-middle .textwidget a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tab-blue-light) 55%, transparent);
  outline-offset: 3px;
}

.tab-wrapper .clear { clear: both; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes tab-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tab-drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tab-tile-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes tab-arrow-bounce {
  0%, 100% { transform: translateY(-50%) rotate(180deg); }
  50%      { transform: translateY(-30%) rotate(180deg); }
}
@keyframes tab-grad-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes tab-dot-pulse {
  0%        { box-shadow: 0 0 0 0 rgba(4, 154, 228, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(4, 154, 228, 0); }
}
/* sweep during the first ~30% of the cycle, then rest */
@keyframes tab-shine-loop {
  0%        { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}
@keyframes tab-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
@keyframes tab-shine {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

/* Reduced motion: stop looping / entrance animations (shine, blink, bounce,
   slide-ins) but KEEP the short hover transitions (zoom, lift, colour fades). */
@media (prefers-reduced-motion: reduce) {
  .tab-wrapper *,
  .tab-wrapper *::before,
  .tab-wrapper *::after,
  .home-middle *,
  .home-middle *::before,
  .home-middle *::after {
    animation: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
  .tab-wrapper .tab-buttons { border-radius: 18px; }
  .tab-wrapper .tab-button { font-size: 14px; padding: 10px 14px; border-radius: 14px; }
  .tab-wrapper .collapsible-section h2 { padding: 14px 54px 14px 18px; font-size: 1em; }
  .tab-wrapper .collapsible-content { padding: 14px 10px 12px; }
  .tab-wrapper .containerbox ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- Theme-conflict resets (keep these AFTER the tab rules) ---------- */

/* Genesis / News Pro "button" styles (dark bg, uppercase, padding) */
.tab-wrapper .tab-button {
  width: auto;
  height: auto;
  min-height: 0;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
  letter-spacing: .01em;
}
.tab-wrapper .tab-button:focus:not(:focus-visible) { outline: none; }

/* .content h2 banner (radius, shadows, capitalize, centered) */
.tab-wrapper .collapsible-section h2 {
  border-radius: 0;
  text-shadow: none;
  text-transform: none;
  clear: none;
}
.tab-wrapper .collapsible-section h2:not(.closed) { text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }

/* .content img rainbow border / padding / margin */
.tab-wrapper .school-logo { border-radius: 0; }

/* .entry-content li a / .glink – rainbow glow layers on ::before / ::after.
   ::before is our transparent "whole tile is clickable" overlay. */
.tab-wrapper .bottom a::before,
.tab-wrapper .bottom a.glink::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: none;
  filter: none;
  opacity: 1;
  animation: none;
  transition: none;
}
.tab-wrapper .bottom a::after,
.tab-wrapper .bottom a.glink::after { content: none; display: none; }
.tab-wrapper .tab-content li a:active { color: inherit; }

/* ---------- Guards against the OLD header <style> tab rules ----------
   Safe to keep even after the header block is deleted. Selectors are made
   stronger than the old ones so the new design wins regardless of load order. */
div.tab-wrapper {                       /* div. prefix outranks the old plain .tab-wrapper */
  position: static;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 0;
}
.tab-wrapper .tab-container {
  display: block;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.tab-wrapper .tab-buttons {
  flex-wrap: nowrap;
  justify-content: flex-start;
  line-height: normal;
}
.tab-wrapper .tab-content {
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.tab-wrapper .tab-content li a { margin: 0 !important; }   /* beats .entry-content li a { margin: 5px !important } */

.tab-wrapper .collapsible-section { margin: 0 0 14px; }
.tab-wrapper .collapsible-section h2,
.tab-wrapper .collapsible-section h2.closed {
  display: block;
  min-height: 0;
  margin: 0;
}
.tab-wrapper .collapsible-section h2.closed::after { content: ""; }

.tab-wrapper .tab-content .collapsible-content {
  max-height: none;
  overflow: visible;
  visibility: visible;
}
.tab-wrapper .tab-content.active .collapsible-content { display: none; }
.tab-wrapper .tab-content.active .collapsible-content.active {
  display: block;
  padding: 18px 16px 16px;
}
@media (max-width: 480px) {
  .tab-wrapper .tab-content.active .collapsible-content.active { padding: 14px 10px 12px; }
}
.tab-wrapper .tab-content.active .collapsible-content .containerbox {
  flex: none;
  text-align: center;
}
.tab-wrapper .tab-content.active .collapsible-content .school-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto 16px;
}
.tab-wrapper .bottom {
  font-size: 16px;
  color: inherit;
  white-space: normal;
}
.tab-wrapper .bottom .exam-logo {
  width: 60px;
  height: 60px;
  max-width: none;
}


/* >>>>>>>>>> NEW HOME PAGE (.ev-home) – START >>>>>>>>>> */
/* =============================================================================
   eVidyarthi — NEW HOME PAGE  (home-new.css)
   Light theme, same blue → violet palette as the tabs.
   Everything is scoped to .ev-home so nothing else on the site changes.
   The tabs themselves are styled in custom.css (.tab-wrapper).
   ============================================================================= */

.ev-home {
  --ev-blue: #0253b9;
  --ev-blue-light: #049ae4;
  --ev-violet: #6d3df5;
  --ev-ink: #0f1f3d;
  --ev-text: #34425f;
  --ev-muted: #5b6b85;
  --ev-border: #dbe7f6;
  --ev-soft: #f3f8ff;
  --ev-grad: linear-gradient(135deg, #049ae4 0%, #0253b9 55%, #6d3df5 100%);
  --ev-grad-soft: linear-gradient(135deg, #e6f4fd 0%, #eaf0ff 55%, #f1ecff 100%);
  --ev-shadow-sm: 0 1px 2px rgba(15, 31, 61, .06), 0 2px 6px rgba(15, 31, 61, .05);
  --ev-shadow-md: 0 8px 20px rgba(2, 83, 185, .12), 0 2px 6px rgba(15, 31, 61, .06);
  --ev-shadow-lg: 0 18px 40px rgba(2, 83, 185, .20), 0 4px 12px rgba(15, 31, 61, .08);
  --ev-ease: cubic-bezier(.22, 1, .36, 1);
  --ev-radius: 20px;

  color: var(--ev-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans Devanagari", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.ev-home *,
.ev-home *::before,
.ev-home *::after { box-sizing: border-box; }

/* ---------- neutralise theme rules inside the new home ---------- */
.ev-home a { color: inherit; text-decoration: none; }
.ev-home img {                       /* .content img adds a rainbow border + padding */
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  max-width: 100%;
  height: auto;
  box-shadow: none;
}
.ev-home h2,
.ev-home h3 { clear: none; }
.ev-home h2.ev-h2,
.ev-home h2.ev-tab-title,
.ev-home h3.ev-h3 {                  /* .content h2 = blue banner with shadows */
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
}

/* the page now starts with the tabs */
.ev-home > .tab-wrapper { margin-bottom: 64px; }

/* ---------- shared building blocks ---------- */
.ev-section { margin: 0 0 64px; }

.ev-sec-head { margin: 0 0 24px; }
.ev-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--ev-soft);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ev-blue);
}
.ev-eyebrow b {                      /* the number badge: 01 / 02 / 03 */
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ev-grad);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
  box-shadow: var(--ev-shadow-md);
}
.ev-home h2.ev-h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ev-ink);
  text-align: left;
}
.ev-home .ev-grad-text {
  background: var(--ev-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ev-home p.ev-sub {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--ev-muted);
}

.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ev-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .25s var(--ev-ease), color .25s var(--ev-ease), border-color .25s var(--ev-ease), transform .25s var(--ev-ease), box-shadow .25s var(--ev-ease);
}
.ev-home a.ev-chip:hover,
.ev-home a.ev-chip:focus-visible {
  background: var(--ev-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ev-shadow-md);
}
.ev-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.ev-home a:focus-visible,
.ev-home input:focus-visible + label {
  outline: 3px solid rgba(4, 154, 228, .5);
  outline-offset: 3px;
}

/* ---------- tab title inside the सरकारी नौकरी tab ---------- */
.ev-home h2.ev-tab-title {
  margin: 8px 0 20px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  background: var(--ev-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================================
   BOOK + SKILL CARDS
   ============================================================================= */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ev-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ev-shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ev-ease), box-shadow .4s var(--ev-ease), border-color .4s var(--ev-ease);
}
.ev-card:hover,
.ev-card:focus-visible {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--ev-shadow-lg);
}
.ev-card__img { display: block; overflow: hidden; background: var(--ev-soft); }
.ev-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 327 / 264;
  object-fit: cover;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.25, .8, .25, 1);
}
.ev-card:hover .ev-card__img img { transform: translateZ(0) scale(1.06); }
.ev-card__meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 14px;
}
.ev-card__meta::before {          /* gradient line that grows on hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--ev-grad);
  transition: width .5s var(--ev-ease);
}
.ev-card:hover .ev-card__meta::before { width: 100%; }
.ev-card__class {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ev-blue-light);
}
.ev-card__title {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ev-ink);
}
.ev-card__go {                    /* arrow badge */
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230253b9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--ev-soft);
  transition: transform .35s var(--ev-ease), background-color .35s;
}
.ev-card:hover .ev-card__go {
  transform: translateX(3px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--ev-grad);
}

/* subject filter – pure CSS (radio buttons + :has) */
.ev-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.ev-home .ev-filter input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.ev-filter label {
  cursor: pointer;
  user-select: none;
  padding: 8px 16px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 700;
  transition: all .25s var(--ev-ease);
}
.ev-filter label:hover { color: var(--ev-blue); border-color: #b9d4f3; transform: translateY(-1px); }
.ev-filter input:checked + label {
  background: var(--ev-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--ev-shadow-md);
}
.ev-books:has(#evf-maths:checked)    .ev-card:not([data-cat~="maths"]),
.ev-books:has(#evf-science:checked)  .ev-card:not([data-cat~="science"]),
.ev-books:has(#evf-sst:checked)      .ev-card:not([data-cat~="sst"]),
.ev-books:has(#evf-hindi:checked)    .ev-card:not([data-cat~="hindi"]),
.ev-books:has(#evf-commerce:checked) .ev-card:not([data-cat~="commerce"]) { display: none; }
.ev-books:has(.ev-filter input:checked) .ev-card { animation: ev-pop .45s var(--ev-ease) both; }

/* =============================================================================
   EXPLORE PANELS (Govt exams / Study abroad / Current affairs / English)
   ============================================================================= */
.ev-explore {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ev-panel {
  position: relative;
  padding: 30px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-grad-soft);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ev-ease), box-shadow .4s var(--ev-ease);
}
.ev-panel:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow-md); }
.ev-panel::after {                 /* soft decorative circle */
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--ev-grad);
  opacity: .10;
  transition: transform .8s var(--ev-ease), opacity .4s;
}
.ev-panel:hover::after { transform: scale(1.25); opacity: .16; }
.ev-panel--violet { background: linear-gradient(135deg, #f3efff 0%, #ecf2ff 100%); }
.ev-panel--sky    { background: linear-gradient(135deg, #e5f5fd 0%, #eef3ff 100%); }
.ev-panel--mint   { background: linear-gradient(135deg, #e9f8f1 0%, #eef5ff 100%); }

/* panel heading: label pill + big title */
.ev-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ev-violet);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--ev-shadow-sm);
}
.ev-panel__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev-grad);
}
.ev-home h3.ev-h3 {
  margin: 14px 0 20px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ev-ink);
}
.ev-panel__foot { margin-top: 18px; }
.ev-panel__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ev-blue);
}
.ev-panel__more::after { content: "→"; transition: transform .3s var(--ev-ease); }
.ev-panel__more:hover::after { transform: translateX(4px); }

/* ---------- exam logo tiles ---------- */
.ev-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.ev-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform .35s var(--ev-ease), box-shadow .35s var(--ev-ease), border-color .35s var(--ev-ease);
}
.ev-logo__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ev-border), var(--ev-shadow-sm);
  transition: transform .45s var(--ev-ease), box-shadow .35s var(--ev-ease);
}
.ev-logo__icon img { width: 44px; height: 44px; object-fit: contain; }
.ev-logo__icon--svg { background: var(--ev-soft); color: var(--ev-blue); }
.ev-logo__icon--svg svg { width: 26px; height: 26px; }
.ev-logo__name {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ev-ink);
  transition: color .3s;
}
.ev-logo:hover,
.ev-logo:focus-visible {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--ev-shadow-md);
}
.ev-logo:hover .ev-logo__icon {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 0 0 2px var(--ev-blue-light), var(--ev-shadow-md);
}
.ev-logo:hover .ev-logo__icon--svg { background: var(--ev-grad); color: #fff; }
.ev-logo:hover .ev-logo__name { color: var(--ev-blue); }

/* ---------- study abroad flag tiles ---------- */
.ev-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
}
.ev-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform .35s var(--ev-ease), box-shadow .35s var(--ev-ease), border-color .35s var(--ev-ease);
}
.ev-flag__img {
  position: relative;
  display: block;
  width: 66px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 31, 61, .08), 0 6px 14px rgba(15, 31, 61, .18);
  transform-origin: left center;
  transition: transform .45s var(--ev-ease), box-shadow .35s var(--ev-ease);
}
.ev-flag__img svg { display: block; width: 100%; height: 100%; }
.ev-flag__img::after {             /* glossy fabric shading */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .35) 38%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, .10) 75%, rgba(255, 255, 255, .15) 90%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .06));
  pointer-events: none;
}
.ev-flag__text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ev-ink);
  transition: color .3s;
}
.ev-flag__text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.ev-flag:hover,
.ev-flag:focus-visible {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--ev-shadow-md);
}
.ev-flag:hover .ev-flag__img {
  box-shadow: 0 0 0 1px rgba(15, 31, 61, .08), 0 10px 20px rgba(15, 31, 61, .22);
  animation: ev-wave 1.2s ease-in-out infinite;
}
.ev-flag:hover .ev-flag__text { color: var(--ev-blue); }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes ev-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes ev-wave {                 /* flag gently waving */
  0%, 100% { transform: perspective(200px) rotateY(0deg) skewY(0deg); }
  25%      { transform: perspective(200px) rotateY(-14deg) skewY(-2deg); }
  75%      { transform: perspective(200px) rotateY(10deg) skewY(2deg); }
}

/* Reduced motion: stop loops, keep short hover transitions */
@media (prefers-reduced-motion: reduce) {
  .ev-home *,
  .ev-home *::before,
  .ev-home *::after { animation: none !important; }
  .ev-flag:hover .ev-flag__img { transform: scale(1.06); }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
  .ev-explore { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ev-card__meta { padding: 10px 12px 12px; }
  .ev-card__title { font-size: 15px; }
  .ev-card__go { display: none; }
  .ev-panel { padding: 22px 16px; }
  .ev-section { margin-bottom: 48px; }
  .ev-eyebrow { font-size: 16px; }
  .ev-eyebrow b { min-width: 30px; height: 30px; font-size: 14px; }
  .ev-logos,
  .ev-flags { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ev-logo,
  .ev-flag { padding: 12px 6px; }
  .ev-logo__name { font-size: 12px; }
  .ev-flag__img { width: 54px; height: 36px; }
  .ev-flag__text { font-size: 13px; }
}
/* <<<<<<<<<< NEW HOME PAGE (.ev-home) – END <<<<<<<<<< */


/* >>>>>>>>>> HOME PAGE v2 (.ev2 colour layer) – START >>>>>>>>>> */
/* =============================================================================
   eVidyarthi — HOME PAGE v2  (colourful, Gen Z touch, still light)
   Works ON TOP of the v1 home styles: the page root is <div class="ev-home ev2">.
   Everything here is scoped to .ev2, so the live v1 page is untouched until
   the new HTML is pasted.
   ============================================================================= */

/* ---------- colour tokens ---------- */
.ev2 {
  --ev-grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --ev2-ink: #1e1b4b;
}
/* the tab styles in custom.css read these variables – recolour them here */
.ev2 .tab-wrapper {
  --tab-grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --tab-ink: #1e1b4b;
}

/* one colour pair per accordion section (set as class in the HTML) */
.ev2 .ev2-c1 { --c: #2563eb; --c2: #7c3aed; }   /* blue → violet  */
.ev2 .ev2-c2 { --c: #db2777; --c2: #f97316; }   /* pink → orange  */
.ev2 .ev2-c3 { --c: #059669; --c2: #0ea5e9; }   /* green → sky    */
.ev2 .ev2-c4 { --c: #ea580c; --c2: #e11d48; }   /* orange → rose  */
.ev2 .ev2-c5 { --c: #7c3aed; --c2: #db2777; }   /* violet → pink  */
.ev2 .ev2-c6 { --c: #0d9488; --c2: #65a30d; }   /* teal → lime    */
.ev2 .ev2-c7 { --c: #0284c7; --c2: #4f46e5; }   /* sky → indigo   */
.ev2 .tab-wrapper .collapsible-section[class*="ev2-c"] {
  --tab-grad: linear-gradient(135deg, var(--c) 0%, var(--c2) 100%);
  --tab-blue: color-mix(in srgb, var(--c) 82%, #000);
  --tab-blue-light: var(--c);
  --tab-soft: color-mix(in srgb, var(--c) 9%, #fff);
  --tab-border: color-mix(in srgb, var(--c) 26%, #fff);
}

/* =============================================================================
   TABS AREA
   ============================================================================= */
.ev2 > .tab-wrapper {
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(420px 260px at 100% 0%, rgba(236, 72, 153, .14), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(16, 185, 129, .10), transparent 70%),
    #fbfaff;
  border: 1px solid #ece7ff;
}

/* page heading (the page's single <h1>, for SEO) */
.ev2 h1.ev2-h1 {
  margin: 4px 6px 16px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  text-align: left;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ev2-ink);
}
.ev2 h1.ev2-h1 span {
  display: block;
  margin-top: 4px;
  font-size: .58em;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--tab-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* tab bar */
.ev2 .tab-wrapper .tab-buttons {
  background: linear-gradient(90deg, #fff1f7 0%, #f1ecff 50%, #e8f4ff 100%);
  border-color: #e9ddff;
}
.ev2 .tab-wrapper .tab-button { color: #5b4b8a; font-size: 17px; }
.ev2 .tab-wrapper .tab-button.active { color: #fff; }
.ev2 .ev2-emo {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.15em;
  line-height: 1;
  transition: transform .4s var(--tab-ease);
}
.ev2 .tab-wrapper .tab-button:hover .ev2-emo { transform: rotate(-12deg) scale(1.2); }
.ev2 .tab-wrapper .tab-button.active .ev2-emo { animation: ev2-bounce 2.4s ease-in-out infinite; }

/* accordion headers: tinted in the section colour + small logo */
.ev2 .tab-wrapper .collapsible-section h2,
.ev2 .tab-wrapper .collapsible-section h2.closed {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.ev2 .tab-wrapper .collapsible-section h2.closed {
  background: var(--tab-soft);
  color: var(--ev2-ink);
}
.ev2 .tab-wrapper .collapsible-section h2.closed:hover {
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: var(--tab-blue);
}
.ev2 .ev2-htext { flex: 1; min-width: 0; }

.ev2 .ev2-hlogo {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, #fff), 0 4px 10px color-mix(in srgb, var(--c) 25%, transparent);
  transform: rotate(-4deg);
  transition: transform .45s var(--tab-ease), box-shadow .35s;
}
.ev2 .ev2-hlogo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.ev2 .ev2-hlogo--svg { background: var(--c); color: #fff; }
.ev2 .ev2-hlogo--svg svg { width: 24px; height: 24px; }
.ev2 .tab-wrapper .collapsible-section h2:hover .ev2-hlogo { transform: rotate(4deg) scale(1.08); }
.ev2 .tab-wrapper .collapsible-section h2:not(.closed) .ev2-hlogo {
  transform: rotate(0deg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 14px rgba(0, 0, 0, .18);
}

/* closed-state arrow badge in the section colour */
.ev2 .tab-wrapper .collapsible-section h2.closed::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--c);
}
.ev2 .tab-wrapper .collapsible-section h2.closed:hover::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--tab-grad);
}

/* class tiles get the section tint */
.ev2 .tab-wrapper .collapsible-section .bottom {
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c) 10%, #fff) 100%);
}

/* =============================================================================
   COLOUR BLOCKS behind the sections
   ============================================================================= */
.ev2 .ev-section {
  position: relative;
  padding: 34px 30px;
  border-radius: 28px;
  isolation: isolate;
  overflow: hidden;
}
.ev2 .ev-section::before {          /* dotted Gen Z texture */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(30, 27, 75, .07) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.ev2 #books   { background: linear-gradient(135deg, #eef2ff 0%, #f5edff 50%, #fff0f6 100%); }
.ev2 #skills  { background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 55%, #fdf4ff 100%); }
.ev2 #explore { background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 50%, #fefce8 100%); }

/* section label = tilted sticker */
.ev2 .ev-eyebrow {
  background: #fff;
  color: #6d28d9;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 #c4b5fd;
}
.ev2 #skills .ev-eyebrow  { color: #c2410c; box-shadow: 3px 3px 0 #fdba74; }
.ev2 #explore .ev-eyebrow { color: #047857; box-shadow: 3px 3px 0 #6ee7b7; }
.ev2 .ev-eyebrow b {
  background: var(--ev-grad);
  font-size: 18px;
}
.ev2 .ev-home h2.ev-h2,
.ev2 h2.ev-h2 { color: var(--ev2-ink); }

/* highlighted word: gradient + wavy underline */
.ev2 .ev-grad-text {
  text-decoration: underline wavy #f472b6;
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
  text-decoration-skip-ink: none;
}

/* stickers next to headings (outside the <h2>) */
.ev2-titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.ev2-sticker {
  display: inline-flex;              /* fixed height + centred content, so emoji can't stretch the pill */
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  align-self: center;
  transform: translateY(-3px) rotate(5deg);   /* sit on the heading's letters, not its descender/underline */
  transition: transform .4s var(--ev-ease);
  -webkit-text-fill-color: currentColor;
}
.ev2-sticker--pink { background: #ff5fa2; color: #fff; box-shadow: 3px 3px 0 #be185d; }
.ev2-sticker--lime { background: #c6f135; color: #1e1b4b; box-shadow: 3px 3px 0 #65a30d; }
.ev2-sticker--sky  { background: #38bdf8; color: #fff; box-shadow: 3px 3px 0 #0369a1; }
.ev2 .ev-sec-head:hover .ev2-sticker { animation: ev2-wiggle .6s ease-in-out; }

/* =============================================================================
   BOOK + SKILL CARDS – colour by subject
   ============================================================================= */
.ev2 .ev-card { --k: #6d28d9; border-color: color-mix(in srgb, var(--k) 22%, #fff); }
.ev2 .ev-card[data-cat~="maths"]    { --k: #2563eb; }
.ev2 .ev-card[data-cat~="science"]  { --k: #059669; }
.ev2 .ev-card[data-cat~="sst"]      { --k: #ea580c; }
.ev2 .ev-card[data-cat~="hindi"]    { --k: #db2777; }
.ev2 .ev-card[data-cat~="commerce"] { --k: #7c3aed; }
.ev2 #skills .ev-card:nth-child(6n+1) { --k: #db2777; }
.ev2 #skills .ev-card:nth-child(6n+2) { --k: #2563eb; }
.ev2 #skills .ev-card:nth-child(6n+3) { --k: #ea580c; }
.ev2 #skills .ev-card:nth-child(6n+4) { --k: #059669; }
.ev2 #skills .ev-card:nth-child(6n+5) { --k: #7c3aed; }
.ev2 #skills .ev-card:nth-child(6n+6) { --k: #0891b2; }

.ev2 .ev-card__meta { background: color-mix(in srgb, var(--k) 8%, #fff); }
.ev2 .ev-card__meta::before { background: var(--k); }
.ev2 .ev-card__class { color: var(--k); }
.ev2 .ev-card__go {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--k);
}
.ev2 .ev-card:hover .ev-card__go {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--k);
  transform: translateX(3px) rotate(-8deg);
}
.ev2 .ev-card:hover,
.ev2 .ev-card:focus-visible {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 6px 8px 0 color-mix(in srgb, var(--k) 30%, transparent), 0 16px 32px color-mix(in srgb, var(--k) 22%, transparent);
}
.ev2 #skills .ev-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }

/* subject filter chips in their subject colour */
.ev2 .ev-filter label { --k: #6d28d9; border-color: color-mix(in srgb, var(--k) 30%, #fff); color: color-mix(in srgb, var(--k) 85%, #000); }
.ev2 .ev-filter label[for="evf-maths"]    { --k: #2563eb; }
.ev2 .ev-filter label[for="evf-science"]  { --k: #059669; }
.ev2 .ev-filter label[for="evf-sst"]      { --k: #ea580c; }
.ev2 .ev-filter label[for="evf-hindi"]    { --k: #db2777; }
.ev2 .ev-filter label[for="evf-commerce"] { --k: #7c3aed; }
.ev2 .ev-filter label:hover { background: color-mix(in srgb, var(--k) 10%, #fff); }
.ev2 .ev-filter input:checked + label {
  background: var(--k);
  color: #fff;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--k) 45%, #000);
  transform: rotate(-2deg);
}
.ev2 .ev-filter label[for="evf-all"] { --k: #1e1b4b; }

/* =============================================================================
   EXPLORE PANELS – stronger pastels
   ============================================================================= */
.ev2 .ev-panel         { background: linear-gradient(135deg, #fff6c7 0%, #ffe4cc 100%); border-color: #fde2a7; }
.ev2 .ev-panel--violet { background: linear-gradient(135deg, #efe5ff 0%, #ffe1f0 100%); border-color: #e6d3ff; }
.ev2 .ev-panel--sky    { background: linear-gradient(135deg, #dcf3ff 0%, #ddfbe9 100%); border-color: #c7e9fb; }
.ev2 .ev-panel--mint   { background: linear-gradient(135deg, #dcfce7 0%, #fef9c3 100%); border-color: #c8f0d6; }
.ev2 .ev-panel__tag            { color: #c2410c; }
.ev2 .ev-panel--violet .ev-panel__tag { color: #7c3aed; }
.ev2 .ev-panel--sky .ev-panel__tag    { color: #0369a1; }
.ev2 .ev-panel--mint .ev-panel__tag   { color: #047857; }
.ev2 .ev-panel__tag { transform: rotate(-2deg); box-shadow: 3px 3px 0 rgba(30, 27, 75, .12); }
.ev2 .ev-home h3.ev-h3,
.ev2 h3.ev-h3 { color: var(--ev2-ink); }
/* panels are narrower inside the colour block – keep 5 flags / 4 logos per row */
.ev2 .ev-flags { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 10px; }
.ev2 .ev-logos { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
.ev2 .ev-flag__img { width: 60px; height: 40px; }
.ev2 .ev-logo:hover,
.ev2 .ev-flag:hover { box-shadow: 4px 5px 0 rgba(124, 58, 237, .25), var(--ev-shadow-md); }

/* colourful chips (Current affairs / English) */
.ev2 .ev-chips .ev-chip { --k: #2563eb; border-color: color-mix(in srgb, var(--k) 30%, #fff); color: color-mix(in srgb, var(--k) 85%, #000); }
.ev2 .ev-chips .ev-chip:nth-child(5n+2) { --k: #db2777; }
.ev2 .ev-chips .ev-chip:nth-child(5n+3) { --k: #059669; }
.ev2 .ev-chips .ev-chip:nth-child(5n+4) { --k: #ea580c; }
.ev2 .ev-chips .ev-chip:nth-child(5n+5) { --k: #7c3aed; }
.ev2 .ev-home a.ev-chip:hover,
.ev2 a.ev-chip:hover,
.ev2 a.ev-chip:focus-visible {
  background: var(--k);
  color: #fff;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--k) 45%, #000);
  transform: translateY(-2px) rotate(-2deg);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes ev2-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  15%      { transform: translateY(-4px) rotate(-10deg); }
  30%      { transform: translateY(0) rotate(0); }
}
@keyframes ev2-wiggle {
  0%, 100% { transform: translateY(-3px) rotate(5deg); }
  25%      { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
  50%      { transform: translateY(-3px) rotate(8deg); }
  75%      { transform: translateY(-3px) rotate(-3deg); }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 520px) {
  .ev2 > .tab-wrapper { padding: 10px; border-radius: 22px; }
  .ev2 .tab-wrapper .tab-button { font-size: 14px; }
  .ev2 .ev2-emo { margin-right: 5px; }
  .ev2 .ev-section { padding: 24px 14px; border-radius: 22px; }
  .ev2 .ev2-hlogo { width: 36px; height: 36px; border-radius: 10px; }
  .ev2 .ev2-hlogo img { width: 27px; height: 27px; }
  .ev2 .tab-wrapper .collapsible-section h2,
  .ev2 .tab-wrapper .collapsible-section h2.closed { gap: 10px; min-height: 56px; }
  .ev2-sticker { height: 28px; font-size: 12px; padding: 0 10px; }
  .ev2 h1.ev2-h1 { margin: 2px 4px 12px; }
}

/* =============================================================================
   v3 – APP block + TRENDING NOW (both at the bottom of the page)
   ============================================================================= */
.ev2 #app      { background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #ecfeff 100%); }
.ev2 #trending { background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #fdf2f8 100%); }
.ev2 #app .ev-eyebrow      { color: #4f46e5; box-shadow: 3px 3px 0 #a5b4fc; }
.ev2 #trending .ev-eyebrow { color: #e11d48; box-shadow: 3px 3px 0 #fda4af; }

/* ---------- app install steps ---------- */
.ev3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ev3-step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid #e0e7ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ev-shadow-sm);
  transition: transform .35s var(--ev-ease), box-shadow .35s var(--ev-ease);
}
.ev3-step:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 5px 6px 0 rgba(99, 102, 241, .22), var(--ev-shadow-md); }
.ev3-step__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0e7ff, #fae8ff);
  font-size: 28px;
  line-height: 1;
  transform: rotate(-4deg);
}
.ev2 h3.ev3-step__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ev2-ink);
}
.ev3-step__text { font-size: 15px; line-height: 1.6; color: var(--ev-text); }
/* button names in the steps: styled as on-screen "keys", NOT blue, so they don't look like links */
.ev3-step__text b {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #d4d4e8;
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #f4f4fb;
  color: var(--ev2-ink);
  font-size: .92em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---------- trending list ---------- */
.ev3-trends {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ev2 a.ev3-trend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #fde2e4;
  border-radius: 16px;
  background: #fff;
  color: var(--ev2-ink);
  text-decoration: none;
  transition: transform .3s var(--ev-ease), box-shadow .3s var(--ev-ease), border-color .3s;
}
.ev2 a.ev3-trend:hover,
.ev2 a.ev3-trend:focus-visible {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 5px 6px 0 rgba(244, 63, 94, .18), var(--ev-shadow-md);
}
.ev3-trend__rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 18px;
  font-weight: 900;
  transform: rotate(-4deg);
  transition: transform .35s var(--ev-ease);
}
.ev3-trend:nth-child(1) .ev3-trend__rank { background: linear-gradient(135deg, #f97316, #e11d48); color: #fff; }
.ev3-trend:nth-child(2) .ev3-trend__rank { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: #fff; }
.ev3-trend:nth-child(3) .ev3-trend__rank { background: linear-gradient(135deg, #8b5cf6, #3b82f6); color: #fff; }
.ev3-trend:nth-child(4) .ev3-trend__rank  { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; }
.ev3-trend:nth-child(5) .ev3-trend__rank  { background: linear-gradient(135deg, #06b6d4, #10b981); color: #fff; }
.ev3-trend:nth-child(6) .ev3-trend__rank  { background: linear-gradient(135deg, #10b981, #84cc16); color: #fff; }
.ev3-trend:nth-child(7) .ev3-trend__rank  { background: linear-gradient(135deg, #eab308, #f97316); color: #fff; }
.ev3-trend:nth-child(8) .ev3-trend__rank  { background: linear-gradient(135deg, #f43f5e, #ec4899); color: #fff; }
.ev3-trend:nth-child(9) .ev3-trend__rank  { background: linear-gradient(135deg, #d946ef, #7c3aed); color: #fff; }
.ev3-trend:nth-child(10) .ev3-trend__rank { background: linear-gradient(135deg, #6366f1, #0ea5e9); color: #fff; }
.ev2 a.ev3-trend:hover .ev3-trend__rank { transform: rotate(6deg) scale(1.08); }
.ev3-trend__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev3-trend__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #be185d;
}
.ev3-trend__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev3-trend__go {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat,
    #fff1f2;
  transition: transform .3s var(--ev-ease);
}
.ev2 a.ev3-trend:hover .ev3-trend__go { transform: translateX(3px); }

@media (max-width: 900px) {
  .ev3-steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ev3-trends { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ev3-trend__title { font-size: 14px; white-space: normal; }
  .ev3-trend__rank { width: 34px; height: 34px; font-size: 16px; }
  .ev3-step { padding: 18px 16px; }
}

/* ---------- v3: YouTube channels ---------- */
.ev2 #youtube { background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 45%, #f5f3ff 100%); }
.ev2 #youtube .ev-eyebrow { color: #dc2626; box-shadow: 3px 3px 0 #fca5a5; }
.ev3-ytgrid {
  columns: 3 260px;               /* masonry: cards flow into columns */
  column-gap: 16px;
}
.ev3-ytcard {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  border: 1px solid #fde2e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ev-shadow-sm);
  break-inside: avoid;
  transition: transform .35s var(--ev-ease), box-shadow .35s var(--ev-ease);
}
.ev3-ytcard:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 rgba(220, 38, 38, .14), var(--ev-shadow-md); }
.ev2 h3.ev3-ytcard__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ev2-ink);
}
.ev3-ytcard__emo {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fee2e2;
  font-size: 18px;
  line-height: 1;
  transform: rotate(-4deg);
}
.ev3-ytchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev2 a.ev3-ytchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #991b1b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .25s var(--ev-ease), color .25s, border-color .25s, transform .25s var(--ev-ease), box-shadow .25s;
}
.ev2 a.ev3-ytchip::before {        /* small YouTube play badge */
  content: "";
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M8 4l5 3-5 3z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% no-repeat,
    #ef4444;
}
.ev2 a.ev3-ytchip:hover,
.ev2 a.ev3-ytchip:focus-visible {
  background: #ef4444;
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: 3px 3px 0 #b91c1c;
}
.ev2 a.ev3-ytchip:hover::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M8 4l5 3-5 3z' fill='%23ef4444'/%3E%3C/svg%3E"); }
@media (max-width: 520px) {
  .ev3-ytgrid { columns: 1; }
  .ev2 a.ev3-ytchip { font-size: 13px; }
}

/* ---------- v3: working Install / Share buttons in the app block ---------- */
.ev3-step { display: flex; flex-direction: column; }
.ev3-step__text { flex: 1; }
.ev2 a.ev3-link {
  color: #4338ca;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ev2 a.ev3-link:hover { color: #db2777; }
.ev3-step__act { margin-top: 14px; }
.ev2 button.ev3-btn {                /* full reset of the theme's <button> style */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  background-size: 200% 200%;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(67, 56, 202, .28);
  transition: transform .25s var(--ev-ease), box-shadow .25s var(--ev-ease), background-position .6s var(--ev-ease);
}
.ev2 button.ev3-btn:hover,
.ev2 button.ev3-btn:focus-visible {
  background-position: 100% 50%;
  color: #fff;
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(67, 56, 202, .3);
}
.ev2 button.ev3-btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 rgba(67, 56, 202, .3); }
.ev2 button.ev3-btn--share { background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 55%, #6366f1 100%); background-size: 200% 200%; }
.ev3-msg {
  display: none;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.ev3-msg.is-on { display: block; animation: ev-pop .35s var(--ev-ease) both; }
/* the card that matches the visitor's device gets a highlight */
.ev3-step.is-mine { border-color: transparent; box-shadow: 0 0 0 2px #818cf8, 5px 6px 0 rgba(99, 102, 241, .22); }
.ev3-step.is-mine::before {
  content: "Your device";
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ev3-js { display: none; }
/* <<<<<<<<<< HOME PAGE v2 (.ev2 colour layer) – END <<<<<<<<<< */
