/* ExamConnect T-01 Home (W2-b3 B4). Loaded only on the new Home template, after ec-content.css. */

/* ---------- hero ---------- */
.ec-page.ec-home { background: var(--ec-bg, #fafbfb); }
.ec-page .ec-home__hero { padding: 24px 0 22px; background: var(--ec-teal-50, #f4f8f8); border-bottom: 1px solid #e6efee; }
.ec-page .ec-home__hero-t { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ec-page .ec-home__eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin: 0; padding: 0 12px; border: 1px solid #dce6e4; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 650; line-height: 1.2; color: var(--ec-teal-800, #1d4944); }
.ec-page .ec-home__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ec-orange-500, #f19400); }
.ec-page .ec-home__h1 { font-size: 25px; line-height: 1.35; }
.ec-page .ec-home__h1 span { color: var(--ec-teal-600, #327b74); }
.ec-page .ec-home__sub { margin: -6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ec-ink-700, #3b414f); }

.ec-page .ec-home__search { display: flex; align-items: center; gap: 8px; height: 56px; margin: 0; padding: 0 6px 0 14px; border: 1px solid #dce6e4; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(11, 16, 27, .06); color: var(--ec-ink-500, #707785); }
.ec-page .ec-home__search:focus-within { border-color: var(--ec-teal-600, #327b74); }
.ec-page .ec-home__search input[type="search"] { flex: 1; min-width: 0; width: auto; height: 44px; margin: 0; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; font: 500 16px/1.4 var(--ec-font, Inter, sans-serif); color: var(--ec-text, #0b101b); -webkit-appearance: none; appearance: none; }
.ec-page .ec-home__search input[type="search"]::placeholder { color: var(--ec-ink-500, #707785); opacity: 1; }
.ec-page .ec-home__search input[type="search"]:focus { outline: 0; border: 0; box-shadow: none; }
.ec-page .ec-home__search .ec-btn { flex: none; min-height: 44px; padding: 0 18px; border-radius: 12px; }

.ec-page .ec-home__trend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ec-page .ec-home__trend-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ec-ink-700, #3b414f); }
.ec-page .ec-home__art { display: none; }

/* ---------- tabs (chips as buttons) ---------- */
.ec-page .ec-tabs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ec-page button.ec-chip { margin: 0; font-family: inherit; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ec-page button.ec-chip:hover, .ec-page button.ec-chip:focus { background: #fff; border-color: var(--ec-teal-300, #a2c3c0); color: var(--ec-teal-800, #1d4944); }
.ec-page button.ec-chip.is-on, .ec-page button.ec-chip.is-on:hover, .ec-page button.ec-chip.is-on:focus { background: var(--ec-primary, #327b74); border-color: var(--ec-primary, #327b74); color: #fff; }
.ec-page .ec-tabs__panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ec-page .ec-tabs__panel[hidden] { display: none; }
.ec-page .ec-home__tabmore { align-self: flex-start; }

/* ---------- rows, ads ---------- */
.ec-page .ec-home__row { display: flex; flex-direction: column; min-width: 0; }
.ec-page .ec-home__row > * { min-width: 0; }
.ec-page .ec-home__ad > .ec-ad { margin-top: 28px; }
@media (max-width: 699px) { .ec-page .ec-home__jobs .ec-jcard:nth-child(n+4) { display: none; } }

/* ---------- Store band ---------- */
.ec-page .ec-home__store { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding: 18px 16px; border-radius: 20px; background: var(--ec-orange-50, #fff7eb); }
.ec-page .ec-home__store-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ec-page .ec-home__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-orange-800, #8a4b00); }
.ec-page .ec-home__store-p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ec-ink-700, #3b414f); }
.ec-page .ec-home__store-b { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-page .ec-btn--d { background: var(--ec-teal-900, #153330); color: #fff; }
.ec-page .ec-btn--d:hover { background: var(--ec-teal-800, #1d4944); color: #fff; }
.ec-page .ec-home__pdfs { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 8px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ec-page .ec-home__pdfs::-webkit-scrollbar { display: none; }
.ec-page .ec-home__pdfs > li { flex: none; width: 148px; margin: 0; }
.ec-page .ec-home__pdf { display: flex; flex-direction: column; gap: 6px; color: var(--ec-text, #0b101b); }
.ec-page .ec-home__pdf-n { font-size: 13.5px; font-weight: 650; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-page .ec-home__pdf-p { font-size: 15.5px; font-weight: 800; }
/* PDF cover (same look as the Store; ec-store.css is not loaded here) */
.ec-page .ec-cover { display: block; position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: #153330; box-shadow: 0 1px 2px rgba(11, 16, 27, .10), 0 8px 24px rgba(11, 16, 27, .10); container-type: inline-size; }
.ec-page .ec-cover--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-page .ec-cover--teal { background: #327b74; }
.ec-page .ec-cover--ink { background: #1a2130; }
.ec-page .ec-cover--orange { background: #7a4b00; }
.ec-page .ec-cover--gen::before { content: ""; position: absolute; right: -24cqw; top: -20cqw; width: 78cqw; height: 78cqw; border-radius: 999px; border: 6cqw solid rgba(255, 255, 255, .07); }
.ec-page .ec-cover--gen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6cqw; background: #f19400; }
.ec-page .ec-cover__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 9cqw 9cqw 11cqw; }
.ec-page .ec-cover__top, .ec-page .ec-cover__foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.ec-page .ec-cover__kind { max-width: 78%; padding: 1.6cqw 4cqw; border-radius: 999px; background: #f19400; color: #0b101b; font: 800 4.4cqw/1.3 Inter, "Noto Sans Gujarati", sans-serif; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-page .ec-cover__ring { width: 7cqw; height: 7cqw; border-radius: 999px; border: 1.2cqw solid #f19400; }
.ec-page .ec-cover__mid { display: flex; flex-direction: column; gap: 3cqw; }
.ec-page .ec-cover__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font: 800 11cqw/1.25 Inter, "Noto Sans Gujarati", sans-serif; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.ec-page .ec-cover__sub { font: 600 5.2cqw/1.4 Inter, "Noto Sans Gujarati", sans-serif; color: rgba(255, 255, 255, .86); }
.ec-page .ec-cover__foot { border-top: .4cqw solid rgba(255, 255, 255, .18); padding-top: 3.5cqw; }
.ec-page .ec-cover__brand { font: 800 5.2cqw/1.2 Inter, sans-serif; color: #fff; }
.ec-page .ec-cover__brand i { font-style: normal; color: #8fd1c7; }
.ec-page .ec-cover__lang { font: 600 4cqw/1.2 Inter, "Noto Sans Gujarati", sans-serif; color: rgba(255, 255, 255, .75); }

/* ---------- current affairs ---------- */
.ec-page .ec-home__cacard { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.ec-page .ec-home__cahd { display: flex; align-items: center; gap: 12px; color: var(--ec-text, #0b101b); }
.ec-page .ec-home__cadate { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 48px; border-radius: 12px; background: var(--ec-teal-600, #327b74); color: #fff; line-height: 1; }
.ec-page .ec-home__cadate b { font-size: 18px; font-weight: 800; }
.ec-page .ec-home__cadate span { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ec-page .ec-home__cahd-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-page .ec-home__cahd-t b { font-size: 16px; font-weight: 700; line-height: 1.35; }
.ec-page .ec-home__cahd:hover .ec-home__cahd-t b { color: var(--ec-link, #327b74); }
.ec-page .ec-home__calist { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ecca; }
.ec-page .ec-home__calist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ec-ink-800, #242a38); counter-increment: ecca; }
.ec-page .ec-home__calist li::before { content: counter(ecca); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ec-teal-100, #e6efee); font-size: 12px; font-weight: 700; line-height: 1; color: var(--ec-teal-800, #1d4944); }
.ec-page .ec-home__calist li > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-page .ec-home__cabtns { display: flex; gap: 8px; }
.ec-page .ec-home__cabtns .ec-btn { flex: 1; min-height: 44px; padding: 6px 10px; font-size: 14px; }

/* ---------- app promo ---------- */
.ec-page .ec-home__app { position: relative; display: flex; flex-direction: column; gap: 18px; margin-top: 32px; padding: 22px 20px; border-radius: 24px; background: var(--ec-teal-900, #153330); color: #fff; overflow: hidden; }
.ec-page .ec-home__app::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 999px; border: 28px solid rgba(255, 255, 255, .05); pointer-events: none; }
.ec-page .ec-home__app-t { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ec-page .ec-home__free { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ec-orange-500, #f19400); font-size: 12px; font-weight: 800; color: #0b101b; }
.ec-page .ec-home__app h2 { margin: 0; font-family: inherit; font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.ec-page .ec-home__app ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: #cfe3df; }
.ec-page .ec-home__app li { display: flex; align-items: center; gap: 8px; margin: 0; }
.ec-page .ec-home__app.has-img { padding-bottom: 0; }
.ec-page .ec-home__app-img { position: relative; align-self: center; width: 230px; max-height: 190px; overflow: hidden; border: 6px solid #2c4e4a; border-bottom: 0; border-radius: 26px 26px 0 0; background: #fff; }
.ec-page .ec-home__app-img img { display: block; width: 100%; height: auto; }

/* ---------- popular exams ---------- */
.ec-page .ec-home__hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ec-page .ec-home__hubs > li { margin: 0; min-width: 0; }
.ec-page .ec-home__hub { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; }
.ec-page .ec-home__hub-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-page .ec-home__hub-t b { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ec-text, #0b101b); overflow-wrap: anywhere; }

/* ---------- end: alerts + trust ---------- */
.ec-page .ec-home__end { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
.ec-page .ec-home__end:empty { display: none; }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .ec-page .ec-home__search { max-width: 620px; }
  .ec-page .ec-home__trend { flex-direction: row; align-items: center; gap: 10px; }
  .ec-page .ec-home__store { gap: 20px; padding: 24px; }
  .ec-page .ec-home__pdfs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
  .ec-page .ec-home__pdfs > li { width: auto; min-width: 0; }
  .ec-page .ec-home__hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ec-page .ec-home__app { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 28px; }
  .ec-page .ec-home__app-t { align-items: flex-start; }
  .ec-page .ec-home__app ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .ec-page .ec-home__app.has-img { padding-bottom: 0; }
  .ec-page .ec-home__app.has-img .ec-home__app-t { padding-bottom: 28px; }
  .ec-page .ec-home__cabtns .ec-btn { flex: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .ec-page .ec-home__hero { padding: 56px 0 52px; }
  .ec-page .ec-home__hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
  .ec-page .ec-home__hero-t { gap: 20px; }
  .ec-page .ec-home__eyebrow { min-height: 32px; padding: 0 14px; font-size: 13.5px; }
  .ec-page .ec-home__dot { width: 8px; height: 8px; }
  .ec-page .ec-home__h1 { max-width: 640px; font-size: 44px; line-height: 1.22; letter-spacing: -.02em; }
  .ec-page .ec-home__sub { margin-top: -8px; font-size: 18px; }
  .ec-page .ec-home__search { height: 64px; padding: 0 8px 0 20px; border-radius: 18px; }
  .ec-page .ec-home__search input[type="search"] { height: 48px; font-size: 17px; }
  .ec-page .ec-home__search .ec-btn { min-height: 48px; padding: 0 22px; }
  .ec-page .ec-home__trend-l { font-size: 14px; }

  .ec-page .ec-home__art { position: relative; display: block; height: 340px; }
  .ec-page .ec-home__art::before { content: ""; position: absolute; right: 20px; top: 10px; width: 320px; height: 320px; border-radius: 999px; background: var(--ec-teal-100, #e6efee); }
  .ec-page .ec-home__art::after { content: ""; position: absolute; right: 50px; top: 40px; width: 260px; height: 260px; border-radius: 999px; border: 2px dashed var(--ec-teal-200, #cedfdd); }
  .ec-page .ec-home__art .ec-card { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 16, 27, .10); }
  .ec-page .ec-home__art-job { left: 0; top: 40px; width: 300px; }
  .ec-page .ec-home__art-top { display: flex; align-items: center; gap: 10px; }
  .ec-page .ec-home__art-top .ec-jcard__org { width: 40px; height: 40px; }
  .ec-page .ec-home__art-top b { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
  .ec-page .ec-home__art-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .ec-page .ec-home__art .ec-home__art-upd { right: 0; bottom: 36px; width: 270px; flex-direction: row; align-items: center; gap: 12px; }
  .ec-page .ec-home__art-upd > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ec-page .ec-home__art-upd b { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
  .ec-page .ec-home__art-bell { position: absolute; z-index: 1; right: 36px; top: 24px; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--ec-orange-700, #a36400); box-shadow: 0 8px 20px rgba(11, 16, 27, .10); }

  /* Hero with the illustration: the picture, and the first job as one live card above its empty corner. */
  .ec-page .ec-home__hero-in--img { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
  .ec-page .ec-home__art--img { height: auto; padding-top: 40px; }
  .ec-page .ec-home__art--img::before, .ec-page .ec-home__art--img::after { content: none; }
  .ec-page .ec-home__art--img picture { display: block; }
  .ec-page .ec-home__art-img { width: 100%; }
  .ec-page .ec-home__float { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(11, 16, 27, .10); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--ec-ink-900, #0b101b); animation: ec-float 6s ease-in-out infinite; }
  .ec-page .ec-home__float .ec-tile { width: 30px; height: 30px; border-radius: 999px; }
  .ec-page .ec-home__float--1 { left: 2%; top: 0; }
  .ec-page .ec-home__float--2 { left: 46%; top: -8px; animation-duration: 7s; animation-delay: -2s; }
  .ec-page .ec-home__float--3 { left: 13%; top: 20%; animation-duration: 5.5s; animation-delay: -1s; }
  .ec-page .ec-home__float--4 { left: 0; top: 41%; animation-duration: 6.5s; animation-delay: -3.5s; }
  .ec-page .ec-home__float--5 { right: -6px; bottom: -16px; animation-duration: 7.5s; animation-delay: -4.5s; }

  .ec-page .ec-home__row { display: grid; gap: 0 32px; align-items: start; }
  .ec-page .ec-home__row--a { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ec-page .ec-home__row--a > :only-child { grid-column: 1 / -1; }
  .ec-page .ec-home__row--b { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "study ca" "store store"; }
  .ec-page .ec-home__study { grid-area: study; }
  .ec-page .ec-home__ca { grid-area: ca; }
  .ec-page .ec-home__store { grid-area: store; }
  .ec-page .ec-home__ad > .ec-ad { margin-top: 48px; }
  .ec-page .ec-home__updates .ec-urow { padding: 12px 16px; }

  .ec-page .ec-home__store { flex-direction: row; align-items: center; gap: 32px; margin-top: 48px; padding: 32px; border-radius: 28px; }
  .ec-page .ec-home__store-t { flex: 0 0 340px; gap: 14px; }
  .ec-page .ec-home__pdfs { flex: 1 1 0; }
  .ec-page .ec-home__store .ec-h2 { font-size: 30px; line-height: 1.25; }
  .ec-page .ec-home__store-p { font-size: 16px; }
  .ec-page .ec-home__pdfs { gap: 16px; }
  .ec-page .ec-home__cacard { padding: 18px; }

  .ec-page .ec-home__app { margin-top: 56px; padding: 40px 44px; border-radius: 28px; }
  .ec-page .ec-home__app::before { right: -80px; top: -80px; width: 320px; height: 320px; border-width: 40px; }
  .ec-page .ec-home__app-t { gap: 16px; }
  .ec-page .ec-home__app h2 { font-size: 34px; }
  .ec-page .ec-home__app ul { font-size: 15px; }
  .ec-page .ec-home__app.has-img { padding-bottom: 0; }
  .ec-page .ec-home__app.has-img .ec-home__app-t { padding-bottom: 40px; }
  .ec-page .ec-home__app-img { width: 260px; max-height: 250px; border-radius: 30px 30px 0 0; }

  .ec-page .ec-home__hubs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ec-page .ec-home__hub { gap: 14px; padding: 18px; }
  .ec-page .ec-home__end { padding-top: 48px; }
}

@media (min-width: 1280px) {
  .ec-page .ec-home__hero-in--img { grid-template-columns: minmax(0, 1fr) 480px; }
}

/* Hero chips drift up and down a few pixels; still for visitors who ask for less motion. */
@keyframes ec-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .ec-page .ec-home__float { animation: none; }
}
