@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root{
  --navy:#071a31; --blue:#1459a6; --cyan:#4ed8ff; --yellow:#ffd51e;
  --red:#ef2424; --green:#18a962; --ink:#11213a; --bg:#eef4fa;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Kanit',sans-serif;color:var(--ink);background:var(--bg)}
a{text-decoration:none;color:inherit}
.hero{
  background:
    linear-gradient(90deg,rgba(4,18,36,.97),rgba(8,37,72,.94)),
    url('assets/promo-reference.png') center/cover;
  color:#fff;padding:18px max(20px,calc((100vw - 1180px)/2));
  position:relative;overflow:hidden
}
.hero:after{content:"";position:absolute;width:450px;height:450px;border-radius:50%;background:#1e73c944;filter:blur(60px);right:-100px;top:-180px}
.nav,.hero-grid,.feature-row{position:relative;z-index:1;max-width:1180px;margin:auto}
.nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.brand{font-size:26px;font-weight:800;letter-spacing:1px}.brand span{color:var(--yellow)}
.nav-cta{background:#fff;color:var(--navy);padding:10px 20px;border-radius:999px;font-weight:600}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:26px;align-items:center}
.eyebrow{color:#75d8ff;font-weight:700;letter-spacing:1px;font-size:18px}
.hero h1{font-size:clamp(38px,5vw,68px);line-height:1.03;margin:10px 0}.hero h1 span{color:var(--yellow)}
.hero-copy p{font-size:19px;line-height:1.6;color:#d9e7f7}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn{padding:13px 22px;border-radius:12px;font-weight:700}.btn-primary{background:var(--yellow);color:#10203b}.btn-outline{border:1px solid #91cfff}
.promo-panel{background:#071b35e6;border:1px solid #5d89b8;border-radius:22px;padding:20px;box-shadow:0 16px 40px #0005}
.promo-title{display:inline-block;background:linear-gradient(90deg,#ff2020,#ff7d14);padding:9px 15px;border-radius:10px;font-size:20px;font-weight:800}
.countdown-label{text-align:center;margin:13px 0 8px;color:#b8d8f5}
.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;text-align:center}
.countdown div{background:#fff;border-radius:10px;color:#10213a;padding:9px 4px}
.countdown b{display:block;font-size:35px;line-height:1;font-family:monospace}.countdown span{font-size:12px}
.promo-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.discount-card{padding:14px;border-radius:14px;color:#fff}.discount-card small,.discount-card span{display:block}.discount-card strong{display:block;font-size:21px;margin:5px 0}.discount-card em{font-size:36px;font-style:normal}.red{background:linear-gradient(135deg,#e01d26,#ff6341)}.blue{background:linear-gradient(135deg,#0c67c8,#31a5e8)}
.feature-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:28px}
.feature-row div{background:#fff;color:#16304f;border-radius:12px;padding:12px;text-align:center;font-size:22px}.feature-row span{display:block;font-size:14px;font-weight:600}

main{max-width:1180px;margin:auto;padding:28px 18px 10px}.section{margin:26px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(90deg,#1659a6,#2b7fc7,#eef4fa);color:#fff;padding:11px 18px;border-radius:16px}.section-head>div{display:flex;align-items:center;gap:12px}.section-head h2{margin:0;font-size:25px}.section-head a{background:#ffffff24;padding:8px 14px;border-radius:999px}
.section-icon{font-size:25px;background:#fff;color:#1659a6;padding:5px 10px;border-radius:10px}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.project-card{background:#fff;border-radius:15px;padding:10px;box-shadow:0 6px 20px #1d3d5d16;text-align:center;transition:.25s}.project-card:hover{transform:translateY(-5px)}
.mock{height:155px;border-radius:11px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:40px;color:#fff;overflow:hidden}.mock b{font-size:23px}
.ecommerce{background:linear-gradient(135deg,#f5f5f5,#2b3f55);color:#233}.realestate{background:linear-gradient(135deg,#1f718b,#6eb56b)}.food{background:linear-gradient(135deg,#6c240f,#e6761e)}.clinic{background:linear-gradient(135deg,#eef4ff,#3b5fbd);color:#284}.dashboard{background:linear-gradient(135deg,#0e1f35,#355a82)}.portfolio{background:linear-gradient(135deg,#151d2a,#4b5f78)}
.project-card h3{margin:9px 0 0;font-size:17px}.project-card p{margin:2px 0;color:#667;font-size:14px}

.android-section .section-head{background:linear-gradient(90deg,#108f62,#18aa76,#eaf7f2)}.android-section .section-icon{color:#118e61}
.phone-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px;margin-top:18px;overflow-x:auto;padding-bottom:8px}.phone{min-width:105px;text-align:center}.screen{height:190px;border:5px solid #172330;border-radius:18px;padding:20px 7px;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;box-shadow:0 6px 12px #0003}.screen b{font-size:16px}.screen span{font-size:12px}.phone p{font-size:13px;margin:8px 0}.orange{background:linear-gradient(#f96822,#ffb32e)}.redscreen{background:linear-gradient(#e92028,#551c26)}.blue{background:linear-gradient(#2592d0,#174db5)}.dark{background:linear-gradient(#182e4a,#587492)}.sky{background:linear-gradient(#4ac5ef,#ecf7ff);color:#17406e}.green{background:linear-gradient(#1ca96c,#c8f2df);color:#134}.plant{background:linear-gradient(#e8fff0,#3aae69);color:#153}

.iot-section .section-head{background:linear-gradient(90deg,#4b29a7,#7a4ed2,#eeeaff)}.iot-section .section-icon{color:#603bb6}
.iot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}.iot-grid article{background:#fff;border-radius:14px;overflow:hidden;text-align:center;box-shadow:0 6px 18px #1d3d5d14}.iot-img{height:130px;background:linear-gradient(135deg,#1a2630,#5d7582);display:flex;align-items:center;justify-content:center;font-size:46px}.iot-grid h3{font-size:16px;margin:9px 8px 0}.iot-grid p{margin:0 0 10px;color:#687}

.process{background:linear-gradient(90deg,#11477f,#276eae);color:#fff;border-radius:18px;padding:18px 24px;margin:38px 0}.process h2{margin:0 0 12px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.steps div{display:flex;align-items:center;gap:12px}.steps b{background:#fff;color:#205b97;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;font-size:25px}.steps em{color:#ffe13b;font-style:normal}
.contact{background:linear-gradient(100deg,#06172c,#0b2a4b);color:#fff;border-radius:20px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:25px}.contact h2{margin:0;font-size:29px}.contact p{color:#bdd0e4}.contact-actions{display:flex;gap:12px;flex-wrap:wrap}.contact-actions a{padding:15px 22px;border-radius:12px;font-size:19px;font-weight:700}.call{background:#f1262b}.line{background:#12a94f}
footer{background:#051525;color:#d5e2ef;display:flex;justify-content:center;gap:36px;padding:20px;flex-wrap:wrap}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}.feature-row{grid-template-columns:repeat(3,1fr)}
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}.iot-grid{grid-template-columns:repeat(2,1fr)}
  .phone-grid{grid-template-columns:repeat(4,1fr)}.contact{flex-direction:column;align-items:flex-start}
}
@media(max-width:600px){
  .hero{padding:14px}.nav{margin-bottom:15px}.brand{font-size:20px}.hero h1{font-size:42px}
  .feature-row{grid-template-columns:repeat(2,1fr)}.promo-cards{grid-template-columns:1fr}
  .section-head{align-items:flex-start}.section-head h2{font-size:18px}.section-head a{display:none}
  .portfolio-grid{grid-template-columns:1fr}.iot-grid{grid-template-columns:1fr}.phone-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr 1fr}.steps span{font-size:14px}.contact-actions{width:100%}.contact-actions a{width:100%;text-align:center}
}

.real-work-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:18px}
.real-work-grid figure,.real-phone-grid figure{margin:0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px #1d3d5d18;text-align:center}
.real-work-grid img{width:100%;aspect-ratio:1.35/1;object-fit:cover;display:block}
.real-work-grid figcaption{padding:8px 7px 10px;font-size:14px;font-weight:600;line-height:1.25}
.real-phone-grid{display:grid;grid-template-columns:repeat(11,minmax(78px,1fr));gap:10px;margin-top:18px;overflow-x:auto;padding-bottom:8px}
.real-phone-grid img{width:100%;height:210px;object-fit:cover;display:block;border-radius:11px 11px 0 0}
.real-phone-grid figcaption{font-size:12px;font-weight:600;padding:7px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.real-work-grid{grid-template-columns:repeat(3,1fr)}.real-phone-grid{grid-template-columns:repeat(6,minmax(90px,1fr))}}
@media(max-width:600px){.real-work-grid{grid-template-columns:repeat(2,1fr)}.real-phone-grid{grid-template-columns:repeat(4,minmax(90px,1fr))}.real-phone-grid img{height:190px}}


/* ===== FINAL LAYOUT FIX: ป้องกันกรอบ/รูปหลุด ===== */
.section { overflow: hidden; }

.real-work-grid,
.real-phone-grid {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.real-work-grid figure,
.real-phone-grid figure {
  min-width: 0;
  overflow: hidden;
}

.real-work-grid img,
.real-phone-grid img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.web-work {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.iot-work {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.real-phone-grid {
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 10px;
}

.real-phone-grid figure {
  width: 100%;
}

.real-phone-grid img {
  height: auto;
  aspect-ratio: 0.42 / 1;
  object-fit: cover;
  object-position: center;
}

.real-work-grid img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: center;
}

.real-work-grid figcaption,
.real-phone-grid figcaption {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .web-work, .iot-work {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .real-phone-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .web-work, .iot-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .real-phone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .real-phone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE RESPONSIVE FINAL FIX
   ========================================================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

@media (max-width: 768px) {
  body {
    min-width: 0 !important;
  }

  .hero,
  main,
  .section,
  .process,
  .contact {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding: 14px !important;
  }

  main {
    padding: 16px 10px !important;
  }

  .nav {
    gap: 10px;
  }

  .nav-cta {
    font-size: 13px;
    padding: 9px 12px;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 38px !important;
    word-break: break-word;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .promo-panel {
    margin-top: 18px;
    width: 100%;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .section-head {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .section-head h2 {
    font-size: 18px !important;
    line-height: 1.25;
  }

  /* Website / IoT: 1 card per row on small screens */
  .real-work-grid,
  .web-work,
  .iot-work {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .real-work-grid figure {
    width: 100% !important;
    min-width: 0 !important;
  }

  .real-work-grid img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Android: horizontal mobile carousel, no overflowing columns */
  .real-phone-grid {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 12px 4px 14px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .real-phone-grid figure {
    flex: 0 0 145px !important;
    width: 145px !important;
    min-width: 145px !important;
    scroll-snap-align: start;
  }

  .real-phone-grid img {
    width: 100% !important;
    height: 280px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .real-phone-grid figcaption {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
    font-size: 12px !important;
    padding: 8px 5px !important;
  }

  .steps {
    grid-template-columns: 1fr !important;
  }

  .contact {
    padding: 22px 16px !important;
  }

  .contact h2 {
    font-size: 24px !important;
  }

  footer {
    padding: 18px 12px;
    gap: 12px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 19px !important;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: 34px !important;
  }

  .promo-cards {
    grid-template-columns: 1fr !important;
  }

  .countdown b {
    font-size: 27px !important;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .real-phone-grid figure {
    flex-basis: 138px !important;
    width: 138px !important;
    min-width: 138px !important;
  }

  .real-phone-grid img {
    height: 265px !important;
  }
}


/* ==========================================================
   RESPONSIVE V3 — SIMPLE MOBILE GRID, NO CLIPPED CARDS
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box !important;
}

html {
  width: 100% !important;
  max-width: 100% !important;
}

body {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

main,
.section,
.real-work-grid,
.real-phone-grid,
figure {
  min-width: 0 !important;
}

@media screen and (max-width: 768px) {
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 10px !important;
  }

  .section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .section-head {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  .section-head > div {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .section-head h2 {
    margin: 0 !important;
    min-width: 0 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  .section-head a {
    display: none !important;
  }

  /* Website and IoT: 2 columns, always fully inside screen */
  .real-work-grid,
  .web-work,
  .iot-work {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    padding: 10px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .real-work-grid figure {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  .real-work-grid img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.45 / 1 !important;
    object-fit: cover !important;
  }

  /* Android: 2 columns — no horizontal carousel, no clipped third card */
  .real-phone-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    padding: 10px !important;
    margin: 0 !important;
    overflow: hidden !important;
    scroll-snap-type: none !important;
  }

  .real-phone-grid figure {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    flex: none !important;
  }

  .real-phone-grid img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 0.56 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .real-work-grid figcaption,
  .real-phone-grid figcaption {
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 5px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 420px) {
  .real-work-grid,
  .web-work,
  .iot-work,
  .real-phone-grid {
    gap: 8px !important;
    padding: 8px !important;
  }

  .section-head h2 {
    font-size: 16px !important;
  }
}


/* Address */
.address-box{
  margin-top:18px;
  padding:16px 18px;
  width:100%;
  max-width:680px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  color:#fff;
  line-height:1.65;
}
.address-box strong{
  display:block;
  font-size:18px;
  margin-bottom:6px;
}
.address-box p{
  margin:0;
  font-size:15px;
  line-height:1.7;
}
@media(max-width:768px){
  .address-box{
    max-width:100%;
    padding:14px;
    border-radius:14px;
  }
  .address-box p{
    font-size:14px;
    line-height:1.7;
    word-break:break-word;
  }
}


/* Google Maps */
.map-box{
  width:100%;
  max-width:680px;
  margin-top:18px;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.map-title{
  padding:13px 16px;
  font-size:18px;
  font-weight:700;
  color:#17324d;
}
.map-box iframe{
  display:block;
  width:100%;
  height:360px;
  border:0;
}
.map-link{
  display:block;
  padding:13px 16px;
  text-align:center;
  font-weight:700;
  color:#fff;
  background:#188038;
  text-decoration:none;
}
.map-link:hover{filter:brightness(1.06);}
@media(max-width:768px){
  .map-box{
    max-width:100%;
    border-radius:14px;
  }
  .map-title{font-size:16px;}
  .map-box iframe{height:300px;}
}


/* ===== 10 เหตุผล ทำไมต้องเลือกเรา ===== */
.why-us-section{
  padding-bottom:24px !important;
}
.why-head{
  background:linear-gradient(90deg,#f59e0b,#f97316,#ea580c) !important;
}
.why-us-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  padding:18px;
}
.why-card{
  position:relative;
  min-width:0;
  padding:22px 15px 18px;
  background:#fff;
  border:1px solid #eef1f5;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(25,45,70,.08);
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.why-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(25,45,70,.14);
}
.why-number{
  position:absolute;
  top:10px;
  right:12px;
  font-size:12px;
  font-weight:800;
  color:#f97316;
}
.why-icon{
  width:58px;
  height:58px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  font-size:30px;
  background:linear-gradient(135deg,#fff7ed,#ffedd5);
}
.why-card h3{
  margin:0 0 8px;
  font-size:17px;
  color:#172033;
}
.why-card p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:#667085;
}

@media(max-width:1100px){
  .why-us-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:768px){
  .why-us-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding:10px !important;
  }
  .why-card{
    padding:20px 10px 14px !important;
    border-radius:14px !important;
  }
  .why-card h3{
    font-size:14px !important;
    line-height:1.3;
  }
  .why-card p{
    font-size:11px !important;
    line-height:1.45;
  }
  .why-icon{
    width:48px;
    height:48px;
    font-size:24px;
    border-radius:13px;
  }
}

/* ==========================================================================
   SHOWCASE SLIDER (5 รูปสื่อความหมาย)
   ========================================================================== */
.slider-section {
  margin: 10px 0 36px;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(7, 26, 49, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #071a31;
}

/* Top Progress Bar */
.slider-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 12;
  overflow: hidden;
}

.slider-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  box-shadow: 0 0 8px var(--cyan);
}

/* Slides Wrapper & Individual Slide */
.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(5, 18, 35, 0.95) 0%,
    rgba(7, 26, 49, 0.88) 45%,
    rgba(7, 26, 49, 0.6) 72%,
    rgba(7, 26, 49, 0.25) 100%
  );
  backdrop-filter: blur(1px);
}

/* Slide Content Layout */
.slide-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  height: 100%;
  padding: 55px 65px 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

/* Slide Tag / Badge */
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.tag-blue {
  background: linear-gradient(135deg, #1459a6, #1e7be6);
  border: 1px solid rgba(78, 216, 255, 0.4);
  color: #ffffff;
}

.tag-green {
  background: linear-gradient(135deg, #0d7a52, #18aa76);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #ffffff;
}

.tag-purple {
  background: linear-gradient(135deg, #582db6, #8050e3);
  border: 1px solid rgba(196, 181, 253, 0.4);
  color: #ffffff;
}

.tag-orange {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border: 1px solid rgba(253, 186, 116, 0.4);
  color: #ffffff;
}

.tag-yellow {
  background: linear-gradient(135deg, #9a6800, #d97706);
  border: 1px solid rgba(253, 230, 138, 0.4);
  color: #ffffff;
}

/* Slide Title & Description */
.slide-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 14px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}

.slide-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.68;
  color: #d8e5f3;
  margin: 0 0 26px 0;
  max-width: 620px;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}

/* Slide Actions */
.slide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s;
}

.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-actions {
  transform: translateY(0);
  opacity: 1;
}

.btn-slide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-slide-primary {
  background: var(--yellow);
  color: #0c1e36;
  box-shadow: 0 6px 18px rgba(255, 213, 30, 0.35);
}

.btn-slide-primary:hover {
  background: #ffe043;
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(255, 213, 30, 0.5);
}

.btn-slide-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-slide-outline:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Slider Navigation Buttons (Arrows) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 26, 49, 0.6);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  outline: none;
}

.slider-btn:hover {
  background: var(--yellow);
  color: #071a31;
  border-color: var(--yellow);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 213, 30, 0.4);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider Controls Bar (Dots & Meta) */
.slider-controls-bar {
  position: absolute;
  bottom: 24px;
  left: 65px;
  right: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.slider-dot {
  width: 12px;
  height: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  width: 34px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 213, 30, 0.6);
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 18, 36, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: auto;
}

.slide-counter {
  font-size: 13px;
  font-weight: 700;
  color: #d8e5f3;
  letter-spacing: 1px;
  font-family: monospace;
}

.slider-play-toggle {
  background: transparent;
  border: none;
  color: var(--yellow);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  outline: none;
}

.slider-play-toggle:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   SLIDER RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .slider-container {
    height: 460px;
    border-radius: 18px;
  }
  .slide-content {
    padding: 40px 45px 70px;
    max-width: 100%;
  }
  .slider-controls-bar {
    left: 45px;
    right: 45px;
    bottom: 20px;
  }
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
}

@media (max-width: 600px) {
  .slider-section {
    margin: 6px 0 26px;
  }
  .slider-container {
    height: 490px;
    border-radius: 16px;
  }
  .slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 18, 35, 0.8) 0%,
      rgba(7, 26, 49, 0.92) 50%,
      rgba(7, 26, 49, 0.98) 100%
    );
  }
  .slide-content {
    padding: 30px 22px 75px;
    justify-content: flex-end;
  }
  .slide-tag {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .slide-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .slide-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 18px;
    /* Limit lines on very small screens so buttons are comfortably in view */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-actions {
    gap: 10px;
  }
  .btn-slide {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 10px;
  }
  .slider-btn {
    display: none; /* Hide arrows on small mobile, rely on swipe and dots */
  }
  .slider-controls-bar {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }
  .slider-dot {
    width: 9px;
    height: 7px;
  }
  .slider-dot.active {
    width: 24px;
  }
  .slider-meta {
    padding: 4px 10px;
  }
  .slide-counter {
    font-size: 11px;
  }
}

