/* =========================================================
   TMN CABLE TV & INTERNET — STYLESHEET
   -----------------------------------------------------------
   COLOR TOKENS — change brand colors here in one place
========================================================= */
:root {
  --navy-900: #0A1B3D;   /* deepest navy — header, footer, hero */
  --navy-800: #0D2148;   /* primary navy — headings, buttons */
  --navy-700: #163A6B;   /* secondary navy — hover states */
  --blue-400: #4FA8E0;   /* light blue accent — icons, links */
  --blue-50:  #F4F9FD;   /* very light blue — section backgrounds */
  --yellow-400: #FFC72C; /* accent yellow — highlights, CTAs */
  --yellow-500: #F0B400; /* accent yellow hover */
  --white: #FFFFFF;
  --ink-700: #33465F;    /* body text on white */
  --ink-500: #66758C;    /* muted text */
  --border: #E1E9F2;

  --font-heading: 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-body: 'Noto Sans Thai', sans-serif;

  --container-width: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 2px 14px rgba(10, 27, 61, 0.07);
}

/* =========================================================
   RESET & BASE
========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 600;
}

p { margin: 0 0 1em; }

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

ul { margin: 0; padding: 0; list-style: none; }

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

.section-heading { margin-bottom: 40px; max-width: 640px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-subtitle {
  color: var(--blue-400);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-accent {
  background: var(--yellow-400);
  color: var(--navy-900);
}
.btn-accent:hover { background: var(--yellow-500); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-primary-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-primary-outline:hover { background: var(--navy-800); color: var(--white); }

/* =========================================================
   HEADER / NAVIGATION
   Logo: edit .logo-mark (SVG) and .logo-text below
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-mark { width: 70px; height: 70px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-text em {
  font-style: normal;
  color: var(--blue-400);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.main-nav ul {
  display: flex;
  gap: 26px;
}

html[lang="th"] .main-nav ul {
  gap: 16px;
}
html[lang="th"] .main-nav a {
  font-size: 0.84rem;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--yellow-400);
}

.nav-contact-btn { padding: 10px 22px; font-size: 0.92rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--navy-800);
  transition: max-height 0.3s ease;
}
.mobile-nav.is-open { max-height: 480px; }
.mobile-nav ul { padding: 8px 24px 20px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-login { color: var(--yellow-400) !important; font-weight: 600; }

/* ========================[INDEX.HTML PAGE]=================================
   PAGE HERO — small banner used on interior pages
   (cable-tv.html, internet.html, cctv.html, etc.)
   Uses the same .hero-swoosh divider as the homepage hero.
========================================================= */

/* =========================================================
   INTERNET PAGE — CUSTOM SPEED TEST (internet.html)
========================================================= */
.speed-test-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  text-align: center;
}

.speed-test-gauge { margin-bottom: 20px; }
.speed-test-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}
.speed-test-unit {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-top: 4px;
}

.speed-test-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.speed-test-stat { display: flex; flex-direction: column; }
.speed-test-stat-label { font-size: 0.8rem; color: var(--ink-500); }
.speed-test-stat-value { font-weight: 600; color: var(--navy-800); }

.speed-test-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.page-hero {
  position: relative;
  background: var(--navy-900);
  padding: 56px 0 90px;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 6px;
}

.page-hero-subtitle {
  color: var(--yellow-400);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.hero-swoosh {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
}

.price-notice {
  text-align: center;
  padding: 20px 0px;
}

.breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--yellow-400); }
.breadcrumb span { color: var(--yellow-400); }

/* =========================================================
   HERO — SLIDING BANNER
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900); /* shows briefly while the first image loads */
}

.hero-track {
  display: flex;
  transition: transform 0.6s ease;
  cursor: grab;
  touch-action: pan-y;        /* lets vertical page scroll still work on touch, but claims horizontal drag for the slider */
}

.hero-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.hero-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  height: 36.45vw;
  max-height: 700px;
  object-fit: contain;
  background: var(--navy-900);
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 27, 61, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}
.banner-arrow:hover { background: rgba(10, 27, 61, 0.85); }
.banner-arrow svg { width: 24px; height: 24px; }

.banner-arrow-prev { left: 24px; }
.banner-arrow-next { right: 24px; }

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

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
  
}
.banner-dot.is-active {
  background: var(--yellow-400);
  transform: scale(1.2);
}

/* =========================================================
   INDEX PAGE — SINGLE LARGE SPOTLIGHT IMAGE
========================================================= */
.full-spotlight-image {
  width: 50%;
  height: 400px;          /* change this number */
  margin: 0 auto;        /* centers it horizontally in the section */
  border-radius: var(--radius-md);
  overflow: hidden;
}
.full-spotlight-image img {
  width: 100%;
  height: 100%;
}
@media (max-width: 600px) {

  #spotlight-image-section {
    padding: 32px 0;      /* less empty space above and below the image */
  }

  #spotlight-image-section .full-spotlight-image {
    width: 100%;          /* use the full width of the phone screen */
    height: auto;         /* remove the fixed 400px so the image keeps its real shape */
  }

  #spotlight-image-section .full-spotlight-image img {
    display: block;
    width: 100%;
    height: auto;         /* height follows the width, so nothing is stretched */
  }
}

/* =========================================================
   INTERNET SUBSCRIPTION RATES
========================================================= */
.matv-info-intro .cable-info-text {
  max-width: none;   /* let the paragraph fill the 760px centered wrapper */
}

