:root {
  --bg: #f4fbff;
  --bg-2: #fffdf4;
  --card: rgba(255,255,255,0.84);
  --text: #203040;
  --muted: #5f7285;
  --accent: #ffb11f;
  --accent-2: #3ecf8e;
  --accent-3: #4aa8ff;
  --shadow: 0 18px 35px rgba(37, 72, 102, 0.15);
  --radius: 26px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 194, 80, 0.2), transparent 26%),
    radial-gradient(circle at top left, rgba(62, 207, 142, 0.18), transparent 20%),
    linear-gradient(180deg, #ebf9ff 0%, #fffef9 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.7);
  color: #2f5c7b; font-size: 14px; font-weight: 700; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
}
.page-shell { padding-bottom: 50px; }
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.55);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.brand h1 { margin: 0; font-size: 22px; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-weight: 700; }
.menu-toggle {
  display: none; border: 0; background: white; border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: 18px; cursor: pointer;
}
.nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 700; color: #31506a;
}
.nav a:hover, .nav a.active { background: white; color: #113553; box-shadow: var(--shadow); }
.hero {
  padding: 28px 0 20px;
}
.hero-card {
  position: relative; overflow: hidden; border-radius: 34px;
  box-shadow: var(--shadow);
  background: linear-gradient(130deg, rgba(255,255,255,.65), rgba(255,255,255,.28));
  min-height: 520px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/nono-world-home-hero.webp') center/cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 31, 50, 0.76) 0%, rgba(15, 31, 50, 0.54) 38%, rgba(15, 31, 50, 0.1) 100%);
}
.hero-content {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px;
  align-items: center; min-height: 520px; padding: 28px;
}
.hero-text { color: white; max-width: 650px; }
.hero-title {
  margin: 16px 0 10px; font-size: clamp(30px, 4vw, 56px); line-height: 1.1;
}
.hero-title span { color: #ffd154; }
.hero-text p { margin: 0 0 22px; font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.93); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 18px; padding: 14px 22px; font-weight: 800; cursor: pointer;
  transition: .25s ease; box-shadow: var(--shadow);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff8a29); color: white; }
.btn-secondary { background: rgba(255,255,255,.16); color: white; border: 1px solid rgba(255,255,255,.35); }
.btn-light { background: white; color: #1d4360; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.hero-side {
  display: flex; justify-content: end; align-items: end;
}
.hero-side img {
  max-width: 360px; width: 100%; filter: drop-shadow(0 22px 35px rgba(0,0,0,.25));
}
.section { padding: 26px 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 36px); }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.8; }
.grid { display: grid; gap: 18px; }
.categories-grid { grid-template-columns: repeat(5, 1fr); }
.card {
  background: var(--card); border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.category-card {
  position: relative; overflow: hidden; padding: 22px; min-height: 200px;
  transition: .25s ease;
}
.category-card:before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(255,177,31,.12), rgba(74,168,255,.12), rgba(62,207,142,.14));
  transition: .25s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(30,70,90,.18); }
.category-card:hover:before { opacity: 1; }
.category-card > * { position: relative; z-index: 1; }
.category-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px;
  border-radius: 20px; background: white; box-shadow: var(--shadow); margin-bottom: 12px;
}
.category-card h3 { margin: 0 0 8px; font-size: 22px; }
.category-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.8; }
.link-arrow { color: #1e5c7c; font-weight: 800; }
.story-grid { grid-template-columns: repeat(4, 1fr); }
.story-card {
  overflow: hidden; transition: .25s ease; display: flex; flex-direction: column;
}
.story-card:hover { transform: translateY(-6px); }
.story-thumb {
  aspect-ratio: 1 / 1; overflow: hidden; background: #eef5f9;
}
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.story-tag { display: inline-flex; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; width: fit-content; }
.tag-story { background: #fff2cb; color: #8f6500; }
.tag-compilation { background: #e6f7ff; color: #156697; }
.tag-edu { background: #e8fff2; color: #0d7a48; }
.story-title { margin: 0; font-size: 20px; }
.story-desc { margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.story-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.story-button { margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.panel { padding: 22px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li {
  padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.85);
  display: flex; align-items: start; gap: 10px; line-height: 1.8; color: #345066;
}
.page-hero {
  position: relative; overflow: hidden; padding: 32px; border-radius: 34px; box-shadow: var(--shadow); min-height: 280px;
  background: linear-gradient(135deg, rgba(74,168,255,.22), rgba(62,207,142,.18), rgba(255,177,31,.18));
}
.page-hero h2 { margin: 18px 0 10px; font-size: clamp(28px, 3.2vw, 44px); }
.page-hero p { margin: 0; max-width: 740px; line-height: 1.9; color: #446173; }
.notice {
  padding: 18px 20px; border-radius: 24px; background: #fffdf2; color: #6e5b27; border: 1px solid #ffedaa;
  line-height: 1.9;
}
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.contact-item { padding: 22px; }
.contact-item h3 { margin: 0 0 10px; }
.contact-item p { margin: 0; line-height: 1.8; color: var(--muted); }
.footer { padding: 24px 0 40px; color: #607486; }
.footer-card {
  border-radius: 30px; padding: 22px; background: rgba(255,255,255,.75); box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.watch-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.embed-frame {
  width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 26px; background: #eaf2f7; box-shadow: var(--shadow);
}
.video-placeholder {
  width: 100%; aspect-ratio: 16/9; border-radius: 26px; background: linear-gradient(135deg,#eaf5ff,#fff6db);
  display: grid; place-items: center; text-align: center; padding: 26px; box-shadow: var(--shadow); color: #4a6171;
}
.help-box { padding: 20px; }
.help-box code {
  direction: ltr; display: inline-block; background: #f3f8fb; padding: 2px 8px; border-radius: 8px; font-family: Consolas, monospace;
}
.empty-state {
  padding: 30px; text-align: center; border-radius: 26px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); color: #5d7386;
}
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content, .two-col, .watch-layout { grid-template-columns: 1fr; }
  .hero-side { justify-content: center; }
  .hero-side img { max-width: 290px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; padding-top: 12px;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .categories-grid, .story-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card, .hero-content { min-height: auto; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), var(--max)); }
  .categories-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 18px; }
  .brand img { width: 50px; height: 50px; }
  .hero-text p { font-size: 16px; }
  .btn { width: 100%; }
  .section { padding: 22px 0; }
  .page-hero, .panel, .contact-item { padding: 18px; }
}


/* ===== Home V2 refinements ===== */
.home-hero { padding: 24px 0 16px; }
.home-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #dff3ff;
  aspect-ratio: 2048 / 896;
}
.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.home-category-tile {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease;
  background: #dbeefd;
}
.home-category-tile:hover {
  transform: translateY(-7px) scale(1.008);
  box-shadow: 0 28px 48px rgba(30,70,90,.22);
}
.home-category-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  z-index: -3;
}
.home-category-tile:hover .home-category-bg { transform: scale(1.045); }
.home-category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,27,41,.05) 15%, rgba(12,27,41,.82) 100%);
  z-index: -2;
}
.home-category-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px;
  color: white;
}
.home-category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}
.home-category-content h3 {
  margin: 10px 0 7px;
  font-size: clamp(26px, 3vw, 38px);
}
.home-category-content p {
  margin: 0;
  max-width: 520px;
  line-height: 1.75;
  color: rgba(255,255,255,.9);
}
.home-contact-tile {
  grid-column: 1 / -1;
  min-height: 230px;
}
.home-contact-tile::before {
  background: linear-gradient(90deg, rgba(14,37,55,.82) 0%, rgba(14,37,55,.46) 52%, rgba(14,37,55,.12) 100%);
}
.home-contact-tile .home-category-content {
  max-width: 620px;
  bottom: 50%;
  transform: translateY(50%);
}
.header .brand-logo-crop {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  flex: 0 0 auto;
}
.header .brand-logo-crop img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  transform: scale(1.16);
}
@media (max-width: 860px) {
  .home-categories-grid { grid-template-columns: 1fr; }
  .home-contact-tile { grid-column: auto; min-height: 280px; }
  .home-category-tile { min-height: 300px; }
  .home-contact-tile .home-category-content { bottom: 0; transform: none; max-width: none; }
}
@media (max-width: 560px) {
  .home-hero-visual { border-radius: 24px; aspect-ratio: 16 / 8.5; }
  .home-category-tile { min-height: 265px; border-radius: 24px; }
  .home-category-content { padding: 20px; }
  .header .brand-logo-crop { width: 50px; height: 50px; }
}

