/* Lertchai Master — original homepage presentation.
   Shared header/footer live only in lertchai-shell.css. No homepage refresh override layer. */

:root {
      --blue-top: #061a38;
      --blue-main: #0b579f;
      --blue-deep: #0b3c78;
      --blue-soft: #eaf2ff;
      --gold-main: #f4c542;
      --gold-deep: #d7a437;
      --gold-soft: #fff3d1;
      --white: #ffffff;
      --page-bg: #f5f7fb;
      --card-bg: #ffffff;
      --text-dark: #172033;
      --text-muted: #667085;
      --line-soft: rgba(7, 36, 77, 0.08);
      --radius-md: 20px;
      --radius-lg: 30px;
      --shadow-soft: 0 12px 34px rgba(7, 36, 77, 0.09);
      --shadow-card: 0 22px 56px rgba(7, 36, 77, 0.15);
      --shadow-gold: 0 14px 30px rgba(215, 164, 55, 0.24);
      --hero-height: clamp(500px, 62vh, 700px);
      --container: 1180px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--lm-font-th, "Prompt", system-ui, sans-serif);
      color: var(--text-dark);
      background: var(--page-bg);
      line-height: 1.72;
    }

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

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

    button {
      font-family: inherit;
    }

    .container {
      width: min(var(--container), calc(100% - 36px));
      margin: 0 auto;
    }

    .section {
      position: relative;
      padding: 44px 0;
      overflow: hidden;
    }

    .section::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 8% 10%, rgba(11, 87, 159, 0.035), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.040), transparent 32%);
      opacity: 0.9;
    }

    .section > .container {
      position: relative;
      z-index: 2;
    }

    .section-light,
    .section-soft {
      background:
        radial-gradient(circle at 8% 10%, rgba(11, 87, 159, 0.035), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.040), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f5f7fb 100%);
    }

    .section-blue {
      padding-top: 50px;
      padding-bottom: 50px;
      background:
        radial-gradient(circle at 8% 10%, rgba(244, 197, 66, 0.17), transparent 30%),
        linear-gradient(135deg, #061a38 0%, #0b3c78 54%, #0a5ca5 100%);
      color: #ffffff;
    }

    .section-header {
      max-width: 820px;
      margin-bottom: 24px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      color: var(--blue-deep);
      font-weight: 900;
      font-size: 0.84rem;
      background: rgba(234, 242, 255, 0.92);
      border: 1px solid rgba(11, 60, 120, 0.12);
      padding: 7px 14px;
      border-radius: 999px;
      margin-bottom: 12px;
      letter-spacing: 0.02em;
    }

    .section-title {
      font-size: clamp(1.35rem, 2.45vw, 2.25rem);
      line-height: 1.28;
      color: var(--blue-top);
      margin-bottom: 12px;
      font-weight: 900;
      letter-spacing: -0.015em;
    }

    .section-desc {
      color: var(--text-muted);
      font-size: 1.02rem;
    }

    .section-blue .eyebrow {
      color: #fff8df;
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.18);
    }

    .section-blue .section-title,
    .section-blue .section-desc {
      color: #ffffff;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 999px;
      font-weight: 900;
      border: 1px solid transparent;
      cursor: pointer;
      transition: 0.25s ease;
      white-space: nowrap;
    }

    .btn-outline {
      color: var(--blue-deep);
      border-color: rgba(11, 60, 120, 0.22);
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(7, 36, 77, 0.07);
    }

    .btn-outline:hover {
      color: #ffffff;
      background: linear-gradient(135deg, var(--blue-top), var(--blue-deep));
      border-color: transparent;
      box-shadow: 0 14px 32px rgba(7, 36, 77, 0.18);
    }

    .btn-dark {
      background: linear-gradient(135deg, var(--blue-top), var(--blue-deep));
      color: #ffffff;
    }


    /* Hero Slider */
    .hero {
      position: relative;
      height: var(--hero-height);
      overflow: hidden;
      background: var(--blue-top);
    }

    .hero-slider {
      height: 100%;
      position: relative;
    }

    .slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: scale(1.02);
      transition: opacity 0.7s ease, transform 1.2s ease;
      display: flex;
      align-items: center;
    }

    .slide.active {
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }

    .slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(4, 21, 47, 0.97), rgba(7, 36, 77, 0.76), rgba(7, 36, 77, 0.25)),
        radial-gradient(circle at 20% 18%, rgba(244, 197, 66, 0.20), transparent 34%);
      z-index: 1;
    }

    .slide-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
    }

    .slide:nth-child(1) .slide-bg {
      background-image: url("../../newimage/Heroimage-01.png");
    }

    .slide:nth-child(2) .slide-bg {
      background-image: url("../../newimage/Heroimage-02.png");
    }

    .slide:nth-child(3) .slide-bg {
      background-image: url("../../newimage/Heroimage-03.png");
    }

    .hero-content {
      position: relative;
      z-index: 3;
      max-width: 790px;
      color: #ffffff;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.24);
      padding: 9px 16px;
      border-radius: 999px;
      font-weight: 900;
      margin-bottom: 18px;
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    }

    .hero-title {
      font-size: clamp(2.1rem, 4.6vw, 4.4rem);
      line-height: 1.25;
      font-weight: 900;
      margin-bottom: 18px;
      letter-spacing: -0.035em;
    }

    .hero-title span {
      color: var(--gold-main);
      text-shadow: 0 8px 24px rgba(244, 197, 66, 0.16);
    }

    .hero-desc {
      font-size: clamp(1.05rem, 1.55vw, 1.25rem);
      color: rgba(255, 255, 255, 0.88);
      max-width: 690px;
      margin-bottom: 30px;
    }

    .hero-controls {
      position: absolute;
      left: 50%;
      bottom: 26px;
      transform: translateX(-50%);
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .hero-arrow,
    .hero-dot {
      border: 0;
      cursor: pointer;
    }

    .hero-arrow {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.15);
      color: #ffffff;
      font-size: 1.25rem;
      border: 1px solid rgba(255, 255, 255, 0.22);
      transition: 0.22s ease;
    }

    .hero-arrow:hover {
      background: rgba(244, 197, 66, 0.90);
      color: var(--blue-top);
    }

    .hero-dots {
      display: flex;
      gap: 8px;
    }

    .hero-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.42);
      transition: 0.22s ease;
    }

    .hero-dot.active {
      width: 30px;
      background: var(--gold-main);
    }

        /* About */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1.25fr;
      gap: 34px;
      align-items: stretch;
    }

    .profile-card,
    .about-content {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-lg);
      padding: 28px;
      background:
        radial-gradient(circle at 100% 100%, rgba(11, 87, 159, 0.075), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 56%, #eef4fa 100%);
      border: 1px solid rgba(7, 36, 77, 0.085);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 14px 32px rgba(7, 36, 77, 0.075),
        0 34px 70px rgba(7, 36, 77, 0.095);
      transition: 0.25s ease;
    }

    .profile-card:hover,
    .about-content:hover {
      transform: translateY(-4px);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 18px 40px rgba(7, 36, 77, 0.105),
        0 42px 78px rgba(7, 36, 77, 0.12);
    }

    .profile-photo {
      height: 280px;
      border-radius: 24px;
      background:
        linear-gradient(135deg, rgba(249, 249, 250, 0), rgba(251, 251, 249, 0)),
        url("../../newimage/profile-lertchai.jpg") center/cover;
      margin-bottom: 20px;
      border: 1px solid rgba(7, 36, 77, 0.11);
      box-shadow:
        0 10px 22px rgba(7, 36, 77, 0.10),
        0 22px 42px rgba(7, 36, 77, 0.075);
    }

    .profile-card h3 {
      color: var(--blue-top);
      font-size: 1.50rem;
      line-height: 1.45;
    }

    .profile-card p {
      color: var(--text-muted);
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 20px;
    }

    .stat-card {
      padding: 18px;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(7, 36, 77, 0.07);
      box-shadow: 0 8px 18px rgba(7, 36, 77, 0.045);
      transition: 0.25s ease;
    }

    .stat-card:nth-child(1) {
      background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
      border-color: rgba(37, 99, 235, 0.16);
    }

    .stat-card:nth-child(2) {
      background: linear-gradient(135deg, #f7f3ff 0%, #ffffff 100%);
      border-color: rgba(124, 58, 237, 0.15);
    }

    .stat-card:nth-child(3) {
      background: linear-gradient(135deg, #f1fbf6 0%, #ffffff 100%);
      border-color: rgba(22, 163, 74, 0.15);
    }

    .stat-card:nth-child(4) {
      background: linear-gradient(135deg, #eefbff 0%, #ffffff 100%);
      border-color: rgba(8, 145, 178, 0.16);
    }

    .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 28px rgba(7, 36, 77, 0.10);
    }

    .stat-card strong {
      display: block;
      color: var(--blue-deep);
      font-size: 1.65rem;
      line-height: 1.1;
      font-weight: 900;
    }

    .stat-card:nth-child(1) strong { color: #1d4ed8; }
    .stat-card:nth-child(2) strong { color: #6d28d9; }
    .stat-card:nth-child(3) strong { color: #15803d; }
    .stat-card:nth-child(4) strong { color: #0e7490; }

    .stat-card span {
      color: var(--text-muted);
      font-size: 0.92rem;
    }

    .feature-list {
      display: grid;
      gap: 15px;
      margin: 26px 0;
    }

    .feature-item {
      position: relative;
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 14px;
      padding: 16px;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(7, 36, 77, 0.065);
      box-shadow: 0 8px 18px rgba(7, 36, 77, 0.040);
      overflow: hidden;
      transition: 0.25s ease;
    }

    .feature-item::before {
      content: "";
      position: absolute;
      left: 0;
      top: 14px;
      bottom: 14px;
      width: 5px;
      border-radius: 0 999px 999px 0;
    }

    .feature-item:nth-child(1) {
      background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
    }

    .feature-item:nth-child(2) {
      background: linear-gradient(135deg, #f7f3ff 0%, #ffffff 100%);
    }

    .feature-item:nth-child(3) {
      background: linear-gradient(135deg, #f1fbf6 0%, #ffffff 100%);
    }

    .feature-item:nth-child(1)::before { background: #2563eb; }
    .feature-item:nth-child(2)::before { background: #7c3aed; }
    .feature-item:nth-child(3)::before { background: #16a34a; }

    .feature-item:hover {
      transform: translateX(6px);
      box-shadow:
        0 12px 28px rgba(7, 36, 77, 0.10),
        0 24px 42px rgba(7, 36, 77, 0.065);
    }

    .feature-item .num {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      color: #ffffff;
      display: grid;
      place-items: center;
      font-weight: 900;
    }

    .feature-item:nth-child(1) .num {
      background: linear-gradient(135deg, #1e3a8a, #2563eb);
    }

    .feature-item:nth-child(2) .num {
      background: linear-gradient(135deg, #581c87, #7c3aed);
    }

    .feature-item:nth-child(3) .num {
      background: linear-gradient(135deg, #166534, #16a34a);
    }

    .feature-item h4 {
      color: var(--blue-top);
    }

    .feature-item p {
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    /* Featured Works */
    .featured-grid {
      display: grid;
      grid-template-columns: 1.22fr 0.78fr 0.78fr;
      grid-auto-rows: minmax(198px, auto);
      gap: 18px;
    }

    .featured-card {
      position: relative;
      overflow: hidden;
      border-radius: 28px;
      padding: 26px;
      background: #ffffff;
      border: 1px solid rgba(7, 36, 77, 0.08);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 12px 28px rgba(7, 36, 77, 0.07),
        0 24px 50px rgba(7, 36, 77, 0.07);
      transition: 0.28s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 210px;
    }

    .featured-card::before {
      content: "";
      position: absolute;
      right: -42px;
      top: -42px;
      width: 108px;
      height: 108px;
      border-radius: 999px;
      background: rgba(11, 87, 159, 0.08);
      transition: 0.28s ease;
    }

    .featured-card:hover {
      transform: translateY(-7px);
      box-shadow:
        0 18px 42px rgba(7, 36, 77, 0.12),
        0 36px 76px rgba(7, 36, 77, 0.14);
    }

    .featured-card:hover::before {
      transform: scale(1.10);
      background: rgba(244, 197, 66, 0.13);
    }

    .featured-main {
      grid-row: span 2;
      min-height: 430px;
      padding: 0;
      color: #ffffff;
      background:
        radial-gradient(circle at 82% 12%, rgba(244, 197, 66, 0.25), transparent 34%),
        linear-gradient(135deg, #061a38 0%, #0b3c78 54%, #0b579f 100%);
      border: 3px solid rgba(11, 60, 120, 0.72);
      justify-content: flex-start;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 0 0 1px rgba(244, 197, 66, 0.10),
        0 16px 36px rgba(7, 36, 77, 0.12),
        0 34px 72px rgba(7, 36, 77, 0.15);
    }

    .featured-main:hover {
      box-shadow:
        0 1px 0 rgba(255,255,255,0.94) inset,
        0 0 0 1px rgba(244, 197, 66, 0.18),
        0 0 22px rgba(244, 197, 66, 0.16),
        0 20px 46px rgba(7, 36, 77, 0.16),
        0 42px 82px rgba(7, 36, 77, 0.18);
    }

    .featured-main::before {
      background: rgba(255, 255, 255, 0.12);
    }

    .featured-main-image {
      position: relative;
      z-index: 2;
      width: calc(100% - 18px);
      aspect-ratio: 16 / 9;
      height: auto;
      margin: 9px auto 0;
      padding: 0;
      display: block;
      background: #ffffff;
      border-radius: 22px;
      overflow: hidden;
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        0 8px 18px rgba(7, 36, 77, 0.18);
      transition: 0.35s ease;
    }

    .featured-main-image img {
      width: 100%;
      height: 100%;
      border-radius: 20px;
      object-fit: contain;
      object-position: center;
      background: #ffffff;
      image-rendering: auto;
      backface-visibility: hidden;
      transform: translateZ(0);
      transition:
        transform 0.42s ease,
        box-shadow 0.42s ease,
        filter 0.42s ease;
    }

    .featured-main:hover .featured-main-image img {
      transform: translateZ(0) scale(1.006);
      filter: saturate(1.03) contrast(1.02);
    }

    .featured-main-body {
      position: relative;
      z-index: 2;
      min-height: 50%;
      padding: 28px 28px 30px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      flex: 1;
    }

    .featured-card h3,
    .featured-card p,
    .featured-badge,
    .featured-link {
      position: relative;
      z-index: 2;
    }

    .featured-badge {
      display: inline-flex;
      width: fit-content;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--gold-soft);
      color: #8a610f;
      font-size: 0.78rem;
      font-weight: 900;
      margin-bottom: 14px;
    }

    .featured-main .featured-badge {
      background: rgba(255, 255, 255, 0.14);
      color: var(--gold-main);
      border: 1px solid rgba(255, 255, 255, 0.18);
      margin-bottom: 12px;
    }

    .featured-card h3 {
      color: var(--blue-top);
      font-size: 1.15rem;
      line-height: 1.45;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .featured-main h3 {
      color: #ffffff;
      font-size: clamp(1.70rem, 3vw, 2.35rem);
      line-height: 1.35;
      margin-bottom: 12px;
    }

    .featured-card p {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.72;
      margin-bottom: 18px;
    }

    .featured-main p {
      color: rgba(255, 255, 255, 0.86);
      font-size: 1.02rem;
      line-height: 1.78;
      margin-bottom: 20px;
    }

    .featured-link {
      color: var(--blue-deep);
      font-weight: 900;
      display: inline-flex;
      width: fit-content;
      transition: 0.25s ease;
    }

    .featured-main .featured-link {
      color: var(--gold-main);
    }

    .featured-card:hover .featured-link {
      transform: translateX(6px);
    }

    /* Awards */
    .awards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .award-card {
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 26px;
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
      border: 1px solid rgba(7, 36, 77, 0.075);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.90) inset,
        0 10px 22px rgba(7, 36, 77, 0.055),
        0 26px 54px rgba(7, 36, 77, 0.105);
      transition: 0.25s ease;
    }

    .award-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 26px;
      pointer-events: none;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.38);
      z-index: 2;
    }

    .award-card:hover {
      transform: translateY(-8px);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 16px 34px rgba(7, 36, 77, 0.105),
        0 36px 70px rgba(7, 36, 77, 0.16);
    }

    .award-image {
      height: 238px;
      padding: 8px;
      background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95) 0%, transparent 35%),
        linear-gradient(135deg, #fbfdff 0%, #f0f5fa 54%, #e7eef6 100%);
      border-bottom: 1px solid rgba(7, 36, 77, 0.055);
    }

    .award-image-inner {
      width: 100%;
      height: 100%;
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(6,26,56,0.06)),
        var(--award-img);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.60),
        0 7px 16px rgba(7, 36, 77, 0.12);
      transition: 0.25s ease;
    }

    .award-card:hover .award-image-inner {
      transform: scale(1.012);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.68),
        0 10px 22px rgba(7, 36, 77, 0.16);
    }

    .award-body {
      position: relative;
      padding: 24px 22px 26px;
      background:
        radial-gradient(circle at 92% 8%, rgba(244, 197, 66, 0.055) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 56%, #eef3f8 100%);
      transition: 0.25s ease;
      flex: 1;
    }

    .award-body::before {
      content: "";
      position: absolute;
      left: 24px;
      right: 24px;
      top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(244, 197, 66, 0.30), transparent);
    }

    .award-card:hover .award-body {
      background:
        radial-gradient(circle at 88% 8%, rgba(244, 197, 66, 0.09) 0%, transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 56%, #e8eef6 100%);
    }

    .award-body h4 {
      color: var(--blue-top);
      font-size: 1.00rem;
      line-height: 1.50;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .award-body p {
      color: #667085;
      font-size: 0.94rem;
      line-height: 1.55;
    }

    .awards-action {
      display: flex;
      justify-content: center;
      margin-top: 30px;
    }

    .btn-dark:hover {
      transform: translateY(-3px);
      background: linear-gradient(135deg, var(--blue-deep), var(--blue-main));
      color: var(--gold-main);
      box-shadow:
        0 14px 30px rgba(6, 26, 56, 0.26),
        0 0 18px rgba(244, 197, 66, 0.18);
    }

    .awards-btn {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      min-width: 160px;
      padding: 12px 26px !important;
      border-radius: 999px !important;
      background: linear-gradient(135deg, #061a38, #0b3c78) !important;
      color: #ffffff !important;
      font-weight: 900;
      border: 1px solid rgba(244, 197, 66, 0.24) !important;
      box-shadow: 0 12px 28px rgba(6, 26, 56, 0.24);
    }

    .awards-btn:hover {
      transform: translateY(-3px);
      background: linear-gradient(135deg, #0b3c78, #0b579f) !important;
      color: #f4c542 !important;
    }

    /* Impact */
    .impact-panel {
      border-radius: 32px;
      padding: 32px;
      background:
        radial-gradient(circle at 10% 12%, rgba(244, 197, 66, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(6, 26, 56, 0.98), rgba(11, 60, 120, 0.96));
      color: #ffffff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 24px 58px rgba(7, 36, 77, 0.24);
    }

    .impact-panel .section-title {
      color: #ffffff;
    }

    .impact-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .impact-card {
      position: relative;
      min-height: 132px;
      border-radius: 24px;
      padding: 24px;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.17);
      overflow: hidden;
      transition: 0.25s ease;
    }

    .impact-card::after {
      content: "";
      position: absolute;
      width: 90px;
      height: 90px;
      right: -28px;
      bottom: -28px;
      border-radius: 999px;
      background: rgba(244, 197, 66, 0.22);
    }

    .impact-card:hover {
      transform: translateY(-6px);
      background: rgba(255, 255, 255, 0.15);
    }

    .impact-card strong {
      display: block;
      color: var(--gold-main);
      font-size: clamp(2rem, 3vw, 3rem);
      line-height: 1;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .impact-card span {
      color: rgba(255, 255, 255, 0.92);
      font-weight: 800;
    }

        /* Tabs */
    .tabs-box {
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      border: 1px solid rgba(7, 36, 77, 0.075);
      border-radius: 30px;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 16px 38px rgba(7, 36, 77, 0.085),
        0 36px 70px rgba(7, 36, 77, 0.07);
      padding: 22px;
      transition: 0.28s ease;
    }

    .tab-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      border-bottom: 1px solid rgba(7, 36, 77, 0.08);
      padding-bottom: 16px;
      margin-bottom: 22px;
    }

    .tab-btn {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(7, 36, 77, 0.10);
      background: #ffffff;
      color: var(--text-dark);
      border-radius: 999px;
      padding: 11px 18px;
      font-size: 1.02rem;
      font-weight: 900;
      cursor: pointer;
      transition: 0.22s ease;
    }

    .tab-btn::after {
      content: "";
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 5px;
      height: 3px;
      border-radius: 999px;
      background: var(--gold-main);
      opacity: 0;
      transform: scaleX(0);
      transition: 0.25s ease;
    }

    .tab-btn.active,
    .tab-btn:hover {
      background: linear-gradient(135deg, var(--blue-top), var(--blue-deep));
      color: #ffffff;
      border-color: transparent;
      box-shadow:
        0 10px 22px rgba(7, 36, 77, 0.18),
        0 0 0 1px rgba(244, 197, 66, 0.18);
    }

    .tab-btn.active::after,
    .tab-btn:hover::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .tab-btn.active::after {
      height: 4px;
      bottom: 4px;
      background: linear-gradient(90deg, #f4c542, #ffe08a);
    }

    .tab-panel {
      display: none;
      animation: fadeIn 0.35s ease;
    }

    .tab-panel.active {
      display: block;
    }

    .knowledge-grid {
      display: grid;
      grid-template-columns: 1.12fr 1fr;
      gap: 20px;
    }

    .knowledge-feature {
      min-height: 330px;
      border-radius: 24px;
      color: #ffffff;
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      position: relative;
      isolation: isolate;
      box-shadow: 0 18px 38px rgba(7, 36, 77, 0.15);
      transition: 0.28s ease;
    }

    .knowledge-feature::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(6, 26, 56, 0.18) 0%, rgba(6, 26, 56, 0.58) 100%),
        radial-gradient(circle at 88% 12%, rgba(244, 197, 66, 0.22), transparent 32%);
      z-index: 1;
    }

    .knowledge-feature::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 80% 12%, rgba(244, 197, 66, 0.22), transparent 34%);
      opacity: 0;
      transition: 0.28s ease;
      z-index: 1;
      pointer-events: none;
    }

    .knowledge-feature:hover {
      transform: translateY(-4px);
      box-shadow:
        0 18px 38px rgba(7, 36, 77, 0.18),
        0 32px 64px rgba(7, 36, 77, 0.16);
    }

    .knowledge-feature:hover::after {
      opacity: 1;
    }

    .knowledge-feature h3 {
      position: relative;
      z-index: 2;
      width: 100%;
      text-align: center;
      font-size: 1.70rem;
      line-height: 1.35;
      margin-bottom: 0;
      text-shadow: 0 8px 24px rgba(0,0,0,0.26);
      transition: 0.28s ease;
      transform: translateY(0);
    }

    .knowledge-feature:hover h3 {
      transform: translateY(-4px);
      color: #ffffff;
      text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
    }

    #tab-position-standard .knowledge-feature {
      background: url("../../newimage/tap-01.png") center/cover no-repeat;
    }

    #tab-academic-works .knowledge-feature {
      background: url("../../newimage/tap-02.png") center/cover no-repeat;
    }

    #tab-contest-awards .knowledge-feature {
      background: url("../../newimage/tap-03.png") center/cover no-repeat;
    }

    .knowledge-list {
      display: grid;
      gap: 12px;
    }

    .knowledge-item {
      position: relative;
      overflow: hidden;
      padding: 18px 22px;
      border-radius: 20px;
      background: #ffffff;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: center;
      border: 1px solid rgba(7, 36, 77, 0.075);
      box-shadow: 0 6px 16px rgba(7, 36, 77, 0.04);
      transition:
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.28s ease;
    }

    .knowledge-item::before {
      content: "";
      position: absolute;
      left: 0;
      top: 16px;
      bottom: 16px;
      width: 5px;
      border-radius: 0 999px 999px 0;
      background: rgba(244, 197, 66, 0.72);
      opacity: 0;
      transform: translateX(-6px);
      transition: 0.25s ease;
    }

    .knowledge-item:hover {
      background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
      border-color: rgba(11, 87, 159, 0.16);
      box-shadow:
        0 12px 28px rgba(7, 36, 77, 0.085),
        0 24px 44px rgba(7, 36, 77, 0.065);
      transform: translateY(-4px);
    }

    .knowledge-item:hover::before {
      opacity: 1;
      transform: translateX(0);
      background: #f4c542;
    }

    .knowledge-item > div {
      transition: 0.25s ease;
    }

    .knowledge-item:hover > div {
      transform: translateX(4px);
    }

    .knowledge-item h4 {
      color: var(--blue-top);
      transition: 0.25s ease;
    }

    .knowledge-item:hover h4 {
      color: var(--blue-top);
    }

    .knowledge-item span {
      color: var(--text-muted);
      font-size: 0.90rem;
      transition: 0.25s ease;
    }

    .knowledge-item:hover span {
      color: #5f6f86;
    }

    .knowledge-item strong {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 1.15rem;
      font-weight: 900;
      color: var(--blue-deep);
      background: #ffffff;
      border: 2px solid rgba(11, 60, 120, 0.12);
      box-shadow: 0 6px 14px rgba(7, 36, 77, 0.06);
      transition:
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.28s ease;
    }

    .knowledge-item:hover strong {
      color: #ffffff;
      background: linear-gradient(135deg, var(--blue-top), var(--blue-deep));
      border-color: rgba(11, 60, 120, 0.20);
      transform: translateX(7px) scale(1.06);
      box-shadow:
        0 10px 20px rgba(11, 87, 159, 0.20),
        0 0 0 4px rgba(234, 242, 255, 0.95);
    }

    /* Resource */
    .resource-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .resource-card {
      position: relative;
      min-height: 212px;
      padding: 24px 20px;
      border-radius: 26px;
      background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
      border: 1px solid rgba(7, 36, 77, 0.08);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 8px 18px rgba(7, 36, 77, 0.05),
        0 18px 36px rgba(7, 36, 77, 0.07);
      overflow: hidden;
      transition: 0.25s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .resource-card::after {
      content: "";
      position: absolute;
      right: -56px;
      top: -56px;
      width: 124px;
      height: 124px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.14);
      transition: 0.25s ease;
    }

    .resource-card:hover {
      transform: translateY(-7px);
      background:
        radial-gradient(circle at 90% 0%, rgba(244, 197, 66, 0.18), transparent 30%),
        linear-gradient(135deg, var(--blue-top), var(--blue-deep));
      border-color: rgba(244, 197, 66, 0.42);
      box-shadow:
        0 14px 28px rgba(7, 36, 77, 0.12),
        0 28px 54px rgba(7, 36, 77, 0.18);
    }

    .resource-card:hover::after {
      background: rgba(255, 255, 255, 0.12);
      transform: scale(1.1);
    }

    .resource-icon {
      position: relative;
      z-index: 2;
      width: 64px;
      height: 64px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      margin-bottom: 18px;
      background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
      border: 1px solid rgba(11, 60, 120, 0.10);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.75),
        0 8px 18px rgba(7, 36, 77, 0.06);
      transition: 0.25s ease;
    }

    .resource-icon img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
    }

    .resource-icon-text {
      display: none;
      color: var(--blue-top);
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.4px;
    }

    .resource-card:hover .resource-icon {
      background: rgba(255, 255, 255, 0.96);
      border-color: rgba(244, 197, 66, 0.62);
      transform: translateY(-2px);
    }

    .resource-card h3 {
      position: relative;
      z-index: 2;
      color: var(--blue-top);
      font-size: 1.05rem;
      line-height: 1.45;
      font-weight: 900;
      margin-bottom: 10px;
      transition: 0.25s ease;
    }

    .resource-card p {
      position: relative;
      z-index: 2;
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.72;
      margin-bottom: 16px;
      transition: 0.25s ease;
    }

    .resource-more {
      position: relative;
      z-index: 2;
      display: inline-flex;
      margin-top: auto;
      color: var(--blue-deep);
      font-size: 0.88rem;
      font-weight: 900;
      transition: 0.25s ease;
    }

    .resource-card:hover h3 {
      color: #ffffff;
    }

    .resource-card:hover p {
      color: rgba(255, 255, 255, 0.82);
    }

    .resource-card:hover .resource-more {
      color: var(--gold-main);
    }

    /* Reference Library */
    .learning-gateway-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .learning-gateway-card {
      position: relative;
      min-height: 240px;
      border-radius: 28px;
      padding: 28px;
      overflow: hidden;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      box-shadow:
        0 14px 34px rgba(7, 36, 77, 0.10),
        0 28px 60px rgba(7, 36, 77, 0.12);
      transition: 0.28s ease;
    }

    .learning-gateway-card::before {
      content: "";
      position: absolute;
      width: 170px;
      height: 170px;
      right: -42px;
      top: -64px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.16);
      transition: 0.28s ease;
    }

    .learning-gateway-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.06));
      pointer-events: none;
    }

    .learning-gateway-card:hover {
      transform: translateY(-8px);
      box-shadow:
        0 18px 42px rgba(7, 36, 77, 0.16),
        0 36px 72px rgba(7, 36, 77, 0.18);
    }

    .learning-gateway-card:hover::before {
      transform: scale(1.12);
      background: rgba(255, 255, 255, 0.22);
    }

    .gateway-teacher {
      background: linear-gradient(135deg, #061a38 0%, #0b579f 100%);
    }

    .gateway-learner {
      background: linear-gradient(135deg, #0b3c78 0%, #35a6d6 100%);
    }

    .gateway-development {
      background: linear-gradient(135deg, #176c78 0%, #2fb8a6 100%);
    }

    .gateway-kicker,
    .learning-gateway-card h3,
    .learning-gateway-card p,
    .gateway-link {
      position: relative;
      z-index: 2;
    }

    .gateway-kicker {
      display: inline-flex;
      width: fit-content;
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .learning-gateway-card h3 {
      color: #ffffff;
      font-size: 1.45rem;
      line-height: 1.42;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .learning-gateway-card p {
      color: rgba(255, 255, 255, 0.86);
      font-size: 1.00rem;
      line-height: 1.72;
      margin-bottom: 18px;
    }

    .gateway-link {
      display: inline-flex;
      width: fit-content;
      color: var(--gold-main);
      font-size: 1.00rem;
      font-weight: 900;
      transition: 0.25s ease;
    }

    .learning-gateway-card:hover .gateway-link {
      transform: translateX(6px);
      color: #ffe084;
    }

    /* Agency Logo */
    .agency-logo-cloud {
      border-radius: 30px;
      padding: 26px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      border: 1px solid rgba(7, 36, 77, 0.06);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 10px 22px rgba(7, 36, 77, 0.05),
        0 22px 44px rgba(7, 36, 77, 0.075);
    }

    .agency-logo-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 14px;
    }

    .agency-logo-item {
      min-height: 118px;
      padding: 14px 10px 12px;
      border-radius: 18px;
      background: #f8fafc;
      border: 1px solid rgba(7, 36, 77, 0.05);
      display: grid;
      grid-template-rows: 54px auto;
      align-items: start;
      justify-items: center;
      gap: 8px;
      text-align: center;
      transition: 0.25s ease;
    }

    .agency-logo-item:hover {
      transform: translateY(-4px);
      background: #ffffff;
      border-color: rgba(11, 87, 159, 0.16);
      box-shadow: 0 12px 28px rgba(7, 36, 77, 0.08);
    }

    .agency-logo-icon {
      width: 58px;
      height: 60px;
      display: grid;
      place-items: center;
      margin: 0 auto;
    }

    .agency-logo-icon img {
      max-width: 50px;
      max-height: 70%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }

    .agency-logo-name {
      min-height: 20px;
      color: var(--blue-deep);
      font-size: 0.90rem;
      line-height: 1.40;
      font-weight: 800;
      text-align: center;
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }


    /* Effect */
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: 0.6s ease;
    }

    .reveal.show {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Responsive */
    @media (max-width: 1120px) {


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

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

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

      .featured-main {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 300px;
      }
    }

    @media (max-width: 1024px) {
      .about-grid,
      .knowledge-grid,
      .learning-gateway-grid {
        grid-template-columns: 1fr;
      }

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

    @media (max-width: 900px) {














      .hero {
        height: clamp(540px, 78vh, 720px);
      }






    }

    @media (max-width: 680px) {
      .container {
        width: min(100% - 28px, var(--container));
      }

      .section {
        padding-top: 36px;
        padding-bottom: 36px;
      }

      .section-header {
        margin-bottom: 20px;
      }

      .section-blue {
        padding-top: 42px;
        padding-bottom: 42px;
      }

















      .awards-grid,
      .resource-grid,
      .impact-grid,
      .featured-grid {
        grid-template-columns: 1fr;
      }

      .featured-main {
        grid-column: span 1;
        min-height: 430px;
        border-width: 2px;
      }

      .featured-main-image {
        width: calc(100% - 16px);
        aspect-ratio: 16 / 9;
        margin: 8px auto 0;
      }

      .featured-main-body {
        padding: 24px 22px 26px;
      }

      .featured-card::before {
        right: -36px;
        top: -36px;
        width: 96px;
        height: 96px;
      }

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

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

      .profile-photo {
        height: 230px;
      }

      .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
      }

      .tab-buttons {
        gap: 8px;
      }

      .tab-btn {
        font-size: 0.92rem;
        padding: 10px 14px;
      }

      .knowledge-item {
        padding: 16px 18px;
      }

      .knowledge-item strong {
        width: 38px;
        height: 38px;
      }




    }
  

    /* ===== PREMIUM REFINED : พรีเมี่ยมแบบสุภาพ ไม่ใช้เส้นเหลือง และคง Hero เดิม ===== */
    :root {
      --premium-border: rgba(7, 36, 77, 0.075);
      --premium-border-strong: rgba(7, 36, 77, 0.115);
      --premium-surface: linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #f3f6fb 100%);
      --premium-shadow: 0 1px 0 rgba(255,255,255,0.95) inset,
                        0 14px 34px rgba(7,36,77,0.075),
                        0 34px 72px rgba(7,36,77,0.085);
      --premium-shadow-hover: 0 1px 0 rgba(255,255,255,0.96) inset,
                              0 18px 42px rgba(7,36,77,0.11),
                              0 44px 88px rgba(7,36,77,0.12);
    }

    body {
      background:
        radial-gradient(circle at 7% 5%, rgba(11, 87, 159, 0.045), transparent 30%),
        radial-gradient(circle at 94% 8%, rgba(148, 163, 184, 0.11), transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 45%, #f5f7fb 100%);
    }







    .section {
      padding: 52px 0;
    }

    .section-header {
      margin-bottom: 30px;
    }

    .section-header .eyebrow,
    .about-content .eyebrow {
      box-shadow: 0 8px 18px rgba(7,36,77,0.055);
    }

    .profile-card,
    .about-content,
    .tabs-box,
    .agency-logo-cloud,
    .impact-panel,
    .featured-card,
    .award-card,
    .resource-card {
      box-shadow: var(--premium-shadow);
    }

    .profile-card,
    .about-content,
    .tabs-box,
    .agency-logo-cloud {
      position: relative;
      border-color: var(--premium-border);
      background: var(--premium-surface);
    }

    .profile-card::after,
    .about-content::after,
    .tabs-box::after,
    .agency-logo-cloud::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(255,255,255,0.56), transparent 28%, rgba(11,87,159,0.025));
      opacity: 0.9;
    }

    .profile-card > *,
    .about-content > *,
    .tabs-box > *,
    .agency-logo-cloud > * {
      position: relative;
      z-index: 2;
    }

    .profile-card:hover,
    .about-content:hover,
    .tabs-box:hover,
    .agency-logo-cloud:hover {
      transform: translateY(-4px);
      box-shadow: var(--premium-shadow-hover);
      border-color: var(--premium-border-strong);
    }

    .profile-photo {
      border: 8px solid #ffffff;
      outline: 1px solid rgba(7,36,77,0.10);
      box-shadow:
        0 12px 28px rgba(7,36,77,0.13),
        0 0 0 8px rgba(234,242,255,0.85);
    }

    .stat-card,
    .feature-item,
    .knowledge-item,
    .agency-logo-item {
      border-color: rgba(7,36,77,0.08);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.92) inset,
        0 8px 18px rgba(7,36,77,0.055);
    }

    .stat-card:hover,
    .feature-item:hover,
    .knowledge-item:hover,
    .agency-logo-item:hover {
      box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 14px 30px rgba(7,36,77,0.10),
        0 28px 52px rgba(7,36,77,0.075);
    }

    .featured-card,
    .award-card,
    .resource-card,
    .learning-gateway-card {
      will-change: transform;
    }

    .featured-card {
      border-color: rgba(7,36,77,0.075);
      background:
        radial-gradient(circle at 94% 6%, rgba(11,87,159,0.045), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    }

    .featured-card:hover,
    .award-card:hover,
    .resource-card:hover,
    .learning-gateway-card:hover {
      box-shadow: var(--premium-shadow-hover);
    }

    .featured-card::after,
    .award-card::after,
    .resource-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 48%;
      height: 100%;
      transform: skewX(-18deg);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
      opacity: 0;
      transition: 0.55s ease;
      pointer-events: none;
      z-index: 3;
    }

    .featured-card:hover::after,
    .award-card:hover::after,
    .resource-card:hover::before {
      left: 125%;
      opacity: 1;
    }

    .featured-main {
      border-color: rgba(255,255,255,0.16);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 18px 42px rgba(7,36,77,0.16),
        0 44px 86px rgba(7,36,77,0.20);
    }

    .featured-main-image {
      border: 1px solid rgba(255,255,255,0.50);
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.60),
        0 10px 24px rgba(7,36,77,0.20);
    }

    .award-card {
      border-color: rgba(7,36,77,0.075);
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .award-image {
      padding: 10px;
      background:
        radial-gradient(circle at 12% 8%, rgba(255,255,255,0.88), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
    }

    .award-body {
      background:
        radial-gradient(circle at 92% 8%, rgba(11,87,159,0.045) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #eef3f8 100%);
    }

    .impact-panel {
      border: 1px solid rgba(255,255,255,0.14);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 24px 58px rgba(7,36,77,0.24),
        0 44px 92px rgba(7,36,77,0.18);
    }

    .impact-card {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }

    .impact-card:hover {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 18px 38px rgba(0,0,0,0.20);
    }

    .tabs-box {
      border-radius: 34px;
      padding: 26px;
    }

    .tab-buttons {
      background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
      border: 1px solid rgba(7,36,77,0.06);
      border-radius: 999px;
      padding: 10px;
      margin-bottom: 26px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    }

    .tab-btn {
      background: transparent;
      border-color: transparent;
    }

    .knowledge-feature {
      min-height: 360px;
      border: 1px solid rgba(255,255,255,0.30);
      box-shadow: 0 18px 40px rgba(7,36,77,0.16);
    }

    .resource-card {
      min-height: 232px;
    }

    .resource-icon {
      width: 70px;
      height: 70px;
      border-radius: 22px;
    }

    .learning-gateway-card {
      min-height: 260px;
      border: 1px solid rgba(255,255,255,0.18);
    }

    .agency-logo-cloud {
      padding: 30px;
    }

    .agency-logo-item {
      background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    }

    @media (max-width: 900px) {
      .tab-buttons {
        border-radius: 24px;
      }
    }

    @media (max-width: 680px) {
      .section {
        padding-top: 42px;
        padding-bottom: 42px;
      }
    }

    .featured-main {
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 197, 66, 0.22), transparent 34%),
    linear-gradient(135deg, #061a38 0%, #0b3c78 54%, #0b579f 100%) !important;
  color: #ffffff !important;
}

.featured-main-body {
  background: transparent !important;
}

.featured-main h3 {
  color: #ffffff !important;
}

.featured-main p {
  color: rgba(255, 255, 255, 0.86) !important;
}

.featured-main .featured-link {
  color: #f4c542 !important;
}

.featured-main .featured-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f4c542 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

  

/* ===== PREMIUM BALANCED OVERRIDE : สว่างขึ้น กระชับขึ้น พรีเมี่ยมแบบสุภาพ ===== */
:root {
  --page-bg: #fbfcfe;
  --line-soft: rgba(7, 36, 77, 0.065);
  --shadow-soft: 0 10px 26px rgba(7, 36, 77, 0.075);
  --shadow-card: 0 18px 46px rgba(7, 36, 77, 0.115);
  --premium-border: rgba(7, 36, 77, 0.065);
  --premium-border-strong: rgba(7, 36, 77, 0.105);
  --premium-surface: linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, #f6f9fd 100%);
  --premium-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
                    0 10px 26px rgba(7,36,77,0.060),
                    0 24px 52px rgba(7,36,77,0.070);
  --premium-shadow-hover: 0 1px 0 rgba(255,255,255,0.98) inset,
                          0 14px 34px rgba(7,36,77,0.095),
                          0 34px 70px rgba(7,36,77,0.105);
}

body {
  background:
    radial-gradient(circle at 7% 5%, rgba(11, 87, 159, 0.030), transparent 30%),
    radial-gradient(circle at 94% 8%, rgba(148, 163, 184, 0.060), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 46%, #f8fafc 100%);
}

.section {
  padding: 40px 0 !important;
}

.section-blue {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.section-header {
  margin-bottom: 22px !important;
}

.section-light,
.section-soft {
  background:
    radial-gradient(circle at 8% 10%, rgba(11, 87, 159, 0.025), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.026), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 52%, #f8fafc 100%);
}

.profile-card,
.about-content,
.tabs-box,
.agency-logo-cloud,
.impact-panel,
.featured-card,
.award-card,
.resource-card {
  box-shadow: var(--premium-shadow) !important;
}

.profile-card,
.about-content,
.tabs-box,
.agency-logo-cloud,
.award-card,
.resource-card,
.featured-card {
  border-color: var(--premium-border) !important;
}

.profile-card:hover,
.about-content:hover,
.tabs-box:hover,
.agency-logo-cloud:hover,
.featured-card:hover,
.award-card:hover,
.resource-card:hover,
.learning-gateway-card:hover {
  box-shadow: var(--premium-shadow-hover) !important;
}

.profile-card,
.about-content {
  padding: 26px !important;
  background:
    radial-gradient(circle at 100% 100%, rgba(11, 87, 159, 0.050), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #f6f9fd 100%) !important;
}

.feature-list {
  gap: 12px !important;
  margin: 22px 0 !important;
}

.feature-item,
.stat-card,
.knowledge-item,
.agency-logo-item {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 6px 15px rgba(7,36,77,0.045) !important;
}

.featured-grid,
.awards-grid,
.resource-grid,
.learning-gateway-grid,
.impact-grid {
  gap: 18px !important;
}

.featured-card {
  background:
    radial-gradient(circle at 94% 6%, rgba(11,87,159,0.030), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
}

.award-body {
  background:
    radial-gradient(circle at 92% 8%, rgba(11,87,159,0.030) 0%, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fafcff 62%, #f4f7fb 100%) !important;
}

.resource-card {
  min-height: 218px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.resource-card:hover {
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 197, 66, 0.16), transparent 30%),
    linear-gradient(135deg, var(--blue-top), var(--blue-deep)) !important;
}

.tabs-box {
  padding: 24px !important;
}

.tab-buttons {
  margin-bottom: 22px !important;
}

.knowledge-feature {
  min-height: 340px !important;
}

.agency-logo-cloud {
  padding: 26px !important;
}

@media (max-width: 680px) {
  .section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .section-blue {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .section-header {
    margin-bottom: 18px !important;
  }
}

.featured-card.featured-main {
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 197, 66, 0.22), transparent 34%),
    linear-gradient(135deg, #061a38 0%, #0b3c78 54%, #0b579f 100%) !important;
  color: #ffffff !important;
}

.featured-card.featured-main::after {
  display: none !important;
}

.featured-card.featured-main .featured-main-body {
  background: transparent !important;
}

.featured-card.featured-main h3 {
  color: #ffffff !important;
}

.featured-card.featured-main p {
  color: rgba(255, 255, 255, 0.86) !important;
}

.featured-card.featured-main .featured-link {
  color: #f4c542 !important;
}



/* ===== Recommended Learning Platforms ===== */
.learning-platform-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(11, 87, 159, 0.030), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.035), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 52%, #f8fafc 100%);
}

.learning-platform-cloud {
  border-radius: 30px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(7, 36, 77, 0.065);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 10px 26px rgba(7,36,77,0.060),
    0 24px 52px rgba(7,36,77,0.070);
}

.learning-platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.learning-platform-item {
  position: relative;
  min-height: 146px;
  padding: 18px 14px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 197, 66, 0.085), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(7, 36, 77, 0.065);
  display: grid;
  grid-template-rows: 64px auto auto;
  align-items: start;
  justify-items: center;
  gap: 8px;
  text-align: center;
  overflow: hidden;
  transition: 0.25s ease;
}

.learning-platform-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 87, 159, 0.055), transparent 42%);
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
}

.learning-platform-item:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: rgba(11, 87, 159, 0.16);
  box-shadow:
    0 10px 24px rgba(7,36,77,0.085),
    0 20px 40px rgba(7,36,77,0.060);
}

.learning-platform-item:hover::before {
  opacity: 1;
}

.learning-platform-logo {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(7, 36, 77, 0.075);
  box-shadow: 0 8px 18px rgba(7,36,77,0.055);
}

.learning-platform-logo img {
  max-width: 52px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.learning-platform-name {
  position: relative;
  z-index: 2;
  color: var(--blue-top);
  font-size: 0.96rem;
  line-height: 1.40;
  font-weight: 900;
}

.learning-platform-desc {
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.learning-platform-item:hover .learning-platform-name {
  color: var(--blue-deep);
}

@media (max-width: 1120px) {
  .learning-platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .learning-platform-cloud {
    padding: 18px;
  }

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

  .learning-platform-item {
    min-height: 136px;
    padding: 16px 10px 14px;
  }
}




/* ===== Local Learning Preview : Balanced Premium Gateway ===== */
.local-learning-preview-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 12%, rgba(11, 87, 159, 0.028), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(244, 197, 66, 0.032), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 52%, #f8fafc 100%);
}

.local-learning-preview-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7,36,77,0.07), transparent);
  pointer-events: none;
}