/* =========================================================
   Internet service section — dark two-column design
========================================================= */
.inet-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
}

/* Two columns: intro on the left, package cards on the right */
.inet-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

/* Left column */
.inet-eyebrow {
  color: var(--yellow-400);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.inet-intro h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 20px;
}
.inet-intro p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

/* Right column: stacked cards */
.inet-plans {
  display: grid;
  gap: 20px;
}
.inet-plan {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px 26px;
}
.inet-plan-business {
  border-color: var(--yellow-400);   /* yellow outline marks the business plan */
}

.inet-plan-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.inet-plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow-400);
  color: var(--navy-900);
}
.inet-plan-icon svg { width: 26px; height: 26px; }
.inet-plan h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}
.inet-plan-head p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Lists with yellow check marks */
.inet-plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.inet-plan li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.inet-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow-400);
  font-weight: 700;
}

/* Internet section — two images above the eyebrow text */
.inet-images {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two images side by side */
  gap: 14px;
  margin-bottom: 28px;
}

.inet-images img {
  display: block;
  width: 100%;
  height: 180px;                    /* same height for both images */
  object-fit: cover;                /* fills the box without stretching the picture */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* The second image sits a little lower for a staggered look */
.inet-images img:nth-child(2) {
  margin-top: 24px;
}

/* Phones: slightly shorter images */
@media (max-width: 600px) {
  .inet-images img { height: 140px; }
}

/* Tablet and phone: one column */
@media (max-width: 900px) {
  .inet-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .inet-plan { padding: 20px; }
}

/* Short yellow accent bar under the title */
#company-intro .section-heading h2 {
  position: relative;
  padding-bottom: 16px;
}
#company-intro .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  transform: translateX(-50%);
  background: var(--yellow-400);
  border-radius: 2px;
}

/* Intro text: a little larger, centered, more breathing room */
#company-intro .matv-info-intro .cable-info-text {
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: center;
}

/* Cards: colored top edge, more padding, soft lift on hover */
#company-intro .matv-process-item {
  padding: 32px 28px 24px;
  border-top: 4px solid var(--blue-400);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#company-intro .matv-process-item:first-child {
  border-top-color: var(--yellow-400);   /* services card gets the yellow edge */
}
#company-intro .matv-process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(10, 27, 61, 0.12);
}

/* Card titles with a thin divider underneath */
#company-intro .matv-process-item h3 {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Check marks sit inside soft green circles */
#company-intro .matv-benefit-list li {
  padding: 10px 0;
  font-size: 0.97rem;
}
#company-intro .matv-benefit-list li svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(46, 158, 91, 0.12);
}

/* Closing note: narrower, with a thin line above it */
#company-intro .matv-note {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Phones: slightly tighter cards and text */
@media (max-width: 600px) {
  #company-intro .matv-process-item { padding: 24px 20px 18px; }
  #company-intro .matv-info-intro .cable-info-text { font-size: 1rem; }
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
  #company-intro .matv-process-item { transition: none; }
  #company-intro .matv-process-item:hover { transform: none; }
}

/* =========================================================
   CCTV installation service section
========================================================= */
.cctvsvc-section { background: var(--white); }

/* Intro text */
.cctvsvc-lead {
  max-width: 780px;
  margin: 0 auto 16px;
  text-align: center;
  line-height: 1.85;
  font-size: 1.05rem;
}
.cctvsvc-lead-small {
  font-size: 0.97rem;
  color: var(--ink-500);
  margin-bottom: 40px;
}

/* DVR vs NVR cards */
.cctvsvc-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 56px;
}
.cctvsvc-card {
  position: relative;
  padding: 32px 28px 26px;
  border-radius: 18px;
  background: var(--blue-50);
  border: 1px solid var(--border);
}
.cctvsvc-card-dark {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-color: transparent;
  color: var(--white);
}
.cctvsvc-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cctvsvc-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--navy-800);
}
.cctvsvc-card-dark h3 { color: var(--white); }

.cctvsvc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cctvsvc-chips span {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-700);
}
.cctvsvc-card-dark .cctvsvc-chips span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cctvsvc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cctvsvc-card li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}
.cctvsvc-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--blue-400);
}
.cctvsvc-card-dark li::before { color: var(--yellow-400); }

/* Sub-titles */
.cctvsvc-subtitle {
  text-align: center;
  margin: 0 0 24px;
  color: var(--navy-800);
}

/* Highlight tiles */
.cctvsvc-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 56px;
}
.cctvsvc-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.cctvsvc-tile p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cctvsvc-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--yellow-400);
}
.cctvsvc-tile-icon svg { width: 24px; height: 24px; }

/* Work process strip */
.cctvsvc-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cctvsvc-steps li {
  text-align: center;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--navy-800);
}
.cctvsvc-steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--navy-900);
  font-weight: 700;
}

/* Tablet */
@media (max-width: 900px) {
  .cctvsvc-tiles { grid-template-columns: repeat(2, 1fr); }
  .cctvsvc-steps { grid-template-columns: repeat(3, 1fr); }
}
/* Phone */
@media (max-width: 600px) {
  .cctvsvc-tiles { grid-template-columns: 1fr; }
  .cctvsvc-steps { grid-template-columns: 1fr 1fr; }
  .cctvsvc-card { padding: 26px 20px 22px; }
}

