/* =====================================
   IoT Page – Internet of Things Modules
   Prefix: .iot-
   ===================================== */

:root {
  --iot-ink: #0f172a;
  --iot-muted: #6b7280;
  --iot-bg-page: #f3f4f6;
  --iot-soft: #f9fafb;
  --iot-border: rgba(15, 23, 42, 0.08);
  --iot-primary: #0f766e;
  --iot-primary-2: #155e75;
  --iot-accent: #0ea5e9;
  --iot-radius-lg: 22px;
  --iot-radius-md: 16px;
  --iot-shadow-card: 0 20px 44px rgba(15, 23, 42, 0.14);
  --iot-section-y: clamp(32px, 7vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--iot-ink);
  background: var(--iot-bg-page);
  line-height: 1.6;
}

/* Reuse your global wrap spacing */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.iot-page {
  padding-top: clamp(72px, 10vh, 96px); /* avoids sticky header overlap */
}

/* ---------- Section headers ---------- */
.iot-section {
  padding: var(--iot-section-y) 0;
}

.iot-section__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #0b3b3f;
}

.iot-section__subtitle {
  margin: 0;
  color: var(--iot-muted);
  font-size: 0.96rem;
}

/* ---------- Buttons ---------- */
.iot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.iot-btn--solid {
  color: #ffffff;
  background: linear-gradient(90deg, var(--iot-primary), var(--iot-primary-2));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.iot-btn--solid:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.42);
}

.iot-btn--ghost {
  color: var(--iot-primary-2);
  background: linear-gradient(180deg, #ffffff, #f4f5fb);
  border-color: rgba(21, 94, 117, 0.45);
}

.iot-btn--ghost:hover {
  transform: translateY(-1.5px);
  border-color: var(--iot-primary-2);
}


/* =====================================
   BRAND SUMMARY STRIP
   ===================================== */

.iot-strip {
  background: var(--iot-bg-page);
  padding: clamp(20px, 4vw, 30px) 0;
}

.iot-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.iot-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--iot-radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--iot-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.iot-strip__item i {
  font-size: 1.25rem;
  color: var(--iot-primary-2);
  margin-top: 0.12rem;
}

.iot-strip__item h3 {
  margin: 0 0 0.1rem;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0b3b3f;
}

.iot-strip__item p {
  margin: 0;
  color: var(--iot-muted);
}

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

@media (max-width: 640px) {
  .iot-strip__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================
   PROJECTS (add to bottom of shield-a.css)
   ===================================== */

.iot-projects {
  background: #ffffff;
  border-top: 1px solid var(--iot-border);
  border-bottom: 1px solid var(--iot-border);
}

.iot-projects__head {
  max-width: 860px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  text-align: center;
}

/* Card wrapper per project */
.iot-project {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--iot-radius-lg);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  padding: clamp(14px, 2.2vw, 18px);
  margin-top: clamp(16px, 2.8vw, 22px);
}

.iot-project--alt {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.iot-project__head {
  max-width: 980px;
  margin: 0 auto clamp(12px, 2vw, 16px);
  text-align: left;
}

.iot-project__kicker {
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--iot-primary-2);
}

.iot-project__dot {
  opacity: 0.6;
}

.iot-project__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 900;
  color: #0b3b3f;
}

.iot-project__summary {
  margin: 0.25rem 0 0;
  color: var(--iot-muted);
  font-size: 0.96rem;
  max-width: 85ch;
}

/* Chips */
.iot-project__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.iot-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-weight: 800;
  font-size: 0.88rem;
  color: #0b3b3f;
}

.iot-chip i {
  color: var(--iot-primary-2);
}

/* Layout: big image + divider + 6 thumbs */
.iot-project__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 1px minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 28px);
  align-items: stretch;
  margin-top: clamp(12px, 2vw, 16px);
}

.iot-project__divider {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

/* Big image */
.iot-project__hero {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.35);
  min-height: clamp(260px, 38vw, 520px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.iot-project__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iot-project__hero figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.92);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.92));
}

/* Thumbs */
.iot-project__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 14px);
  align-content: start;
}

.iot-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  aspect-ratio: 1 / 1;
}

.iot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iot-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
  border-color: rgba(21, 94, 117, 0.35);
}

/* 3-column info boxes */
.iot-project__cols {
  margin-top: clamp(12px, 2.2vw, 16px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 16px);
}

.iot-project__box {
  background: var(--iot-soft);
  border: 1px solid var(--iot-border);
  border-radius: var(--iot-radius-md);
  padding: 1rem;
}

.iot-project__box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 900;
  color: #0b3b3f;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.iot-project__box h4 i {
  color: var(--iot-primary-2);
}

/* Responsive */
@media (max-width: 980px) {
  .iot-project__layout {
    grid-template-columns: 1fr;
  }

  .iot-project__divider {
    height: 1px;
    width: 100%;
  }

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

  .iot-project__cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .iot-project__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iot-project__hero {
    min-height: 240px;
  }
}


/* remove default bullets + control spacing */
.iot-list,
.iot-card__list{
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}

.iot-list li,
.iot-card__list li{
  position: relative;
  padding-left: 16px;     /* space for custom dot */
  margin: 0.35rem 0;
}

/* custom dot */
.iot-list li::before,
.iot-card__list li::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 0.75em;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--iot-primary), var(--iot-accent));
}