.local-learning-preview-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.055), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(11, 87, 159, 0.040), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(7, 36, 77, 0.060);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 8px 20px rgba(7,36,77,0.048),
    0 18px 38px rgba(7,36,77,0.052);
}

.local-learning-preview-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.48), transparent 32%, rgba(11,87,159,0.014));
}

.local-learning-preview-head,
.local-learning-preview-grid,
.local-learning-preview-footer {
  position: relative;
  z-index: 2;
}

.local-learning-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.local-learning-preview-head .section-header {
  margin-bottom: 0 !important;
  max-width: 820px;
}

.local-learning-preview-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.local-learning-view-all {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #3f300d;
  font-weight: 900;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.70), transparent 34%),
    linear-gradient(135deg, #fff9e8 0%, #f7e7b0 54%, #e9c96f 100%);
  border: 1px solid rgba(215, 164, 55, 0.30);
  box-shadow:
    0 8px 18px rgba(215, 164, 55, 0.12),
    0 0 0 3px rgba(255, 248, 223, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: 0.25s ease;
  white-space: nowrap;
}

.local-learning-view-all::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -130%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: 0.55s ease;
  pointer-events: none;
}

.local-learning-view-all:hover {
  transform: translateY(-2px);
  color: #061a38;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(135deg, #fff7da 0%, #f2d988 58%, #d9b14c 100%);
  border-color: rgba(215, 164, 55, 0.46);
  box-shadow:
    0 11px 24px rgba(215, 164, 55, 0.16),
    0 0 0 4px rgba(255, 243, 209, 0.50);
}

