/* ============================================================
   Search Engine Sonic — Child Theme Stylesheet
   File: css/ses-theme.css
   Converted from: styles.css (plain HTML site)

   Changes from the original:
   - Removed Google Fonts @import (handled by wp_enqueue_style in functions.php)
   - Scoped .site-header overrides to not conflict with Astra's .ast-header
   - Added .ses-* prefixed wrappers for Elementor widget sections
   - Added WordPress-specific utility classes (.wp-block-*, .entry-*)
   - Body font & color vars hook into Astra's customizer via :root overrides
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --background:        #ffffff;
  --surface:           #f7f8fb;
  --surface-muted:     #eef0f5;
  --ink:               #0f172a;
  --ink-soft:          #5a6478;
  --brand:             #2563eb;
  --brand-soft:        #eef2ff;
  --brand-foreground:  #ffffff;
  --border:            #e6e8ee;
  --card:              #ffffff;
  --shadow-card:       0 10px 40px -20px rgba(37,99,235,.35);
  --shadow-hero:       0 30px 80px -30px rgba(37,99,235,.35);
  --radius:            14px;
  --radius-lg:         20px;
  --radius-xl:         28px;
  --font-sans:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display:      "Manrope", "Inter", system-ui, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

p  { margin: 0; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ─── Layout Container ───────────────────────────────────── */
/* Works alongside Astra's .ast-container */
.ses-container,
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .ses-container,
  .container { padding: 0 32px; }
}

/* ─── Utility ────────────────────────────────────────────── */
.text-brand { color: var(--brand); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm  { height: 36px; padding: 0 16px; }
.btn-lg  { height: 48px; padding: 0 24px; }
.btn-primary { background: var(--brand); color: var(--brand-foreground); }
.btn-primary:hover { background: #1d4fd8; }
.btn-outline { background: var(--background); color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: #9aa1ad; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--background);
  transition: all .2s;
}
.icon-btn:hover { color: var(--ink); border-color: #9aa1ad; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.ic-brand { color: var(--brand); }

.link-arrow { font-size: 14px; font-weight: 500; color: var(--brand);text-decoration: none !important; }
.link-arrow:hover { text-decoration: none; }

/* 11 jun 2026*/ 
.link-arrow,
.link-arrow:link,
.link-arrow:visited,
.link-arrow:hover,
.link-arrow:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* ─── Site Header ────────────────────────────────────────── */
/*
  NOTE: In WordPress the header is rendered by Astra's template.
  This .site-header block styles a CUSTOM header added via
  the Elementor Header & Footer builder — OR you can use Astra's
  Header Builder in Customizer and skip this block entirely.
  These styles are kept so the Elementor Header widget works as-is.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }

.primary-nav { display: none; gap: 32px; font-size: 14px; }
.primary-nav a { color: var(--ink-soft); transition: color .2s; }
.primary-nav a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: inline-grid; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav a {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 1px solid var(--surface-muted);
}
.mobile-nav.open { display: flex; }

@media (min-width: 768px) {
  .primary-nav   { display: flex; }
  .mobile-toggle { display: none; }
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.grid-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(37,99,235,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 75%);
          mask-image: radial-gradient(ellipse at top, black 40%, transparent 75%);
}
.hero-inner {
  position: relative;
  padding: 64px 20px 80px;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    padding: 96px 32px 112px;
  }
}
.hero-copy h1 {
  margin-top: 24px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  
}
.hero-copy .lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.stars { display: inline-flex; gap: 2px; color: var(--brand); font-size: 14px; }

.hero-image { position: relative; }
.hero-glow {
  position: absolute;
  inset: -24px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand-soft), transparent);
  filter: blur(40px);
}
.hero-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-hero);
}
.hero-frame img { border-radius: 14px; }

/* ─── Generic Sections ───────────────────────────────────── */
.section { padding: 80px 20px; }
@media (min-width: 768px) { .section { padding: 80px 32px; } }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; }
}
.section-head.single { display: block; max-width: 640px; }

.eyebrow { font-size: 14px; font-weight: 500; color: var(--brand); margin: 0; }
.section-head h2,
.newsletter h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; margin-top: 8px; }
.section-head .sub,
.newsletter p  { margin-top: 12px; color: var(--ink-soft); max-width: 640px;  }