/* ===== V3: responsive hero + SEO-friendly live text ===== */
.brand-name { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 700; }
.brand-name small { display: block; color: var(--muted); font-weight: 700; }
.home-hero-visual {
  height: clamp(300px, 30vw, 360px);
  aspect-ratio: auto;
}
.home-hero-visual img {
  object-position: center;
}
.home-hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(28px, 5vw, 70px);
  transform: translateY(-50%);
  width: min(46%, 560px);
  text-align: center;
  text-shadow: 0 2px 12px rgba(255,255,255,.55);
}
.home-hero-copy h1 {
  margin: 0;
  color: #ffb51f;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.5px;
  text-shadow: 0 5px 0 rgba(173,94,0,.15), 0 8px 20px rgba(43,71,99,.18);
}
.home-hero-en {
  margin-top: 4px;
  color: #258bd6;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  direction: ltr;
  text-shadow: 0 4px 14px rgba(255,255,255,.8);
}
.home-hero-copy p {
  display: inline-block;
  margin: 14px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(38,84,110,.13);
  color: #174f7e;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.5;
  backdrop-filter: blur(5px);
}
.home-category-tile::before {
  background: linear-gradient(180deg, rgba(12,27,41,.02) 16%, rgba(12,27,41,.70) 100%);
}
.home-contact-tile::before {
  background: linear-gradient(90deg, rgba(14,37,55,.70) 0%, rgba(14,37,55,.34) 56%, rgba(14,37,55,.05) 100%);
}

@media (max-width: 860px) {
  .brand-name { font-size: 18px; }
  .home-hero-visual {
    height: auto;
    overflow: hidden;
    background: white;
  }
  .home-hero-visual img {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left center;
  }
  .home-hero-copy {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 20px 16px 22px;
    background: linear-gradient(180deg,#fff 0%,#f6fcff 100%);
  }
  .home-hero-copy h1 { font-size: clamp(36px, 10vw, 52px); }
  .home-hero-en { font-size: clamp(25px, 7vw, 38px); }
  .home-hero-copy p { font-size: 15px; margin-top: 10px; }
}
.page-hero h1 { margin: 18px 0 10px; font-size: clamp(28px, 3.2vw, 44px); }
.help-box h1 { font-size: clamp(26px, 3vw, 40px); }

/* ===== V4: reusable content templates ===== */
.category-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: 30px;
  color: white;
}
.category-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--category-hero-image) center/cover no-repeat;
  transition: transform .35s ease;
}
.category-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,27,42,.05) 10%, rgba(10,27,42,.78) 100%);
}
.category-page-hero:hover::before { transform: scale(1.015); }
.category-page-hero-copy { max-width: 760px; }
.category-page-hero .badge {
  background: rgba(255,255,255,.18);
  color: white;
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.category-page-hero h1 {
  margin: 12px 0 7px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1;
}
.category-page-hero p {
  margin: 0;
  color: rgba(255,255,255,.94);
  line-height: 1.8;
  font-size: 17px;
}
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.content-toolbar h2 { margin: 0; font-size: clamp(23px, 2.6vw, 34px); }
.content-toolbar p { margin: 5px 0 0; color: var(--muted); }
.content-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  color: #28516d;
  font-weight: 800;
}
.category-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-content-grid .story-thumb { aspect-ratio: 16 / 9; }
.category-content-grid .story-title { font-size: 21px; line-height: 1.45; }
.category-content-grid .story-button { width: 100%; }