.local-learning-view-all:hover::after {
  left: 130%;
}

.local-learning-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.local-learning-preview-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #edf2f7;
  border: 3px solid rgba(148, 163, 184, 0.42);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.78) inset,
    0 8px 18px rgba(7,36,77,0.054),
    0 18px 34px rgba(7,36,77,0.050);
  transition: 0.28s ease;
  isolation: isolate;
}

.local-learning-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0,0,0) scale(1.006);
  transition: transform 0.42s ease, filter 0.42s ease;
  filter: saturate(1.02) contrast(1.018) brightness(0.98);
}

.local-learning-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,26,56,0.00) 34%, rgba(6,26,56,0.10) 62%, rgba(6,26,56,0.52) 100%),
    radial-gradient(circle at 12% 0%, rgba(244,197,66,0.09), transparent 34%);
  transition: 0.28s ease;
}

.local-learning-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 34%);
  transition: 0.28s ease;
  pointer-events: none;
}

.local-learning-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 114, 128, 0.56);
  box-shadow:
    0 12px 26px rgba(7,36,77,0.092),
    0 24px 48px rgba(7,36,77,0.088);
}

.local-learning-preview-card:hover img {
  transform: translate3d(0,0,0) scale(1.038);
  filter: saturate(1.055) contrast(1.035) brightness(1.00);
}

