/* -- CSS VARIABLES (updated live via Socket.io + Admin Panel) -- */
    :root {
      --primary:   #0F5132;
      --nav-bg:    #198754;
      --accent:    #D4AF37;
      --dark:      #0F5132;
      --footer-bg: #0F5132;

      /* Shell Elements Default Variables */
      --website-bg:          #D1F2E0;
      --text-color:          #222222;
      --header-bg:           var(--primary);
      --header-color:        #ffffff;
      --nav-color:           #ffffff;
      --footer-color:        #ffffff;
      --footer-title-color:  var(--accent);
      --hover-color:         #B8860B;

      /* Icons, Buttons and Boxes/Cards Defaults */
      --icon-bg:             #0F5132;
      --icon-color:          #D4AF37;
      --btn-bg:              #0F5132;
      --btn-color:           #ffffff;
      --box-bg:              #ffffff;
      --box-color:           #222222;

      /* Stats Bar Defaults */
      --stats-bg:            #0F5132;
      --stats-color:         #ffffff;
      --stats-hover-bg:      #198754;

      /* Typography -- sizes */
      --logo-size:          90px;
      --logo-size-mob:      64px;
      --header-kh-size:     21px;
      --header-en-size:     17px;
      --nav-font-size:      16px;
      --nav-icon-size:      12px;
      --body-title-size:    30px;
      --body-subtitle-size: 22px;
      --body-para-size:     15px;

      /* Typography -- fonts (body) */
      --font-khmer:      'Kantumruy Pro', sans-serif;
      --font-english:    'Google Sans', 'Poppins', sans-serif;
      /* Typography -- fonts (header title only) */
      --font-header-kh:  'Kantumruy Pro', sans-serif;
      --font-header-en:  'Google Sans', 'Poppins', sans-serif;
      /* Typography -- fonts (section titles & dynamic sections) */
      --font-section-kh: 'Kantumruy Pro', sans-serif;
      --font-section-en: 'Google Sans', 'Poppins', sans-serif;
    }