/* CCTV service section — wide picture */
.cctvsvc-image {
  position: relative;
  max-width: 980px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 7;                         /* wide banner shape, holds its size even before the image is added */
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: 0 18px 40px rgba(10, 27, 61, 0.18);
}
.cctvsvc-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                            /* fills the frame without stretching the picture */
}

/* Small labels sitting on the bottom of the picture */
.cctvsvc-image-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cctvsvc-image-tags span {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Phones: a taller shape so the picture isn't too thin */
@media (max-width: 600px) {
  .cctvsvc-image {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    margin-bottom: 36px;
  }
}

/* CCTV service picture — smaller size */
.cctvsvc-image {
  max-width: 720px;          /* was 980px */
  aspect-ratio: 16 / 8;      /* a little less wide, so it is not too short */
  margin-bottom: 40px;
}

/* Phones keep the 4:3 shape from before, with less space below */
@media (max-width: 600px) {
  .cctvsvc-image {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 32px;
  }
}

/* =========================================================
   Network solution + annual maintenance section
========================================================= */
.nm-section { background: var(--blue-50); }

/* ---------- Part 1: image + text ---------- */
.nm-solution {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

/* Image frame: this is the space for your picture */
.nm-image-frame {
  position: relative;
  aspect-ratio: 4 / 3;                       /* keeps a steady shape, even before the image is added */
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: 16px 16px 0 var(--yellow-400);  /* yellow offset frame */
}
.nm-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                          /* fills the frame without stretching */
}

/* Small labels sitting on the bottom of the image */
.nm-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nm-tags span {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Right-hand text */
.nm-eyebrow {
  color: var(--blue-400);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.nm-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.nm-copy p { line-height: 1.85; }

.nm-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nm-points li {
  position: relative;
  padding-left: 32px;
  line-height: 1.6;
  font-weight: 500;
}
.nm-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* ---------- Numbered service list ---------- */
.nm-subtitle {
  text-align: center;
  margin: 0 0 24px;
  color: var(--navy-800);
}
.nm-list {
  list-style: none;
  counter-reset: nm;
  margin: 0 auto 64px;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.nm-list li {
  counter-increment: nm;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.5;
}
.nm-list li::before {
  content: counter(nm, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow-500);
}

/* ---------- Part 2: yellow maintenance panel ---------- */
.nm-maint {
  background: var(--yellow-400);
  color: var(--navy-900);
  border-radius: 24px;
  padding: 40px 36px;
}
.nm-maint-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.nm-maint-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--navy-900);
  color: var(--yellow-400);
}
.nm-maint-icon svg { width: 32px; height: 32px; }
.nm-maint-head h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--navy-900);
}
.nm-maint-en {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy-700);
}
.nm-maint-text {
  max-width: 880px;
  line-height: 1.85;
  margin-bottom: 28px;
}

.nm-maint-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nm-maint-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 26px;
}
.nm-maint-card h4 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--navy-800);
}
.nm-maint-card h4 small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-500);
  margin-left: 6px;
}
.nm-maint-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.nm-maint-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.nm-maint-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-400);
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .nm-solution { grid-template-columns: 1fr; gap: 40px; }
  .nm-image-frame { max-width: 560px; margin: 0 auto; }
  .nm-maint-cols { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .nm-image-frame { box-shadow: 10px 10px 0 var(--yellow-400); margin-right: 10px; }
  .nm-list { grid-template-columns: 1fr; }
  .nm-maint { padding: 28px 20px; border-radius: 18px; }
  .nm-maint-head h3 { font-size: 1.35rem; }
}

/* =========================================================
   ABOUT PREVIEW
========================================================= */
#about-hero {
  position: relative;
  background-image: url('source/tmngb.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#about-hero .section-inner {
  position: relative;
  z-index: 1;
}

.about-preview { background: var(--blue-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.about-lead { max-width: 56ch; }

.about-block { margin-bottom: 22px; }
.about-block h3 {
  font-size: 1.05rem;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.mission-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-400);
}

.about-visual {
   display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: center;
  gap: 20px;
 }
 
.about-visual-frame {
  width: 150%;
  max-width: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

/* =========================================================
   WHY CHOOSE TMN
========================================================= */
.why-section { background: var(--blue-50); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.why-item { padding-right: 12px; }

.why-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--blue-400);
  color: var(--navy-700);
  margin-bottom: 14px;
}
.why-icon svg { width: 22px; height: 22px; }

.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-500); font-size: 0.93rem; margin-bottom: 0; }

/* =========================================================
   Why choose TMN — inverted colors (dark background, light text)
========================================================= */
.why-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}

/* Title and small subtitle */
.why-section .section-heading h2 {
  color: var(--white);
}
.why-section .section-subtitle {
  color: var(--yellow-400);
}

/* Icon circles: yellow outline and icon */
.why-section .why-icon {
  border-color: var(--yellow-400);
  color: var(--yellow-400);
}

/* Item titles and descriptions */
.why-section .why-item h3 {
  color: var(--white);
}
.why-section .why-item p {
  color: rgba(255, 255, 255, 0.75);
}

/* Small "see details" buttons at the end of homepage sections */
.btn-sm {
  padding: 9px 22px;
  font-size: 0.9rem;
}

/* Centered row for the button */
.section-cta {
  text-align: center;
  margin-top: 28px;
}

/* Button in the dark internet section: a little space above it */
.inet-btn {
  margin-top: 8px;
}