.local-learning-preview-card:hover::after {
  opacity: 1;
}

.local-learning-preview-body {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.local-learning-preview-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff8df;
  background: rgba(6, 26, 56, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 900;
  box-shadow:
    0 8px 16px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.13);
}

.local-learning-preview-card h3,
.local-learning-preview-link {
  display: none !important;
}

.local-learning-preview-footer {
  display: none;
}

@media (max-width: 1180px) {
  .local-learning-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .local-learning-preview-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .local-learning-preview-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 16px;
  }

  .local-learning-preview-action,
  .local-learning-view-all {
    width: 100%;
  }

  .local-learning-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .local-learning-preview-grid {
    grid-template-columns: 1fr;
  }

  .local-learning-preview-card {
    aspect-ratio: 16 / 9;
  }
}


/* ===== Knowledge Transition Section : แบ่งโซนผลงานส่วนตัวสู่คลังความรู้สาธารณะ ===== */
.knowledge-transition-section {
  position: relative;
  overflow: hidden;
  padding-top: 46px !important;
  padding-bottom: 46px !important;
  background:
    radial-gradient(circle at 10% 18%, rgba(244, 197, 66, 0.12), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(11, 87, 159, 0.16), transparent 30%),
    linear-gradient(135deg, #061a38 0%, #0b3c78 52%, #0b579f 100%);
  color: #ffffff;
}

.knowledge-transition-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 24%, transparent 76%, rgba(255,255,255,0.04)),
    radial-gradient(circle at 50% 100%, rgba(244,197,66,0.11), transparent 34%);
  pointer-events: none;
}