.story-page { padding-top: 18px; }
.story-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.story-breadcrumb a { font-weight: 800; color: #2e6689; }
.story-header-card {
  padding: 24px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.82);
}
.story-header-card h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}
.story-header-card p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 16px; }
.story-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  color: #61788a;
  font-size: 14px;
}
.story-video-shell { margin-bottom: 22px; }
.embed-frame {
  border-radius: 30px;
  overflow: hidden;
}
.video-placeholder {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: white;
  background: #193b50;
  isolation: isolate;
}
.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,20,30,.14), rgba(8,20,30,.62));
}
.video-placeholder-inner {
  display: grid;
  place-items: center;
  gap: 10px;
  height: 100%;
  min-height: 260px;
  padding: 24px;
}
.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
  color: #ff9f22;
  box-shadow: 0 16px 30px rgba(0,0,0,.2);
  font-size: 31px;
  padding-right: 3px;
}
.video-placeholder strong { font-size: 19px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.story-info-grid {
  display: grid;
  grid-template-columns: 1fr .36fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}
.story-description-card, .story-side-card { padding: 22px; }
.story-description-card h2, .story-side-card h2 { margin: 0 0 10px; font-size: 23px; }
.story-description-card p { margin: 0; line-height: 1.95; color: #4e6678; }
.story-side-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-side-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(42,74,96,.08);
  color: #4f687a;
}
.story-side-list li:last-child { border-bottom: 0; }
.story-side-list strong { color: #253f52; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-grid .story-thumb { aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .category-content-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .category-page-hero { min-height: 220px; padding: 20px; border-radius: 24px; }
  .category-page-hero p { font-size: 15px; }
  .category-content-grid, .related-grid { grid-template-columns: 1fr; }
  .story-header-card { padding: 18px; }
  .video-placeholder-inner { min-height: 210px; }
}

/* ===== V4.1 category-page visual fixes ===== */
.category-main { padding: 22px 0 0; }
.category-page-hero {
  position: relative;
  min-height: 300px;
  padding: 28px 32px;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.category-page-hero::before,
.category-page-hero::after { content: none !important; }
.category-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}
.category-page-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(10,29,45,.06) 0%, rgba(10,29,45,.16) 38%, rgba(10,29,45,.72) 72%, rgba(10,29,45,.82) 100%);
}
.category-page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 58%);
  margin-right: 0;
  text-align: right;
}
.category-page-hero .badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  color: white;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.category-page-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.15;
  text-shadow: 0 3px 16px rgba(0,0,0,.22);
}
.category-page-hero p {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.category-list-section { padding-top: 30px; padding-bottom: 28px; }
.category-list-heading {
  text-align: right;
  margin-bottom: 18px;
}
.category-list-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  color: #1d3446;
}
.category-list-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}
@media (max-width: 760px) {
  .category-page-hero {
    min-height: 250px;
    padding: 22px;
    align-items: end;
    border-radius: 24px;
  }
  .category-page-hero-bg { object-position: center; }
  .category-page-hero-shade {
    background: linear-gradient(180deg, rgba(10,29,45,.06) 10%, rgba(10,29,45,.80) 100%);
  }
  .category-page-hero-copy { width: 100%; }
  .category-page-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .category-page-hero p { font-size: 15px; }
  .category-list-section { padding-top: 24px; }
}

/* ===== V5: compact reusable content cards across stories, compilations and education ===== */
.category-list-section {
  padding-top: 22px;
  padding-bottom: 30px;
}
.category-list-heading {
  margin-bottom: 14px;
}

/* Flex layout keeps an incomplete final row centered automatically. */
.category-content-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.category-content-grid .story-card {
  flex: 0 1 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  height: auto;
  align-self: flex-start;
}
.category-content-grid .story-thumb,
.related-grid .story-thumb {
  aspect-ratio: 16 / 9;
}
.category-content-grid .story-body,
.related-grid .story-body {
  height: auto;
  padding: 18px 20px 20px;
  gap: 9px;
}
.category-content-grid .story-title,
.related-grid .story-title {
  font-size: 21px;
  line-height: 1.45;
}
.category-content-grid .story-desc,
.related-grid .story-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.8;
}
.category-content-grid .story-meta,
.related-grid .story-meta {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(48, 81, 103, .08);
}
.category-content-grid .story-button,
.related-grid .story-button {
  width: auto !important;
  min-width: 150px;
  align-self: center;
  margin-top: 4px;
  padding: 11px 22px;
  border: 1px solid rgba(39, 79, 105, .07);
  box-shadow: 0 10px 22px rgba(42, 77, 100, .08);
}
.category-content-grid .story-card:hover,
.related-grid .story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(30, 70, 90, .18);
}

/* Keep related cards on the story page visually consistent with category cards. */
.related-grid {
  align-items: start;
}

@media (max-width: 900px) {
  .category-content-grid .story-card {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}
@media (max-width: 560px) {
  .category-list-section { padding-top: 18px; }
  .category-list-heading { margin-bottom: 12px; }
  .category-content-grid { gap: 16px; }
  .category-content-grid .story-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
  .category-content-grid .story-body,
  .related-grid .story-body {
    padding: 16px 17px 18px;
  }
  .category-content-grid .story-button,
  .related-grid .story-button {
    min-width: 140px;
  }
}

/* ===== V6: contact page ===== */
.contact-page { padding-top: 22px; }
.contact-hero-wrap { margin-bottom: 8px; }
.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 32px;
  color: white;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}