/* Button in the network section: space above it, below the check points */
.nm-btn {
  margin-top: 24px;
}

/* =========================================================
   SERVICE COVERAGE
========================================================= */
.coverage-section { padding-top: 60px; padding-bottom: 60px; }
.coverage-section .section-heading { margin-bottom: 28px; }

.coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.coverage-list li {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--navy-700);
  font-family: var(--font-heading);
  font-weight: 400;
}

/* =========================================================
   CTA SECTION
========================================================= */
.cta-section {
  background: var(--navy-800);
  padding: 64px 0;
}
.cta-inner { text-align: left; max-width: 640px; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255,255,255,0.82); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .logo-mark { width: 70px; height: 60px; flex-shrink: 0; }
.footer-company {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.footer-tagline { color: var(--blue-400); font-size: 0.9rem; margin-bottom: 0; }

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.94rem;
}
.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-400);
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--navy-700); }
.scroll-top svg { width: 20px; height: 20px; }

/* =========================================================
   SIDE TABS — contact + FAQ, stacked automatically
========================================================= */
.side-tabs {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}

.float-contact-btn,
.float-faq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: padding-right 0.2s ease, background-color 0.2s ease;
}
.float-contact-btn:hover,
.float-faq-btn:hover { padding-right: 16px; }

.float-contact-btn { background: var(--accent-500, var(--yellow-400)); color: var(--navy-900); }
.float-faq-btn { background: var(--navy-800); color: var(--white); }

.float-contact-btn svg,
.float-faq-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.float-contact-btn span,
.float-faq-btn span {
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .float-contact-btn,
  .float-faq-btn { padding: 10px 6px; }
  .float-contact-btn svg,
  .float-faq-btn svg { width: 17px; height: 17px; }
  .float-contact-btn span,
  .float-faq-btn span { font-size: 0.72rem; }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-contact-btn { display: none; }
  .hamburger { display: flex; }
  .hamburger { width: 44px; height: 44px; align-items: center; }
  .hamburger span { width: 28px; }
  .mobile-nav { display: block; }


  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }

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

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

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 600px) {
  @media (max-width: 600px) {
  /* --- Header: shrink the oversized logo and tighten spacing --- */
  .logo-mark { width: 44px; height: 44px; }
  .logo-text strong { font-size: 1.05rem; }
  .logo-text em { font-size: 0.5rem; }

  /* --- Page hero banners: less padding, smaller heading --- */
  .page-hero { padding: 36px 0 60px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero-subtitle { font-size: 0.82rem; }
  .breadcrumb { font-size: 0.8rem; }

  /* --- Section headings site-wide: smaller, tighter --- */
  .section-heading h2 { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.82rem; }
  .section-heading { margin-bottom: 24px; }

  /* --- Icon circles: shrink so they don't dominate narrow cards --- */
  .service-icon, .why-icon, .rate-icon,
  .matv-feature-icon, .branch-icon, .contact-icon-badge {
    width: 38px;
    height: 38px;
  }
  .service-icon svg, .why-icon svg, .rate-icon,
  .matv-feature-icon svg, .branch-icon svg {
    font-size: 1.1rem;
  }

  /* --- Coverage pills: smaller text/padding so they wrap tighter --- */
  .coverage-list li {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  /* --- CTA section: tighter padding, smaller heading --- */
  .cta-section { padding: 40px 0; }
  .cta-inner h2 { font-size: 1.4rem; }

  /* --- Footer: tighter spacing, smaller text --- */
  .site-footer { padding-top: 36px; }
  .footer-grid { gap: 28px; padding-bottom: 28px; }
  .footer-company { font-size: 1rem; }
}
  .section { padding: 52px 0; }
  .cta-buttons .btn { width: 100%; text-align: center; }

  .service-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 18px; }
  
    /* Hero arrows: smaller and tucked closer to the edges */
  .banner-arrow { width: 34px; height: 34px; }
  .banner-arrow svg { width: 18px; height: 18px; }
  .banner-arrow-prev { left: 8px; }
  .banner-arrow-next { right: 8px; }

  /* Small text made a bit larger so Thai is readable */
  .logo-text em { font-size: 0.55rem; }
  .section-subtitle { font-size: 0.9rem; }
  .page-hero-subtitle { font-size: 0.9rem; }
  .breadcrumb { font-size: 0.85rem; }
}



/* =========================================================
   SCROLL REVEAL — slide-in-on-scroll effect for sections
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



/* =======================[CABLE-TV.HTML PAGE]==================================
   CABLE TV SUBSCRIPTION RATE CARDS (text-only, no images)
========================================================= */

#cable-hero {
  position: relative;
  background-image: url('source/cable-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cable-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#cable-hero .section-inner {
  position: relative;
  z-index: 1;
}

.rate-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.rate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--navy-800);
  background-color: var(--blue-50);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0d2148e3;
  z-index: 0;
}

.rate-card > * {
  position: relative;
  z-index: 1;
}

.rate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--yellow-400);
}

.rate-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: transparent;
  border: 4px solid var(--white);
  border-radius: 40%;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
}

.rate-plan-name {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--white);
}

.rate-amount {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.rate-amount span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--white);
}

.rate-features {
  flex-grow: 1;
  margin-bottom: 14px;
}