.knowledge-transition-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 24px 58px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.knowledge-transition-content .eyebrow {
  color: #fff4cb;
  background: rgba(255,255,255,0.11);
  border-color: rgba(244,197,66,0.34);
  margin-bottom: 14px;
}

.knowledge-transition-title {
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.34;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.knowledge-transition-title span {
  color: var(--gold-main);
}

.knowledge-transition-desc {
  max-width: 760px;
  color: rgba(255,255,255,0.88);
  font-size: 1.03rem;
  line-height: 1.85;
  margin-bottom: 22px;
}

.knowledge-transition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.knowledge-transition-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff8df;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

.knowledge-transition-cards {
  display: grid;
  gap: 14px;
}

.knowledge-transition-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.14);
  transition: 0.25s ease;
}

.knowledge-transition-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(244,197,66,0.13);
  transition: 0.25s ease;
}

.knowledge-transition-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
  border-color: rgba(244,197,66,0.30);
}

.knowledge-transition-card:hover::after {
  transform: scale(1.12);
  background: rgba(244,197,66,0.20);
}

.knowledge-transition-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #061a38;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7df, #f4c542);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.knowledge-transition-card h3,
.knowledge-transition-card p {
  position: relative;
  z-index: 2;
}

.knowledge-transition-card h3 {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 900;
  margin-bottom: 4px;
}

