/* ============================================================
   Autism Parenting Center — style.css
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3748;
  background: #f7f9fc;
  line-height: 1.6;
}

/* --- Navigation --- */
nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a8abf;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: #4a8abf; }

.lang-toggle {
  background: #4a8abf;
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-toggle:hover { background: #3a79ae; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

/* --- Dropdown Nav --- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  cursor: pointer;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.72rem;
  display: inline-block;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: #4a8abf; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  list-style: none;
  min-width: 190px;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active { background: #f0f7ff; color: #4a8abf; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #4a8abf 0%, #6daf7e 100%);
  color: #fff;
  padding: 5.5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  opacity: 0.93;
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: #4a8abf;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #4a8abf 0%, #6daf7e 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.page-header p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-top: 0.6rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Home Cards --- */
.cards-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  font-size: 1.8rem;
  color: #4a8abf;
  margin-bottom: 0.4rem;
}

.section-intro p { color: #666; font-size: 1rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  display: block;
  border-top: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card.card-books      { border-top-color: #4a8abf; }
.card.card-stories    { border-top-color: #6daf7e; }
.card.card-contact    { border-top-color: #f4a94e; }
.card.card-iep        { border-top-color: #9b7fd4; }
.card.card-directory   { border-top-color: #50b8c1; }
.card.card-blog        { border-top-color: #6daf7e; }
.card.card-articles    { border-top-color: #f4a94e; }
.card.card-worksheets  { border-top-color: #9b7fd4; }

/* --- Card Groups (Homepage) --- */
.card-group { margin-bottom: 2.5rem; }

.card-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a8abf;
  margin-bottom: 1.1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8f0f8;
}

.cards-grid-sm  { max-width: 360px; }
.cards-grid-md  { max-width: 720px; }

.card-icon { font-size: 2.8rem; margin-bottom: 1rem; }

.card h3 {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

.card-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: #4a8abf;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Books Page --- */
.books-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.category-title {
  font-size: 1.6rem;
  color: #4a8abf;
  margin-bottom: 0.4rem;
}

.category-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.books-section-header {
  margin-bottom: 2rem;
}

.books-section-title {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.4rem;
}

.books-section-desc {
  color: #666;
  font-size: 1rem;
  max-width: 700px;
}

.affiliate-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid #e8f0f8;
}

.affiliate-section-header .books-section-title {
  color: #3d7a4f;
}

.affiliate-section-header .books-section-desc {
  margin: 0 auto;
}

.affiliate-disclosure {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  margin-top: 0.6rem;
}

.btn-affiliate {
  background: #6daf7e !important;
}

.btn-affiliate:hover {
  background: #5a9868 !important;
}

.book-cover-placeholder-wrap {
  min-height: 180px;
}

.affiliate-author-title {
  color: #3d7a4f;
  margin-top: 1.5rem;
}

.affiliate-card {
  border-top: 3px solid #6daf7e;
}

.books-divider {
  border: none;
  border-top: 2px solid #e8f0f8;
  margin: 3rem 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.75rem;
}

.book-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.book-cover-wrap {
  width: 100%;
  background: #e8f0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.book-cover-placeholder {
  font-size: 0.8rem;
  color: #7a9cc0;
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.book-info {
  padding: 0.9rem 1rem 1.1rem;
  text-align: center;
}

.book-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.btn-amazon {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-amazon:hover { background: #e68a00; }

/* --- Tool Intro --- */
.tool-intro {
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- How It Works --- */
.how-it-works {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.how-it-works h2 {
  font-size: 1.5rem;
  color: #4a8abf;
  margin-bottom: 0.5rem;
  text-align: center;
}

.how-intro {
  text-align: center;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.how-step {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem 1.1rem;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  text-align: center;
  position: relative;
}

.how-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.how-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a8abf;
  margin-bottom: 0;
}

.how-step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4a8abf;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.how-step h3 {
  font-size: 0.95rem;
  color: #2d3748;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.how-step p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.55;
}

.how-result {
  background: #e8f4ee;
  border: 1px solid #6daf7e;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #3d5a45;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.how-result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

/* --- Social Story Creator --- */
.story-container {
  max-width: 680px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.story-progress {
  background: #e8f4ee;
  border: 1px solid #6daf7e;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #3d7a50;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.story-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.story-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.step-badge {
  background: #4a8abf;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.story-card-header h2 {
  font-size: 1.25rem;
  color: #2d3748;
}

/* Upload zone */
.upload-zone {
  border: 3px dashed #b8d4ee;
  border-radius: 12px;
  padding: 1.75rem 1rem;
  text-align: center;
  background: #f8fbff;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.25rem;
}

.upload-zone.dragover {
  border-color: #4a8abf;
  background: #edf5ff;
}

.upload-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.btn-upload, .btn-camera {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-upload { background: #4a8abf; color: #fff; }
.btn-upload:hover { background: #3a79ae; }

.btn-camera { background: #6daf7e; color: #fff; }
.btn-camera:hover { background: #5da06e; }

.upload-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Preview */
.preview-wrap {
  margin-bottom: 1.25rem;
  text-align: center;
  display: none;
}

.preview-wrap img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.change-photo-btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: #4a8abf;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* Caption */
.caption-label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.caption-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #dde8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.caption-input:focus {
  outline: none;
  border-color: #4a8abf;
}

/* Action buttons */
.story-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-continue {
  flex: 1;
  background: #4a8abf;
  color: #fff;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 150px;
}

.btn-continue:hover { background: #3a79ae; }

.btn-finish {
  flex: 1;
  background: #6daf7e;
  color: #fff;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 150px;
}

.btn-finish:hover { background: #5da06e; }

/* Thumbnail strip */
.pages-strip {
  margin-top: 2rem;
  display: none;
}

.pages-strip h4 {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.pages-thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #b8d4ee;
}

/* --- Contact --- */
.about-section {
  max-width: 700px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.about-block {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid #e8f0f8;
}

.about-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.about-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a8abf;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-block p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.contact-section {
  max-width: 640px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #dde8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #4a8abf;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  width: 100%;
  background: #4a8abf;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover { background: #3a79ae; }

.form-success {
  display: none;
  background: #e8f4ee;
  border: 1px solid #6daf7e;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #3d7a50;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* --- Footer --- */
footer {
  background: #2d3748;
  color: #ccc;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

footer a { color: #a0c4e8; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    z-index: 99;
    gap: 0.75rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid #e8f0f8;
    border-radius: 0;
    min-width: unset;
    margin-top: 0.25rem;
  }

  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu  { display: block; }

  .story-actions { flex-direction: column; }

  .contact-card { padding: 1.5rem; }

  .desktop-only { display: none !important; }
}

/* --- Pixabay Library --- */
.btn-library {
  background: #f4a94e;
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-library:hover { background: #e09840; }

.library-panel {
  display: none;
  border: 2px solid #f4e4c8;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fffaf4;
  margin-bottom: 1.25rem;
}

.library-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.library-search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid #dde8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.library-search-input:focus {
  outline: none;
  border-color: #f4a94e;
}

.btn-lib-search {
  background: #f4a94e;
  color: #fff;
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-lib-search:hover { background: #e09840; }

.library-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active {
  background: #f4a94e;
  color: #fff;
}

.library-results {
  max-height: 280px;
  overflow-y: auto;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.library-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}

.library-img:hover {
  border-color: #f4a94e;
  transform: scale(1.04);
}

.library-hint, .library-loading {
  color: #aaa;
  font-size: 0.88rem;
  text-align: center;
  padding: 1.5rem 0;
}

/* ============================================================
   DIRECTORY — Support Organization Directory
   ============================================================ */

.dir-filters-bar {
  background: #fff;
  border-bottom: 1px solid #e8edf3;
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 62px;
  z-index: 90;
}

.dir-filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dir-state-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dir-state-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a5568;
  white-space: nowrap;
}

.dir-state-select {
  padding: 0.5rem 0.85rem;
  border: 1.5px solid #d1d9e0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2d3748;
  background: #f7f9fc;
  cursor: pointer;
  min-width: 180px;
}

.dir-state-select:focus {
  outline: none;
  border-color: #7dbfef;
}

.dir-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dir-cat-btn {
  background: #f0f4f8;
  border: 1.5px solid transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: #4a5568;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dir-cat-btn:hover { background: #e2eaf3; }

.dir-cat-btn.active {
  background: #5a9fd4;
  color: #fff;
  border-color: #5a9fd4;
}

.dir-count {
  font-size: 0.82rem;
  color: #888;
}

.dir-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.dir-results { min-height: 200px; }

.dir-state-group { margin-bottom: 2.5rem; }

.dir-state-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8edf3;
}

.dir-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.dir-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #e8edf3;
  transition: box-shadow 0.2s;
}

.dir-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.dir-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.dir-org-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.dir-desc {
  font-size: 0.87rem;
  color: #5a6a7a;
  line-height: 1.5;
  flex: 1;
}

.dir-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.dir-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a9fd4;
  text-decoration: none;
  transition: color 0.2s;
}

.dir-link:hover { color: #3a7fb4; text-decoration: underline; }

.dir-link-phone { color: #6daf7e; }
.dir-link-phone:hover { color: #4d9060; }

.dir-empty {
  color: #aaa;
  text-align: center;
  padding: 3rem 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .dir-filters-bar { top: 0; position: static; }
  .dir-cards-grid { grid-template-columns: 1fr; }
  .dir-state-select { min-width: 100%; }
  .dir-state-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BLOG — Listing Page
   ============================================================ */

.blog-section {
  max-width: 1000px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.blog-filter-btn {
  background: #f0f4f8;
  border: 1.5px solid transparent;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #4a5568;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.blog-filter-btn:hover { background: #e2eaf3; }

.blog-filter-btn.active {
  background: #4a8abf;
  color: #fff;
  border-color: #4a8abf;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid #4a8abf;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.blog-card-inner {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 0.85rem;
}

.blog-badge-social-stories   { background: #e8f4ee; color: #3d7a4f; }
.blog-badge-autism-basics    { background: #e8f0fb; color: #3a5fa0; }
.blog-badge-tips             { background: #fef3e2; color: #a0620a; }
.blog-badge-special-ed       { background: #f0ebfb; color: #6b3fa0; }

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: #aaa;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a8abf;
}

/* ============================================================
   BLOG — Individual Post
   ============================================================ */

.post-header {
  background: linear-gradient(135deg, #4a8abf 0%, #6daf7e 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-header .blog-badge {
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

.post-container {
  max-width: 760px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
}

.post-back {
  display: inline-block;
  color: #4a8abf;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
}

.post-back:hover { text-decoration: underline; }

.post-back-bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.post-body {
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.45rem;
  color: #4a8abf;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.post-body h3 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.post-body p {
  margin-bottom: 1.1rem;
}

.post-body ul,
.post-body ol {
  margin: 0.75rem 0 1.1rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-cta {
  background: linear-gradient(135deg, #e8f4ee, #e8f0fb);
  border-radius: 16px;
  padding: 2rem 2rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.post-cta h3 {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.post-cta p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.post-cta-btn {
  display: inline-block;
  background: #4a8abf;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.post-cta-btn:hover {
  background: #3a79ae;
  transform: translateY(-2px);
}

.post-callout {
  background: #f0f7ff;
  border-left: 4px solid #4a8abf;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.post-callout h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem;
}

.post-callout > p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.post-callout-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-callout-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.post-callout-item strong {
  display: block;
  font-size: 0.95rem;
  color: #2d3748;
  margin-bottom: 0.3rem;
}

.post-callout-item p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.post-callout-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-callout-btn {
  display: inline-block;
  background: #4a8abf;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.post-callout-btn:hover {
  background: #3a79ae;
}

.post-callout-btn-outline {
  background: transparent;
  color: #4a8abf;
  border: 2px solid #4a8abf;
}

.post-callout-btn-outline:hover {
  background: #4a8abf;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-body h2 { font-size: 1.25rem; }
  .post-cta { padding: 1.5rem; }
}

.post-also {
  margin-top: 2.5rem;
}

.post-also-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.9rem;
}

.post-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
}

.post-also-card {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s, border-color 0.2s;
}

.post-also-card:hover {
  background: #f0f7ff;
  border-color: #4a8abf;
}

.post-also-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a8abf;
}

.post-also-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.35;
}

/* ============================================================
   HOME — About / indexable body copy
   ============================================================ */

.home-about {
  background: #fff;
  border-top: 1px solid #e8f0f8;
  padding: 3rem 1.5rem 3.5rem;
}

.home-about-inner {
  max-width: 760px;
  margin: 0 auto;
}

.home-about-inner h2 {
  font-size: 1.4rem;
  color: #2d3748;
  margin-bottom: 1.1rem;
}

.home-about-inner p {
  color: #555;
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-about-inner p:last-child { margin-bottom: 0; }

.home-about-inner a { color: #4a8abf; font-weight: 600; }

/* ============================================================
   PRINT STYLES — Social Story Creator
   ============================================================ */

.page-social-stories #printArea { display: none; }

@media print {
  /* Hide all screen content on social story page */
  .page-social-stories > *:not(#printArea) { display: none !important; }

  #printArea {
    display: block !important;
    margin: 0;
    padding: 0;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-page {
    width: 8.5in;
    height: 11in;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 0.45in;
    gap: 0.2in;
    page-break-after: always;
    break-after: page;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Last page: don't force a break after */
  .print-page:last-child {
    page-break-after: avoid;
    break-after: avoid;
  }

  .print-panel {
    border: 2px dashed #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 0.12in 0.1in 0.1in;
    position: relative;
  }

} /* end @media print */

/* ── Laminator recommendation ─────────────────────────────── */
.laminator-section {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.laminator-title {
  font-size: 1.5rem;
  color: #4a8abf;
  margin-bottom: 0.5rem;
  text-align: center;
}

.laminator-intro {
  text-align: center;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.laminator-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .laminator-products { grid-template-columns: 1fr; }
}

.laminator-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.laminator-img-wrap {
  width: 100%;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.laminator-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.laminator-info {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.laminator-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.laminator-product-desc {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.9rem;
}

.laminator-btn {
  display: inline-block;
  background: #f4a94e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  align-self: center;
}

.laminator-btn:hover {
  background: #e09030;
}

.laminator-disclaimer {
  font-size: 0.8rem;
  color: #4a5568;
  text-align: center;
  margin-bottom: 1.2rem;
  font-style: italic;
}

@media print {
  .print-panel::before {
    content: '✂ cut';
    position: absolute;
    top: 2px;
    left: 5px;
    font-size: 7pt;
    color: #aaa;
    letter-spacing: 0.04em;
    font-family: sans-serif;
  }

  .print-panel img {
    width: 100%;
    object-fit: contain;
    flex: 1;
    min-height: 0;
  }

  .print-caption {
    text-align: center;
    font-weight: 700;
    width: 100%;
    padding-top: 0.08in;
    line-height: 1.3;
    word-break: break-word;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #111;
  }
}

/* ============================================================
   IEP CHEAT SHEET
   ============================================================ */

.cheat-container {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.cheat-print-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cheat-print-bar p {
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
}

.cheat-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #4a8abf;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.cheat-print-btn:hover { background: #3a7aaf; }

.cheat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 660px) {
  .cheat-grid { grid-template-columns: 1fr; }
}

.cheat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.4rem 1.5rem;
  border-top: 4px solid #4a8abf;
}

.cheat-card.green  { border-top-color: #6daf7e; }
.cheat-card.orange { border-top-color: #f4a94e; }
.cheat-card.full   { grid-column: 1 / -1; }

.cheat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.cheat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cheat-list li {
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.cheat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a8abf;
}

.cheat-card.green  .cheat-list li::before { background: #6daf7e; }
.cheat-card.orange .cheat-list li::before { background: #f4a94e; }

.cheat-qa {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cheat-qa-item { border-bottom: 1px solid #f0f4f8; padding-bottom: 0.75rem; }
.cheat-qa-item:last-child { border-bottom: none; padding-bottom: 0; }

.cheat-qa-q {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a8abf;
  margin-bottom: 0.2rem;
}

.cheat-qa-a {
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.5;
  margin: 0;
}

.cheat-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.cheat-term-item {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.cheat-term-abbr {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a8abf;
  display: block;
}

.cheat-term-def {
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.4;
}

/* ── Blog Printables Section ────────────────────────────────── */
.printables-section {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}

.printables-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.4rem;
}

.printables-desc {
  color: #4a5568;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.printables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.printable-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.printable-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.11);
  border-color: #4a8abf;
}

.printable-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.printable-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.3rem;
}

.printable-card-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.printable-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a8abf;
}

/* ── Cheat Sheet Print ───────────────────────────────────────── */
@media print {
  .page-cheat-sheet nav,
  .page-cheat-sheet footer,
  .page-cheat-sheet .cheat-print-bar,
  .page-cheat-sheet .post-cta { display: none !important; }

  .page-cheat-sheet .page-header {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .page-cheat-sheet .page-header h1 { font-size: 1.3rem; }
  .page-cheat-sheet .page-header p  { font-size: 0.85rem; }

  .page-cheat-sheet .cheat-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================
   RESOURCES / ARTICLES PAGE
   ============================================================ */

.resources-container {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

/* Featured card */
.resource-featured {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #4a8abf;
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 1.25rem;
}

.resource-featured:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  border-top-color: #6daf7e;
}

.resource-featured-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.resource-featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a8abf;
  margin-bottom: 0.5rem;
}

.resource-featured .resource-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

/* Grid */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 620px) {
  .resources-grid { grid-template-columns: 1fr; }
  .resource-featured { flex-direction: column; gap: 0.75rem; padding: 1.4rem; }
}

/* Regular card */
.resource-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.11);
  border-color: #4a8abf;
  transform: translateY(-2px);
}

/* Tags */
.resource-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 0.25em 0.75em;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.resource-tag-parenting  { background: #e8f4ee; color: #3d7a4f; }
.resource-tag-school     { background: #e8f0fb; color: #3a5fa0; }
.resource-tag-research   { background: #fef3e2; color: #a0620a; }
.resource-tag-community  { background: #f0ebfb; color: #6b3fa0; }

/* Card content */
.resource-meta {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 0.4rem;
}

.resource-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.resource-summary {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.resource-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a8abf;
}

.resource-link:hover { color: #3a7aaf; }

/* ============================================================
   WORKSHEETS PAGE
   ============================================================ */

.worksheets-container {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.ws-intro {
  max-width: 720px;
  margin: 2rem auto 2.5rem;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.75;
  text-align: center;
}

.ws-intro p { margin-bottom: 0.75rem; }
.ws-intro p:last-child { margin-bottom: 0; }
.ws-intro a { color: #4a8abf; font-weight: 600; }

.ws-customize-tip {
  background: #f0f7ff;
  border-left: 3px solid #4a8abf;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem !important;
}

.ws-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a8abf;
  margin-bottom: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e8f0f8;
}

.ws-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.ws-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  border: 1px solid #e8edf3;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ws-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.11);
  border-color: #c5d9ec;
}

.ws-card-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-icon-blue   { background: #e8f0fb; }
.ws-icon-green  { background: #e8f4ee; }
.ws-icon-orange { background: #fef3e2; }

.ws-card-thumb {
  flex-shrink: 0;
}

.ws-card-thumb svg {
  display: block;
  width: 115px;
  height: 152px;
}

.ws-card-content { flex: 1; }

.ws-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.4rem;
}

.ws-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.ws-card-meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 1rem;
}

.ws-card-btn {
  display: inline-block;
  background: #4a8abf;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.ws-card-btn:hover { background: #3a79ae; transform: translateY(-1px); }

.ws-card-btn-green        { background: #6daf7e; }
.ws-card-btn-green:hover  { background: #5a9868; }

.ws-card-btn-orange       { background: #f4a94e; }
.ws-card-btn-orange:hover { background: #e09040; }

.ws-card-btn-outline {
  background: transparent;
  color: #4a8abf;
  border: 2px solid #4a8abf;
}
.ws-card-btn-outline:hover { background: #eef4fb; transform: translateY(-1px); }

.ws-card-btns { display: flex; flex-direction: column; gap: 0.6rem; }

/* How to use */
.ws-how {
  background: #f7f9fc;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.ws-how h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4a8abf;
  margin-bottom: 1.25rem;
}

.ws-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.ws-how-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ws-how-num {
  background: #4a8abf;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ws-how-step p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
}

/* CTA row */
.ws-cta-row { margin-bottom: 1.5rem; }

.ws-cta-card {
  background: linear-gradient(135deg, #e8f4ee, #e8f0fb);
  border-radius: 12px;
  padding: 1.4rem 1.75rem;
  text-align: center;
}

.ws-cta-card p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.ws-cta-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4a8abf;
  text-decoration: none;
}

.ws-cta-link:hover { text-decoration: underline; }

.ws-license {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .ws-card { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .ws-card-icon { width: 48px; height: 48px; font-size: 2rem; }
  .ws-card-thumb svg { width: 90px; height: 119px; }
  .ws-how { padding: 1.25rem; }
}