.rate-features li {
  font-size: 0.9rem;
  color: var(--white);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.rate-features li:first-child { border-top: none; }

.rate-total {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.rate-btn { 
  width: 100%;
  text-align: center; 
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.rate-btn:hover {
  background: var(--yellow-400);
  color: var(--white);
}


@media (max-width: 1100px) {
  .rate-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rate-cards { grid-template-columns: 1fr; }
}

.cable-info-text {
  max-width: 68ch;
  margin-bottom: 24px;
}

#cable-info {
  position: relative;
  background-image: url('source/cabletv_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cable-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 0;
}

#cable-info .section-inner {
  position: relative;
  z-index: 1;
}

.section-heading-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.poster-frame {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 5px solid var(--border);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .poster-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.poster-frame { cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 61, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 97vw;
  max-height: 95vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 22px; height: 22px; }

.matv-diagram-photo {
  max-width: 650px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* =========================================================
   MATV SECTION — unique layout: intro + feature list + diagram
========================================================= */
.matv-section {
  background: var(--blue-50);
  padding: 90px 0;
}

.matv-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.matv-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
}

.matv-lead {
  max-width: 62ch;
  margin-bottom: 28px;
}

.matv-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.matv-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.matv-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--blue-400);
  color: var(--navy-700);
}
.matv-feature-icon svg { width: 20px; height: 20px; }

.matv-features h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.matv-features p {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

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

.matv-visual-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.matv-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.matv-diagram {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 36px 32px;
  text-align: center;
}

.matv-diagram-title {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.matv-diagram-svg {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
}

.matv-diagram-caption {
  max-width: 60ch;
  margin: 20px auto 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .matv-intro { grid-template-columns: 1fr; }
  .matv-diagram { padding: 28px 16px; }
}


/* ===========================[INTERNET.HTML PAGE]==============================
   INTERNET PACKAGE CARDS (medium-tall, image placeholder on top)
========================================================= */

#internet-hero {
  position: relative;
  background-image: url('source/internet-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#internet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#internet-hero .section-inner {
  position: relative;
  z-index: 1;
}

.package-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.package-card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--navy-800);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--yellow-400);
}

.package-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-speed {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-800);
  font-size: 1.6rem;
  margin: 18px 20px 4px;
}

.package-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 1.6rem;
  margin: 0 20px 14px;
}
.package-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-500);
}

.package-features {
  flex-grow: 1;
  margin: 0 20px 18px;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-700);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.package-features li:first-child { border-top: none; }

.package-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #2E9E5B;
}

.package-btn {
  margin: 0 20px 20px;
  text-align: center;
}

@media (max-width: 1100px) {
  .package-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .package-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   INFO CAROUSEL — image above text, single slide at a time
========================================================= */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 56px;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
}

.carousel-image {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 0 auto 22px;
}
.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-text {
  width: 100%;
  min-width: 0;
}

.carousel-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.carousel-text p {
  color: var(--ink-500);
  font-size: 1.0rem;
  max-width: 50ch;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--yellow-400);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 2;
  transition: background-color 0.2s ease;
}
.carousel-arrow:hover { background: var(--yellow-500); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow-prev { left: 4px; }
.carousel-arrow-next { right: 4px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active {
  background: var(--navy-800);
  transform: scale(1.2);
}

/* =========================================================
   INTERNET PAGE — CAROUSEL SECTION BACKGROUND IMAGE
   EDIT: replace the image path below with your real image.
========================================================= */
.internet-carousel-bg {
  position: relative;
  isolation: isolate;
}

.internet-carousel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("source/internet-slide.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* how faded the image is — 0 is invisible, 1 is fully solid */
  z-index: -1;
}

@media (max-width: 600px) {
  .carousel-wrap { padding: 0 44px; }
  .carousel-arrow { width: 36px; height: 36px; }

  .carousel-text {
    text-align: center;
    margin: 0 auto;
  }
  .carousel-text h3 {
    font-size: 1.1rem;
  }
  .carousel-text p {
    font-size: 0.88rem;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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



/* ===========================[CCTV.HTML PAGE]==============================
   CAMERA SET CARDS (cctv.html) — same pattern as .package-card
========================================================= */

#cctv-hero {
  position: relative;
  background-image: url('source/cctv_promo/cctv-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cctv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#cctv-hero .section-inner {
  position: relative;
  z-index: 1;
}

.camset-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  gap: 32px;
}

/* Tablet: 2 cards per row */
@media (max-width: 1000px) {
  .camset-cards { grid-template-columns: repeat(2, 1fr); }
}

.camset-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--navy-800);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.camset-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--yellow-400);
}

.camset-card-image {
  width: 100%;
  height: 200px;
}
.camset-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camset-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-800);
  font-size: 1.5rem;
  margin: 18px 20px 4px;
}

.camset-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 1.3rem;
  margin: 0 20px 14px;
}
.camset-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-500);
}

.camset-specs {
  flex-grow: 1;
  margin: 0 20px 18px;
}
.camset-specs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-700);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.camset-specs li:first-child { border-top: none; }
.camset-specs li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #2E9E5B;
}