.knowledge-transition-card p {
  color: rgba(255,255,255,0.80);
  font-size: 0.91rem;
  line-height: 1.68;
}

/* ปรับบทบาทแหล่งเรียนรู้ให้เป็นประตูเชื่อม ไม่กินน้ำหนักหน้าแรกมากเกินไป */
.local-learning-preview-section {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

.local-learning-preview-panel {
  padding: 24px !important;
}

.local-learning-preview-head {
  margin-bottom: 18px !important;
}

@media (max-width: 900px) {
  .knowledge-transition-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .knowledge-transition-section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .knowledge-transition-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .knowledge-transition-card {
    grid-template-columns: 40px 1fr;
    padding: 16px;
  }

  .knowledge-transition-icon {
    width: 40px;
    height: 40px;
  }
}




/* ===== IMPACT SOFT REFINEMENT : ลดน้ำหนักส่วนประสบการณ์วิทยากรให้บาลานซ์กับหน้าแรก ===== */
.impact-soft-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(11, 87, 159, 0.030), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.032), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 52%, #f8fafc 100%) !important;
  color: var(--text-dark) !important;
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

.impact-soft-section::before {
  background: none !important;
}

.impact-soft-panel {
  border-radius: 30px !important;
  padding: 28px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.075), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(11, 87, 159, 0.045), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(7, 36, 77, 0.065) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 10px 26px rgba(7,36,77,0.060),
    0 24px 52px rgba(7,36,77,0.070) !important;
}