/* tighter list */
.iot-list--tight li{
  margin: 0.2rem 0;
}
/* ===========================
   FIX: you had duplicate .iot-project blocks.
   Keep the PROJECTS block below and delete the older duplicate "PROJECT GALLERY" block.
   =========================== */

/* --- Change 1: Top line (Project centered, country tag top-right) --- */
/* Top line: LEFT = Project 1, RIGHT = Fiji */
.iot-project__topline{
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes Fiji to right, Project to left */
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
}

.iot-project__center{
  display: flex;
  justify-content: flex-start;
}

.iot-project__kickercenter{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #0b3b3f;
  background: linear-gradient(90deg, #e0f2fe, #dcfce7);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.iot-project__country{
  display: flex;
  justify-content: flex-end;
}

.iot-countrytag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--iot-primary), var(--iot-primary-2));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.20);
}

.iot-countrytag i{
  color: #a5f3fc;
}

/* keep title centered like your screenshot */
.iot-project__head{
  text-align: center;
}

/* --- Change 2: bigger thumbs + slightly wider thumbs area --- */
.iot-project__layout{
  grid-template-columns: minmax(0, 1.15fr) 1px minmax(0, 1.05fr);
  padding: clamp(16px, 2.6vw, 22px); /* a bit bigger container */
}

.iot-project__thumbs{
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns => larger tiles */
  gap: clamp(12px, 2vw, 16px);
}

/* make thumbs a bit taller visually */
.iot-thumb{
  border-radius: 18px;
  aspect-ratio: 4 / 3; /* bigger than square; feels less tiny */
}

.iot-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Change 3: thumbs-only layout for project 2/3 --- */
.iot-project__layout--thumbsonly{
  grid-template-columns: 1fr;
}

.iot-project__thumbs--wide{
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* for 6 thumbs: 3x2 */
}

/* Responsive */
@media (max-width: 980px){
  .iot-project__layout{
    grid-template-columns: 1fr;
  }

  .iot-project__divider{
    height: 1px;
    width: 100%;
  }

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

  .iot-thumb{
    aspect-ratio: 1 / 1;
  }

  .iot-project__topline{
    grid-template-columns: 1fr;
  }

  .iot-project__country{
    justify-content: center;
  }
}

@media (max-width: 640px){
  .iot-project__thumbs,
  .iot-project__thumbs--wide{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =====================================
   CTA (Plan your next IoT...)  - RESTORE
   ===================================== */

.iot-cta{
  background: linear-gradient(180deg, #f9fafb, #e5edf5);
  border-top: 1px solid var(--iot-border);
  padding: var(--iot-section-y) 0;
}

.iot-cta__wrap{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.7rem;
}

.iot-cta__wrap h2{
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #0b3b3f;
}

.iot-cta__wrap p{
  margin: 0;
  max-width: 70ch;
  color: var(--iot-muted);
  font-size: 0.96rem;
}

.iot-cta__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
  justify-content: center;
}

@media (max-width: 640px){
  .iot-cta__buttons{
    flex-direction: column;
    width: 100%;
  }
  .iot-cta__buttons .iot-btn{
    width: 100%;
  }
}

/* =====================================
   Projects CTA variant
   ===================================== */
.iot-cta--projects{
  background: linear-gradient(180deg, #f6fbff, #eef6ff);
}

/* =====================================
   Project thumbs: 2-image layout (Project 3)
   ===================================== */
.iot-project__thumbs--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iot-project__thumbs--two .iot-thumb{
  aspect-ratio: 16 / 10; /* bigger, banner-like */
  border-radius: 20px;
}

@media (max-width: 640px){
  .iot-project__thumbs--two{
    grid-template-columns: 1fr;
  }
  .iot-project__thumbs--two .iot-thumb{
    aspect-ratio: 4 / 3;
  }
}

/* ===============================
   FIX: Project 3 images (no crop + bigger + consistent)
   Paste at END of your CSS
   =============================== */

/* Keep 2 columns, but make tiles taller (closer to other projects) */
.iot-project__thumbs--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Make Project 3 tiles the same feel as others (bigger/taller) */
.iot-project__thumbs--two .iot-thumb{
  aspect-ratio: 4 / 3;      /* change from 16/10 -> less wide, bigger like others */
  padding: 10px;            /* optional: gives breathing space if image is not same ratio */
  background: #ffffff;      /* shows nicely behind “contain” images */
}

/* IMPORTANT: no cropping for Project 3 */
.iot-project__thumbs--two .iot-thumb img{
  object-fit: contain;      /* shows full image */
  background: transparent;
}
/* =========================================
   Recent projects cards: increase image height + no crop
   Put at the END of your CSS
   ========================================= */

/* 1) Increase the top image section height */
.recent-projects .project-card__media,
.recent-projects .project-card__image,
.recent-projects .project-card__imgwrap,
.recent-projects .card__media,
.recent-projects .card__image {
  height: clamp(210px, 18vw, 280px);  /* increase height */
  overflow: hidden;
  background: #0b1220;               /* looks clean when using contain */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* 2) Make sure image uses full area and does NOT crop */
.recent-projects .project-card__media img,
.recent-projects .project-card__image img,
.recent-projects .project-card__imgwrap img,
.recent-projects .card__media img,
.recent-projects .card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* IMPORTANT: full image visible */
  object-position: center;
  display: block;
}
