/* Site additions: smooth scroll, How It Works, legal pages, WhatsApp button */
html { scroll-behavior: smooth; }
section[id], div[id^="hm-"] { scroll-margin-top: 90px; }

/* ---------- How It Works ---------- */
.practice-steps-section {
  padding: 100px 0 90px;
  background: #fff;
}
.practice-steps-section .section-title { margin-bottom: 55px; }
.practice-steps-section .sub-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tp-theme-1);
  background: rgba(174, 232, 124, .35);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 15px;
}
.practice-steps-section .section-title h2 {
  font-size: 44px;
  line-height: 1.2;
  color: var(--tp-heading-primary);
  margin-bottom: 10px;
}
.practice-steps-section .section-desc { color: var(--tp-grey-1); margin: 0; }
.practice-steps-section .row { row-gap: 30px; }
.practice-step {
  position: relative;
  height: 100%;
  background: #f6f8fc;
  border: 1px solid #e6eaf2;
  border-radius: 20px;
  padding: 50px 30px 35px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.practice-step:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 20px 40px rgba(32, 49, 88, .12);
}
.practice-step .step-number {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: var(--tp-theme-1);
  color: var(--tp-theme-2);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(32, 49, 88, .25);
}
.practice-step h5 { font-size: 22px; margin-bottom: 10px; color: var(--tp-heading-primary); }
.practice-step p { margin: 0; color: var(--tp-grey-1); }
@media (min-width: 992px) {
  .practice-steps-section .col-lg-4:not(:last-child) .practice-step::after {
    content: "";
    position: absolute;
    top: 0;
    right: -32px;
    width: 34px;
    border-top: 2px dashed #c5cde0;
  }
}
@media (max-width: 767px) {
  .practice-steps-section { padding: 70px 0 60px; }
  .practice-steps-section .section-title h2 { font-size: 30px; }
}

