/*
Theme Name: LearnPro WordPress
Theme URI: https://learnpro.in/
Author: LearnPro
Description: High-quality WordPress port of the LearnPro civil services publishing and coaching site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Text Domain: learnpro
*/

:root {
  --lp-ink: #151922;
  --lp-muted: #667085;
  --lp-line: #e4e7ec;
  --lp-soft: #f5f7fa;
  --lp-paper: #ffffff;
  --lp-navy: #14283d;
  --lp-orange: #f97316;
  --lp-gold: #d89b25;
  --lp-teal: #14a48f;
  --lp-rose: #e94f77;
  --lp-violet: #6d5df5;
  --lp-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--lp-ink);
  background: #fbfcfd;
  font-family: Inter, "Noto Sans Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lp-container {
  width: min(var(--lp-max), calc(100% - 32px));
  margin: 0 auto;
}

.lp-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--lp-line);
  backdrop-filter: blur(12px);
}

.lp-header-main {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.lp-brand img {
  width: 44px;
  height: 44px;
}

.lp-brand-name {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.lp-brand-name span {
  color: var(--lp-orange);
}

.lp-brand-kicker {
  display: block;
  width: max-content;
  margin-top: 4px;
  border: 1px solid #cfd5df;
  padding: 1px 5px;
  color: var(--lp-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

ul.lp-nav,
.lp-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-nav a,
.lp-nav .menu-item a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 11px;
  color: #344054;
}

.lp-nav a:hover,
.lp-nav .current-menu-item > a {
  background: #eef4ff;
  color: var(--lp-navy);
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--lp-navy);
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lp-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 40, 61, .18);
}

.lp-button.is-orange {
  background: var(--lp-orange);
}

.lp-button.is-outline {
  border-color: var(--lp-navy);
  background: transparent;
  color: var(--lp-navy);
}

.lp-hero-band {
  border-bottom: 1px solid var(--lp-line);
  background: linear-gradient(180deg, #f3f5f8 0%, #fff 100%);
  padding: 24px 0 32px;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(0, 1.6fr);
  gap: 18px;
}

.lp-channel-card,
.lp-hero-panel,
.lp-info-panel,
.lp-card,
.lp-testimonial {
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: var(--lp-paper);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.lp-channel-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
}

.lp-channel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lp-channel-bg);
  background-position: center;
  background-size: cover;
  opacity: .36;
}

.lp-channel-card > * {
  position: relative;
}

.lp-channel-card img {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
}

.lp-channel-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.lp-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: stretch;
  background: #14283d;
  color: #fff;
}

.lp-hero-copy {
  padding: 34px;
}

.lp-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  padding: 6px 10px;
  color: #ffe1bd;
  font-size: 12px;
  font-weight: 900;
}

.lp-hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.lp-hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #d9e3f0;
  font-size: 18px;
}

.lp-hero-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 24px 0;
  background: #f4a742;
}

.lp-hero-media img {
  max-height: 310px;
  object-fit: contain;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lp-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.lp-panel-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  font-weight: 900;
}

.lp-panel-head.is-teal { background: var(--lp-teal); }
.lp-panel-head.is-violet { background: var(--lp-violet); }
.lp-panel-head.is-rose { background: var(--lp-rose); }

.lp-info-panel-body {
  padding: 18px;
}

.lp-list-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-list-links li + li {
  border-top: 1px solid var(--lp-line);
}

.lp-list-links a {
  display: block;
  padding: 14px 18px;
}

.lp-list-links strong {
  display: block;
  line-height: 1.35;
}

.lp-list-links span,
.lp-card-kicker {
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lp-section {
  padding: 54px 0;
}

.lp-section.is-soft {
  background: var(--lp-soft);
}

.lp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.lp-section-head h2,
.lp-archive-title,
.lp-entry-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.lp-section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--lp-muted);
}

.learnpro-card-grid,
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lp-card,
.learnpro-card {
  overflow: hidden;
}

.lp-card-image,
.learnpro-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e8eef5;
}

.lp-card-image img,
.learnpro-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-card-body,
.learnpro-card-body {
  padding: 18px;
}

.lp-card h3,
.learnpro-card h3 {
  margin: 6px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lp-card p,
.learnpro-card p {
  margin: 0;
  color: var(--lp-muted);
}

.lp-entry-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 42px 0 64px;
}

.lp-entry {
  min-width: 0;
}

.lp-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 24px;
  color: var(--lp-muted);
  font-size: 14px;
  font-weight: 700;
}

.lp-entry-content {
  max-width: 820px;
  font-size: 18px;
}

.lp-entry-content h2 {
  margin-top: 34px;
  font-size: 30px;
  line-height: 1.18;
}

.lp-entry-content h3 {
  margin-top: 28px;
  font-size: 23px;
  line-height: 1.24;
}

.lp-entry-content p,
.lp-entry-content li {
  color: #2f3947;
}

.lp-entry-content blockquote {
  margin: 24px 0;
  border-left: 4px solid var(--lp-orange);
  background: #fff7ed;
  padding: 18px 20px;
  font-weight: 700;
}

.lp-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.lp-entry-content th,
.lp-entry-content td {
  border: 1px solid var(--lp-line);
  padding: 10px;
  text-align: left;
}

.lp-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.lp-sidebar-box {
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.lp-sidebar-box + .lp-sidebar-box {
  margin-top: 14px;
}

.lp-footer {
  background: #101820;
  color: #d8e2ed;
  padding: 44px 0 28px;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.lp-footer h3,
.lp-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.lp-footer a {
  display: block;
  margin: 7px 0;
  color: #b9c7d6;
}

.lp-footer-bottom {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  color: #9aa8b7;
  font-size: 14px;
}

.learnpro-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.learnpro-testimonial {
  padding: 20px;
}

.learnpro-stars {
  color: #f59e0b;
}

.learnpro-chip,
.lp-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #eef4ff;
  padding: 5px 10px;
  color: var(--lp-navy);
  font-size: 12px;
  font-weight: 900;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 980px) {
  .lp-header-main,
  .lp-nav,
  .lp-header-actions {
    flex-wrap: wrap;
  }

  .lp-hero-grid,
  .lp-hero-panel,
  .lp-entry-wrap,
  .lp-footer-grid {
    grid-template-columns: 1fr;
  }

  .lp-portal-grid,
  .learnpro-card-grid,
  .lp-card-grid,
  .learnpro-testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .lp-container {
    width: min(100% - 22px, var(--lp-max));
  }

  .lp-nav {
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 8px;
  }

  .lp-header-actions {
    width: 100%;
  }

  .lp-header-actions .lp-button {
    flex: 1;
  }

  .lp-portal-grid,
  .learnpro-card-grid,
  .lp-card-grid,
  .learnpro-testimonials {
    grid-template-columns: 1fr;
  }

  .lp-hero-copy {
    padding: 24px;
  }

  .lp-section-head {
    display: block;
  }
}
