/*
Theme Name: ExamTexam
Theme URI: https://examtexam.com
Description: ভর্তি পরীক্ষার প্রস্তুতি প্ল্যাটফর্মের জন্য রিডিজাইন করা থিম। পোর্টালের গ্রেডিয়েন্ট ও কার্ড-ভিত্তিক ডিজাইন অনুসরণ করে তৈরি।
Author: ExamTexam
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: examtexam
*/

:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --ink: #222222;
  --ink-soft: #384150;
  --muted: #6b7280;
  --line: #e3e7ee;
  --accent: #c2187f;
  --accent-hover: #a8126b;
  --grad: linear-gradient(130deg, #21d4fd 0%, #ff3cac 100%);
  --grad-soft: linear-gradient(130deg, #21d4fd 0%, #c2187f 100%);
  --blue: #3366ff;
  --green: #16a34a;
  --orange: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(34, 34, 34, 0.07);
  --shadow-lg: 0 14px 34px rgba(194, 24, 127, 0.22);
  --font: "Noto Sans Bengali", "SolaimanLipi", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--grad-soft);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 16px rgba(194, 24, 127, 0.25);
}
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 12px;
}
.brand {
  font-family: "Fugaz One", var(--font);
  font-size: 1.45rem; letter-spacing: .3px;
  background: #fff; color: var(--accent);
  padding: 4px 16px; border-radius: 999px;
  white-space: nowrap;
}
.brand span { color: #21a8d6; }
.brand img { max-height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #fff; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .18); }
.nav .cta-login {
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
}
.nav .cta-login:hover { background: rgba(255, 255, 255, .32); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-outline { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  margin: 20px 0 0;
  background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)), var(--grad);
  border-radius: 22px;
  color: #fff;
  padding: 48px 32px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  right: -110px; top: -120px; background: rgba(255, 255, 255, .12);
}
.eyebrow {
  display: inline-block; background: rgba(255, 255, 255, .22);
  padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.3; font-weight: 800; margin-bottom: 14px; }
.hero p { font-size: 1.05rem; opacity: .95; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(4px);
}
.stat i { font-size: 1.3rem; margin-bottom: 8px; display: block; }
.stat b { display: block; font-size: 1.45rem; line-height: 1.2; }
.stat small { font-size: .88rem; opacity: .92; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 32px 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero { padding: 26px 18px; }
}

/* ---------- Section base ---------- */
section { padding: 56px 0 8px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 6px; }
.kicker {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: .9rem;
  letter-spacing: .3px; margin-bottom: 6px;
}

/* ---------- Programs ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(34, 34, 34, .12); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  margin-bottom: 16px;
}
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-pink { background: var(--accent); }
.bg-grad { background: var(--grad); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.price {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.price b { font-size: 2rem; color: var(--accent); font-weight: 800; }
.price span { color: var(--muted); font-size: .95rem; }
.list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; flex: 1; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.list i { color: var(--green); margin-top: 5px; font-size: .85rem; }
.card.featured { border: 2px solid var(--accent); position: relative; }
.ribbon {
  position: absolute; top: -12px; right: 18px;
  background: var(--grad-soft); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Feature / Dashboard preview ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow);
}
.feature .icon-badge { margin: 0; width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; border-radius: 12px; }
.feature h4 { font-size: 1.02rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: .93rem; }

.mock {
  background: var(--surface); border-radius: 22px; padding: 18px;
  box-shadow: 0 20px 50px rgba(34, 34, 34, .12);
}
.mock-top {
  background: var(--grad-soft); color: #fff; border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px;
}
.mock-top b { font-size: 1.1rem; }
.mock-top small { display: block; opacity: .9; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile {
  background: #f6f7fa; border-radius: 12px; padding: 14px; text-align: center;
}
.mock-tile i { font-size: 1.15rem; margin-bottom: 6px; color: var(--accent); }
.mock-tile span { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.progress { margin-top: 14px; background: #f6f7fa; border-radius: 12px; padding: 14px; }
.progress-head { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); margin-bottom: 8px; }
.bar { height: 10px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.bar i { display: block; height: 100%; width: 24%; background: var(--grad); border-radius: 999px; }
.mock-note {
  margin-top: 12px; font-size: .86rem; color: #7c2d12;
  background: #fff7ed; border-radius: 10px; padding: 10px 12px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: var(--grad); margin-bottom: 12px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Demo / CTA ---------- */
.cta {
  margin-top: 56px;
  background: var(--grad-soft); color: #fff; border-radius: 22px;
  padding: 36px 30px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.cta p { opacity: .95; margin-bottom: 22px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page / post content ---------- */
.content-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin: 28px 0 8px;
}
.content-card h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 18px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.45rem; font-weight: 700; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.2em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.not-found { text-align: center; padding: 40px 0; }
.not-found h1 { font-size: 2rem; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Intro video ---------- */
.intro-video { padding-top: 28px; }
.intro-video .section-head { margin-bottom: 18px; }
.video-frame {
  max-width: 960px; margin: 0 auto;
  background: #0f0a14; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-frame video {
  display: block; width: 100%; height: auto; background: #0f0a14;
}

/* ---------- Portal services carousel ---------- */
.portal-carousel { padding-top: 28px; }
.portal-carousel .section-head { margin-bottom: 18px; }
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden; border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%; min-width: 0;
  background: var(--grad-soft); color: #fff;
  padding: 40px 44px;
  display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.carousel-slide::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -90px; bottom: -130px; background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.slide-icon {
  width: 140px; height: 140px; border-radius: 32px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center;
  font-size: 3.4rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}
.slide-count {
  display: inline-block; background: rgba(255, 255, 255, .22);
  padding: 2px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: 8px;
}
.slide-body h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 8px; }
.slide-body p { font-size: 1.02rem; opacity: .96; max-width: 560px; margin-bottom: 18px; }
.slide-link { color: var(--accent); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--accent);
  box-shadow: 0 6px 18px rgba(34, 34, 34, .18);
  display: grid; place-items: center; font-size: 1rem; cursor: pointer;
  z-index: 2; transition: transform .15s, background .2s;
}
.carousel-btn:hover { background: var(--accent); color: #fff; }
.carousel-btn:focus-visible,
.carousel-dot:focus-visible,
.slide-link:focus-visible { outline: 3px solid #21d4fd; outline-offset: 3px; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: #c9ced8; cursor: pointer; transition: width .3s, background .3s;
}
.carousel-dot[aria-current="true"] { width: 28px; background: var(--accent); }
@media (max-width: 760px) {
  .carousel-slide {
    grid-template-columns: 1fr; text-align: center; justify-items: center;
    padding: 32px 22px 36px; gap: 18px;
  }
  .slide-icon { width: 96px; height: 96px; border-radius: 24px; font-size: 2.4rem; }
  .slide-body p { margin-left: auto; margin-right: auto; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .carousel-btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ---------- Footer ---------- */
footer.site-footer { margin-top: 48px; background: #fff; border-top: 1px solid var(--line); }
.foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 40px 0 24px;
}
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }
.foot h5 { font-size: 1rem; margin-bottom: 10px; color: var(--ink); }
.foot a, .foot p { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.foot a:hover { color: var(--accent); }
.foot ul { list-style: none; }
.foot-brand { font-size: 1.2rem; display: inline-block; }
.copy {
  text-align: center; color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--line); padding: 16px 0;
}

/* ---------- Mobile bottom bar (matches the student app nav) ---------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  display: none; justify-content: space-around; padding: 6px 4px 8px;
  box-shadow: 0 -4px 14px rgba(34, 34, 34, .06);
}
.bottombar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-soft); font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 10px;
}
.bottombar a i { font-size: 1.1rem; color: var(--accent); }
@media (max-width: 720px) { .bottombar { display: flex; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