/* â”€â”€ RESET â”€â”€ */
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 120px;
    }

    body {
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      color: var(--text-color, #222);
      background: var(--website-bg, #fff);
      overflow-x: hidden;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

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

    ul {
      list-style: none;
    }

    .container {
      width: 90%;
      max-width: 1200px;
      margin: auto;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       HEADER
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    header {
      width: 100%;
      background: var(--header-bg, var(--primary));
      color: var(--header-color, #fff);
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9000;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    }

    .top-header {
      padding: 12px 0;
      max-height: 110px;
      overflow: hidden;
      transition: all 0.35s ease;
    }

    .top-header.hide {
      max-height: 0;
      padding: 0;
      opacity: 0;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .logo {
      width: var(--logo-size);
      height: var(--logo-size);
      background: transparent;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .title .kh-title {
      font-family: var(--font-header-kh,'Moulpali'), sans-serif;
      font-size: var(--header-kh-size);
      line-height: 1.5;
    }

    .title .en-title {
      font-family: var(--font-header-en), sans-serif;
      font-size: var(--header-en-size);
      font-weight: 600;
    }

    nav {
      background: var(--nav-bg);
    }

    .nav-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* â”€â”€ Desktop menu â”€â”€ */
    .menu {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
    }

    .menu li {
      position: relative;
    }

    .menu>li>a {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 14px 13px;
      color: var(--nav-color, #fff);
      font-size: var(--nav-font-size);
      font-weight: 500;
      transition: background 0.25s, color 0.25s;
      white-space: nowrap;
    }

    .menu>li>a i {
      font-size: var(--nav-icon-size);
      opacity: 0.82;
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      line-height: 1;
      transition: opacity 0.2s;
    }

    .menu>li>a:hover {
      background: var(--accent);
      color: var(--hover-color, #222);
    }

    .menu>li>a:hover i {
      opacity: 1;
    }

    .dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 240px;
      background: var(--nav-bg, var(--primary));
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      z-index: 999;
    }

    .menu li:hover .dropdown {
      display: block;
    }

    .dropdown a {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 11px 16px;
      font-size: 15px;
      color: var(--nav-color, #fff);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown a i {
      font-size: 12px;
      opacity: 0.72;
      width: 14px;
      flex-shrink: 0;
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      line-height: 1;
    }

    .dropdown li:last-child a {
      border-bottom: none;
    }

    .dropdown a:hover {
      background: var(--accent, rgba(255, 255, 255, 0.16));
      color: var(--hover-color, #222);
    }

    /* â”€â”€ Hamburger â”€â”€ */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      width: 44px;
      height: 44px;
      cursor: pointer;
      border-radius: 10px;
      background: var(--hamburger-bg, rgba(255, 255, 255, 0.08));
      border: 1.5px solid var(--nav-color-border, rgba(255, 255, 255, 0.25));
      transition: background 0.3s, border-color 0.3s;
      z-index: 9200;
      flex-shrink: 0;
    }

    .hamburger:hover {
      background: var(--hamburger-hover-bg, rgba(255, 255, 255, 0.2));
      border-color: var(--nav-color, #fff);
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--nav-color, #fff);
      border-radius: 2px;
      transform-origin: center center;
      transition: transform 0.38s cubic-bezier(.23, 1, .32, 1), opacity 0.25s ease, width 0.3s ease;
    }

    .hamburger.is-open span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-open span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }

    .hamburger.is-open span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    /* ── Language Switcher (nav bar) ── */
    .lang-switcher {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
      padding: 0 4px;
    }

    .lang-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 6px 11px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      border-radius: 20px;
      color: rgba(255, 255, 255, 0.7);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      font-family: inherit;
      line-height: 1;
    }

    .lang-btn:hover,
    .lang-btn.active {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.85);
      color: #fff;
    }

    .lang-btn .lang-flag {
      font-size: 15px;
      line-height: 1;
    }

    /* ── Language Switcher (mobile drawer) ── */
    .mob-lang-item {
      border-bottom: 1px solid #f0f0f0;
      padding: 12px 16px;
    }

    .mob-lang-row {
      display: flex;
      gap: 10px;
    }

    .mob-lang-btn {
      flex: 1;
      padding: 8px 12px;
      border: 1.5px solid var(--border, #e5e7eb);
      border-radius: 20px;
      background: transparent;
      color: #6b7280;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: var(--font-english,'Poppins'), sans-serif;
    }

    .mob-lang-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .mob-lang-btn:hover:not(.active) {
      border-color: var(--primary);
      color: var(--primary);
    }

    /* ── Mobile overlay â”€â”€ */
    .mob-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(3px);
      z-index: 9100;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.38s ease, visibility 0s linear 0.38s;
    }

    .mob-overlay.open {
      opacity: 1;
      visibility: visible;
      transition: opacity 0.38s ease, visibility 0s linear 0s;
    }

    /* â”€â”€ Mobile drawer â”€â”€ */
    .mob-drawer {
      position: fixed;
      top: 0;
      right: 0;
      width: min(310px, 84vw);
      height: 100vh;
      background: var(--website-bg, #fff);
      color: var(--text-color, #222);
      z-index: 9150;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      transform: translateX(105%);
      transition: transform 0.42s cubic-bezier(.4, 0, .2, 1);
      box-shadow: -8px 0 48px rgba(0, 0, 0, 0.25);
    }

    .mob-drawer.open {
      transform: translateX(0);
    }

    .mob-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 18px;
      background: var(--header-bg, var(--primary));
      flex-shrink: 0;
    }

    .mob-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      color: #fff;
    }

    .mob-logo {
      width: var(--logo-size-mob);
      height: var(--logo-size-mob);
      background: transparent;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .mob-titles .mob-kh {
      font-family: var(--font-header-kh,'Moulpali'), sans-serif;
      font-size: calc(var(--header-kh-size) * 0.6);
      line-height: 1.5;
    }

    .mob-titles .mob-en {
      font-size: 10.5px;
      opacity: 0.78;
    }

    .mob-close-btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      background: rgba(255, 255, 255, 0.15);
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      border-radius: 10px;
      color: #fff;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.28s, border-color 0.28s;
    }

    .mob-close-btn:hover {
      background: rgba(255, 255, 255, 0.32);
      border-color: rgba(255, 255, 255, 0.7);
    }

    .mob-close-btn .x-bar {
      position: absolute;
      width: 18px;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: transform 0.36s cubic-bezier(.23, 1, .32, 1), opacity 0.25s;
    }

    .mob-close-btn .x-bar:nth-child(1) {
      transform: rotate(45deg);
    }

    .mob-close-btn .x-bar:nth-child(2) {
      transform: rotate(-45deg);
    }

    .mob-close-btn:hover .x-bar:nth-child(1) {
      transform: rotate(225deg);
    }

    .mob-close-btn:hover .x-bar:nth-child(2) {
      transform: rotate(135deg);
    }

    .mob-links {
      flex: 1;
      padding: 6px 0;
    }

    .mob-links>li {
      border-bottom: 1px solid rgba(120, 120, 120, 0.15);
    }

    .mob-links>li>a {
      display: flex;
      align-items: center;
      gap: 0;
      padding: 14px 20px;
      font-size: 16px;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      color: var(--text-color, #1a1a1a);
      font-weight: 600;
      transition: background 0.22s, color 0.22s, padding-left 0.22s;
    }

    .mob-links>li>a .mob-icon {
      width: 30px;
      color: var(--primary);
      font-size: 14px;
      flex-shrink: 0;
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      line-height: 1;
    }

    .mob-links>li>a .mob-label {
      flex: 1;
    }

    .mob-links>li>a:hover {
      background: var(--accent, #f0faf4);
      color: var(--hover-color, var(--primary));
      padding-left: 24px;
    }

    .mob-caret {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: rgba(120, 120, 120, 0.08);
      color: var(--text-color, #1a1a1a);
      font-size: 10px;
      flex-shrink: 0;
    }

    .mob-links>li.sub-open .mob-caret {
      background: var(--accent, #f6c344);
      color: var(--hover-color, #222222);
    }

    .mob-sub {
      display: none;
      background: rgba(120, 120, 120, 0.05);
    }

    .mob-links>li.sub-open .mob-sub {
      display: block;
    }

    .mob-sub li {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mob-sub li:last-child {
      border-bottom: none;
    }

    .mob-sub li a {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 11px 20px 11px 34px;
      font-size: 15px;
      color: var(--text-color, #555);
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .mob-sub li a i {
      font-size: 11px;
      color: var(--primary);
      opacity: 0.7;
      width: 14px;
      flex-shrink: 0;
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      line-height: 1;
    }

    .mob-sub li a:hover {
      color: var(--hover-color, var(--primary));
      background: var(--accent, #e8f5ee);
    }

    .mob-foot {
      padding: 14px 20px;
      border-top: 1px solid #eee;
      background: #f8fdf9;
      font-size: 11.5px;
      color: #999;
      text-align: center;
      flex-shrink: 0;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       MAIN
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    main {
      padding-top: 130px;
    }

    /* â”€â”€ Carousel â”€â”€ */
    .carousel {
      height: 480px;
      position: relative;
      overflow: hidden;
    }

    @keyframes kenBurns {
      from { transform: scale(1.0); }
      to   { transform: scale(1.12); }
    }

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

    .slide {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      background-size: cover;
      background-position: center;
      padding: 25px;
      opacity: 0;
      transition: opacity 1s ease;
      z-index: 1;
    }

    .slide.active {
      opacity: 1;
      z-index: 2;
      animation: kenBurns 6s ease-in-out forwards;
    }

    .slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, rgba(10, 50, 25, 0.68) 0%, rgba(0, 0, 0, 0.44) 100%);
    }

    /* No overlay when slide has no text — image shows clean */
    .slide--no-text::before {
      display: none;
    }

    .slide-content {
      position: relative;
      z-index: 3;
      max-width: 850px;
    }

    .slide.active .slide-content {
      animation: slideTextIn 0.9s ease 0.4s both;
    }

    .slide h2 {
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      font-size: 36px;
      margin-bottom: 10px;
      text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    }

    .slide h3 {
      font-size: 28px;
      margin-bottom: 15px;
      font-weight: 600;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .slide p {
      font-size: 18px;
      margin-bottom: 28px;
      opacity: 0.92;
      font-family: var(--font-khmer), sans-serif;
      text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    .btn {
      display: inline-block;
      background: var(--accent);
      color: #222;
      padding: 13px 30px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 15px;
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
      box-shadow: 0 4px 18px rgba(246, 195, 68, 0.45);
    }

    .btn:hover {
      background: #e0ab2a;
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(246, 195, 68, 0.5);
    }

    .carousel-dots {
      position: absolute;
      bottom: 22px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 5;
    }

    .c-dot {
      width: 10px;
      height: 10px;
      background: rgba(255, 255, 255, 0.45);
      border: 2px solid rgba(255, 255, 255, 0.6);
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s, transform 0.3s;
    }

    .c-dot.active {
      background: var(--accent);
      border-color: var(--accent);
      transform: scale(1.35);
    }

    .c-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.35);
      backdrop-filter: blur(4px);
      border-radius: 50%;
      color: #fff;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 5;
      transition: background 0.3s;
    }

    .c-arrow:hover {
      background: rgba(255, 255, 255, 0.35);
    }

    .c-arrow.prev {
      left: 18px;
    }

    .c-arrow.next {
      right: 18px;
    }

    /* â”€â”€ Sections â”€â”€ */
    section {
      padding: 70px 0;
    }

    .section-title {
      text-align: center;
      margin-bottom: 42px;
    }

    .section-title h2 {
      font-family: var(--font-section-kh, var(--font-header-kh, 'Kantumruy Pro')), var(--font-section-en, var(--font-header-en, 'Google Sans')), sans-serif;
      color: var(--primary);
      font-size: var(--body-title-size);
      margin-bottom: 8px;
    }

    .section-title h3 {
      color: var(--primary);
      font-size: var(--body-subtitle-size);
      margin-bottom: 10px;
      font-weight: 600;
      font-family: var(--font-section-kh, var(--font-header-kh, 'Kantumruy Pro')), var(--font-section-en, var(--font-header-en, 'Google Sans')), sans-serif;
    }

    .section-title p {
      color: #666;
      max-width: 720px;
      margin: auto;
      font-size: var(--body-para-size);
      line-height: 1.75;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    /* â”€â”€ Cards â”€â”€ */
    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
    }

    .card {
      background: #fff;
      padding: 28px 24px;
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-top: 4px solid var(--primary);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      position: relative;
      overflow: hidden;
    }

    .card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 3px;
      background: var(--accent);
      transition: width 0.4s ease;
    }

    .card:hover {
      transform: translateY(-7px);
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
    }

    .card:hover::after {
      width: 100%;
    }

    .card-icon {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      background: linear-gradient(135deg, #e8f5ee, #c8e6d3);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      color: var(--primary);
      font-size: 22px;
      transition: transform 0.3s, background 0.3s, color 0.3s;
    }

    .card:hover .card-icon {
      transform: scale(1.1) rotate(-5deg);
      background: linear-gradient(135deg, var(--primary), var(--nav-bg));
      color: #fff;
    }

    .card h3 {
      color: var(--primary);
      margin-bottom: 10px;
      font-size: var(--body-para-size);
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .card p {
      color: #555;
      font-size: var(--body-para-size);
      line-height: 1.75;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    /* ── About Premium ── */
    .about-premium {
      background: linear-gradient(160deg, #f4fbf6 0%, #eaf5ee 45%, #f0faf5 100%);
      position: relative;
      overflow: hidden;
    }

    .about-bg-orbs {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.45;
      animation: orbFloat 10s ease-in-out infinite;
    }

    .orb-1 {
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(35,139,69,0.18) 0%, transparent 70%);
      top: -140px;
      left: -120px;
      animation-duration: 11s;
    }

    .orb-2 {
      width: 320px;
      height: 320px;
      background: radial-gradient(circle, rgba(246,195,68,0.14) 0%, transparent 70%);
      bottom: -80px;
      right: -80px;
      animation-duration: 14s;
      animation-direction: reverse;
    }

    .orb-3 {
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(35,139,69,0.10) 0%, transparent 70%);
      top: 50%;
      left: 60%;
      animation-duration: 9s;
      animation-delay: -4s;
    }

    @keyframes orbFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(18px, -22px) scale(1.06); }
      66%       { transform: translate(-14px, 16px) scale(0.96); }
    }

    /* About badge */
    .about-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--primary) 0%, #2aac60 100%);
      color: #fff;
      padding: 7px 20px;
      border-radius: 50px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.5px;
      margin-bottom: 16px;
      box-shadow: 0 6px 20px rgba(35,139,69,0.32);
    }

    /* Combined KH/EN section title */
    .section-title h2 {
      line-height: 1.45;
    }

    .title-slash {
      color: var(--primary);
      margin: 0 8px;
      font-weight: 300;
      opacity: 0.5;
      font-family: var(--font-english), sans-serif;
    }

    /* Title divider */
    .title-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin: 14px auto 20px;
      width: 220px;
    }

    .title-divider span {
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      border-radius: 2px;
    }

    .title-divider i {
      color: var(--accent);
      font-size: 13px;
    }

    /* Directional reveals */
    .reveal-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: opacity 0.75s cubic-bezier(.25,.8,.25,1), transform 0.75s cubic-bezier(.25,.8,.25,1);
    }

    .reveal-right {
      opacity: 0;
      transform: translateX(50px);
      transition: opacity 0.75s cubic-bezier(.25,.8,.25,1), transform 0.75s cubic-bezier(.25,.8,.25,1);
    }

    .reveal-left.visible,
    .reveal-right.visible {
      opacity: 1;
      transform: translateX(0);
    }

    /* Dean image wrap & badge */
    .dean-img-wrap {
      position: relative;
      margin-bottom: 24px;
    }

    .dean-img-wrap .dean-img img {
      transition: transform 0.55s cubic-bezier(.25,.8,.25,1);
    }

    .dean-img-wrap:hover .dean-img img {
      transform: scale(1.045);
    }

    .dean-img-wrap::before {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 22px;
      background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
      z-index: -1;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .dean-img-wrap:hover::before,
    .dean-block:hover .dean-img-wrap::before {
      opacity: 1;
    }

    .dean-img-badge {
      position: absolute;
      bottom: 14px;
      left: 14px;
      background: linear-gradient(135deg, rgba(15,61,32,0.92) 0%, rgba(35,139,69,0.92) 100%);
      color: #fff;
      padding: 8px 18px;
      border-radius: 50px;
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      backdrop-filter: blur(6px);
      box-shadow: 0 4px 18px rgba(0,0,0,0.25);
      border: 1.5px solid rgba(255,255,255,0.22);
      letter-spacing: 0.3px;
    }

    /* Premium dean text */
    .premium-text {
      position: relative;
      padding-left: 22px;
    }

    .dean-text-accent {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
      border-radius: 4px;
    }

    .dean-quote-icon {
      color: var(--accent);
      font-size: 30px;
      margin-bottom: 14px;
      opacity: 0.65;
      line-height: 1;
    }

    /* Stats bar */
    .about-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      margin: 0 0 60px;
      background: var(--stats-bg, linear-gradient(135deg, #0F5132 0%, var(--primary) 50%, #198754 100%)) !important;
      border-radius: 24px;
      box-shadow: 0 20px 60px rgba(15,81,50,0.15);
      position: relative;
      overflow: hidden;
    }

    .about-stats::before {
      content: '';
      position: absolute;
      width: 350px;
      height: 350px;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
      top: -120px;
      left: -80px;
      pointer-events: none;
    }

    .about-stats::after {
      content: '';
      position: absolute;
      width: 250px;
      height: 250px;
      background: radial-gradient(circle, rgba(246,195,68,0.07) 0%, transparent 70%);
      bottom: -80px;
      right: -50px;
      pointer-events: none;
    }

    .stat-item {
      text-align: center;
      color: var(--stats-color, #ffffff) !important;
      padding: 38px 24px;
      position: relative;
      z-index: 1;
      transition: background 0.3s;
    }

    .stat-item + .stat-item {
      border-left: 1px solid rgba(120, 120, 120, 0.15);
    }

    .stat-item:hover {
      background: var(--stats-hover-bg, rgba(255,255,255,0.06)) !important;
    }

    .stat-icon {
      width: 56px;
      height: 56px;
      background: rgba(120, 120, 120, 0.08);
      border: 1.5px solid rgba(120, 120, 120, 0.15);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
      font-size: 22px;
      color: var(--accent);
      transition: transform 0.35s ease, background 0.35s ease;
    }

    .stat-item:hover .stat-icon {
      transform: scale(1.14) rotate(-6deg);
      background: rgba(246,195,68,0.18);
    }

    .stat-number {
      font-size: 38px;
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 8px;
      font-family: var(--font-english), sans-serif;
      text-shadow: 0 2px 12px rgba(246,195,68,0.3);
    }

    .stat-label {
      font-size: 13px;
      opacity: 0.82;
      line-height: 1.55;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    /* ── About Program Cards ── */
    .about-program-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 28px;
    }

    .prog-card {
      background: #fff;
      border-radius: 24px;
      padding: 0;
      box-shadow: 0 6px 30px rgba(35,139,69,0.09);
      border: 1px solid rgba(35,139,69,0.09);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s ease;
    }

    .prog-card:hover {
      transform: translateY(-12px);
      box-shadow: 0 28px 70px rgba(35,139,69,0.18);
    }

    /* Image */
    .prog-card-img {
      height: 260px;
      overflow: hidden;
      position: relative;
      flex-shrink: 0;
    }

    .prog-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
    }

    .prog-card:hover .prog-card-img img {
      transform: scale(1.09);
    }

    .prog-card-img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(10,40,20,0.22) 0%, rgba(0,0,0,0.04) 100%);
      pointer-events: none;
    }

    /* Body */
    .prog-card-body {
      padding: 22px 24px 24px;
      display: flex;
      flex-direction: column;
      flex: 1;
      position: relative;
    }

    /* Ghost number */
    .prog-card-num {
      position: absolute;
      top: -8px;
      right: 14px;
      font-size: 88px;
      font-weight: 900;
      color: rgba(35,139,69,0.05);
      font-family: var(--font-english), sans-serif;
      line-height: 1;
      pointer-events: none;
      user-select: none;
      z-index: 0;
      transition: color 0.4s ease;
    }

    .prog-card:hover .prog-card-num {
      color: rgba(35,139,69,0.09);
    }

    /* Tag chip */
    .prog-card-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(35,139,69,0.08);
      color: var(--primary);
      padding: 5px 13px;
      border-radius: 50px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 12px;
      border: 1px solid rgba(35,139,69,0.14);
      width: fit-content;
      letter-spacing: 0.3px;
      position: relative;
      z-index: 1;
      transition: background 0.3s;
    }

    .prog-card:hover .prog-card-tag {
      background: rgba(35,139,69,0.13);
    }

    /* Title */
    .prog-card h3 {
      color: var(--dark);
      font-size: 16.5px;
      font-weight: 700;
      margin-bottom: 10px;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      line-height: 1.55;
      position: relative;
      z-index: 1;
    }

    /* Description */
    .prog-card p {
      color: #666;
      font-size: 14px;
      line-height: 1.85;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      flex: 1;
      position: relative;
      z-index: 1;
    }

    /* Footer link */
    .prog-card-footer {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid rgba(35,139,69,0.1);
      position: relative;
      z-index: 1;
    }

    .prog-card-wrap {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .prog-card-wrap .prog-card {
      flex-grow: 1;
    }

    .prog-card-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #8a5f00;
      font-size: 13px;
      font-weight: 600;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      transition: gap 0.3s ease;
    }

    .prog-card-link .prog-card-chevron {
      font-size: 11px;
      transition: transform 0.35s ease;
    }

    .prog-card:hover .prog-card-link { gap: 13px; }

    /* Card 2 — Gold */
    .prog-card-wrap:nth-child(2) .prog-card-tag {
      background: rgba(246,195,68,0.1);
      color: #8a5f00;
      border-color: rgba(246,195,68,0.28);
    }
    .prog-card-wrap:nth-child(2) .prog-card:hover .prog-card-tag { background: rgba(246,195,68,0.18); }
    .prog-card-wrap:nth-child(2) .prog-card-num { color: rgba(200,150,12,0.07); }
    .prog-card-wrap:nth-child(2) .prog-card:hover .prog-card-num { color: rgba(200,150,12,0.13); }
    .prog-card-wrap:nth-child(2) .prog-card-link { color: #8a5f00; }
    .prog-card-wrap:nth-child(2) .prog-card-footer { border-top-color: rgba(246,195,68,0.18); }

    /* Card 3 — Deep green */
    .prog-card-wrap:nth-child(3) .prog-card-tag {
      background: rgba(15,61,32,0.07);
      color: #0f3d20;
      border-color: rgba(15,61,32,0.16);
    }
    .prog-card-wrap:nth-child(3) .prog-card:hover .prog-card-tag { background: rgba(15,61,32,0.13); }
    .prog-card-wrap:nth-child(3) .prog-card-num { color: rgba(15,61,32,0.05); }
    .prog-card-wrap:nth-child(3) .prog-card:hover .prog-card-num { color: rgba(15,61,32,0.1); }
    .prog-card-wrap:nth-child(3) .prog-card-link { color: #0f3d20; }
    .prog-card-wrap:nth-child(3) .prog-card-footer { border-top-color: rgba(15,61,32,0.1); }

    /* Stagger delays */
    .about-program-cards .prog-card-wrap:nth-child(1) .prog-card { transition-delay: 0s; }
    .about-program-cards .prog-card-wrap:nth-child(2) .prog-card { transition-delay: 0.14s; }
    .about-program-cards .prog-card-wrap:nth-child(3) .prog-card { transition-delay: 0.28s; }

    /* â”€â”€ Dean â”€â”€ */
    .dean {
      background: #f7f9f8;
    }

    .dean-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      justify-content: center;
      align-items: stretch;
    }

    .dean-block {
      position: relative;
      isolation: isolate;
      background: #fff;
      border-radius: 20px;
      padding: 28px;
      box-shadow: 0 4px 28px rgba(35,139,69,0.08), 0 1px 6px rgba(0,0,0,0.05);
      border: 1px solid rgba(35,139,69,0.10);
      border-top: 4px solid var(--primary);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      flex: 1 1 450px;
      max-width: 560px;
      min-width: 280px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
    }

    .dean-block:hover {
      transform: translateY(-6px);
      box-shadow: 0 18px 50px rgba(35,139,69,0.15), 0 4px 14px rgba(0,0,0,0.08);
      border-top-color: var(--accent);
    }

    .dean-img {
      height: 360px;
      margin-bottom: 24px;
      background: linear-gradient(135deg, #c8e6d3 0%, #a0d4b4 100%);
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #555;
      font-family: var(--font-khmer), sans-serif;
      font-size: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .dean-text {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .dean-text h2 {
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      color: var(--primary);
      font-size: 26px;
      margin-bottom: 6px;
    }

    .dean-text h3 {
      color: var(--primary);
      font-size: 18px;
      margin-bottom: 18px;
      font-weight: 600;
    }

    .dean-text p {
      line-height: 1.85;
      margin-bottom: 12px;
      color: #444;
      font-size: 15px;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .more-text {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }

    .see-more {
      border: 2px solid var(--primary);
      background: transparent;
      color: var(--primary);
      padding: 10px 22px;
      border-radius: 50px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      transition: background 0.3s, color 0.3s;
      margin-top: auto;
      align-self: flex-start;
      display: inline-block;
    }

    .see-more:hover {
      background: var(--primary);
      color: #fff;
    }

    /* â”€â”€ CTA â”€â”€ */
    .cta {
      background: linear-gradient(135deg, #145e30 0%, var(--primary) 60%, #2aac60 100%);
      color: #fff;
      text-align: center;
      padding: 80px 0;
      position: relative;
      overflow: hidden;
    }

    .cta::before {
      content: '';
      position: absolute;
      width: 400px;
      height: 400px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 50%;
      top: -160px;
      right: -80px;
    }

    .cta h2 {
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      font-size: 32px;
      margin-bottom: 8px;
      position: relative;
      z-index: 1;
    }

    .cta h3 {
      font-size: 24px;
      margin-bottom: 16px;
      font-weight: 600;
      position: relative;
      z-index: 1;
    }

    .cta p {
      margin-bottom: 30px;
      font-size: 16px;
      opacity: 0.9;
      font-family: var(--font-khmer), sans-serif;
      position: relative;
      z-index: 1;
    }

    .cta .btn {
      position: relative;
      z-index: 1;
    }

    /* â”€â”€ Contact â”€â”€ */
    .contact-box {
      display: block;
    }

    .contact-info {
      background: var(--primary);
      color: #fff;
      padding: 30px 26px;
      border-radius: 16px;
    }

    .contact-info h3 {
      color: var(--accent);
      margin-bottom: 22px;
      font-size: 20px;
      font-family: var(--font-khmer), sans-serif;
    }

    .contact-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 14px;
    }

    .contact-row i {
      width: 20px;
      color: var(--accent);
      font-size: 15px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .contact-row p {
      font-size: 14.5px;
      line-height: 1.65;
      opacity: 0.92;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      margin: 0;
    }

    .map-frame-wrap {
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    }

    .map-buttons {
      margin-bottom: 14px;
    }

    .map-buttons button {
      padding: 10px 20px;
      border: 2px solid var(--accent, #f6c344);
      background: transparent;
      color: var(--accent, #f6c344);
      cursor: pointer;
      border-radius: 50px;
      margin-right: 10px;
      margin-bottom: 8px;
      font-size: 13.5px;
      font-weight: 600;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      transition: background 0.3s, color 0.3s;
    }

    .map-buttons button:hover,
    .map-buttons button.map-active {
      background: var(--accent, #f6c344);
      color: var(--hover-color, #222222);
    }

    iframe {
      width: 100%;
      height: 300px;
      border: 0;
      display: block;
    }

    /* â”€â”€ Footer â”€â”€ */
    footer {
      background: var(--footer-bg, #0f3d20);
      color: var(--footer-color, #fff);
      padding: 50px 0 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr 0.85fr 1.2fr 1fr;
      gap: 30px;
      margin-bottom: 40px;
    }

    .footer-brand-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    #footerLogoWrap {
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 15px;
      transition: all 0.3s ease;
    }

    #footerLogo {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .footer-col h3 {
      font-size: 16px;
      margin-bottom: 18px;
      color: var(--footer-title-color, var(--accent));
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .footer-col h3 i {
      font-size: 14px;
    }

    .footer-col p {
      font-size: 13.5px;
      line-height: 1.9;
      color: var(--footer-color, #fff);
      opacity: 0.72;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .footer-link-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 4px 0;
      font-size: 13.5px;
      color: var(--footer-color, #fff);
      opacity: 0.72;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
      transition: color 0.2s, padding-left 0.2s;
      cursor: pointer;
    }

    .footer-link-item i {
      color: var(--accent);
      font-size: 12px;
      width: 16px;
      flex-shrink: 0;
    }

    .footer-link-item:hover {
      color: var(--accent);
      padding-left: 4px;
    }

    .footer-location {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      margin-bottom: 10px;
      font-size: 13.5px;
      color: var(--footer-color, #fff);
      opacity: 0.72;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .footer-location i {
      color: var(--accent);
      font-size: 13px;
      width: 16px;
      flex-shrink: 0;
      margin-top: 3px;
    }

    .footer-social {
      display: flex;
      gap: 10px;
      margin-top: 18px;
    }

    .footer-social a {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: background 0.25s, color 0.25s, transform 0.25s;
    }

    .footer-social a:hover {
      background: var(--accent);
      color: #222;
      transform: translateY(-3px);
    }

    .footer-col-map .map-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .footer-col-map .map-frame-wrap {
      border-radius: 10px;
      overflow: hidden;
      height: 180px;
    }

    .footer-col-map .map-frame-wrap iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

    /* ── Traffic Widget ── */
    .footer-col-traffic {
      min-width: 0;
      width: 100%;
      box-sizing: border-box;
    }

    .traffic-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
      width: 100%;
      box-sizing: border-box;
    }

    .traffic-stat {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 10px 8px;
      text-align: center;
      transition: background .2s;
    }
    .traffic-stat:hover { background: rgba(255,255,255,0.12); }
    .traffic-stat-total { grid-column: span 2; background: rgba(var(--accent-rgb,255,184,0),.12); border-color: rgba(var(--accent-rgb,255,184,0),.3); }

    .ts-num {
      display: block;
      font-size: 22px;
      font-weight: 800;
      color: var(--accent, #ffd700);
      line-height: 1.1;
      font-family: 'Poppins', sans-serif;
      letter-spacing: -.5px;
    }
    .ts-total { font-size: 28px; }

    .ts-label {
      display: block;
      font-size: 10px;
      color: rgba(255,255,255,0.55);
      margin-top: 4px;
      line-height: 1.3;
      font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
    }

    .traffic-countries-hdr {
      font-size: 12px;
      font-weight: 700;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: .07em;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .traffic-countries {
      display: flex;
      flex-direction: column;
      gap: 7px;
      max-height: 165px;
      overflow-y: auto;
      padding-right: 4px;
      margin-top: 4px;
    }

    /* Small sleek scrollbar for country visitor list */
    .traffic-countries::-webkit-scrollbar {
      width: 4px;
    }
    .traffic-countries::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 99px;
    }
    .traffic-countries::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.25);
      border-radius: 99px;
    }
    .traffic-countries::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.45);
    }

    .tc-row {
      display: grid;
      grid-template-columns: 22px 1fr auto;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      transition: background 0.2s ease;
    }
    .tc-row:hover {
      background: rgba(255, 255, 255, 0.08);
    }
    .tc-flag { font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
    .tc-bar-wrap { position: relative; height: 5px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; margin-top: 2px; }
    .tc-bar { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, #2ecc71, #f1c40f); transition: width .6s ease; }
    .tc-count { font-size: 10.5px; color: rgba(255,255,255,0.9); font-family: 'Poppins', sans-serif; white-space: nowrap; font-weight: 700; background: rgba(255, 255, 255, 0.1); padding: 1px 6px; border-radius: 12px; }
    .tc-name { font-size: 11px; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 18px 0;
    }

    .footer-bottom-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }

    .copyright {
      font-size: 13px;
      color: var(--footer-color, #fff);
      opacity: 0.55;
      font-family: var(--font-khmer), var(--font-english), sans-serif;
    }

    .footer-bottom-links {
      display: flex;
      gap: 20px;
    }

    .footer-bottom-links a {
      font-size: 12.5px;
      color: var(--footer-color, #fff);
      opacity: 0.5;
      font-family: var(--font-english), sans-serif;
      transition: color 0.2s;
    }

    .footer-bottom-links a:hover {
      color: var(--accent);
    }

    /* â”€â”€ Scroll reveal â”€â”€ */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }

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

    /* â”€â”€ Back to top â”€â”€ */
    #backTop {
      position: fixed;
      bottom: 26px;
      right: 26px;
      width: 48px;
      height: 48px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 14px;
      font-size: 17px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 18px rgba(35, 139, 69, 0.45);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.35s ease, visibility 0.35s ease, background 0.3s, transform 0.3s;
      z-index: 8000;
    }

    #backTop.show {
      opacity: 1;
      visibility: visible;
    }

    #backTop:hover {
      background: var(--accent);
      color: #222;
      transform: translateY(-4px);
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       RESPONSIVE
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    @media (max-width:1024px) {
      .menu>li>a {
        padding: 14px 10px;
        font-size: 14.5px;
      }
      .cards {
        display: flex;
        flex-direction: column;
        gap: 24px;
      }
      .about-program-cards {
        display: flex;
        flex-direction: column;
        gap: 24px;
      }
    }

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

      .footer-brand-col {
        align-items: flex-start;
        text-align: left;
      }

      #footerLogoWrap {
        margin-bottom: 12px;
      }

      .footer-col-traffic,
      .footer-col-traffic h3,
      .traffic-stats,
      .traffic-countries-hdr,
      .traffic-countries {
        width: 100% !important;
        box-sizing: border-box;
        margin-top: 10px;
      }

      .footer-col-map {
        grid-column: span 2;
      }

      .prog-card-img { height: 220px; }

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

      .stat-item + .stat-item {
        border-left: none;
      }

      .stat-item:nth-child(3),
      .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.1);
      }

      .stat-item:nth-child(even) {
        border-left: 1px solid rgba(255,255,255,0.1);
      }
    }

    @media (max-width:768px) {

      /* Hide desktop menu, show hamburger on RIGHT */
      .menu {
        display: none !important;
      }

      .hamburger {
        display: flex;
      }

      .nav-wrapper {
        justify-content: flex-end;
        padding: 6px 0;
        gap: 8px;
      }

      /* Hide lang switcher in nav bar — available in mobile drawer */
      .lang-switcher {
        display: none;
      }

      /* Logo area — horizontal row, centered */
      .logo-area {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
      }

      .logo {
        width: 78px;
        height: 78px;
      }

      .title {
        text-align: left;
      }

      .title .kh-title {
        font-size: 19px;
      }

      .title .en-title {
        font-size: 14px;
      }

      .top-header {
        padding: 12px 0;
      }

      /* Section titles — smaller on mobile */
      .section-title h2 {
        font-size: 18px;
      }

      .section-title h3 {
        font-size: 15px;
      }

      .carousel {
        height: 360px;
      }

      .slide h2 {
        font-size: 24px;
      }

      .slide h3 {
        font-size: 19px;
      }

      .slide p {
        font-size: 14px;
        margin-bottom: 20px;
      }

      .cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .dean-wrapper {
        flex-direction: column;
        align-items: center;
      }
      .contact-box {
        grid-template-columns: 1fr;
      }

      .dean-block {
        padding: 22px;
      }

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

      .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .footer-bottom-links {
        justify-content: center;
      }
    }

    @media (max-width:600px) {
      .cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .footer-col {
        text-align: left;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }

      .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      .footer-brand-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        width: 100%;
      }

      #footerLogoWrap {
        width: 95px;
        height: 95px;
        margin-bottom: 8px;
        flex-shrink: 0;
      }

      .footer-brand-col #footerBrand {
        font-size: 15.5px !important;
        line-height: 1.62 !important;
      }

      .footer-col h3 {
        justify-content: flex-start;
        margin-bottom: 14px;
      }

      .footer-location {
        justify-content: flex-start;
        align-items: flex-start;
      }

      .footer-social {
        justify-content: flex-start !important;
      }

      .footer-col-map {
        width: 100%;
      }

      .footer-col-map .map-buttons {
        justify-content: flex-start;
      }

      .footer-col-map .map-frame-wrap {
        height: 220px;
        width: 100%;
      }

      .footer-col-traffic,
      .footer-col-traffic h3,
      .traffic-stats,
      .traffic-countries-hdr,
      .traffic-countries {
        width: 100% !important;
        box-sizing: border-box;
        margin-top: 15px;
      }

      .footer-col-map {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        width: 100%;
      }

      .about-program-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .prog-card-img { height: 240px; }

      .about-stats {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 18px;
      }

      .stat-item {
        padding: 26px 14px;
      }

      .stat-number {
        font-size: 28px;
      }

      .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
      }
    }

    @media (max-width:480px) {
      .logo {
        width: 64px;
        height: 64px;
      }

      .title .kh-title {
        font-size: 16px;
      }

      .title .en-title {
        font-size: 12px;
      }

      .section-title h2 {
        font-size: 16px;
      }

      .section-title h3 {
        font-size: 13px;
      }

      .section-title {
        margin-bottom: 28px;
      }

      .carousel {
        height: 260px;
      }

      .slide h2 {
        font-size: 19px;
      }

      .slide h3 {
        font-size: 15px;
      }

      .slide p {
        font-size: 12.5px;
        margin-bottom: 14px;
      }

      .btn {
        padding: 10px 22px;
        font-size: 13.5px;
      }

      section {
        padding: 50px 0;
      }

      .cta {
        padding: 55px 0;
      }

      .c-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }

      .c-arrow.prev {
        left: 10px;
      }

      .c-arrow.next {
        right: 10px;
      }
    }

/* ══════════════════════════════════════════
   READ-MORE TABLE
══════════════════════════════════════════ */
.sec-rm-wrap {
  text-align: center;
  margin-top: 36px;
  padding-bottom: 10px;
}

.sec-rm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 28px;
  background: var(--primary, #238b45);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(35,139,69,.3);
}
.sec-rm-btn:hover {
  background: #1d7a3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(35,139,69,.4);
}
.sec-rm-btn.open {
  background: #0f3d20;
}
.sec-rm-chevron {
  transition: transform .35s ease;
}
.sec-rm-btn.open .sec-rm-chevron {
  transform: rotate(180deg);
}

/* Animated collapsible panel */
.sec-table-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(0.4, 0, 0.2, 1), opacity .35s ease;
  opacity: 0;
}
.sec-table-panel.sec-table-open {
  max-height: 4000px;
  opacity: 1;
}

/* Full-width card table area — sits below the entire cards grid (desktop only) */
.card-table-area {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease-out, opacity .2s ease, margin-top .2s ease;
  width: 100%;
  margin-top: 0;
}
.card-table-area.card-table-open {
  max-height: 4000px;
  opacity: 1;
  margin-top: 32px;
  transition: max-height .5s cubic-bezier(0.25, 1, 0.5, 1), opacity .3s ease, margin-top .3s ease;
}

/* Per-card inline table panel — used on mobile only */
.card-table-inline {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease-out, opacity .2s ease, margin-top .2s ease;
  margin-top: 0;
}
.card-table-inline.open {
  max-height: 4000px;
  opacity: 1;
  margin-top: 16px;
  transition: max-height .5s cubic-bezier(0.25, 1, 0.5, 1), opacity .3s ease, margin-top .3s ease;
}

/* Desktop: inline panels hidden, shared area visible */
@media (min-width: 768px) {
  .card-table-inline { display: none !important; }
}
/* Card Close/Hide Button styling */
.crd-toggle-bottom-close-wrap {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px solid rgba(246,195,68,0.28);
}
.crd-toggle-bottom-close-btn {
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #8a5f00;
  background: transparent;
  color: #8a5f00;
  cursor: pointer;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english, 'Poppins'), sans-serif;
  font-weight: 700;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(246,195,68,0.18);
}
.crd-toggle-bottom-close-btn:hover {
  background: #8a5f00;
  color: #fff;
}

/* Card 2 (Gold) Override */
.prog-card-wrap:nth-child(2) .crd-toggle-bottom-close-wrap,
.crd-toggle-expanded-container[data-card-index="1"] .crd-toggle-bottom-close-wrap {
  border-top-color: rgba(246,195,68,0.28);
}
.prog-card-wrap:nth-child(2) .crd-toggle-bottom-close-btn,
.crd-toggle-expanded-container[data-card-index="1"] .crd-toggle-bottom-close-btn {
  border-color: #8a5f00;
  color: #8a5f00;
}
.prog-card-wrap:nth-child(2) .crd-toggle-bottom-close-btn:hover,
.crd-toggle-expanded-container[data-card-index="1"] .crd-toggle-bottom-close-btn:hover {
  background: #8a5f00;
  color: #fff;
}

/* Card 3 (Dark Green) Override */
.prog-card-wrap:nth-child(3) .crd-toggle-bottom-close-wrap,
.crd-toggle-expanded-container[data-card-index="2"] .crd-toggle-bottom-close-wrap {
  border-top-color: rgba(15,61,32,0.16);
}
.prog-card-wrap:nth-child(3) .crd-toggle-bottom-close-btn,
.crd-toggle-expanded-container[data-card-index="2"] .crd-toggle-bottom-close-btn {
  border-color: #0f3d20;
  color: #0f3d20;
}
.prog-card-wrap:nth-child(3) .crd-toggle-bottom-close-btn:hover,
.crd-toggle-expanded-container[data-card-index="2"] .crd-toggle-bottom-close-btn:hover {
  background: #0f3d20;
  color: #fff;
}

/* Mobile: shared area hidden, inline panels visible */
@media (max-width: 767px) {
  .card-table-area { display: none !important; }

  /* Override Card 2 & 3 custom themes on mobile to follow Card 1's style */
  .prog-card-wrap .prog-card-tag {
    background: rgba(35,139,69,0.08) !important;
    color: var(--primary) !important;
    border-color: rgba(35,139,69,0.14) !important;
  }
  .prog-card-wrap .prog-card-link {
    color: #8a5f00 !important;
  }
  .prog-card-wrap .crd-toggle-bottom-close-wrap,
  .crd-toggle-expanded-container .crd-toggle-bottom-close-wrap {
    border-top-color: rgba(246,195,68,0.28) !important;
  }
  .prog-card-wrap .crd-toggle-bottom-close-btn,
  .crd-toggle-expanded-container .crd-toggle-bottom-close-btn {
    border-color: #8a5f00 !important;
    color: #8a5f00 !important;
    box-shadow: 0 4px 12px rgba(246,195,68,0.18) !important;
  }
  .prog-card-wrap .crd-toggle-bottom-close-btn:hover,
  .crd-toggle-expanded-container .crd-toggle-bottom-close-btn:hover {
    background: #8a5f00 !important;
    color: #fff !important;
  }
}

/* ── Dual-format table wrapper ── */
.crd-tbl-desktop { display: block; }
.crd-tbl-mobile  { display: none; }
@media (max-width: 767px) {
  .crd-tbl-desktop { display: none; }
  .crd-tbl-mobile  { display: block; padding: 4px 0 8px; }
}

/* ── Mobile stacked semester blocks ── */
.crd-mob-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f3d20;
  padding: 0 4px 10px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 12px;
}
.crd-mob-sem {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.crd-mob-sem-head {
  background: #0f3d20;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-header-kh,'Moulpali'), var(--font-header-en,'Poppins'), sans-serif;
  padding: 9px 14px;
  letter-spacing: .3px;
}
.crd-mob-col-heads {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e8f5ee;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-khmer,'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  color: #1d7a3b;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.crd-mob-num-ph { width: 26px; flex-shrink: 0; }
.crd-mob-col-heads span { flex: 1; text-align: center; }
.crd-mob-col-heads span:first-of-type { flex: 2; text-align: left; }
.crd-mob-rows { padding: 2px 0; background: #fff; }
.crd-mob-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
}
.crd-mob-row:last-child { border-bottom: none; }
.crd-mob-n {
  width: 24px;
  height: 24px;
  background: #238b45;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.crd-mob-cells {
  display: flex;
  flex: 1;
  gap: 6px;
  flex-wrap: wrap;
}
.crd-mob-cells span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
}
.crd-mob-cells span:first-child {
  flex: 2;
  text-align: left;
  font-weight: 500;
  color: #0f3d20;
}

/* Scroll wrapper for responsive table */
.sec-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  margin-top: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}

/* Main table */
.sec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13.5px;
  min-width: 680px;
}

/* Header rows */
.sec-table thead tr:first-child th {
  background: #0f3d20;
  color: #fff;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.12);
}
.sec-table thead tr:first-child th:first-child {
  border-radius: 14px 0 0 0;
}
.sec-table thead tr:first-child th:last-child {
  border-radius: 0 14px 0 0;
}
/* Semester separator — lighter green for sub-headers */
.sec-table thead tr:nth-child(2) th {
  background: #238b45;
  color: rgba(255,255,255,.9);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
}
/* semester divider column */
.sec-table .sem-divider th {
  background: #1d7a3b;
}

/* Body cells */
.sec-table tbody tr td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
  color: #374151;
  line-height: 1.5;
}
.sec-table tbody tr:nth-child(even) td {
  background: #f8fdf9;
}
.sec-table tbody tr:hover td {
  background: #ecf9f0;
}
/* Title column */
.sec-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0f3d20;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  white-space: nowrap;
  background: #f0faf4 !important;
  border-right: 2px solid #238b45;
  min-width: 140px;
}
/* Divider between sem1 and sem2 */
.sec-table tbody td.sem-split {
  border-left: 2px solid #238b45;
}

/* Empty cell placeholder */
.sec-table td:empty::after { content: '–'; color: #9ca3af; }

@media (max-width: 768px) {
  .sec-rm-btn { font-size: 13px; padding: 10px 22px; }
  .sec-table   { font-size: 12.5px; }
}

/* ── 8-column Khmer academic table ── */
.crd-8col { min-width: 820px; }

/* Reset first-column sticky styles that don't apply to the number column */
.crd-8col tbody td:first-child {
  text-align: center !important;
  font-weight: 700 !important;
  background: inherit !important;
  border-right: none !important;
  min-width: unset !important;
  white-space: normal !important;
  color: #374151 !important;
  font-family: inherit !important;
}

/* ── Table title row (row 1 of thead) ── */
.crd-row-main-title th {
  background: #0f3d20 !important;
  color: #fff;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 15px 20px !important;
  letter-spacing: 0.4px;
  font-family: var(--font-header-kh,'Moulpali'), var(--font-header-en,'Poppins'), sans-serif !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
.crd-row-main-title th { border-radius: 14px 14px 0 0 !important; }

/* ── Table subtitle row ── */
.crd-row-main-subtitle th {
  background: #1a5c30 !important;
  color: rgba(255,255,255,.92) !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  letter-spacing: 0.3px;
  font-family: var(--font-header-kh,'Moulpali'), var(--font-header-en,'Poppins'), sans-serif !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-top: none !important;
}

/* When no title/subtitle, semester row gets top corners */
.crd-8col thead tr:first-child th:first-child { border-radius: 14px 0 0 0 !important; }
.crd-8col thead tr:first-child th:last-child  { border-radius: 0 14px 0 0 !important; }
/* Title row overrides — full top radius */
.crd-row-main-title th:first-child,
.crd-row-main-title th:last-child { border-radius: 14px 14px 0 0 !important; }

/* Semester header row */
.crd-row-semester th {
  background: #0f3d20;
  color: #fff;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
}

/* Column header row */
.crd-row-cols th {
  background: #238b45;
  color: rgba(255,255,255,.95);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
}
.crd-num-h    { width: 38px; }
.crd-narrow-h { width: 76px; }

/* Section title row in tbody */
.crd-row-title td {
  background: #dff0e6 !important;
  color: #0f3d20 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center !important;
  padding: 10px 16px !important;
  border-bottom: 2px solid #238b45 !important;
  letter-spacing: 0.3px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif !important;
}

/* Semester header row styled as td in tbody */
.crd-row-semester td {
  background: #e8f5ee !important;
  color: #1d7a3b !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-align: center !important;
  border: 1px solid #e5e7eb !important;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif !important;
}

/* Dynamic column header row in tbody */
.crd-row-cols th, .crd-row-cols td {
  background: #238b45 !important;
  color: #fff !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif !important;
  text-align: center !important;
}

/* Data cell types */
.crd-num     { text-align: center !important; font-weight: 700; width: 38px; color: #374151; }
.crd-subject { text-align: left !important; font-family: var(--font-khmer,'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif; min-width: 160px; }
.crd-narrow  { text-align: center !important; width: 76px; }

/* Grid borders for desktop table cells */
.crd-8col td {
  border: 1px solid #e5e7eb !important;
}

/* Semester split — accent gold border for clear visual separation */
.crd-sem-split { border-left: 3px solid #f6c344 !important; }
.crd-row-cols .crd-sem-split { border-left: 3px solid #f6c344 !important; }
.crd-row-semester .crd-sem-split { border-left: 3px solid #f6c344 !important; }

/* Mobile section title */
.crd-mob-sec-title {
  background: #dff0e6;
  color: #0f3d20;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-left: 3px solid #238b45;
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}

/* Mobile Year Group title */
.crd-mob-year-title {
  background: #dff0e6;
  color: #0f3d20;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-left: 4px solid var(--primary, #0f3d20);
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  margin-bottom: 12px;
  border-radius: 6px;
}

/* Mobile subject column */
.crd-mob-col-sub { flex: 2 !important; text-align: left !important; }
.crd-mob-subject { flex: 2 !important; text-align: left !important; font-weight: 500; color: #0f3d20; }

/* Mobile title/subtitle banner above semester blocks */
.crd-mob-banner {
  background: linear-gradient(135deg, #0f3d20, #238b45);
  border-radius: 12px 12px 0 0;
  padding: 14px 16px 12px;
  text-align: center;
  margin-bottom: 0;
}
.crd-mob-banner + .crd-mob-sem { border-radius: 0 0 12px 12px; margin-top: 0; border-top: none; }
.crd-mob-banner-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-header-kh,'Moulpali'), var(--font-header-en,'Poppins'), sans-serif;
  letter-spacing: 0.4px;
  line-height: 1.5;
}
.crd-mob-banner-subtitle {
  background: #dff0e6;
  color: #0f3d20;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-left: 4px solid var(--primary, #0f3d20);
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  text-align: left;
}

/* Divider between the two mobile semester blocks */
.crd-mob-sem-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
  color: #9ca3af;
  font-size: 16px;
}
.crd-mob-sem-divider::before,
.crd-mob-sem-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}

/* More breathing room between mobile sem blocks */
.crd-mob-sem { margin-bottom: 4px; }

/* ══════════════════════════════════════════
   ANNOUNCEMENT POPUP
══════════════════════════════════════════ */
.ann-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.ann-overlay.ann-show {
  opacity: 1;
  visibility: visible;
}
.ann-overlay.ann-hide {
  opacity: 0;
  visibility: hidden;
}

.ann-card {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 500px;
  height: 88vh;
  max-height: 720px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.72) translateY(40px);
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ann-overlay.ann-show .ann-card {
  transform: scale(1) translateY(0);
}
.ann-overlay.ann-hide .ann-card {
  transform: scale(0.88) translateY(20px);
  transition: transform .25s ease;
}

/* Confetti canvas — floats over everything, pointer-events off */
.ann-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  border-radius: 22px;
}

/* Hide text body when title+subtitle are both empty */
.ann-body.ann-hidden {
  display: none;
}

/* Image wrap — fills available space */
.ann-img-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background: #0d1f10;
  min-height: 0;
}
.ann-img-wrap.no-img { display: none; }

/* Slider track — slides sit side by side */
.ann-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ann-slider-track:active { cursor: grabbing; }

.ann-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ann-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  draggable: false;
  animation: annImgZoom .6s ease both;
}

/* Dot indicators */
.ann-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 8;
}
.ann-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s, width .25s, border-radius .25s;
  flex-shrink: 0;
}
.ann-dot.active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

@keyframes annImgZoom {
  from { transform: scale(1.04); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Text body — compact, no scroll needed */
.ann-body {
  padding: 20px 24px 10px;
  flex-shrink: 0;
}
.ann-title {
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f3d20;
  line-height: 1.4;
  margin-bottom: 6px;
  animation: annFadeUp .4s .15s ease both;
}
.ann-subtitle {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
  animation: annFadeUp .4s .25s ease both;
}

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

/* Countdown ring — floats top-right over the image */
.ann-countdown-ring {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  z-index: 10;
  animation: annFadeUp .4s .4s ease both;
  /* frosted-glass pill */
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.ann-ring-svg {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.ann-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.25);
  stroke-width: 3;
}
.ann-ring-fg {
  fill: none;
  stroke: #f6c344;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 131.9;  /* 2π × 21 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.ann-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.5px;
}

/* ── Mobile: clip overflow so the scaled card doesn't cause scrollbars ── */
@media (max-width: 540px) {
  .ann-overlay { overflow: hidden; }
}

/* ══════════════════════════════════════════
   CAREER SECTION (below subject table)
══════════════════════════════════════════ */
.crd-career-wrap { margin-top: 18px; }

/* ── Direct career display (used for 'career' and 'table+career' toggle types) ── */
.crd-career-direct-wrap {
  padding: 20px 24px 24px;
}
.crd-career-direct-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(35,139,69,0.12);
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.crd-career-direct-title i {
  font-size: 16px;
  color: var(--primary);
}

/* ── Toggle button ── */
.crd-career-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #238b45 0%, #0f3d20 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px rgba(35,139,69,.28);
  transition: box-shadow .3s ease, transform .2s ease, background-position .4s ease;
  position: relative;
  overflow: hidden;
}
.crd-career-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .25s ease;
  border-radius: inherit;
}
.crd-career-btn:hover {
  box-shadow: 0 7px 22px rgba(35,139,69,.38);
  transform: translateY(-1px);
}
.crd-career-btn:hover::after { background: rgba(255,255,255,.07); }
.crd-career-btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(35,139,69,.22); }

/* Chevron spin */
.crd-career-chevron {
  margin-left: auto;
  font-size: 13px;
  transition: transform .38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crd-career-btn.open .crd-career-chevron { transform: rotate(180deg); }

/* Briefcase icon pulse on open */
.crd-career-btn .fa-briefcase {
  transition: transform .3s ease;
}
.crd-career-btn.open .fa-briefcase { transform: scale(1.18); }

/* ── Collapsible content — grid trick for smooth height animation ── */
.crd-career-outer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity .3s ease,
              margin-top .3s ease;
  opacity: 0;
  margin-top: 0;
}
.crd-career-outer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}
.crd-career-inner {
  overflow: hidden;
}
.crd-career-content {
  padding: 18px;
  background: linear-gradient(145deg, #f4fbf6 0%, #e8f5ee 100%);
  border-radius: 12px;
  border: 1.5px solid #c8e6d3;
  box-shadow: inset 0 1px 3px rgba(35,139,69,.08);
}

.crd-career-subtitle {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english, 'Poppins'), sans-serif;
}

.crd-career-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crd-career-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.crd-career-list-icon {
  color: var(--primary, #0f3d20);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.crd-career-list-item:hover .crd-career-list-icon {
  transform: scale(1.2) rotate(-5deg);
}

.crd-career-list-text {
  font-size: 13.5px;
  color: #1f2937;
  line-height: 1.6;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english, 'Poppins'), sans-serif;
}

.crd-career-groups-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.crd-career-group {
  background: linear-gradient(145deg, #f4fbf6 0%, #e8f5ee 100%);
  border: 1.5px solid #c8e6d3;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 6px rgba(35,139,69,0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.crd-career-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(35,139,69,0.09);
  border-color: #a3d9b7;
}

.crd-career-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0f3d20);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(35,139,69,0.12);
  font-family: var(--font-header-kh, 'Moulpali'), var(--font-header-en, 'Poppins'), sans-serif;
  letter-spacing: 0.3px;
}

.crd-career-list.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

@media (max-width: 768px) {
  .crd-career-groups-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .crd-career-list.grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Staggered card entrance */
.crd-career-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.crd-career-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 13px;
  color: #1f2937;
  font-family: var(--font-khmer,'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  flex: 1 1 190px;
  max-width: 100%;
  box-sizing: border-box;
}
/* Items inside the collapsible section start hidden and animate in */
.crd-career-outer .crd-career-item {
  opacity: 0;
  transform: translateY(10px);
}
.crd-career-outer.open .crd-career-item {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger each item */
.crd-career-outer.open .crd-career-item:nth-child(1)  { transition-delay: .05s; }
.crd-career-outer.open .crd-career-item:nth-child(2)  { transition-delay: .10s; }
.crd-career-outer.open .crd-career-item:nth-child(3)  { transition-delay: .15s; }
.crd-career-outer.open .crd-career-item:nth-child(4)  { transition-delay: .20s; }
.crd-career-outer.open .crd-career-item:nth-child(5)  { transition-delay: .25s; }
.crd-career-outer.open .crd-career-item:nth-child(6)  { transition-delay: .30s; }
.crd-career-outer.open .crd-career-item:nth-child(7)  { transition-delay: .35s; }
.crd-career-outer.open .crd-career-item:nth-child(8)  { transition-delay: .38s; }
.crd-career-outer.open .crd-career-item:nth-child(n+9){ transition-delay: .40s; }
/* Add opacity/transform transition to items */
.crd-career-item {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease,
              opacity .3s ease;
}
.crd-career-item:hover {
  border-color: #238b45;
  box-shadow: 0 3px 12px rgba(35,139,69,.15);
  transform: translateY(-2px);
}
.crd-career-item i {
  color: #238b45;
  font-size: 17px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.crd-career-item:hover i { transform: scale(1.2) rotate(-5deg); }

@media (max-width: 480px) {
  .crd-career-grid { flex-direction: column; }
}

/* ════════════════════════════════════════
   REGISTER NOW SECTION
════════════════════════════════════════ */
.reg-section {
  position: relative;
  background: linear-gradient(135deg, #0f3d20 0%, #238b45 55%, #1a5c30 100%);
  padding: 80px 0 90px;
  overflow: hidden;
}

.reg-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.reg-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  animation: regOrbFloat 8s ease-in-out infinite alternate;
}
.reg-orb-1 { width: 420px; height: 420px; top: -120px; right: -100px; animation-delay: 0s; }
.reg-orb-2 { width: 280px; height: 280px; bottom: -80px; left: -60px; animation-delay: -3s; }
@keyframes regOrbFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(30px) scale(1.06); }
}

/* Header text */
.reg-header {
  text-align: center;
  color: #fff;
  margin-bottom: 0;
}
.reg-header h2 {
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.reg-header h3 {
  font-family: var(--font-english,'Poppins'), sans-serif;
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 500;
  opacity: .85;
  margin-bottom: 14px;
}
.reg-header p {
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  font-size: 14.5px;
  opacity: .8;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Toggle button */
.reg-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent, #f6c344);
  border: 2px solid var(--accent, #f6c344);
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, background .2s, color .2s;
}
.reg-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(246,195,68,.4);
  background: var(--accent, #f6c344);
  color: var(--hover-color, #0f3d20);
}
.reg-chevron {
  transition: transform .38s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
}

/* ── Collapsible outer — grid trick ── */
.reg-form-outer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(0.4, 0, 0.2, 1),
              opacity .35s ease,
              margin-top .35s ease;
  opacity: 0;
  margin-top: 0;
}
.reg-form-outer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 36px;
}
.reg-form-inner { overflow: hidden; }

/* Form card */
.reg-form-wrap {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  max-width: 860px;
  margin: 0 auto;
}

/* Fields grid */
.reg-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.reg-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-field-full { grid-column: 1 / -1; }
.reg-field-group label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.reg-required { color: #dc2626; margin-left: 2px; }
.reg-field-group input,
.reg-field-group select,
.reg-field-group textarea {
  padding: 10px 14px;
  border: 1.8px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fff;
  color: #1f2937;
}
.reg-field-group input:focus,
.reg-field-group select:focus,
.reg-field-group textarea:focus {
  border-color: #238b45;
  box-shadow: 0 0 0 3px rgba(35,139,69,.12);
}
.reg-field-group textarea { resize: vertical; min-height: 80px; }

/* Submit row */
.reg-submit-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.reg-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent, #f6c344);
  border: 2px solid var(--accent, #f6c344);
  border-radius: 50px;
  padding: 12px 38px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition: transform .25s, box-shadow .25s, opacity .2s, background .2s, color .2s;
}
.reg-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(246,195,68,.4);
  background: var(--accent, #f6c344);
  color: var(--hover-color, #0f3d20);
}
.reg-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Status message */
.reg-msg {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  text-align: center;
}
.reg-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.reg-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 640px) {
  .reg-fields-grid { grid-template-columns: 1fr; }
  .reg-form-wrap   { padding: 24px 18px 20px; }
  .reg-section     { padding: 60px 0 70px; }
}

/* ── Nav Right Group (lang switcher + register btn together) ── */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 768px) { .nav-right-group { display: none; } }

/* ── Register Now — Nav Button ── */
.reg-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s;
  white-space: nowrap;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english, 'Poppins'), sans-serif;
  flex-shrink: 0;
  box-shadow: none;
  letter-spacing: .2px;
}
.reg-nav-btn:hover {
  background: var(--accent);
  color: var(--hover-color, #0f3d20);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(246,195,68,.35);
}
@media (max-width: 768px) { .reg-nav-btn { display: none; } }

/* ── Register Now — Mobile Drawer Button ── */
.mob-reg-wrap {
  padding: 10px 16px 4px;
  border-top: 1px solid #eee;
}
.mob-reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  color: var(--accent, #f6c344);
  border: 2px solid var(--accent, #f6c344);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  transition: opacity .2s, transform .15s, background .2s, color .2s;
  box-shadow: none;
}
.mob-reg-btn:hover {
  background: var(--accent, #f6c344);
  color: var(--hover-color, #0f3d20);
}
.mob-reg-btn:active { opacity: .85; transform: scale(0.98); }

/* ── Register Now — Popup Modal ── */
.reg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.reg-modal-overlay.open { opacity: 1; visibility: visible; }

.reg-modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(28px) scale(0.95);
  transition: transform .4s cubic-bezier(0.34, 1.25, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #c8e6d3 transparent;
}
.reg-modal-overlay.open .reg-modal-box { transform: translateY(0) scale(1); }

.reg-modal-header {
  background: linear-gradient(135deg, #0f3d20 0%, #238b45 100%);
  padding: 22px 24px 18px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.reg-modal-titles h2 {
  font-family: var(--font-khmer, 'Kantumruy Pro'), sans-serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.reg-modal-titles h3 {
  font-family: var(--font-english,'Poppins'), sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.reg-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .25s;
  flex-shrink: 0;
  font-size: 14px;
}
.reg-modal-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }

.reg-modal-body { padding: 28px 28px 22px; }

@media (max-width: 640px) {
  .reg-modal-body { padding: 18px 14px 16px; }
  .reg-modal-header { padding: 16px 14px 14px; }
  .reg-modal-titles h2 { font-size: 17px; }
}

/* ══════════════════════════════════
   PHOTO GALLERY
══════════════════════════════════ */
.photo-gallery { padding: 8px 0 4px; }

.pg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pg-card {
  flex: 1 1 140px;
  max-width: calc(50% - 5px);
  box-sizing: border-box;
}
@media (min-width: 560px)  { .pg-card { flex: 1 1 170px; max-width: calc(33.333% - 8px); } .pg-grid { gap: 12px; } }
@media (min-width: 900px)  { .pg-card { flex: 1 1 190px; max-width: calc(25% - 11px); } .pg-grid { gap: 14px; } }

/* individual card */
.pg-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #e8f5ee;
  box-shadow: 0 3px 12px rgba(0,0,0,.10);
  transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s ease;
  /* entrance animation */
  animation: pgCardIn .4s ease both;
}
.pg-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

/* staggered entrance for initial cards */
.pg-card:nth-child(1) { animation-delay: .05s; }
.pg-card:nth-child(2) { animation-delay: .10s; }
.pg-card:nth-child(3) { animation-delay: .15s; }
.pg-card:nth-child(4) { animation-delay: .20s; }

@keyframes pgCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* dynamically-added cards animate in via class */
.pg-card-new {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .4s ease, transform .4s cubic-bezier(.25,.8,.25,1);
}
.pg-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pg-card-img { width: 100%; height: 100%; }
.pg-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.25,.8,.25,1);
}
.pg-card:hover .pg-card-img img { transform: scale(1.10); }

.pg-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,61,32,.55) 0%, rgba(35,139,69,.35) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  color: #fff;
  font-size: 26px;
}
.pg-card:hover .pg-card-overlay { opacity: 1; }
.pg-card-overlay i { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

/* see more button */
.pg-more { text-align: center; margin-top: 20px; }
.pg-more-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 28px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  transition: background .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 4px 16px rgba(35,139,69,.28);
}
.pg-more-btn:hover {
  background: #1a6b36;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35,139,69,.38);
}
.pg-more-chevron {
  font-size: 11px;
  transition: transform .35s ease;
}
.pg-more-btn.loading .pg-more-chevron {
  animation: pgSpin .7s linear infinite;
}
@keyframes pgSpin { to { transform: rotate(360deg); } }

/* ── Lightbox ── */
body.lb-noscroll { overflow: hidden; }

.photo-lightbox {
  position: fixed; inset: 0;
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.photo-lightbox.open { opacity: 1; pointer-events: all; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,20,10,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lb-close {
  position: absolute; top: 16px; right: 20px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.lb-close:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 17px; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, opacity .25s;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-nav:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.lb-nav-hide { opacity: 0; pointer-events: none; }

.lb-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 90vw; max-height: 92vh;
  padding: 0 80px;
}
@media (max-width: 600px) {
  .lb-content { padding: 0 52px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-nav  { width: 40px; height: 40px; font-size: 14px; }
}

.lb-img-wrap {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  max-width: 82vw; max-height: 74vh;
  display: flex;
}
.lb-img-wrap img {
  max-width: 82vw; max-height: 74vh;
  object-fit: contain; display: block;
  transition: opacity .25s ease;
}

.lb-caption {
  color: rgba(255,255,255,.82);
  font-size: 14px; text-align: center;
  max-width: 500px; line-height: 1.6;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  min-height: 1em;
}
.lb-counter {
  color: rgba(255,255,255,.42);
  font-size: 12px;
  font-family: var(--font-english,'Poppins'), sans-serif;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════
   VIDEO GALLERY
═══════════════════════════════════════ */
.video-section { padding: 4px 0; }

.vid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.vid-card {
  flex: 1 1 140px;
  max-width: calc(50% - 7px);
  box-sizing: border-box;
}
@media (min-width: 560px) { .vid-card { flex: 1 1 30%; max-width: calc(33.333% - 11px); } }
@media (min-width: 900px) { .vid-grid { gap: 18px; } }

/* Card — starts invisible, animates in via IntersectionObserver */
.vid-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.25,.8,.25,1), box-shadow .3s ease;
}
.vid-card.vid-visible { opacity: 1; transform: translateY(0); }
.vid-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.15); }

/* Thumbnail */
.vid-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.vid-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.25,.8,.25,1);
}
.vid-card:hover .vid-thumb { transform: scale(1.07); }
.vid-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a3a2a, #0f2018);
  color: rgba(255,255,255,.18);
  font-size: 30px;
}

/* Play button */
.vid-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.22);
  transition: background .3s;
}
.vid-card:hover .vid-play-btn { background: rgba(0,0,0,.1); }
.vid-play-btn i {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(35,139,69,.9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  padding-left: 3px;
  box-shadow: 0 4px 18px rgba(35,139,69,.5);
  transition: transform .3s, background .3s;
}
.vid-card:hover .vid-play-btn i { transform: scale(1.12); background: #238b45; }
@media (max-width: 480px) { .vid-play-btn i { width: 38px; height: 38px; font-size: 14px; } }

/* Share button */
.vid-share-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.45);
  color: #fff; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(4px);
  transition: background .25s, transform .25s;
}
.vid-share-btn:hover { background: #238b45; transform: scale(1.12); }

/* Info block */
.vid-info { padding: 10px 12px 13px; }
.vid-title {
  font-size: 13px; font-weight: 700; color: #1f2937;
  line-height: 1.4; margin-bottom: 3px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.vid-subtitle {
  font-size: 11.5px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}

/* ── Video Modal ── */
.video-modal {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.video-modal.open { opacity: 1; pointer-events: all; }

.vm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vm-close {
  position: absolute; top: 16px; right: 20px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.vm-close:hover { background: rgba(255,255,255,.22); }

.vm-content {
  position: relative; z-index: 1;
  width: min(92vw, 900px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 8px;
}
.vm-player {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.vm-player iframe,
.vm-player video { width: 100%; height: 100%; border: none; display: block; }

.vm-info { color: #fff; padding: 0 4px; }
.vm-title {
  font-size: 16px; font-weight: 700; margin-bottom: 4px;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.vm-subtitle {
  font-size: 13px; color: rgba(255,255,255,.6);
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
@media (max-width: 600px) {
  .vm-close { top: 10px; right: 12px; width: 38px; height: 38px; font-size: 15px; }
  .vm-title { font-size: 14px; }
}

/* ── Share Popup ── */
.vid-share-popup {
  position: fixed; z-index: 9700;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,.22);
  padding: 14px; width: 260px;
}
.vid-share-popup::before {
  content: '';
  position: absolute; top: -7px; right: 24px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
.vid-share-thumb {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 10px; background: #e5e7eb;
}
.vid-share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-share-title {
  font-size: 12px; font-weight: 700; color: #1f2937;
  margin-bottom: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.vid-share-actions { display: flex; gap: 8px; }
.vid-share-copy {
  flex: 1; padding: 8px 10px;
  background: #238b45; color: #fff;
  border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s; font-family: 'Poppins', sans-serif;
}
.vid-share-copy:hover { background: #1a6b36; }
.vid-share-native {
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px; background: #fff;
  cursor: pointer; color: #6b7280; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.vid-share-native:hover { border-color: #238b45; color: #238b45; }

/* ═══════════════════════════════════════
   NEWS CARDS
═══════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 10px;
}
@media (min-width: 560px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .news-grid { grid-template-columns: repeat(4, 1fr); } }

/* News card — starts invisible */
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.25,.8,.25,1), box-shadow .3s ease;
}
.news-card.news-visible { opacity: 1; transform: translateY(0); }
.news-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,.13); }

/* Card image */
.news-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
}
.news-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.25,.8,.25,1);
}
.news-card:hover .news-card-img { transform: scale(1.06); }
.news-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a3a2a, #0f2018);
  color: rgba(255,255,255,.18); font-size: 32px;
}

/* Tag pill */
.news-card-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(35,139,69,.9);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(4px);
}

/* Share button on image */
.news-share-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.45);
  color: #fff; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(4px);
  transition: background .25s, transform .25s;
}
.news-share-btn:hover { background: #238b45; transform: scale(1.12); }

/* Card body */
.news-card-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.news-card-title {
  font-size: 14px; font-weight: 700; color: #1f2937;
  line-height: 1.45; margin-bottom: 6px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.news-card-subtitle {
  font-size: 12.5px; color: #6b7280; line-height: 1.55;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  margin-bottom: 14px; flex: 1;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.news-read-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #238b45; color: #fff;
  border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 7px 14px;
  font-family: 'Poppins', sans-serif;
  transition: background .2s, transform .2s;
}
.news-read-more-btn:hover { background: #1a6b36; transform: translateY(-1px); }
.news-read-more-btn.expanded { background: #6b7280; }
.news-read-more-btn.expanded:hover { background: #4b5563; transform: none; }
.nrm-chevron { font-size: 10px; transition: transform .3s ease; }
.news-read-more-btn.expanded .nrm-chevron { transform: rotate(180deg); }

/* ── Inline accordion expand ── */
.news-card-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1);
  background: #fff;
  grid-column: 1 / -1;       /* spans full width when direct child of news-grid */
}
.news-card-expand.open { grid-template-rows: 1fr; }
.news-expand-inner {
  min-height: 0; overflow: hidden;
}
/* full-width panel styling when expand is outside the card */
.news-grid > .news-card-expand {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1.5px solid #e5e7eb;
  margin-top: -8px;
}
/* inside-card styling (mobile / toggle-grid) */
.news-card > .news-card-expand {
  border-top: 1.5px solid #e5e7eb;
}
/* ── News toggle grid (inside card panel) ── */
.news-grid-toggle { padding: 4px 0; }
.news-card-date {
  font-size: 11px; color: #9ca3af;
  font-family: 'Poppins', sans-serif;
}

/* ── Article body content (inside accordion expand) ── */
.nam-content {
  font-size: 14.5px; color: #374151; line-height: 1.9;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
  max-width: 860px; margin: 0 auto; padding: 28px 24px 32px;
}
.nam-content p { margin: 0 0 14px; }
.nam-content p:last-child { margin-bottom: 0; }
.nam-content h2 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; color: #111827; }
.nam-content h3 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; color: #1f2937; }
.nam-content ul, .nam-content ol { padding-left: 20px; margin: 10px 0; }
.nam-content li { margin: 4px 0; }
.nam-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.nam-content hr { border: none; border-top: 1.5px solid #e5e7eb; margin: 16px 0; }
.nam-content strong, .nam-content b { font-weight: 700; }
.nam-content em, .nam-content i:not([class]) { font-style: italic; }

/* ── News Share Popup ── */
.news-share-popup {
  position: fixed; z-index: 9700;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,.22);
  padding: 14px; width: 260px;
}
.news-share-popup::before {
  content: '';
  position: absolute; top: -7px; right: 24px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
.news-share-thumb {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 10px; background: #e5e7eb;
}
.news-share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-share-title {
  font-size: 12px; font-weight: 700; color: #1f2937;
  margin-bottom: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-khmer, 'Kantumruy Pro'), var(--font-english,'Poppins'), sans-serif;
}
.news-share-actions { display: flex; gap: 8px; }
.news-share-copy {
  flex: 1; padding: 8px 10px;
  background: #238b45; color: #fff;
  border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s; font-family: 'Poppins', sans-serif;
}
.news-share-copy:hover { background: #1a6b36; }
.news-share-native {
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px; background: #fff;
  cursor: pointer; color: #6b7280; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.news-share-native:hover { border-color: #238b45; color: #238b45; }

/* ══════════════════════════════════
   DOCUMENT LIBRARY CARDS
══════════════════════════════════ */
.doc-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.doc-card { flex: 1 1 200px; max-width: 100%; box-sizing: border-box; }
.doc-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); border: 1.5px solid #e5e7eb; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.doc-thumb { height: 130px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb-icon { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.doc-thumb-icon i { font-size: 40px; }
.doc-thumb-icon span { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.doc-type-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .5px; }
.doc-pdf  { background: #fee2e2; color: #dc2626; }
.doc-word { background: #dbeafe; color: #1d4ed8; }
.doc-excel { background: #dcfce7; color: #15803d; }
.doc-ppt  { background: #fef3c7; color: #b45309; }
.doc-info { padding: 10px 12px; flex: 1; }
.doc-title { font-size: 12.5px; font-weight: 600; color: #1f2937; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-actions { padding: 8px 12px; border-top: 1px solid #f3f4f6; display: flex; gap: 5px; }
.doc-action-btn { flex: 1; padding: 6px 3px; border: 1.5px solid #e5e7eb; border-radius: 7px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; color: #374151; display: flex; align-items: center; justify-content: center; gap: 3px; transition: all .18s; font-family: 'Poppins', sans-serif; }
.doc-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.doc-action-btn.doc-dl-btn:hover { background: #1d4ed8; border-color: #1d4ed8; }
.doc-action-btn.doc-share-btn:hover { background: #7c3aed; border-color: #7c3aed; }
.doc-dl-count { font-size: 9.5px; color: #9ca3af; margin-left: 1px; }

/* Document Viewer Modal */
.doc-viewer-overlay { position: fixed; inset: 0; z-index: 9700; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.72); padding: 12px; }
.doc-viewer-overlay.open { display: flex; }
.doc-viewer-modal { background: #1a1a2e; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; width: 92vw; max-width: 1100px; height: 88vh; box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.doc-viewer-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #16213e; border-bottom: 1px solid rgba(255,255,255,.08); gap: 12px; flex-shrink: 0; }
.doc-viewer-title { font-size: 13.5px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.doc-viewer-header-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doc-viewer-open-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); color: #94a3b8; text-decoration: none; transition: all .2s; font-size: 14px; }
.doc-viewer-open-btn:hover { background: var(--primary); color: #fff; }
.doc-viewer-close-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); color: #94a3b8; border: none; cursor: pointer; transition: all .2s; font-size: 16px; }
.doc-viewer-close-btn:hover { background: #ef4444; color: #fff; }
.doc-viewer-body { flex: 1; overflow: hidden; }
.doc-viewer-body iframe { width: 100%; height: 100%; border: none; display: block; background: #fff; }
.doc-card { cursor: pointer; }
@media (max-width: 600px) { .doc-viewer-modal { width: 100vw; height: 100dvh; border-radius: 0; } .doc-viewer-overlay { padding: 0; } }

/* ── Unified Share Overlay ── */
.share-overlay { position: fixed; inset: 0; z-index: 9650; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.share-overlay.open { display: flex; }
.share-box { background: #fff; border-radius: 22px; padding: 28px 22px 22px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 28px 70px rgba(0,0,0,.28); position: relative; }
.share-box-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: none; background: #f3f4f6; color: #6b7280; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.share-box-close:hover { background: #e5e7eb; color: #111; }
.share-thumb { width: 100%; height: 140px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; background: #f9fafb; }
.share-thumb:empty { display: none; }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-thumb-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.share-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 14px; line-height: 1.45; }
.share-url-row { display: flex; gap: 8px; margin-bottom: 18px; align-items: center; }
.share-url-input { flex: 1; padding: 9px 12px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 11.5px; color: #6b7280; background: #f9fafb; min-width: 0; outline: none; }
.share-copy-btn { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.share-copy-btn:hover { background: var(--primary); color: #fff; }
.share-label { font-size: 11px; color: #9ca3af; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.share-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-social-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; text-decoration: none; transition: transform .15s, opacity .15s, box-shadow .15s; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.share-social-btn:hover { transform: scale(1.14); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }
.share-tw { background: #000; }
.share-li { background: #0a66c2; }
@media (max-width: 640px) { .doc-grid { gap: 12px; } .doc-card { flex: 1 1 150px; } }

/* ── DYNAMIC COLOR MAP OVERRIDES ── */
.dean-card-premium,
.crd-program-card,
.prog-card,
.crd-career-item,
.sec-table,
.crd-mob-banner,
.crd-mob-sem,
.news-card,
.doc-card,
.vid-card,
.pg-card,
.card-table-inline,
.card-table-area,
.announcement-card,
.about-premium-stat-box,
.leader-card-wrap,
.dean-wrapper,
.about-program-cards > div,
.stat-box,
.traffic-card,
.share-box,
.slide-card,
.crd-mob-rows {
  background: var(--box-bg, #ffffff) !important;
  color: var(--box-color, #222222) !important;
}

/* Dynamic Buttons */
.btn:not(.reg-nav-btn):not(.mob-reg-btn):not(.reg-submit-btn):not(.reg-toggle-btn),
.btn-primary:not(.reg-nav-btn):not(.mob-reg-btn):not(.reg-submit-btn):not(.reg-toggle-btn),
.read-more-btn,
.doc-action-btn,
.c-arrow {
  background: var(--btn-bg, #0f3d20) !important;
  color: var(--btn-color, #ffffff) !important;
}

/* Dynamic Icons and highlighted circles */
.section-title .title-divider i,
.footer-col i,
.contact-info i,
.dean-card-premium i,
.crd-career-item i,
.nav-link i,
.c-arrow i,
.header-top-contact i {
  color: var(--icon-color, var(--primary)) !important;
}

.c-arrow,
.title-divider i,
.section-title i {
  background: var(--icon-bg, #0f3d20) !important;
}



/* Floating Mobile Contact Widget */
.mobile-contact-widget {
  position: fixed;
  bottom: 90px;
  right: 26px;
  z-index: 8010;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-english, 'Poppins'), var(--font-khmer, 'Kantumruy Pro'), sans-serif;
}
@media (max-width: 767px) {
  .mobile-contact-widget.show {
    display: flex;
  }
  .footer-col-contact {
    display: none !important;
  }
}
.mobile-contact-fab,
.mobile-register-fab {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(35, 139, 69, 0.45);
  transition: all 0.3s ease;
}
.mobile-register-fab {
  background: #ea580c;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.45);
}
.mobile-contact-fab:hover,
.mobile-contact-fab.panel-open {
  background: var(--accent);
  color: #222;
  transform: scale(1.08);
}
.mobile-register-fab:hover {
  background: #c2410c;
  transform: scale(1.08);
}
.mobile-contact-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 290px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-contact-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.mobile-contact-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
}
.mobile-contact-hdr span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mobile-contact-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.mobile-contact-close-btn:hover {
  opacity: 1;
}
.mobile-contact-body {
  padding: 16px;
}
.mobile-contact-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-contact-phones .footer-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}
.mobile-contact-phones .footer-location i {
  color: var(--primary);
  font-size: 14px;
}
.mobile-contact-phones .footer-location p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.mobile-contact-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.mobile-contact-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.mobile-contact-socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive bottom sheet slide-up for registration modal */
@media (max-width: 767px) {
  .reg-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .reg-modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 86vh;
    transform: translateY(100%) scale(1);
    transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .reg-modal-overlay.open .reg-modal-box {
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════
   DEDICATED NEWS PAGE & CARD GRID
   ══════════════════════════════════════════ */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-page-card {
  background: var(--card-bg, #ffffff);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: newsFadeInUp .4s ease forwards;
}

@keyframes newsFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-page-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.news-page-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #e6f7ef;
}

.news-page-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-page-card:hover .news-page-card-img {
  transform: scale(1.08);
}

.news-page-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.news-page-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-page-card-date {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

.news-page-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.news-page-card-text {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-page-card-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: fit-content;
  transition: color 0.2s ease;
}

.news-page-card-more:hover {
  color: #1d7a3b;
}

.news-page-card-more i {
  transition: transform 0.2s ease;
}

.news-page-card-more:hover i {
  transform: translateX(4px);
}

/* News Reader Modal Styles */
.news-reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-reader-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.news-reader-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-reader-modal.open .news-reader-box {
  transform: scale(1);
}

.news-reader-header {
  padding: 20px 30px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.news-reader-close {
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-reader-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.news-reader-body {
  padding: 30px;
}

.news-reader-content-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
}

.news-reader-content-text p {
  margin-bottom: 16px;
}

.news-reader-content-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

@media (max-width: 767px) {
  .news-reader-modal {
    padding: 0;
    align-items: flex-end;
  }
  .news-reader-box {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    transform: translateY(100%) scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .news-reader-modal.open .news-reader-box {
    transform: translateY(0) scale(1);
  }
  .news-reader-body {
    padding: 20px;
  }
}

.news-pill-tag {
  background: #f1f3f5;
  color: #495057;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
}

.news-card-badge-tr {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary, #16a34a);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.news-page-card:hover .news-card-badge-tr {
  transform: translateY(-2px) scale(1.05);
  background: #11823b;
}

#newsDetailContent,
#newsDetailContent *,
.news-reader-content-text,
.news-reader-content-text * {
  max-height: none !important;
  -webkit-line-clamp: none !important;
  overflow: visible !important;
  height: auto !important;
}

.news-detail-back-btn {
  background: transparent;
  color: var(--primary, #16a34a);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.news-detail-back-btn:hover {
  transform: translateX(-8px);
  color: #11823b;
}

#newsDetailContent > *:last-child {
  margin-bottom: 0 !important;
}

/* ══════════════════════════════════
   FOT VIDEOS SECTION
══════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.video-card {
  width: 100%;
  background: var(--card-bg, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1.5px solid var(--border, #e5e7eb);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #000;
}
.video-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card:hover .video-thumb-wrap img {
  transform: scale(1.05);
}
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.video-card:hover .video-play-overlay {
  opacity: 1;
}
.video-play-overlay i {
  color: #fff;
  font-size: 40px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.video-card:hover .video-play-overlay i {
  transform: scale(1);
}
.video-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-subtitle {
  font-size: 12.5px;
  color: var(--muted, #6b7280);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: auto;
}
.video-views {
  font-size: 11px;
  color: var(--muted, #6b7280);
  font-weight: 600;
}
.video-share-btn {
  background: none;
  border: none;
  color: var(--primary, #238b45);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-share-btn:hover {
  color: #1a6b36;
}

/* YouTube Viewer layout styling */
.video-viewer-layout {
  display: flex;
  gap: 24px;
}
.video-viewer-main {
  flex: 2.3;
  min-width: 0;
}
.video-viewer-sidebar {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.related-video-card {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.related-video-card:hover {
  background: var(--card-bg, #ffffff);
  border-color: var(--border, #e5e7eb);
}
.related-thumb {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #000;
  flex-shrink: 0;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info {
  flex: 1;
  min-width: 0;
}
.related-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-subtitle {
  font-size: 11px;
  color: var(--muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-viewer-layout {
    flex-direction: column;
    gap: 20px;
  }
  .video-viewer-sidebar {
    min-width: 100%;
  }
  .related-thumb {
    width: 100px;
    height: 60px;
  }
  .related-title {
    font-size: 12px;
  }
}

