/* ===== Riya Course — Shared Stylesheet ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Account menu / avatar dropdown ===== */
.user-menu { position: relative; display: flex; align-items: center; }

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.avatar-initial { font-weight: 700; font-size: 1rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 10px;
  z-index: 200;
}

.dropdown-menu.open { display: block; }

.dropdown-head {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.dropdown-head strong { font-size: 0.95rem; }
.dropdown-head span { font-size: 0.8rem; color: var(--text-muted); }

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.dropdown-menu a:hover { background: var(--bg-alt); }
.dropdown-menu a.danger { color: #dc2626; }

@media (max-width: 800px) {
  .user-menu { margin: 14px 24px; }
  .dropdown-menu { right: auto; left: 0; }
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-dark);
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 14px 24px; display: inline-block; }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 72px 24px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 18px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}

.hero-stats .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-card h3 { margin-top: 0; }

.hero-card ul { padding-left: 20px; margin: 16px 0; color: var(--text-muted); }
.hero-card li { margin-bottom: 8px; }

/* ===== Sections ===== */
section { padding: 64px 24px; }

.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ===== Cards / Grids ===== */
.grid {
  display: grid;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 12px;
}

.price-tag { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.price-tag span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }

/* ===== Testimonials ===== */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial p { color: var(--text-dark); font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.who .name { font-weight: 700; font-size: 0.9rem; }
.who .role { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2 { margin: 0 0 12px; }
.cta-band p { opacity: 0.9; margin: 0 0 26px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: #f1f5f9; }

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea { resize: vertical; min-height: 120px; }

/* ===== Contact info cards ===== */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 700px) { .contact-info { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }

.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }

.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.social-row a:hover { background: rgba(255,255,255,0.14); }

/* ===== Hero illustration ===== */
.hero-illustration { width: 100%; max-width: 380px; margin: 0 auto; display: block; }

/* ===== Category filter bar ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-bar select {
  max-width: 260px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Animated CTA (section 4 style) ===== */
.animated-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.animated-cta .float-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: float 6s ease-in-out infinite;
}
.animated-cta .shape-1 { width: 120px; height: 120px; top: -30px; left: 8%; }
.animated-cta .shape-2 { width: 80px; height: 80px; bottom: -20px; right: 12%; animation-delay: 1.5s; }
.animated-cta .shape-3 { width: 50px; height: 50px; top: 40%; right: 30%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.animated-cta .content { position: relative; z-index: 2; }
.animated-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.animated-cta p { opacity: 0.9; margin-bottom: 26px; }
.animated-cta .btn-primary { background: #fff; color: var(--primary); }
.animated-cta .btn-primary:hover { background: #f1f5f9; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Progress bar (dashboard) ===== */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 4px;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ===== Device session list (profile) ===== */
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.device-row .device-info { color: var(--text-muted); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Page header (inner pages) ===== */
.page-hero {
  background: var(--primary-light);
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 10px; font-size: 2.2rem; }
.page-hero p { color: var(--text-muted); margin: 0; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); }

/* ===== Misc ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--text-muted); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.map-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}
.map-box iframe { width: 100%; height: 100%; border: 0; }