.camset-btn {
  margin: 0 20px 20px;
  text-align: center;
}
.camset-btn {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.camset-btn:hover {
  background: var(--yellow-400);
  color: var(--navy-900);
  border-color: var(--yellow-400);
}

@media (max-width: 700px) {
  .camset-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   CCTV — REMOTE VIEWING VIDEO SIZE (cctv.html)
========================================================= */
.remote-viewing-frame {
  max-width: 540px; /* bigger than the site default of 400px — change this number */
}

/* =========================================================
   CCTV PAGE — REMOTE VIEWING SECTION BACKGROUND IMAGE
   EDIT: replace the image path below with your real image.
========================================================= */
.remote-viewing-bg {
  position: relative;
  isolation: isolate;
}

.remote-viewing-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("source/cctv_promo/cctv-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* how faded the image is — 0 is invisible, 1 is fully solid */
  z-index: -1;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 480px) 380px;
  justify-content: center;
  gap: 32px;
  align-items: center;
  max-width: 100%;
}

.cta-map {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4.5 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  justify-self: center;
}

.cta-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 960px) {
  .cta-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .cta-buttons {
    justify-content: center;
  }
}

.big-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.big-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 960px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CCTV — WHAT'S INCLUDED IN EVERY PACKAGE (cctv.html)
========================================================= */
.package-includes-section { background: var(--blue-50); }

.package-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.package-include-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.package-include-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.package-include-icon svg { width: 18px; height: 18px; }

.package-include-item h3 { font-size: 1rem; margin-bottom: 4px; }
.package-include-item p { font-size: 0.9rem; color: var(--ink-500); margin: 0; }

@media (max-width: 960px) {
  .package-includes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .package-includes { grid-template-columns: 1fr; }
}

/* =========================[IT.HTML PAGE]================================
   IT OVERVIEW — big centered image, details below
========================================================= */
.spotlight-image {
  max-width: 600px;
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spotlight-image-lg {
  max-width: 730px;
}

.spotlight-image img {
  width: 100%;
  height: auto;
  display: block;
}

.spotlight-image.poster-frame {
  aspect-ratio: auto;
  border: none;
}

.spotlight-details {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.spotlight-details .cable-info-text {
  margin-left: auto;
  margin-right: auto;
}
.spotlight-details .coverage-list {
  justify-content: center;
}

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
}

/* =========================================================
   IT PAGE — TECHNOLOGY OVERVIEW ICON ROW (it.html)
========================================================= */
.tech-icon-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-icon-item {
  flex: 1 1 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.tech-icon-item:last-child { border-right: none; }

.tech-icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tech-icon-circle img {
  object-fit: contain;  /* keeps the PNG's shape, no stretching */
  display: block;
}

.tech-icon-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  white-space: nowrap;
}
.tech-icon-item p {
  font-size: 0.95rem;
}

.tech-icon-item:hover .tech-icon-circle {
  background: var(--navy-800);
  color: var(--white);
}

@media (max-width: 760px) {
  .tech-icon-item {
    flex: 1 1 45%;
    border-right: none;
    margin-bottom: 24px;
  }
}

/* =========================================================
   IT PAGE — CAROUSEL SECTION BACKGROUND IMAGE (it.html only)
   EDIT: replace the image path below with your real image.
========================================================= */
.it-carousel-bg {
  position: relative;
  isolation: isolate; /* keeps the ::before below everything else in this section */
}

.it-carousel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("source/it-service/matv.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* how faded the image is — 0 is invisible, 1 is fully solid */
  z-index: -1;
}

/* =========================================================
   IT PAGE — WIDER CAROUSEL (it.html only)
========================================================= */
#it-carousel .carousel-wrap {
  max-width: 1100px; /* was 900px on the shared carousel style — change this number to adjust */
}

#it-carousel .carousel-image {
  max-width: 480px; /* was 380px */
}

#it-carousel .carousel-text p {
  max-width: 65ch; /* was 50ch — lets the longer paragraphs use the extra width */
}

@media (max-width: 720px) {
  #it-carousel .carousel-wrap { padding: 0 44px; }
}

@media (max-width: 600px) {
  #it-carousel .carousel-image { max-width: 100%; }
  #it-carousel .carousel-text p { max-width: 32ch; }
}

@media (max-width: 960px) {
  .service-type-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .service-type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   IT PAGE — CONTACT PHONE (it.html, replaces the contact button)
========================================================= */
.it-contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--navy-800);
}
.it-contact-phone .footer-icon {
  width: 28px;
  height: 28px;
}
.it-contact-phone a {
  font-weight: 600;
  color: var(--navy-800);
}
.it-contact-phone a:hover {
  color: var(--blue-400);
}

/* =========================================================
   SERVICE MODEL — SIMPLE BOXES
========================================================== */

#service-model {
  padding-top: 75px;
  padding-bottom: 75px;
}


.service-model-heading {
  text-align: center;
  margin-bottom: 38px;
}


.service-model-heading h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}


.service-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}


.service-model-box {
  min-height: 180px;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.service-model-box h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 700;
  color: var(--navy-900);
}


.service-model-box p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
}


.service-model-box span {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
}


/* =========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 800px) {

  .service-model-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

}


@media (max-width: 600px) {

  #service-model {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .service-model-heading {
    margin-bottom: 30px;
  }

  .service-model-heading h2 {
    font-size: 30px;
  }

  .service-model-grid {
    gap: 16px;
  }

  .service-model-box {
    min-height: 160px;
  }

}

#it-hero {
  position: relative;
  background-image: url('source/it-service/it_hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#it-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#it-hero .section-inner {
  position: relative;
  z-index: 1;
}

/* ========================[CONTACT.HTML PAGE]=================================
   CONTACT — ONLINE CONTACT QR CODES (contact.html)
========================================================= */
.qr-contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.qr-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px;
  width: 260px;
  text-align: center;
}