/* 11 jun 2026*/
.newsletter p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Topic Cards (4-up grid) ────────────────────────────── */
.grid-4 {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.topic-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  transition: all .2s;
}
.topic-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-card);
}
.topic-icon {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.topic-card h3 { margin-top: 20px; font-size: 16px; font-weight: 600; }
.topic-card p  { margin-top: 8px; font-size: 14px; line-height: 1.6; }

/*11 jun2026*/


.topic-card,
.topic-card *,
.topic-card:hover,
.topic-card:hover * {
    text-decoration: none !important;
}

/* ─── Featured Band ──────────────────────────────────────── */
.band     { background: rgba(247,248,251,.6); border-top: 1px solid var(--border); }
.band-y   { border-bottom: 1px solid var(--border); }

.featured-grid {
  margin-top: 40px;
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) { .featured-grid { grid-template-columns: 1.4fr 1fr; } }

.feat-hero {
  display: block;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow .3s;
}
.feat-hero:hover { box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); }

.feat-img { aspect-ratio: 16/10; background: var(--surface-muted); overflow: hidden; }
.feat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.feat-hero:hover .feat-img img { transform: scale(1.02); }

.feat-body   { padding: 32px; }
.tag         { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.tag-text    { font-size: 12px; font-weight: 500; color: var(--brand); }
.feat-body h3{ margin-top: 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
.feat-body p { margin-top: 12px; color: var(--ink-soft); }
.meta        { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.dot         { height: 4px; width: 4px; border-radius: 999px; background: var(--border); }

.feat-list { display: grid; gap: 24px; }
.feat-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  border-radius: 12px;
  padding: 8px;
  transition: background .2s;
}
.feat-item:hover { background: #fff; }
.feat-thumb { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--surface-muted); }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-item h4 { margin: 6px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; transition: color .2s; }
.feat-item:hover h4 { color: var(--brand); }

/* ─── Learning Paths (2-up grid) ─────────────────────────── */
.grid-2 { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.path-card { border: 1px solid var(--border); background: var(--card); border-radius: 20px; padding: 32px; }
.path-head { display: flex; align-items: flex-start; gap: 16px; }
.path-icon {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  flex: none;
}
.path-head h3 { font-size: 18px; font-weight: 600; }
.path-head p  { margin-top: 6px; font-size: 14px; }

.steps { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.steps li span {
  display: grid;
  place-items: center;
  height: 24px;
  width: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  flex: none;
}

/* ─── Trust / Stats ──────────────────────────────────────── */
.trust-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.checks { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink); }
.checks li svg { color: var(--brand); flex: none; margin-top: 2px; }

.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.stat { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 24px; }
.stat .k { font-size: 30px; font-weight: 600; color: var(--brand); font-family: var(--font-display); }
.stat .v { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;

}
@media (min-width: 768px) { .newsletter { padding: 56px; } }

.newsletter-form {
  margin: 24px auto 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }

.newsletter-form input {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0 20px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form button { height: 48px; padding: 0 24px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 96px;
}
.footer-inner { padding: 64px 20px 24px; }
@media (min-width: 768px) { .footer-inner { padding: 64px 32px 24px; } }

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 360px; line-height: 1.6; }
.social { margin-top: 24px; display: flex; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: all .2s;
}
.social a:hover { color: var(--brand); border-color: rgba(37,99,235,.3); }

.site-footer h4 { font-size: 14px; font-weight: 600; }
.site-footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.site-footer ul a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.site-footer ul a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ─── WordPress / Astra Compatibility Patches ────────────── */

/* Astra adds padding to its main content area — remove on Elementor canvas pages */
.elementor-page .ast-article-post { padding: 0; }
.elementor-page #content            { padding: 0; }

/* Ensure Astra's header builder bar does not fight the sticky header */
#ast-fixed-header { z-index: 100; }

/* WordPress adds .wp-block-* wrappers inside Gutenberg content */
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.25rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }