/*
 Theme Name:   SchoolWali GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  SchoolWali curriculum discovery and worksheet platform theme
 Author:       SchoolWali
 Template:     generatepress
 Version:      1.0
*/


/* =========================================================
   LEARNOXY UNIVERSAL DESIGN SYSTEM
   Modern Educational Platform UI
   ========================================================= */

:root {

  /* BRAND COLORS */
  --lw-orange: #FF5A1F;
  --lw-blue: #1677FF;
  --lw-green: #00C875;
  --lw-purple: #6C4DFF;

  /* NEUTRALS */
  --lw-bg: #F7F8FA;
  --lw-surface: #FFFFFF;
  --lw-border: #E8ECF2;

  --lw-text: #111827;
  --lw-text-light: #6B7280;

  /* RADIUS */
  --lw-radius-sm: 6px;
  --lw-radius-md: 10px;
  --lw-radius-lg: 12px;

  /* SHADOWS */
  --lw-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --lw-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);

  /* TYPOGRAPHY */
  --lw-font-heading: 'Plus Jakarta Sans', sans-serif;
  --lw-font-body: 'Inter', sans-serif;

  /* SPACING */
  --lw-space-1: 6px;
  --lw-space-2: 12px;
  --lw-space-3: 16px;
  --lw-space-4: 20px;
  --lw-space-5: 24px;
  --lw-space-6: 32px;
  --lw-space-7: 48px;
  --lw-space-8: 72px;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--lw-bg);
  color: var(--lw-text);
  font-family: var(--lw-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--lw-text);
  font-family: var(--lw-font-heading);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

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

/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.learnoxy-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  padding-top: 48px;
  padding-bottom: 80px;
}

.learnoxy-section {
  margin-bottom: 72px;
}

/* =========================================================
   UNIVERSAL GRID SYSTEM
   ========================================================= */

.learnoxy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

/* =========================================================
   UNIVERSAL SECTION HEADER
   ========================================================= */

.lw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.lw-section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
}

.lw-section-link {
  color: var(--lw-blue);
  font-size: 15px;
  font-weight: 700;
}

/* =========================================================
   UNIVERSAL WORKSHEET CARD
   ========================================================= */

.lw-card {
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
  box-shadow: var(--lw-shadow-sm);
  transition: all 0.25s ease;
}

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

/* =========================================================
   CARD THUMBNAIL
   ========================================================= */

.lw-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--lw-border);
}

.lw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lw-card:hover .lw-card-thumb img {
  transform: scale(1.03);
}

/* =========================================================
   CARD BODY
   ========================================================= */

.lw-card-body {
  padding: 22px;
}

/* =========================================================
   CHIP SYSTEM
   ========================================================= */

.lw-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.lw-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lw-chip-grade {
  background: rgba(22, 119, 255, 0.08);
  color: var(--lw-blue);
}

.lw-chip-subject {
  background: rgba(0, 200, 117, 0.08);
  color: var(--lw-green);
}

.lw-chip-activity {
  background: rgba(108, 77, 255, 0.08);
  color: var(--lw-purple);
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.lw-card-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 12px;
}

.lw-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--lw-text-light);
  margin-bottom: 20px;
}

/* =========================================================
   META ROW
   ========================================================= */

.lw-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--lw-border);
  border-radius: 10px;
  background: #FAFBFC;
  margin-bottom: 22px;
}

.lw-card-meta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--lw-text-light);
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.lw-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lw-btn {
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lw-btn-preview {
  background: #fff;
  border: 1px solid var(--lw-border);
  color: var(--lw-blue);
}

.lw-btn-preview:hover {
  border-color: var(--lw-blue);
}

.lw-btn-download {
  background: var(--lw-orange);
  color: #fff;
}

.lw-btn-download:hover {
  transform: translateY(-2px);
}

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */

.lw-archive-header {
  margin-bottom: 48px;
}

.lw-archive-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 18px;
}

.lw-archive-description {
  max-width: 760px;
  color: var(--lw-text-light);
  font-size: 18px;
}

/* =========================================================
   TAXONOMY CHIP BAR
   ========================================================= */

.lw-taxonomy-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lw-taxonomy-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--lw-border);
  background: #fff;
  color: var(--lw-text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lw-taxonomy-bar a:hover {
  border-color: var(--lw-blue);
  color: var(--lw-blue);
}


/* =========================================================
   SINGLE HERO LAYOUT
========================================================= */

.lw-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.lw-single-main {
    min-width: 0;
}

.lw-download-panel {
    position: sticky;
    top: 100px;

    align-self: start;
}



/* =========================================================
   SINGLE PREVIEW
   ========================================================= */

.lw-single-preview {
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--lw-shadow-sm);
}

.lw-single-preview img {
  width: 100%;
}

/* =========================================================
   DOWNLOAD PANEL
   ========================================================= */

.lw-download-panel {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--lw-shadow-sm);
}

/* =========================================================
   RESPONSIVE SYSTEM
   ========================================================= */

@media (max-width: 1200px) {

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

@media (max-width: 992px) {

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

  .lw-single-hero {
    grid-template-columns: 1fr;
  }

  .lw-archive-title {
    font-size: 42px;
  }

  .lw-section-title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {

  .learnoxy-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .learnoxy-grid {
    grid-template-columns: 1fr;
  }

  .lw-card-body {
    padding: 18px;
  }

  .lw-card-title {
    font-size: 22px;
  }

  .lw-card-actions {
    grid-template-columns: 1fr;
  }

  .lw-archive-title {
    font-size: 34px;
  }

  .lw-section-title {
    font-size: 26px;
  }
}