.impact-soft-panel .eyebrow {
  color: var(--blue-deep) !important;
  background: rgba(234, 242, 255, 0.92) !important;
  border-color: rgba(11, 60, 120, 0.12) !important;
}

.impact-soft-panel .section-title {
  color: var(--blue-top) !important;
}

.impact-soft-panel .section-desc {
  color: var(--text-muted) !important;
  max-width: 760px;
}

.impact-soft-panel .impact-grid {
  margin-top: 18px;
}

.impact-soft-panel .impact-card {
  min-height: 116px !important;
  padding: 20px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 87, 159, 0.060), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(7, 36, 77, 0.070) !important;
  box-shadow: 0 8px 18px rgba(7,36,77,0.050) !important;
}

.impact-soft-panel .impact-card::after {
  background: rgba(244, 197, 66, 0.14) !important;
}

.impact-soft-panel .impact-card:hover {
  transform: translateY(-5px);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.105), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%) !important;
  box-shadow: 0 14px 30px rgba(7,36,77,0.090) !important;
}

.impact-soft-panel .impact-card strong {
  color: var(--blue-deep) !important;
  font-size: clamp(1.65rem, 2.45vw, 2.35rem) !important;
}

.impact-soft-panel .impact-card span {
  color: var(--text-muted) !important;
  font-size: 0.94rem;
}