/* ---------- Legal pages ---------- */
.legal-banner {
  background: linear-gradient(135deg, #203158, #000229);
  color: #fff;
  text-align: center;
  padding: 190px 0 80px;
}
.legal-banner .sub-title {
  display: inline-block;
  color: var(--tp-theme-2);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-banner h1 { color: #fff; font-size: 48px; margin-bottom: 8px; }
.legal-banner p { color: rgba(255, 255, 255, .75); margin: 0; }
.legal-section { padding: 70px 0 100px; }
.legal-card {
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 15px 40px rgba(32, 49, 88, .07);
}
.legal-card h3 { font-size: 22px; margin: 30px 0 10px; color: var(--tp-theme-1); }
.legal-card h3:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--tp-grey-1); line-height: 1.8; }
.legal-card ul { padding-left: 20px; list-style: disc; }
.legal-card a { color: var(--tp-theme-1); text-decoration: underline; }
@media (max-width: 767px) {
  .legal-banner { padding: 140px 0 50px; }
  .legal-banner h1 { font-size: 32px; }
  .legal-card { padding: 25px 20px; }
}

/* ---------- Footer legal links ---------- */
.tp-copyright__legal { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; }
.tp-copyright__legal a { color: rgba(255, 255, 255, .8); font-size: 14px; }
.tp-copyright__legal a:hover { color: var(--tp-theme-2); }
@media (max-width: 767px) { .tp-copyright__legal { justify-content: flex-start; margin-top: 8px; } }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
  animation: wa-bounce 2.6s ease-in-out infinite;
  transition: transform .25s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.12); animation-play-state: paused; }
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-ripple 2s ease-out infinite;
  z-index: -1;
}
.wa-float::after { animation-delay: 1s; }
.wa-float .wa-tip {
  position: absolute;
  left: 72px;
  white-space: nowrap;
  background: #fff;
  color: #1d2b3a;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: all .25s ease;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }
@keyframes wa-ripple {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes wa-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@media (max-width: 575px) {
  .wa-float { width: 54px; height: 54px; font-size: 28px; left: 14px; bottom: 16px; }
  .wa-float .wa-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before, .wa-float::after { animation: none; }
}

/* ---------- Equal-height test series cards ---------- */
.portfolio-area .row > [class*="col-"] { display: flex; }
.portfolio-area .inner-project-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.portfolio-area .inner-project-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.portfolio-area .inner-project-content > p { flex-grow: 1; }
.portfolio-area .inner-project-content .tp-about__btn { margin-top: auto !important; }

/* ---------- Inner pages (test series detail, about, legal, 404) ---------- */
.cg-inner .header-top__area { background-color: #fff; margin-bottom: 10px; }
.cg-inner .header-bottom__area { background-color: #fff; border-radius: 25px; }

.cg-page-hero {
	background: #020327;
	color: #fff;
	padding: 200px 0 70px;
	position: relative;
}
.cg-page-hero .cg-crumbs { font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.7); }
.cg-page-hero .cg-crumbs a { color: rgba(255,255,255,.85); }
.cg-page-hero .cg-crumbs a:hover { color: #fff; text-decoration: underline; }
.cg-page-hero h1 { color: #fff; font-size: 44px; font-weight: 600; line-height: 1.2; margin: 10px 0; }
.cg-page-hero p { color: rgba(255,255,255,.8); }
.cg-page-hero .cg-hero-meta { color: rgba(255,255,255,.8); font-size: 15px; }
.cg-page-hero .cg-hero-price del { color: rgba(255,255,255,.55); }
.cg-page-hero .cg-hero-price strong { color: #5FC33B; font-size: 28px; margin-left: 10px; }
@media (max-width: 767px) {
	.cg-page-hero { padding: 130px 0 50px; }
	.cg-page-hero h1 { font-size: 30px; }
}

.cg-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.14); color: #fff; margin-right: 6px; }
.cg-tag.is-paid { background: #FF7A41; }
.cg-tag.is-free { background: #21B641; }

.cg-btn, .cg-btn-outline {
	display: inline-flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 30px; border-radius: 30px; border: 2px solid #203158;
	font-size: 15px; font-weight: 600; cursor: pointer; transition: .3s;
	background: #203158; color: #fff; text-decoration: none;
}
.cg-btn:hover { background: #FF7A41; border-color: #FF7A41; color: #fff; }
.cg-btn-outline { background: transparent; color: #203158; }
.cg-btn-outline:hover { background: #203158; color: #fff; }
.cg-page-hero .cg-btn { background: #FF7A41; border-color: #FF7A41; }
.cg-page-hero .cg-btn:hover { background: #fff; border-color: #fff; color: #203158; }
.cg-page-hero .cg-btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cg-page-hero .cg-btn-outline:hover { background: #fff; color: #203158; border-color: #fff; }
.cg-btn:disabled { opacity: .7; cursor: wait; }

.cg-section { padding: 70px 0; }
.cg-tabs { border-bottom: 2px solid #e6e8f0; margin-bottom: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.cg-tabs .nav-link { border: 0; background: none; font-weight: 600; font-size: 16px; color: #5c6480; padding: 12px 22px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.cg-tabs .nav-link.active { color: #203158; border-bottom-color: #FF7A41; background: none; }
.cg-info-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; padding: 22px 26px; box-shadow: 0 10px 30px rgba(32,49,88,.06); }
.cg-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0f6; font-size: 15px; }
.cg-info-row:last-child { border-bottom: 0; }
.cg-info-row span:first-child { color: #6b7391; }
.cg-info-row span:last-child { font-weight: 600; color: #203158; text-align: right; }
.cg-test-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; padding: 26px; height: 100%; display: flex; flex-direction: column; transition: .3s; }
.cg-test-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(32,49,88,.12); }
.cg-test-card h5 { font-weight: 700; color: #203158; margin-bottom: 10px; }
.cg-test-card p { flex-grow: 1; color: #6b7391; font-size: 14px; }
.cg-test-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #6b7391; margin: 12px 0 18px; }
.cg-test-meta i { color: #FF7A41; margin-right: 4px; }
.cg-prose { color: #4b5372; line-height: 1.8; }
.cg-prose h1, .cg-prose h2, .cg-prose h3, .cg-prose h4 { color: #203158; margin: 26px 0 12px; }
.cg-prose ul { padding-left: 20px; list-style: disc; }
.cg-alert { border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; font-size: 15px; }
.cg-alert.alert-success { background: #e8f8ec; color: #1b6b32; }
.cg-alert.alert-danger, .cg-alert.alert-error { background: #fdeaea; color: #8a1f1f; }
.cg-alert.alert-warning { background: #fff5e0; color: #7a5200; }
.cg-alert.alert-info { background: #e8f1fd; color: #1f4a8a; }
.cg-cta-band { background: #203158; border-radius: 24px; padding: 56px 30px; color: #fff; text-align: center; }
.cg-cta-band h2 { color: #fff; margin-bottom: 10px; }
.cg-cta-band p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.cg-cta-band .cg-btn { background: #FF7A41; border-color: #FF7A41; }
.cg-cta-band .cg-btn:hover { background: #fff; color: #203158; border-color: #fff; }

/* ---------- Auth pages ---------- */
.cg-auth-card { max-width: 520px; width: 100%; padding: 30px 20px; }
.cg-auth-card .logimg img { max-height: 60px; width: auto; }
.cg-auth-card h3 { color: #203158; font-size: 30px; }
.cg-auth-card .form-label { font-weight: 600; color: #203158; font-size: 14px; }
.cg-auth-card .input-group-text { background: #f4f6fb; border-color: #dfe3ee; color: #6b7391; }
.cg-auth-card .form-control { border-color: #dfe3ee; height: 52px; font-size: 15px; }
.cg-auth-card .form-control:focus { border-color: #203158; box-shadow: none; }
.cg-auth-card .password-toggle { cursor: pointer; }
.cg-auth-card .alert { border-radius: 12px; font-size: 14px; }
.cg-auth-card .cg-btn { height: 52px; }
.cg-link { color: #203158; font-weight: 600; }
.cg-link:hover { color: #FF7A41; }
.cg-link-btn { background: none; border: 0; padding: 0; color: #FF7A41; font-weight: 600; cursor: pointer; }
.cg-link-btn:hover { text-decoration: underline; }

/* Equal-height cards in the home page grids */
#hm-categories .row > [class*="col-"],
#hm-test-series .row > [class*="col-"] { display: flex; }
#hm-categories .tp-service__item,
#hm-categories .tp-service__dashboard { width: 100%; height: calc(100% - 30px); margin-bottom: 30px; }
#hm-test-series .inner-project-item { width: 100%; display: flex; flex-direction: column; }
#hm-test-series .inner-project-content { flex: 1; display: flex; flex-direction: column; }
#hm-test-series .inner-project-content .tp-about__btn { margin-top: auto !important; }

/* Interactive icon visual on the test series cards */
.cg-series-visual {
	position: relative; height: 190px; border-radius: 20px; margin-bottom: 30px; overflow: hidden;
	display: grid; place-items: center; perspective: 600px;
	background: linear-gradient(135deg, var(--a), var(--b)); background-size: 160% 160%;
	box-shadow: 0 18px 32px var(--g), inset 0 1px 0 rgba(255,255,255,.35);
	transition: background-position .8s, box-shadow .4s, transform .4s;
}
.cg-series-visual .inner-project-brand { position: absolute; top: -5px; right: -5px; left: auto; bottom: auto; z-index: 3; }
.cg-series-icon {
	position: relative; z-index: 2; width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
	font-size: 48px; color: #fff; background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
	box-shadow: 0 22px 34px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 14px rgba(0,0,0,.12);
	animation: cgIconFloat 3.6s ease-in-out infinite; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.cg-series-icon i { filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transition: transform .5s; }
.cg-ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); animation: cgSpin 18s linear infinite; }
.cg-spark { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); animation: cgTwinkle 2.8s ease-in-out infinite; }
.cg-spark-1 { width: 14px; height: 14px; left: 18%; top: 24%; }
.cg-spark-2 { width: 9px; height: 9px; right: 24%; bottom: 22%; animation-delay: -1s; }
.cg-spark-3 { width: 18px; height: 18px; left: 26%; bottom: 16%; animation-delay: -1.8s; opacity: .6; }
.inner-project-item:hover .cg-series-visual { background-position: 100% 100%; transform: translateY(-4px); }
.inner-project-item:hover .cg-series-icon { transform: rotateY(180deg) scale(1.12); animation-play-state: paused; }
.inner-project-item:hover .cg-series-icon i { transform: rotateY(180deg); }
.inner-project-item:hover .cg-ring { animation-duration: 6s; border-color: rgba(255,255,255,.75); }
.cg-v1 { --a: #4b2fd6; --b: #8a6dff; --g: rgba(91,60,230,.35); }
.cg-v2 { --a: #ff7a41; --b: #ffb066; --g: rgba(255,122,65,.35); }
.cg-v3 { --a: #12a870; --b: #45dba8; --g: rgba(18,168,112,.33); }
.cg-v4 { --a: #1f6bff; --b: #56b0ff; --g: rgba(31,107,255,.33); }
@keyframes cgIconFloat { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-9px) rotateX(8deg); } }
@keyframes cgSpin { to { transform: rotate(360deg); } }
@keyframes cgTwinkle { 0%,100% { transform: scale(.6); opacity: .3; } 50% { transform: scale(1.2); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cg-series-icon, .cg-ring, .cg-spark { animation: none; } }