.qr-contact-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-50);
}
.qr-contact-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.qr-contact-card p { font-size: 0.9rem; color: var(--ink-500); margin: 0; }

#contact-hero {
  position: relative;
  background-image: url('source/contact.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#contact-hero .section-inner {
  position: relative;
  z-index: 1;
}

#about-hero {
  position: relative;
  background-image: url('source/tmngb.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#about-hero .section-inner {
  position: relative;
  z-index: 1;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-info-list {
  margin-top: 20px;
  margin-bottom: 20px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.contact-info-list .footer-icon {
  color: var(--blue-400);
  width: 22px;
  height: 22px;
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-qr-frame {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-qr-label {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

.contact-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-qr {
    justify-content: center;
  }
}

.contact-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  margin-bottom: 16px;
}
.contact-icon-badge svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   BRANCH LOCATIONS
========================================================= */
.branch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.branch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-400);
  color: var(--navy-700);
  margin-bottom: 16px;
}
.branch-icon svg { width: 22px; height: 22px; }

.branch-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.branch-address {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.branch-phone {
  font-size: 0.92rem;
  color: var(--navy-700);
  font-weight: 500;
  margin-bottom: 6px;
}

.branch-hours {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

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

#branch-locations {
  padding-top: 20px;
  padding-bottom: 80px;
}

.branch-cards-center .branch-card {
  text-align: center;
}
.branch-cards-center .branch-icon {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   INQUIRY FORM
========================================================= */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-700);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.form-status {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }

  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
}

#payment-hero {
  position: relative;
  background-image: url('source/payment.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#payment-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#payment-hero .section-inner {
  position: relative;
  z-index: 1;
}

#read-hero {
  position: relative;
  background-image: url('source/read.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#read-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 61, 0.75);
  z-index: 0;
}

#read-hero .section-inner {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ARTICLES PAGE — featured post + article grid
========================================================= */
.article-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--navy-700);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-date {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.article-card-image {
  height: 180px;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 20px;
}
.article-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.article-card-body p {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-content { padding: 0 24px 24px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =========================================================
   ARTICLE PAGE (article-template.html and copies of it)
========================================================= */
.article-page {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.article-meta .article-tag { margin-bottom: 0; }
.article-meta .article-date { margin-top: 0; }

.article-cover {
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.9;
}
.article-body .article-lead {
  font-size: 1.12rem;
  color: var(--navy-800);
  font-weight: 500;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}
.article-body ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.article-body ul li { margin-bottom: 6px; line-height: 1.8; }

.article-figure { margin: 28px 0; }
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-500);
  text-align: center;
}

.article-note {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--blue-50);
  border-left: 4px solid var(--yellow-400);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .article-body p { font-size: 0.98rem; }
  .article-body h2 { font-size: 1.25rem; }
  .article-footer .btn { width: 100%; text-align: center; }
}

/* =========================================================
   LANGUAGE SWITCH BUTTON (TH/EN) — appears in every header
========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 12px;
  margin-right: 10px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.lang-switch:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

/* =========================================================
   FAQ PAGE (faq.html) — accordion questions
========================================================= */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.faq-group { margin-bottom: 40px; }
.faq-group:last-of-type { margin-bottom: 0; }

.faq-group-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-50);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-800);
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg); /* turns the + into an x */
  background: var(--navy-800);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 4px 18px;
  color: var(--ink-500);
  line-height: 1.8;
}

.faq-more-help {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--ink-500);
}
.faq-more-help a { font-weight: 600; }  

/* =========================================================
   MATV INFO PAGE (it_matv.html)
========================================================= */
.matv-info-intro {
  max-width: 760px;
  margin: 0 auto;
}
.matv-info-intro p { margin-bottom: 16px; }
.matv-info-intro p:last-child { margin-bottom: 0; }

.matv-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-style: italic;
}

.matv-signal-flow {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
}
.matv-signal-flow h3 { font-size: 1.05rem; margin-bottom: 10px; }
.matv-signal-flow p {
  color: var(--navy-700);
  line-height: 2;
  margin-bottom: 10px;
}
.matv-signal-flow span { color: var(--blue-400); font-weight: 700; margin: 0 2px; }
.matv-signal-flow .matv-note { margin: 0; }

/* Numbered process steps — reused for both step lists on the page */
.matv-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.matv-process-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.matv-process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 14px;
}
.matv-process-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.matv-process-item p { font-size: 0.9rem; color: var(--ink-500); margin: 0; }

/* Use-case cards */
.matv-usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.matv-usecase-item {
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.matv-usecase-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--navy-800); }
.matv-usecase-item p { font-size: 0.9rem; color: var(--ink-700); margin: 0; }

/* Benefits checklist */
.matv-benefit-list {
  max-width: 760px;
  margin: 0 auto;
}
.matv-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
  line-height: 1.7;
}
.matv-benefit-list li:last-child { border-bottom: none; }
.matv-benefit-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #2E9E5B;
}

/* Equipment table */
.matv-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.matv-equipment-table {
  width: 100%;
  border-collapse: collapse;
}
.matv-equipment-table th {
  background: var(--navy-800);
  color: var(--white);
  text-align: left;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
}
.matv-equipment-table td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-700);
}
.matv-equipment-table tr:nth-child(even) td { background: var(--blue-50); }