@media (max-width: 680px) {
  .impact-soft-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .impact-soft-panel {
    padding: 22px !important;
    border-radius: 26px !important;
  }
}

/* ===== FINAL ECOSYSTEM & INTERACTION UPGRADE : เก็บงานหน้าแรกให้เป็นระบบนิเวศความรู้ ===== */
html {
  scroll-padding-top: 132px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  z-index: 2000;
  background: linear-gradient(90deg, #f4c542, #fff1b8, #0b579f);
  box-shadow: 0 0 18px rgba(244, 197, 66, 0.38);
  transition: width 0.08s linear;
}

.site-ecosystem-strip {
  position: relative;
  padding: 22px 0 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(11, 87, 159, 0.030), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.ecosystem-strip-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.070), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(7, 36, 77, 0.065);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 10px 24px rgba(7,36,77,0.052),
    0 24px 50px rgba(7,36,77,0.056);
}


.ecosystem-strip-panel::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 60, 120, 0.10), transparent);
  pointer-events: none;
}

.ecosystem-strip-item {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 44px 16px 62px;
  border-radius: 21px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(7, 36, 77, 0.060);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ecosystem-strip-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,87,159,0.060), transparent 42%);
  opacity: 0;
  transition: 0.25s ease;
}

.ecosystem-strip-item:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 87, 159, 0.16);
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(7,36,77,0.090),
    0 24px 46px rgba(7,36,77,0.068);
}

.ecosystem-strip-item:hover::before {
  opacity: 1;
}

.ecosystem-strip-item::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%) translateX(-3px);
  color: rgba(11, 60, 120, 0.42);
  font-size: 1rem;
  font-weight: 900;
  opacity: 0;
  transition: 0.25s ease;
}

.ecosystem-strip-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  color: var(--gold-deep);
}

.ecosystem-strip-num {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #061a38;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7df, #f4c542);
  box-shadow: 0 7px 16px rgba(215, 164, 55, 0.17);
}

.ecosystem-strip-item strong {
  position: relative;
  z-index: 2;
  color: var(--blue-top);
  font-size: 1.00rem;
  line-height: 1.35;
  font-weight: 900;
}

.ecosystem-strip-item em {
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.80rem;
  font-weight: 700;
  margin-top: 2px;
}

.knowledge-transition-tags span,
.featured-badge,
.resource-more,
.gateway-link {
  letter-spacing: 0.01em;
}

.btn,
.featured-card,
.award-card,
.resource-card,
.learning-platform-item,
.agency-logo-item,
.knowledge-item,
.local-learning-preview-card,
.ecosystem-strip-item {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.featured-card:focus-visible,
.award-card:focus-visible,
.resource-card:focus-visible,
.learning-gateway-card:focus-visible,
.learning-platform-item:focus-visible,
.agency-logo-item:focus-visible,
.knowledge-item:focus-visible,
.local-learning-preview-card:focus-visible,
.ecosystem-strip-item:focus-visible {
  outline: 3px solid rgba(244, 197, 66, 0.72);
  outline-offset: 4px;
}

.impact-soft-panel .section-desc {
  line-height: 1.78;
}

.knowledge-transition-desc {
  text-wrap: pretty;
}

@media (max-width: 1024px) {
  .ecosystem-strip-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 110px;
  }

  .site-ecosystem-strip {
    padding-top: 16px;
  }

  .ecosystem-strip-panel {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 24px;
  }

  .ecosystem-strip-item {
    min-height: 76px;
    padding: 13px 40px 13px 56px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}



/* ===== FINAL USER REFINEMENT : ปุ่มรางวัลนุ่มขึ้น และลดความสูงการ์ดแผนผังเว็บ 20% ===== */
.ecosystem-strip-item {
  min-height: 75px !important;
  padding: 12px 42px 12px 58px !important;
  border-radius: 18px !important;
}

.ecosystem-strip-num {
  width: 30px !important;
  height: 30px !important;
  left: 18px !important;
  border-radius: 12px !important;
  font-size: 0.72rem !important;
  box-shadow: 0 6px 14px rgba(215, 164, 55, 0.14) !important;
}

.ecosystem-strip-item strong {
  font-size: 0.96rem !important;
  line-height: 1.30 !important;
}

.ecosystem-strip-item em {
  font-size: 0.78rem !important;
  margin-top: 1px !important;
}

.ecosystem-strip-item::after {
  right: 14px !important;
  font-size: 0.92rem !important;
}

.awards-btn {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(135deg, #eef4fb 0%, #dbe8f5 54%, #cbdced 100%) !important;
  color: #0b3c78 !important;
  border: 1px solid rgba(11, 60, 120, 0.14) !important;
  box-shadow:
    0 8px 18px rgba(7, 36, 77, 0.075),
    0 0 0 3px rgba(234, 242, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.awards-btn:hover {
  transform: translateY(-2px) !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, #f9fbff 0%, #e7f0fa 56%, #d7e5f3 100%) !important;
  color: #061a38 !important;
  border-color: rgba(215, 164, 55, 0.26) !important;
  box-shadow:
    0 10px 24px rgba(7, 36, 77, 0.10),
    0 0 0 4px rgba(255, 243, 209, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

@media (max-width: 680px) {
  .ecosystem-strip-item {
    min-height: 74px !important;
    padding: 12px 38px 12px 54px !important;
  }
}



/* ===== IMPACT SPLIT COMPACT : ซ้ายอธิบาย ขวาสรุปตัวเลข 2x2 ให้เด่นพอดี ===== */
.impact-soft-section {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

.impact-soft-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 30px !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 96% 8%, rgba(244, 197, 66, 0.105), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(11, 87, 159, 0.070), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 54%, #f4f8fd 100%) !important;
  border: 1px solid rgba(11, 60, 120, 0.095) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.98) inset,
    0 14px 34px rgba(7,36,77,0.078),
    0 32px 66px rgba(7,36,77,0.090) !important;
}

.impact-soft-panel .section-header {
  margin-bottom: 0 !important;
  max-width: 620px;
}

.impact-soft-panel .section-title {
  margin-bottom: 10px !important;
}

.impact-soft-panel .section-desc {
  line-height: 1.78 !important;
}

.impact-soft-panel .impact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.095), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(239,246,255,0.58));
  border: 1px solid rgba(11, 60, 120, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 24px rgba(7,36,77,0.060);
}

.impact-soft-panel .impact-card {
  min-height: 86px !important;
  padding: 15px 16px !important;
  border-radius: 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 96% 0%, rgba(244, 197, 66, 0.070), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(11, 60, 120, 0.085) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 18px rgba(7,36,77,0.060) !important;
}

.impact-soft-panel .impact-card::after {
  width: 64px !important;
  height: 64px !important;
  right: -22px !important;
  bottom: -22px !important;
  background: rgba(244, 197, 66, 0.16) !important;
}

.impact-soft-panel .impact-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(215, 164, 55, 0.24) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 12px 26px rgba(7,36,77,0.090) !important;
}

.impact-soft-panel .impact-card strong {
  font-size: clamp(1.45rem, 2vw, 2.00rem) !important;
  margin-bottom: 4px !important;
  color: #0b3c78 !important;
}

.impact-soft-panel .impact-card span {
  font-size: 0.88rem !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  .impact-soft-panel {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 24px !important;
  }

  .impact-soft-panel .section-header {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .impact-soft-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .impact-soft-panel {
    padding: 20px !important;
    border-radius: 26px !important;
  }

  .impact-soft-panel .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px;
  }

  .impact-soft-panel .impact-card {
    min-height: 78px !important;
    padding: 13px 12px !important;
  }
}