.contact-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(9,27,42,.04) 0%, rgba(9,27,42,.12) 38%, rgba(9,27,42,.72) 72%, rgba(9,27,42,.84) 100%);
}
.contact-hero-copy {
  position: relative;
  z-index: 1;
  width: min(600px, 55%);
  text-align: right;
}
.contact-hero .badge {
  color: white;
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.contact-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.12;
  text-shadow: 0 3px 16px rgba(0,0,0,.24);
}
.contact-hero p {
  margin: 0;
  max-width: 600px;
  color: rgba(255,255,255,.96);
  font-size: 17px;
  line-height: 1.85;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.contact-section { padding-top: 30px; padding-bottom: 6px; }
.contact-section-heading { margin-bottom: 16px; }
.contact-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  color: #1d3446;
}
.contact-section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.direct-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}
.contact-action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  pointer-events: none;
}
.whatsapp-card::after { background: radial-gradient(circle at left bottom, #25D366, transparent 48%); }
.messenger-card::after { background: radial-gradient(circle at left bottom, #0084FF, transparent 48%); }
.contact-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px rgba(30,70,90,.18);
}
.contact-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(34,68,88,.12);
}
.contact-icon svg { width: 38px; height: 38px; fill: currentColor; }
.contact-icon-whatsapp { background: #e9fff1; color: #18a958; }
.contact-icon-messenger { background: #eaf4ff; color: #1688f7; }
.contact-action-copy { position: relative; z-index: 1; }
.contact-eyebrow {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f2f7fa;
  color: #567083;
  font-size: 12px;
  font-weight: 800;
}
.contact-action-copy h3 { margin: 9px 0 6px; font-size: 23px; }
.contact-action-copy p { margin: 0; color: var(--muted); line-height: 1.75; }
.contact-arrow {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: #315a74;
  box-shadow: 0 10px 20px rgba(37,72,102,.1);
  font-size: 20px;
  font-weight: 900;
}
.social-follow-section { padding-bottom: 30px; }
.social-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.social-platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 235px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.social-platform-card::before {
  content: "";
  position: absolute;
  inset: auto -45px -65px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: .08;
}
.facebook-platform::before { background: #1877F2; }
.instagram-platform::before { background: linear-gradient(135deg,#833AB4,#E1306C,#FCAF45); }
.youtube-platform::before { background: #FF0000; }
.social-platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px rgba(30,70,90,.18);
}
.social-platform-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  box-shadow: 0 12px 24px rgba(39,70,91,.1);
}
.social-platform-icon svg { width: 34px; height: 34px; fill: currentColor; }
.facebook-platform .social-platform-icon { color: #1877F2; background: #eef5ff; }
.instagram-platform .social-platform-icon { color: #D62976; background: #fff0f6; }
.youtube-platform .social-platform-icon { color: #e90000; background: #fff0f0; }
.social-platform-card h3 { margin: 0 0 6px; font-size: 24px; direction: ltr; }
.social-platform-card p { margin: 0; color: var(--muted); direction: ltr; text-align: left; }
.platform-cta {
  margin-top: auto;
  padding-top: 20px;
  color: #315a74;
  font-weight: 800;
}
@media (max-width: 820px) {
  .contact-hero {
    min-height: 270px;
    align-items: end;
    padding: 24px;
  }
  .contact-hero-shade {
    background: linear-gradient(180deg, rgba(9,27,42,.04) 10%, rgba(9,27,42,.82) 100%);
  }
  .contact-hero-copy { width: 100%; }
  .direct-contact-grid { grid-template-columns: 1fr; }
  .social-platform-grid { grid-template-columns: 1fr; }
  .social-platform-card { min-height: 185px; }
}
@media (max-width: 560px) {
  .contact-page { padding-top: 16px; }
  .contact-hero { min-height: 250px; border-radius: 24px; padding: 20px; }
  .contact-hero-bg { object-position: 42% center; }
  .contact-hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .contact-hero p { font-size: 15px; }
  .contact-section { padding-top: 24px; }
  .contact-action-card {
    grid-template-columns: auto 1fr;
    min-height: 135px;
    padding: 18px;
    gap: 14px;
    border-radius: 24px;
  }
  .contact-arrow { display: none; }
  .contact-icon { width: 58px; height: 58px; border-radius: 18px; }
  .contact-icon svg { width: 31px; height: 31px; }
  .contact-action-copy h3 { font-size: 20px; }
  .social-platform-card { min-height: 170px; border-radius: 24px; }
}

/* ===== V6.1: contact page icon layout ===== */
.contact-page-v61 .contact-hero-v61 {
  min-height: 300px;
  padding: 0;
  display: block;
}
.contact-page-v61 .contact-hero-v61 .contact-hero-shade {
  background: linear-gradient(90deg, rgba(9,27,42,.03) 0%, rgba(9,27,42,.08) 42%, rgba(9,27,42,.62) 70%, rgba(9,27,42,.82) 100%);
}
.contact-page-v61 .contact-hero-v61 .contact-hero-copy {
  position: absolute;
  right: 6.5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 42%);
  text-align: right;
  direction: rtl;
}
.contact-page-v61 .contact-hero-v61 h1 {
  margin: 13px 0 8px;
  font-size: clamp(36px, 4vw, 54px);
}
.contact-page-v61 .contact-hero-v61 p {
  max-width: 520px;
  font-size: 17px;
}
.contact-icons-section {
  padding-top: 34px;
  padding-bottom: 22px;
}
.contact-section-heading-center {
  text-align: center;
  margin-bottom: 28px;
}
.contact-section-heading-center p {
  max-width: 680px;
  margin: 7px auto 0;
}
.contact-icon-links {
  display: grid;
  justify-content: center;
  align-items: start;
  gap: 54px;
}
.direct-icon-links {
  grid-template-columns: repeat(2, minmax(180px, 230px));
}
.social-icon-links {
  grid-template-columns: repeat(3, minmax(170px, 220px));
}
.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  color: #1e3446;
  transition: transform .22s ease;
}
.contact-icon-link:hover {
  transform: translateY(-7px);
}
.big-contact-icon {
  width: 126px;
  height: 126px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  box-shadow: 0 16px 32px rgba(35,69,92,.14);
  transition: transform .22s ease, box-shadow .22s ease;
}
.contact-icon-link:hover .big-contact-icon {
  transform: scale(1.045);
  box-shadow: 0 22px 40px rgba(35,69,92,.2);
}
.big-contact-icon svg {
  width: 68px;
  height: 68px;
  fill: currentColor;
}
.whatsapp-big-icon {
  background: #25D366;
  color: white;
}
.messenger-big-icon {
  background: linear-gradient(135deg, #00B2FF, #006AFF);
  color: white;
}
.facebook-big-icon {
  background: #1877F2;
  color: white;
}
.instagram-big-icon {
  background: radial-gradient(circle at 32% 100%, #FEDA75 0 12%, #FA7E1E 25%, #D62976 52%, #962FBF 74%, #4F5BD5 100%);
  color: white;
}
.youtube-big-icon {
  background: #FF0000;
  color: white;
}
.contact-icon-link strong {
  display: block;
  margin-top: 1px;
  font-size: 20px;
  line-height: 1.45;
}
.contact-icon-link > span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  direction: ltr;
}
.social-follow-section.contact-icons-section {
  padding-top: 38px;
  padding-bottom: 32px;
}

@media (max-width: 820px) {
  .contact-page-v61 .contact-hero-v61 {
    min-height: 285px;
  }
  .contact-page-v61 .contact-hero-v61 .contact-hero-shade {
    background: linear-gradient(180deg, rgba(9,27,42,.04) 8%, rgba(9,27,42,.18) 38%, rgba(9,27,42,.82) 100%);
  }
  .contact-page-v61 .contact-hero-v61 .contact-hero-copy {
    right: 22px;
    left: 22px;
    top: auto;
    bottom: 22px;
    width: auto;
    transform: none;
  }
  .direct-icon-links {
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 34px;
  }
  .social-icon-links {
    grid-template-columns: repeat(3, minmax(115px, 170px));
    gap: 22px;
  }
  .big-contact-icon {
    width: 108px;
    height: 108px;
    border-radius: 30px;
  }
  .big-contact-icon svg { width: 58px; height: 58px; }
  .contact-icon-link strong { font-size: 18px; }
}

@media (max-width: 560px) {
  .contact-page-v61 .contact-hero-v61 {
    min-height: 270px;
    border-radius: 24px;
  }
  .contact-page-v61 .contact-hero-v61 .contact-hero-bg {
    object-position: 38% center;
  }
  .contact-page-v61 .contact-hero-v61 .contact-hero-copy {
    right: 16px;
    left: 16px;
    bottom: 17px;
  }
  .contact-page-v61 .contact-hero-v61 .badge {
    font-size: 12px;
    padding: 8px 12px;
  }
  .contact-page-v61 .contact-hero-v61 h1 {
    font-size: clamp(30px, 9.5vw, 40px);
    margin-top: 10px;
  }
  .contact-page-v61 .contact-hero-v61 p {
    font-size: 14px;
    line-height: 1.7;
  }
  .contact-icons-section { padding-top: 28px; }
  .contact-section-heading-center { margin-bottom: 22px; }
  .contact-section-heading-center h2 { font-size: 29px; }
  .contact-section-heading-center p { font-size: 14px; }
  .direct-icon-links {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 20px;
  }
  .social-icon-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .big-contact-icon {
    width: 92px;
    height: 92px;
    border-radius: 26px;
    margin-bottom: 12px;
  }
  .big-contact-icon svg { width: 50px; height: 50px; }
  .social-icon-links .big-contact-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }
  .social-icon-links .big-contact-icon svg { width: 42px; height: 42px; }
  .contact-icon-link strong {
    font-size: 15px;
    line-height: 1.45;
  }
  .social-icon-links .contact-icon-link strong { font-size: 13px; }
  .contact-icon-link > span:last-child { font-size: 12px; }
}

/* Page visit counter — GoatCounter */
.visit-counter-section {
  padding: 8px 0 18px;
}
.visit-counter-pill {
  width: fit-content;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(78,118,145,.12);
  box-shadow: 0 8px 22px rgba(42,72,92,.08);
  color: #5e7384;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.visit-counter-icon {
  font-size: 15px;
  opacity: .9;
}
#page-visit-count,
#page-visit-count > * {
  color: #173a54;
  font-weight: 900;
}
#page-visit-count:empty::after {
  content: "…";
  color: #8293a1;
}
@media (max-width: 560px) {
  .visit-counter-section { padding-bottom: 14px; }
  .visit-counter-pill { font-size: 13px; padding: 8px 13px; }
}

/* ===== Services V7 ===== */
.services-page-v7 { padding: 18px 0 36px; }
.services-hero-wrap { margin-bottom: 8px; }
.services-hero-v7 {
  position: relative; min-height: 390px; overflow: hidden; border-radius: 34px;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: flex-start;
  isolation: isolate;
}
.services-hero-bg-v7 { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; }
.services-hero-shade-v7 { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(12,37,56,.82) 0%,rgba(12,37,56,.68) 38%,rgba(12,37,56,.16) 72%,rgba(12,37,56,.04) 100%); }
.services-hero-copy-v7 { width:min(640px,60%); padding:42px; color:white; text-align:right; }
.services-hero-copy-v7 h1 { margin:14px 0 10px; font-size:clamp(38px,5vw,68px); line-height:1.05; }
.services-hero-copy-v7 p { margin:0; font-size:clamp(17px,2vw,23px); line-height:1.9; color:rgba(255,255,255,.94); }

.services-section-v7 { padding-top:44px; }
.services-section-heading-v7 { margin-bottom:24px; text-align:right; }
.services-kicker-v7 { display:inline-flex; padding:8px 14px; border-radius:999px; background:#fff4cf; color:#7f5a00; font-weight:800; font-size:14px; }
.services-section-heading-v7 h2 { margin:10px 0 8px; font-size:clamp(28px,3.4vw,44px); }
.services-section-heading-v7 p { margin:0; color:var(--muted); font-size:17px; line-height:1.8; }

.featured-services-grid-v7, .services-grid-v7 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.service-card-v7 { overflow:hidden; background:rgba(255,255,255,.88); border:1px solid rgba(255,255,255,.92); border-radius:30px; box-shadow:var(--shadow); transition:transform .25s ease, box-shadow .25s ease; }
.service-card-v7:hover { transform:translateY(-6px); box-shadow:0 26px 46px rgba(35,69,94,.19); }
.service-card-image-v7 { position:relative; aspect-ratio:16/9; overflow:hidden; background:#eaf4f8; }
.service-card-image-v7 img { width:100%; height:100%; object-fit:cover; }
.service-badge-v7 { position:absolute; top:16px; right:16px; padding:8px 13px; border-radius:999px; background:rgba(255,255,255,.92); color:#725100; font-weight:800; font-size:13px; box-shadow:0 8px 18px rgba(0,0,0,.12); }
.service-card-body-v7 { padding:22px; }
.service-card-body-v7 h3 { margin:0 0 10px; font-size:clamp(22px,2.2vw,30px); line-height:1.45; }
.service-card-body-v7 p { margin:0; color:var(--muted); line-height:1.9; font-size:16px; }
.service-card-featured-v7 .service-card-body-v7 p { min-height:92px; }
.service-delivery-v7 { margin-top:16px; padding:12px 14px; border-radius:16px; background:#f6fbff; color:#33566e; font-weight:800; font-size:14px; }
.service-actions-v7 { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.service-action-btn { flex:1; min-width:130px; display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:16px; font-weight:900; transition:.2s ease; box-shadow:0 8px 20px rgba(40,72,94,.10); }
.service-action-btn:hover { transform:translateY(-2px); }
.whatsapp-service-btn { background:#ddf8e8; color:#08743f; }
.messenger-service-btn { background:#e9f3ff; color:#0c65c9; }
.ai-services-section-v7 { padding-top:54px; }
.services-grid-v7 .service-card-body-v7 { min-height:250px; display:flex; flex-direction:column; }
.services-grid-v7 .service-actions-v7 { margin-top:auto; }

.services-final-cta-v7 { padding-top:44px; }
.services-final-cta-box-v7 { background:linear-gradient(135deg,#fff8df,#eef9ff); border-radius:30px; box-shadow:var(--shadow); padding:28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.services-final-cta-box-v7 h2 { margin:10px 0 6px; font-size:clamp(24px,3vw,38px); }
.services-final-cta-box-v7 p { margin:0; color:var(--muted); line-height:1.8; }
.services-final-actions-v7 { min-width:300px; margin-top:0; }
.copy-toast-v7 { position:fixed; left:50%; bottom:24px; transform:translate(-50%,18px); opacity:0; pointer-events:none; background:#153047; color:white; padding:12px 18px; border-radius:999px; box-shadow:0 12px 32px rgba(0,0,0,.24); z-index:100; transition:.25s ease; font-weight:800; }
.copy-toast-v7.show { opacity:1; transform:translate(-50%,0); }

@media (max-width:860px) {
  .services-hero-v7 { min-height:320px; }
  .services-hero-shade-v7 { background:linear-gradient(90deg,rgba(12,37,56,.82),rgba(12,37,56,.55)); }
  .services-hero-copy-v7 { width:75%; padding:28px; }
  .featured-services-grid-v7, .services-grid-v7 { grid-template-columns:1fr; }
  .service-card-featured-v7 .service-card-body-v7 p { min-height:0; }
  .services-final-cta-box-v7 { flex-direction:column; align-items:stretch; }
  .services-final-actions-v7 { min-width:0; }
}
@media (max-width:560px) {
  .services-page-v7 { padding-top:10px; }
  .services-hero-v7 { min-height:280px; border-radius:24px; }
  .services-hero-bg-v7 { object-position:58% center; }
  .services-hero-copy-v7 { width:100%; padding:22px; align-self:flex-end; }
  .services-hero-shade-v7 { background:linear-gradient(0deg,rgba(12,37,56,.88) 0%,rgba(12,37,56,.62) 54%,rgba(12,37,56,.12) 100%); }
  .services-hero-copy-v7 h1 { font-size:38px; }
  .services-hero-copy-v7 p { font-size:15px; }
  .services-section-v7 { padding-top:32px; }
  .services-section-heading-v7 { text-align:center; }
  .service-card-v7 { border-radius:24px; }
  .service-card-body-v7 { padding:18px; }
  .service-card-body-v7 h3 { font-size:22px; }
  .service-card-body-v7 p { font-size:15px; }
  .service-actions-v7 { flex-direction:column; }
  .service-action-btn { width:100%; }
  .services-final-cta-box-v7 { padding:22px; text-align:center; }
}


/* ===== V7.1 corrections ===== */
/* Home: the compilation artwork was composed with Nono on the right; mirror only
   this decorative image so the text area stays clear on the right like the other tiles. */

/* Visitor counter: keep remote failures out of the layout. */
#page-visit-count { min-width: 1.4ch; display:inline-block; }

/* Services: compact, content-first layout. */
.services-page-v7 { padding-top: 12px; }
.services-hero-wrap { margin-bottom: 0; }
.services-hero-v7 {
  min-height: 270px;
  max-height: 300px;
  border-radius: 30px;
  justify-content: flex-start;
}
.services-hero-bg-v7 { object-position: center; }
.services-hero-shade-v7 {
  background: linear-gradient(270deg, rgba(12,37,56,.84) 0%, rgba(12,37,56,.62) 34%, rgba(12,37,56,.18) 63%, rgba(12,37,56,.02) 100%);
}
.services-hero-copy-v7 {
  width: min(570px, 49%);
  padding: 28px 34px;
}
.services-hero-copy-v7 h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 48px);
}
.services-hero-copy-v7 p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75; }
.services-hero-copy-v7 .badge { font-size: 13px; padding: 7px 12px; }

.services-section-v7 { padding-top: 30px; }
.ai-services-section-v7 { padding-top: 36px; }
.services-section-heading-v7 { margin-bottom: 16px; }
.services-section-heading-v7 h2 { margin: 8px 0 5px; font-size: clamp(27px, 3vw, 36px); }
.services-section-heading-v7 p { font-size: 15px; line-height: 1.7; }
.services-kicker-v7 { padding: 6px 12px; font-size: 13px; }

.featured-services-grid-v7, .services-grid-v7 { gap: 16px; }
.service-card-v7 {
  display: grid;
  grid-template-columns: minmax(185px, 31%) 1fr;
  min-height: 218px;
  border-radius: 24px;
}
.service-card-image-v7 {
  aspect-ratio: auto;
  height: 100%;
  min-height: 218px;
}
.service-card-image-v7 img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.015);
}
.service-image-personalized img { object-position: 51% center; }
.service-image-education img { object-position: 48% center; }
.service-image-design img { object-position: 47% center; }
.service-image-video img { object-position: 38% center; }
.service-image-video-voice img { object-position: 47% center; }
.service-image-voice img { object-position: 43% center; }
.service-badge-v7 { top: 12px; right: 12px; padding: 6px 10px; font-size: 12px; }

.service-card-body-v7 {
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.service-card-body-v7 h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.35;
}
.service-card-body-v7 p,
.service-card-featured-v7 .service-card-body-v7 p {
  min-height: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}
.services-grid-v7 .service-card-body-v7 { min-height: 0; }
.service-delivery-v7 {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.service-actions-v7 {
  margin-top: auto;
  padding-top: 12px;
  gap: 8px;
  flex-wrap: nowrap;
}
.service-action-btn {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 14px;
  box-shadow: none;
}

.services-final-cta-v7 { padding-top: 30px; }
.services-final-cta-box-v7 { padding: 20px 24px; border-radius: 24px; }
.services-final-cta-box-v7 h2 { font-size: clamp(22px,2.6vw,32px); }
.services-final-cta-box-v7 p { font-size: 14px; }
.services-final-actions-v7 { min-width: 260px; }

@media (max-width: 980px) {
  .service-card-v7 { grid-template-columns: 165px 1fr; }
  .service-card-image-v7 { min-height: 205px; }
  .services-hero-copy-v7 { width: 56%; }
}

@media (max-width: 760px) {
  .services-hero-v7 { min-height: 235px; max-height: none; }
  .services-hero-copy-v7 { width: 62%; padding: 22px; }
  .services-hero-copy-v7 h1 { font-size: 34px; }
  .featured-services-grid-v7, .services-grid-v7 { grid-template-columns: 1fr; }
  .service-card-v7 { grid-template-columns: 170px 1fr; min-height: 205px; }
  .service-card-image-v7 { min-height: 205px; }
}

@media (max-width: 560px) {
  .services-hero-v7 { min-height: 220px; border-radius: 22px; }
  .services-hero-bg-v7 { object-position: 42% center; }
  .services-hero-shade-v7 { background: linear-gradient(270deg,rgba(12,37,56,.86),rgba(12,37,56,.54) 58%,rgba(12,37,56,.12)); }
  .services-hero-copy-v7 { width: 68%; padding: 17px; }
  .services-hero-copy-v7 h1 { font-size: 29px; }
  .services-hero-copy-v7 p { font-size: 13px; line-height: 1.6; }
  .services-hero-copy-v7 .badge { display: none; }
  .services-section-v7 { padding-top: 24px; }
  .services-section-heading-v7 h2 { font-size: 27px; }
  .service-card-v7 { grid-template-columns: 1fr; min-height: 0; }
  .service-card-image-v7 { height: 145px; min-height: 145px; }
  .service-card-body-v7 { padding: 15px; }
  .service-card-body-v7 h3 { font-size: 20px; }
  .service-card-body-v7 p { font-size: 13px; }
  .service-actions-v7 { flex-direction: row; }
  .service-action-btn { width: auto; }
  .services-final-cta-box-v7 { padding: 18px; }
}

.contact-service-btn { background:#e8f2ff; color:#145fa8; }
.contact-service-btn:hover { background:#dcecff; }


/* Compact global footer links — V7.6 */
.footer-card-compact {
  align-items: center;
  gap: 12px 18px;
  padding: 16px 20px;
}
.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
}
.footer-brand-copy strong {
  color: #2d4b61;
  font-size: 15px;
}
.footer-brand-copy span {
  color: #718493;
  font-size: 12px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(74,168,255,.15);
  color: #35566d;
  font-size: 12px;
  font-weight: 800;
  transition: .2s ease;
}
.footer-contact-link:hover {
  transform: translateY(-1px);
  background: white;
  color: #174f73;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.footer-social-link {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(74,168,255,.13);
  color: #5b7182;
  box-shadow: 0 5px 14px rgba(37,72,102,.08);
  transition: .2s ease;
}
.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  color: #1f638a;
  box-shadow: 0 8px 17px rgba(37,72,102,.13);
}
.footer-copy {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(86,120,143,.10);
  color: #8696a3;
  font-size: 11px;
  text-align: center;
}
@media (max-width: 720px) {
  .footer-card-compact {
    justify-content: center;
    text-align: center;
    padding: 15px 16px;
  }
  .footer-brand-copy {
    width: 100%;
    min-width: 0;
  }
  .footer-links {
    margin-inline-start: 0;
  }
}


/* ===== V8.2: compact cards + desktop watch size ===== */
/* Make thumbnail aspect-ratio actually apply to anchor elements and reduce card height. */
.category-content-grid .story-thumb,
.related-grid .story-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
}
.category-content-grid .story-thumb img,
.related-grid .story-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-content-grid .story-card,
.related-grid .story-card {
  min-height: 0 !important;
}
.category-content-grid .story-body,
.related-grid .story-body {
  height: auto !important;
  flex: 0 0 auto;
  padding: 15px 18px 17px;
  gap: 7px;
}
.category-content-grid .story-title,
.related-grid .story-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.4;
}
.category-content-grid .story-desc,
.related-grid .story-desc {
  line-height: 1.65;
  -webkit-line-clamp: 2;
}
.category-content-grid .story-meta,
.related-grid .story-meta {
  margin-top: 2px !important;
  padding-top: 8px;
}
.category-content-grid .story-button,
.related-grid .story-button {
  margin-top: 2px;
  padding: 10px 20px;
}

/* Comfortable default YouTube size on laptop/desktop; full-screen remains available. */
.story-video-shell {
  width: min(100%, 900px);
  margin: 0 auto 22px;
}
.story-video-shell .embed-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
@media (max-width: 900px) {
  .story-video-shell { width: 100%; }
}
@media (max-width: 560px) {
  .category-content-grid .story-body,
  .related-grid .story-body { padding: 15px 16px 17px; }
}

/* ===== V8.3: compact cards in homepage / most-viewed style grids ===== */
/* Apply the same compact treatment to every standard story grid, including
   latest / most-viewed sections, while keeping category and related cards unchanged. */
.story-grid .story-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
}
.story-grid .story-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-grid .story-card {
  min-height: 0 !important;
}
.story-grid .story-body {
  height: auto !important;
  flex: 0 0 auto;
  padding: 15px 18px 17px;
  gap: 7px;
}
.story-grid .story-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.4;
}
.story-grid .story-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.65;
}
.story-grid .story-meta {
  margin-top: 2px !important;
  padding-top: 8px;
}
.story-grid .story-button {
  width: auto !important;
  min-width: 150px;
  align-self: center;
  margin-top: 2px;
  padding: 10px 20px;
}

@media (max-width: 560px) {
  .story-grid .story-body {
    padding: 15px 16px 16px;
  }
  .story-grid .story-button {
    min-width: 140px;
  }
}


/* ===== V8.4: richer About section + instant content search ===== */
.story-description-card p[data-watch-description-full] {
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
}

.site-search-section {
  padding: 10px 0 16px;
  position: relative;
  z-index: 20;
}
.site-search-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(72,126,158,.10);
  box-shadow: 0 12px 32px rgba(54,93,116,.10);
}
.site-search-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.site-search-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef8ff;
  font-size: 19px;
  flex: 0 0 auto;
}
.site-search-heading div { display: grid; gap: 2px; }
.site-search-heading strong { color: #173f58; font-size: 17px; }
.site-search-heading span { color: var(--muted); font-size: 13px; }
.site-search-box { position: relative; }
.site-search-box input {
  width: 100%;
  height: 50px;
  border: 1px solid #dbeaf2;
  border-radius: 16px;
  background: #f9fcfe;
  color: #173f58;
  font: inherit;
  font-size: 15px;
  padding: 0 18px 0 48px;
  outline: none;
  transition: .2s ease;
}
.site-search-box input:focus {
  border-color: #75bde3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86,174,222,.12);
}
.site-search-clear {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eaf2f7;
  color: #537083;
  font-size: 22px;
  cursor: pointer;
}
.site-search-status {
  min-height: 18px;
  margin-top: 7px;
  padding-inline: 3px;
  color: #637b8d;
  font-size: 12px;
}
.site-search-results {
  position: absolute;
  right: 18px;
  left: 18px;
  top: calc(100% - 2px);
  max-height: min(480px, 65vh);
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #deebf2;
  box-shadow: 0 22px 48px rgba(29,62,82,.20);
  z-index: 100;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
  color: #173f58;
  transition: .18s ease;
}
.search-result-item:hover { background: #f1f8fc; }
.search-result-item img {
  width: 84px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #eef5f9;
  flex: 0 0 auto;
}
.search-result-copy { min-width: 0; display: grid; gap: 3px; }
.search-result-copy small { color: #16845a; font-weight: 800; font-size: 11px; }
.search-result-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}
.search-empty, .search-more {
  padding: 13px 12px;
  text-align: center;
  color: #637b8d;
  font-size: 13px;
}

@media (max-width: 560px) {
  .site-search-section { padding: 7px 0 12px; }
  .site-search-card { padding: 13px; border-radius: 20px; }
  .site-search-heading span { display: none; }
  .site-search-heading { margin-bottom: 9px; }
  .site-search-box input { height: 48px; font-size: 14px; }
  .site-search-results { right: 13px; left: 13px; max-height: 58vh; }
  .search-result-item img { width: 72px; }
}


/* ===== V8.4.2: compact header search on home + content sections only ===== */
.header-search {
  position: relative;
  flex: 0 1 285px;
  min-width: 210px;
  max-width: 310px;
  z-index: 80;
}
.header-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  opacity: .78;
}
.header-search-box input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbeaf2;
  border-radius: 999px;
  background: rgba(249,252,254,.94);
  color: #173f58;
  font: inherit;
  font-size: 13px;
  padding: 0 38px 0 38px;
  outline: none;
  transition: .2s ease;
}
.header-search-box input::placeholder { color: #7890a0; }
.header-search-box input:focus {
  border-color: #75bde3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86,174,222,.11);
}
.header-search-clear {
  left: 7px;
  width: 28px;
  height: 28px;
  font-size: 19px;
}
.header-search-status {
  position: absolute;
  top: calc(100% + 5px);
  right: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: #5f788a;
  pointer-events: none;
}
.header-search-results {
  top: calc(100% + 24px);
  right: 0;
  left: auto;
  width: min(430px, calc(100vw - 24px));
  max-height: min(480px, 65vh);
}

@media (max-width: 1160px) and (min-width: 861px) {
  .header-inner { gap: 10px; }
  .header-search { flex-basis: 220px; min-width: 180px; }
  .header-search-box input { font-size: 12px; }
  .nav { gap: 5px; }
  .nav a { padding-inline: 10px; }
}

@media (max-width: 860px) {
  .header-search {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .header-search-box input { height: 44px; font-size: 14px; }
  .header-search-results {
    right: 0;
    left: 0;
    width: 100%;
    max-height: 58vh;
  }
  .nav { order: 4; }
}