@media (max-width: 600px) {
  .matv-equipment-table th,
  .matv-equipment-table td { padding: 10px 14px; font-size: 0.85rem; }
}

#matv-intro-image .full-spotlight-image {
  width: 100%;      /* use the full width of the section instead of 50% */
  height: auto;     /* let the height follow the image, so nothing gets cut off or stretched */
  max-width: 1000px; /* stops it from getting too huge on wide screens */
}

#matv-intro-image .full-spotlight-image img {
  display: block;
  width: 100%;
  height: auto;
}



/* IPTV image — same big size as the MATV intro image */
#iptv-intro-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto 32px;   /* centered, with space below before the text */
}

#iptv-intro-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* WiFi page — big intro image */
#wifi-intro-image .full-spotlight-image {
  width: 100%;       /* fill the whole section width */
  height: auto;      /* keep the picture's real proportions */
  max-width: none;   /* remove the 1000px limit */
}

#wifi-intro-image .full-spotlight-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;   /* optional: soft rounded corners, delete this line if you don't want it */
}



/* Network page — big intro image */
#network-intro-image .full-spotlight-image {
  width: 100%;       /* fill the whole section width */
  height: auto;      /* keep the picture's real proportions */
  max-width: none;   /* no size limit */
}

#network-intro-image .full-spotlight-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;   /* optional: soft rounded corners, delete this line if you don't want it */
}

/* CCTV page — big images inside the AHD and IP sections */
#cctv-ahd-image,
#cctv-ip-image {
  width: 100%;
  height: auto;
  max-width: 1000px;     /* raise to 1112px for full width, like the other pages */
  margin: 0 auto 32px;   /* centered, with space below before the text */
}

#cctv-ahd-image img,
#cctv-ip-image img {
  display: block;
  width: 100%;
  height: auto;          /* keeps each picture's real proportions */
  border-radius: 12px;   /* optional: soft rounded corners */
}

/* Fiber page — big intro image */
#fiber-intro-image .full-spotlight-image {
  width: 85%;       /* fill the whole section width */
  height: auto;      /* keep the picture's real proportions */
  max-width: 1000px;   /* no size limit */
  margin: 0 auto 32px;
}

#fiber-intro-image .full-spotlight-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;   /* optional: soft rounded corners, delete this line if you don't want it */
}

/* IT contact section — title and spacing between the contact lines */
.it-contact-title {
  margin: 24px 0 14px;
  color: var(--navy-800);
}

.it-contact-phone + .it-contact-phone {
  margin-top: 12px;   /* space between each contact line */
}

/* =========================================================
   Swap colors:
   company intro -> dark navy, internet service -> white
========================================================= */

/* ---------- COMPANY INTRO: dark ---------- */
#company-intro {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%) !important;
  /* !important is needed because this section has an inline light-blue background */
}
#company-intro .section-heading h2 {
  color: var(--white);
}
#company-intro .section-subtitle {
  color: var(--yellow-400);
}
#company-intro .matv-info-intro .cable-info-text {
  color: rgba(255, 255, 255, 0.85);
}
#company-intro .matv-info-intro strong {
  color: var(--white);
}

/* Cards become see-through "glass" panels */
#company-intro .matv-process-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
#company-intro .matv-process-item h3 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
#company-intro .matv-benefit-list li {
  color: rgba(255, 255, 255, 0.9);
}
#company-intro .matv-benefit-list li svg {
  color: var(--yellow-400);
  background: rgba(255, 255, 255, 0.1);
}

/* Closing note and button */
#company-intro .matv-note {
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.2);
}
#company-intro .btn-primary-outline {
  color: var(--yellow-400);
  border-color: var(--yellow-400);
  background: transparent;
}
#company-intro .btn-primary-outline:hover {
  background: var(--yellow-400);
  color: var(--navy-900);
}

/* ---------- INTERNET SERVICE: white ---------- */
.inet-section {
  background: var(--white);
  color: var(--navy-800);
}
.inet-eyebrow {
  color: var(--blue-400);
}
.inet-intro h2 {
  color: var(--navy-800);
}
.inet-intro p {
  color: var(--navy-700);
}

/* Package cards become light cards */
.inet-plan {
  background: var(--blue-50);
  border-color: var(--border);
}
.inet-plan-business {
  border-color: var(--yellow-400);
}
.inet-plan h3 {
  color: var(--navy-800);
}
.inet-plan-head p {
  color: var(--ink-500);
}
.inet-plan li {
  color: var(--navy-800);
}
.inet-plan li::before {
  color: var(--blue-400);   /* yellow checks are hard to see on a light card */
}

/* Thin border around the two pictures */
.inet-images img {
  border-color: var(--border);
}

/* Internet service images — same style as the network section picture */
.inet-images {
  gap: 28px;                /* more space between the pictures, so each yellow shadow shows clearly */
  margin-bottom: 40px;     /* room below for the shadow */
}

.inet-images img {
  border: none;            /* removes the navy outline */
  outline: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: 12px 12px 0 var(--navy-700);   /* yellow offset frame, like the network picture */
}

/* Phones: smaller shadow so nothing gets cut off at the screen edge */
@media (max-width: 600px) {
  .inet-images { gap: 22px; }
  .inet-images img { border-radius: 16px; box-shadow: 8px 8px 0 var(--navy-700); }
}

/* IT page, types of service — navy text under the icons */
#it-service-types .why-item h3,
#it-service-types .why-item p {
  color: var(--navy-800);
}