@font-face {
  font-family: 'Khala Regular Khmer';
  src: url('KantumruyPro-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Khala Bold';
  src: url('SF-Pro-Text-Bold.otf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Khala Regular';
  src: url('SF-Pro-Text-Regular.otf') format('truetype');
}
@font-face {
  font-family: 'Khala Mid Khmer';
  src: url('KantumruyPro-Medium.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Khala Mid';
  src: url('SF-Pro-Text-Medium.otf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Khala Bold Khmer';
  src: url('KantumruyPro-Bold.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Khala SemiBold Khmer';
  src: url('KantumruyPro-SemiBold.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Khala Battambang';
  src: url('Khmer\ OS\ Battambang\ Regular.ttf') format('truetype');
  font-style: normal;
}

/* Hide scrollbar */
body::-webkit-scrollbar {
  display: none;
}

/* Base */
body {
  margin: 0;
  font-family: 'Khala Regular', sans-serif;
  background-color: #D9D9D9;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 36px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;   /* ✅ center all tool buttons */
  flex: 1;                   /* ✅ take available space */
  gap: 20px;                 /* ✅ even spacing between buttons */
}

.tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  height: 50px;
  padding: 0 25px;           /* ✅ balanced padding */
  position: relative;
}
tool-btn:hover {
   filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(600%) hue-rotate(190deg) brightness(105%) contrast(95%);
}

.tool-btn img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.tool-btn.active img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(600%) hue-rotate(190deg) brightness(105%) contrast(95%);
}

.tool-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #1877f2;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.tool-btn.active::after {
  width: 100%;
}

/* Panels */
.panel-container {
  max-width: 100%;
  margin-top: 45px;
}

.panel {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.banner-top {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.banner-top video,
.banner-top img {
  width: 100%;
  height: auto;
  display: block;
}



/* Store Panel */
.box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.item {
  background-color: #ffffffec;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
  padding: 5px;                           /* ✅ spacing inside box */
  display: flex;
  flex-direction: column;
  text-align: left;
}

.item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;                      /* ✅ rounded image corners */
}
body.dark .item {
  background-color: #1e1e1e;
  border-color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
body.dark .item img {
  border-color: #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


.info {
  padding: 10px;
}
.info h3 {
  font-family: 'Khala Mid', sans-serif !important;
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 5px;
  color: #666;
}
.info p {
  font-size: 14px;
  font-family: 'Khala battambang';
  color: #666;
  margin: 0 0 5px;
}
.span {
  font-size: 14px;
  color: #a1a1a1;
}
.info span{
  color: #0099ff;
  font-size: 14px;
  font-family: 'Khala bold';
}


/* Service Panel */
.service-content {
  margin-top: 20px;
  text-align: center;
}

/* Overlay */

/* ... panelOverlay styles may be added as needed ... */

.text-welcome {
  text-align: center;
  font-size: 40px;
  font-family: 'Khala Mid';
  letter-spacing: 0.3px;
  color: rgb(0, 110, 255);
}
.panel img {
  width: 100%;
}





.mode-btn { cursor: pointer; height: 28px; transition: filter 0.3s ease; }
.mode-btn:hover { filter: brightness(0.85); }

/* Dark mode styles */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
  transition: 0.3s;
}

body.dark header {
  background-color: #1f1f1f;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  transition: 0.3s;
}

body.dark .item {
  background-color: #1e1e1e;
  transition: 0.3s;
}

body.dark .info h3,
body.dark .info p,
body.dark .info span {
  color: #ddd;
  transition: 0.3s;
}


body.dark .mode-btn {
  color: #ffd700; /* sun icon color */
}

body.dark .tool-btn:hover {
  background-color: #46464600;
  transition: 0.3s;
  border-radius: 5px;
}

body.dark .service-box {
  transition: 0.3s;
}

/* Dark mode override */ body.dark #panelOverlay { background-color: #2e2e2e; /* ✅ darker overlay */ transition: opacity 0.4s ease; /* ✅ keep smooth timing */}

/* Banner Carousel */
.service-banner {
  max-width: 1100px;
  margin: 60px auto 0;
  border-radius: 8px;
  overflow: hidden;
}
service-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}





.last-works {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 10px;
}

.last-works h2 {
  font-family: 'Khala Mid Khmer', sans-serif;
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

/* ✅ Masonry layout */
.works-grid {
  column-count: 3;      /* desktop: 4 columns */
  column-gap: 15px;    /* spacing between columns */
}

.works-grid img {
  width: 100%;
  height: auto;         /* natural height */
  margin-bottom: 15px;  /* spacing between images vertically */
  display: block;
  border-radius: 6px;
}

/* ✅ Responsive for phone */
@media (max-width: 490px){
  .works-grid {
    column-count: 2;    /* mobile: 2 columns */
    column-gap: 5px;
  }
  .last-works {
  max-width: 99%;
  margin: 7px -10px;
}
.works-grid img {
  margin-bottom: 10px;  /* spacing between images vertically */
  width: 100%;
  height: auto;
}
}



/* Floating Icon */
.floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: #0d9ae0; /* Telegram blue */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 3000; /* stays above panels */
  transition: 0.4s;
}

.floating-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* white icon look */
}

@media (max-width: 480px) {
  .floating-icon{
    bottom: 10px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}



/* =========================
   PHONE RESPONSIVE DESIGN
   ========================= */
@media (max-width: 480px) {

  header {
    height: 50px;
    padding: 0 10px;
  }

  .header-left img {
    height: 34px;
  }

  .header-center {
    margin-left: 0;
    gap: 8px;
  }

  .tool-btn {
    padding: 0 25px;
  }

  .tool-btn img {
    width: 28px;
    height: 28px;
  }

  .panel-container {
    margin-top: 55px;
    padding: 0 10px;
  }

  .box {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row */
    gap: 5px;                              /* ✅ small spacing only between items */
    width: 100%;                           /* ✅ full width */
    padding: 0;                            /* ❌ remove left/right padding */
    margin: 0;                             /* ❌ remove auto margin */
  }

  .item {
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;     /* ✅ make product card taller */
  }

  .item img {
    width: 100%;
    height: auto;        /* ✅ fix image height bigger */
    object-fit: cover;    /* ✅ crop nicely */
    display: block;
  }

  .info h3 {
    font-size: 16px;      /* ✅ slightly bigger text */
  }

  .info p {
    font-size: 13px;
  }

  .info span {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Khala Mid';
    color: #007bff;
  }

  .extra-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .extra-box {
    height: auto;
    min-height: 280px;
    padding: 20px 10px;
  }

  .extra-box h2 {
    font-size: 18px;
  }

  .extra-box p {
    font-size: 13px;
  }

  .extra-box .hero-btn {
    font-size: 13px;
    padding: 8px 14px;
    margin-bottom: 20px;
  }
}

a { text-decoration: none; }

/* Page container */
.content-store-info{
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  font-family: 'Khala Mid Khmer', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2937;
}

/* Product Card */
.product-card{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  overflow: hidden;
}

/* Top grid */
.product-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  padding: 18px;
}

.product-media{ padding: 6px; }
.media-main{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.media-main img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.media-thumbs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb{
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.thumb img{
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.thumb:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.thumb.is-active{
  border-color: rgba(37, 99, 235, 0.55);
}

/* Info */
.product-info{ padding: 6px; }

.product-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.badge{
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
}
.badge-primary{
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}
.badge-soft{
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.10);
  color: #047857;
}

.product-title{
  font-size: 26px;
  line-height: 1.25;
  margin: 6px 0 12px;
  letter-spacing: 0.2px;
}

.product-meta{
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.meta-row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.meta-label{ color: #6b7280; }
.meta-value{ color: #111827; }
.meta-value.ok{ color: #059669; }

.product-price{
  margin: 14px 0 12px;
  display: grid;
  gap: 4px;
}
.price-now{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
}
.price-note{
  font-size: 13px;
  color: #6b7280;
}

.product-highlights{
  margin: 10px 0 14px;
  padding-left: 18px;
  color: #111827;
  line-height: 1.6;
}

.product-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10); }
.btn-primary{
  background: #2563eb;
  color: #fff;
  border-color: rgba(37, 99, 235, 0.25);
}
.btn-ghost{
  background: #fff;
  color: #111827;
}

.product-trust{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.trust-item{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
.trust-title{
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}
.trust-desc{
  display: block;
  font-size: 13px;
  color: #6b7280;
}

/* Tabs */
.product-tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
.tab-btn{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #111827;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.tab-btn:hover{ transform: translateY(-1px); }
.tab-btn.is-active{
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

/* Panels */
.tab-panels{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
.tab-panel{ display: none; }
.tab-panel.is-active{ display: block; }

.tab-panel h3{
  margin: 6px 0 10px;
  font-size: 18px;
}
.tab-panel p{ color: #374151; line-height: 1.75; }

.info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.info-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
}
.info-card h4{
  margin: 0 0 8px;
  font-size: 15px;
}
.info-card ul{ margin: 0; padding-left: 18px; color: #374151; }

.spec-table{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.spec-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.spec-row:nth-child(even){ background: #f8fafc; }
.spec-row span{ color: #6b7280; }
.spec-row b{ color: #111827; }

.list-check{
  padding-left: 18px;
  line-height: 1.75;
  color: #111827;
}

.faq{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
  background: #f8fafc;
}
.faq summary{
  font-weight: 800;
  cursor: pointer;
}
.faq p{
  margin: 8px 0 0;
  color: #374151;
}

/* Responsive */
@media (max-width: 900px){
  .product-grid{ grid-template-columns: 1fr; }
  .media-main img{ height: 320px; }
  .product-trust{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
}

/* =========================
   PRODUCT SHEET (Slide from right + opacity)
   - No background dim/blur
   - Fullscreen under header
   ========================= */
:root{
  --header-h: 50px;
  --sheet-dur: 380ms;
}

/* keep header on top */
header{ z-index: 6000; }

/* optional: prevent body scroll while sheet open */
body.sheet-open{ overflow: hidden; }

.product-modal{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  z-index: 5000;
  visibility: hidden;
  pointer-events: none;
}

/* visible wrapper (still no dim) */
.product-modal.is-visible{
  visibility: visible;
  pointer-events: auto;
}

/* transparent layer (click to close) */
.pm-backdrop{
  position: absolute;
  inset: 0;
  background: transparent;
}

/* sheet */
.pm-dialog{
  position: absolute;
  inset: 0;
  background: #ffffff;
  overflow: auto;

  /* start: off-screen + barely visible */
  transform: translateX(100%);
  opacity: 0;

  transition: transform var(--sheet-dur) cubic-bezier(.2,.9,.2,1),
              opacity   var(--sheet-dur) ease;
}

/* opened: stopped position + 100% visible */
.product-modal.is-open .pm-dialog{
  transform: translateX(0);
  opacity: 1;
}

/* close button: fixed top-left inside sheet */
.pm-close{
  position: sticky;
  top: 12px;
  left: 12px;
  margin: 12px 0 0 12px;
  z-index: 20;

  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgb(255, 255, 255);
}

/* sheet content spacing */
.pm-content{
  padding: 0 16px 28px;
}

/* =========================
   PRODUCT CONTENT TEMPLATE (easy to read)
   ========================= */
.content-store{
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Khala Regular Khmer', system-ui, sans-serif;
}
.content-store .cover{
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  display: block;
  margin: 8px auto 14px;
}

.content-store p{
  color: #383838;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 12px;
  text-align: left;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 10px;
  font-family: 'Khala SemiBold Khmer', sans-serif;
}
body.dark .content-store p{
  color: #e6e6e6;
}


/* benefits list */
.fix-list{
  margin: 0;
  padding-left: 20px;
}
.fix-list li{
  margin: 8px 0;
  line-height: 1.3;
  color: #666666;
}

/* buy button */
.btn-store-info{
  width: 170px;
  height: 46px;
  border-radius: 999px;
  background-color: #0099ff;
  font-size: 16px;
  color: #fff;
  border: none;
  margin: 18px 0 10px;
  font-family: 'Khala Mid Khmer', system-ui, sans-serif;
  cursor: pointer;
}
.btn-store-info:hover{ opacity: .92; }

/* gallery images */
.content-store .gallery img{
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  display: block;
  margin: 10px auto 0;
}

/* dark mode */
body.dark .pm-dialog{ background: #1f1f1f; color: #eee; }
body.dark .pm-close{
  background: rgb(48, 48, 48);
  color: #eee;
  border-color: rgba(255,255,255,0.12);
}

body.dark .content-store h3{
  color: #ddd;
}
body.dark .fix-list li{
  color: #bbb;
}

/* Scrollbar ទាំងមូល */
body.dark ::-webkit-scrollbar {
  width: 8px;
}

/* ផ្ទៃខាងក្រោយ scrollbar */
body.dark ::-webkit-scrollbar-track {
  background: #ffffff00;
}

/* ដំបងអូស (thumb) */
body.dark ::-webkit-scrollbar-thumb {
  background: #464646;
  border-radius: 10px;
}

/* ពេល hover */
body.dark ::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Scrollbar width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track (background) */
::-webkit-scrollbar-track {
  background: #ffffff00;   /* ប្តូរពណ៍ផ្ទៃក្រោយ */
}

/* Thumb (the scroll handle) */
::-webkit-scrollbar-thumb {
  background: #b9b9b9;      /* ពណ៍ scrollbar */
  border-radius: 10px;
}


/* Tab3 */
.text-tab3 p{
  margin: 16px 0 10px;
  font-family: 'Khala Battambang', sans-serif;
  font-size: 24px;
  text-align: center;
  color: #8e8e8e;
}
@media (max-width: 480px){
  .text-tab3 p{
    font-size: 19px;
  }}

/*តារាងតម្លៃ*/
/* table (modern clean style) */
.simple-info-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-family: 'Khala Regular Khmer', system-ui, sans-serif;
  font-size: 15.5px;
  background: #f9fafb;
  border-radius: 14px;
  overflow: hidden;
}

.simple-info-table tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.simple-info-table td {
  padding: 14px 16px;
}

.simple-info-table td:first-child {
  width: 40%;
  background: #f3f4f6;
  color: #374151;
}

.simple-info-table td:last-child {
  width: 60%;
  color: #111827;
  font-family: 'Khala SemiBold Khmer';
}

/* dark mode */
body.dark .simple-info-table {
  background: #1f1f1f;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
body.dark .simple-info-table tr {
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .simple-info-table tr:hover {
  background: #2a2a2a;
}
body.dark .simple-info-table td:first-child {
  background: #151515;
  color: #eaeaea;
}
body.dark .simple-info-table td:last-child {
  color: #cfcfcf;
}

/*home css*/
@font-face {
  font-family: 'Khala Bold';
  src: url('SF-Pro-Text-Bold.otf') format('true-type');
  font-style: normal;
}
@font-face {
  font-family: 'Khala Regular';
  src: url('SF-Pro-Text-Regular.otf') format('true-type');
  font-style: normal;
}

/* =========================== Home Promo Layout (removed home panel-related layout from CSS)
   Note: All home-specific layout blocks were removed to fully strip the home section.
   The rest of the stylesheet (store/service/product sheet) remains intact.
*/

/* =========================== Footer (Dark Mode Default) =========================== */
.site-footer {
  background: #000; /* dark mode default */
  padding: 40px 0;
  font-size: 14px;
  color: #ccc;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Top line text */
.footer-legal {
  max-width: 1100px;
  margin: 0 auto 24px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

/* Columns */
.footer-inner {
  max-width: 1100px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer-col h4 {
  margin-bottom: 8px;
  font-size: 15px;
  color: #eee;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col li a {
  color: #aaa;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.footer-col li a:hover {
  text-decoration: underline;
}
/* Bottom line */
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p{color: #aaa;}
.footer-left { font-weight: 600; }
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-right a {
  color: #0b74ff;
  text-decoration: none;
}
.footer-right a:hover { text-decoration: underline; }

/* =========================== Responsive =========================== */
@media (max-width: 900px) {
  .promo-bottom { grid-template-columns: 1fr; }
  .promo-title { font-size: 24px; }
  .promo-desc { font-size: 13px; }
  .promo-card { min-height: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================== Utility Backgrounds =========================== */
.bg-card-blue { background: #f0f4ff; }
.bg-card-gray { background: #f9f9f9; }
.bg-card-black { background: #000; color: #fff; }



/* Mode icon sizing — replace or place near the existing .mode-toggle rules in style.css */
.mode-toggle {
  width: 48px;    /* outer button size */
  height: 48px;
  padding: 0px;   /* space around the icon */
  border-radius: 10px;
  border: none;
  background-color: #04785700;
  margin-right: 10px;
}

.mode-toggle img {
  width: 28px;    /* actual icon (svg/png) size */
  height: 28px;
  display: block;
  border: none;
  object-fit: contain;
}

/* Mobile tweak: slightly smaller on small screens */
@media (max-width: 480px) {
  .mode-toggle {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 8px;
  }
  .mode-toggle img {
    width: 22px;
    height: 22px;
  }
}






/* Smooth theme transition helper
   Paste this near the top of style.css (e.g., after :root or next to .mode-toggle rules) */
html.color-transition,
html.color-transition * {
  transition:
    background-color 420ms ease,
    color 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease,
    fill 420ms ease,
    stroke 420ms ease,
    opacity 360ms ease;
  transition-delay: 0s;
  /* limit to properties commonly changed by theme to avoid jank */
}