 :root {
    --teal:        #1b7fa0;
    --teal-dark:   #135f78;
    --gold:        #c9a227;
    --white:       #ffffff;
    --font-display: 'Outfit', sans-serif;
    --font-body:    'Outfit', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 /* html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--white);
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }*/

  /* =========================================
     HERO SLIDER
  ========================================= */
  .hero-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
  }

  /* SLIDES TRACK — 5 slides */
  .slides-track {
    display: flex;
    width: 500%; /* 5 slides */
    height: 100%;
    transition: transform .85s cubic-bezier(.77,0,.175,1);
  }

  .slide {
    width: calc(100% / 5); /* 1/5 of track */
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }

  /* ---- IMAGE SLIDE BACKGROUNDS ---- */
  .slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 8s ease;
  }
  .slide.is-active .slide-img { transform: scale(1.04); }

  .slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Slide 3 — Soap Noodles */
  .slide-3 .slide-img { background-image: url('../images/slider/Palmoil.jpg'); }
  .slide-3 .slide-overlay { background: linear-gradient(115deg, rgba(15,75,25,.47) 0%, rgba(8,50,16,.45) 45%, rgba(4,28,8,.42) 100%); }
  /*.slide-3 .slide-img { background-image: url('https://images.pexels.com/photos/6930879/pexels-photo-6930879.jpeg?auto=compress&cs=tinysrgb&w=1800&fit=crop&h=900'); }
  .slide-3 .slide-overlay { background: linear-gradient(115deg, rgba(15,75,25,.88) 0%, rgba(8,50,16,.75) 45%, rgba(4,28,8,.52) 100%); }*/

  /* Slide 4 — Palm & Palm Kernel Oil */
  .slide-4 .slide-img { background-image: url('../images/slider/palm-plantation.jpg'); }
  .slide-4 .slide-overlay { background: linear-gradient(115deg, rgba(140,55,0,.68) 0%, rgba(105,38,0,.54) 45%, rgba(65,18,0,.52) 100%); }

  /* Slide 5 — Glycerine & Specialty Fats */
  .slide-5 .slide-img { background-image: url('../images/slider/palm-kernel-oil.jpg'); }
  .slide-5 .slide-overlay { background: linear-gradient(115deg, rgba(135,72,0,.68) 0%, rgba(102,52,0,.54) 45%, rgba(62,26,0,.52) 100%); }

  /* Slide 6 — Surfactants & Fatty Alcohols */
  .slide-6 .slide-img { background-image: url('../images/slider/Distilled-Palm-Fatty-Acid.jpg'); }
  .slide-6 .slide-overlay { background: linear-gradient(115deg, rgba(12,50,95,.70) 0%, rgba(8,38,78,.56) 45%, rgba(4,18,52,.54) 100%); }

  /* Slide 7 — Oils */
  .slide-7 .slide-img { background-image: url('../images/slider/banner-5.jpg'); }
  .slide-7 .slide-overlay { background: linear-gradient(115deg, rgba(10,58,78,.60) 0%, rgba(7,44,62,.46) 45%, rgba(3,24,40,.44) 100%); }

  /* ---- DECORATIVE ICON ---- */
  .slide-icon-wrap {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.2);
  }
  .slide-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,.22);
    animation: spin 16s linear infinite;
  }
  .slide-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.09);
    animation: spin 28s linear infinite reverse;
  }
  .slide-icon-wrap svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
  }

  /* Per-slide icon glow */
  .slide-3 .slide-icon-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 40px rgba(80,220,120,.25), inset 0 1px 0 rgba(255,255,255,.2); }
  .slide-4 .slide-icon-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 40px rgba(255,160,40,.28), inset 0 1px 0 rgba(255,255,255,.2); }
  .slide-5 .slide-icon-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 40px rgba(255,185,30,.28), inset 0 1px 0 rgba(255,255,255,.2); }
  .slide-6 .slide-icon-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 40px rgba(80,160,255,.28), inset 0 1px 0 rgba(255,255,255,.2); }
  .slide-7 .slide-icon-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 40px rgba(40,200,220,.28), inset 0 1px 0 rgba(255,255,255,.2); }

  /* ---- SLIDE CONTENT LAYOUT ---- */
  .slide-img-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  /* Badge */
  .img-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.32);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 7px 20px 7px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
  .img-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    flex-shrink: 0;
    animation: pulse 2s ease infinite;
  }

  /* Title — 2 lines */
  .img-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.7vw, 44px); /* reduced by ~4px */
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 28px rgba(0,0,0,.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  /* overflow: hidden; */
  padding-bottom: 4px;
}
  .img-title em { font-style: italic; opacity: .9; }

  /* Subtitle — single line */
  .img-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
    max-width: 680px;
    margin-bottom: 36px;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0,0,0,.25);
    /*white-space: nowrap;
    overflow: hidden;*/
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Buttons */
  .img-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
  }
  .btn-img-primary {
    background: rgba(255,255,255,.95);
    color: #0f4f68;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s, background .2s;
    backdrop-filter: blur(6px);
  }
  .btn-img-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
    background: #fff;
  }
  .btn-img-primary svg { transition: transform .2s; }
  .btn-img-primary:hover svg { transform: translateX(3px); }

  .btn-img-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.45);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, border-color .2s, transform .2s;
  }
  .btn-img-secondary:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.75);
    transform: translateY(-2px);
  }

  /* Product tags */
  .img-product-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .img-ptag {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.88);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s;
  }
  .img-ptag:hover { background: rgba(255,255,255,.22); }

  /* ---- SLIDE-IN ANIMATION ---- */
  .slide.is-active .slide-content-anim {
    animation: slideContentIn .7s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes slideContentIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ---- SLIDER CONTROLS ---- */
  .slider-nav {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: width .3s, background .3s, border-radius .3s;
    border: none;
    padding: 0;
  }
  .slider-dot.active {
    width: 28px;
    border-radius: 4px;
    background: rgba(255,255,255,.95);
  }

  .slider-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0;
  }
  .slider-arrow:hover {
    background: rgba(255,255,255,.28);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }

  /* Progress bar */
  .slider-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 20;
  }
  .slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.95));
    width: 0%;
    transition: width .1s linear;
  }



  /* ---- KEYFRAMES ---- */
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
  }
  @keyframes spin { to { transform: rotate(360deg); } }


  /* ---- RESPONSIVE ---- */

  /* Laptop (1024px - 1279px) */
  @media (max-width: 1279px) and (min-width: 1024px) {
    .hero-slider { height: 700px; }
    .img-title { font-size: clamp(36px, 4.5vw, 58px); }
    .img-subtitle { font-size: 15px; }
    .slide-img-inner { max-width: 740px; }
  }

  /* iPad / Tablet (768px - 1023px) */
  @media (max-width: 1023px) and (min-width: 768px) {
    .hero-slider { height: 600px; }
    .slide-img-inner { max-width: 640px; padding: 0 36px; }
    .slide-icon-wrap { width: 72px; height: 72px; margin-bottom: 20px; }
    .slide-icon-wrap svg { width: 34px; height: 34px; }
    .img-badge { font-size: 10.5px; margin-bottom: 20px; }
    .img-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
    .img-subtitle { font-size: 14px; margin-bottom: 28px; max-width: 480px; }
    .img-actions { margin-bottom: 32px; gap: 12px; }
    .btn-img-primary, .btn-img-secondary { padding: 12px 24px; font-size: 13.5px; }
    .img-ptag { font-size: 11px; padding: 5px 13px; }
    .slider-nav { bottom: 28px; }
  }

  /* Mobile (up to 767px) */
  @media (max-width: 767px) {
    .hero-slider { height: 500px; }
    .slide-img-inner { padding: 0 20px; max-width: 100%; }
    .slide-icon-wrap { width: 60px; height: 60px; margin-bottom: 16px; }
    .slide-icon-wrap svg { width: 28px; height: 28px; }
    .slide-icon-wrap::before { inset: -8px; }
    .slide-icon-wrap::after { inset: -18px; }
    .img-badge { font-size: 10px; letter-spacing: 1px; padding: 6px 14px 6px 10px; margin-bottom: 16px; }
    .img-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 12px; }
    .img-subtitle { font-size: 13px; line-height: 1.6; margin-bottom: 22px; white-space: nowrap; }
    .img-actions { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
    .btn-img-primary, .btn-img-secondary { width: 100%; max-width: 280px; justify-content: center; padding: 12px 20px; font-size: 13px; }
    .img-product-tags { gap: 6px; }
    .img-ptag { font-size: 10.5px; padding: 5px 11px; }
    .slider-nav { bottom: 20px; gap: 14px; }
    .slider-arrow { width: 34px; height: 34px; }
    .slider-dot { width: 6px; height: 6px; }
    .slider-dot.active { width: 22px; }
  }

  /* Small Mobile (up to 400px) */
  @media (max-width: 400px) {
    .hero-slider { height: 480px; }
    .img-title { font-size: clamp(22px, 8vw, 32px); }
    .img-subtitle { display: none; }
    .slide-icon-wrap { display: none; }
  }