/* ============================================================
   ISO Compliance — Green & Gold Accreditation Theme
   ============================================================ */

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

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #f7faf6;
  --bg-card:      #ffffff;
  --bg-elevated:  #eef5ee;
  --border:       rgba(15, 84, 58, 0.16);
  --cyan:         #0f553b;
  --cyan-dim:     rgba(15, 84, 58, 0.10);
  --gold:         #caa84b;
  --gold-dim:     rgba(202, 168, 75, 0.16);
  --white:        #123f2e;
  --text:         #24382f;
  --muted:        #697a70;
  --success:      #16814f;
  --danger:       #ef4444;
  --grey-text:    var(--muted);
  --grey-mid:     var(--border);
  --blue-main:    var(--cyan);
  --radius:       8px;
  --transition:   .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(202,168,75,0.11), transparent 32rem),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 42%, #edf5ef 100%);
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Utility ------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--cyan);
  color: #ffffff;
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: #174f39;
  border-color: var(--gold);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(15,84,58,0.32);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--cyan);
  background: var(--gold-dim);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Section tags — hidden as per design spec */
.section-tag { display: none; }

.mobile-only-break { display: none; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

section { padding: 80px 0; }

/* --- Top Bar — hidden ------------------------------------ */
.topbar { display: none; }

/* --- Header / Navbar --------------------------------------- */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15,84,58,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 88px;
  gap: 24px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: clamp(260px, 30vw, 365px);
  height: 78px;
  background: url('../assets/iso-compliance-logo.png') left center / contain no-repeat;
}
.logo::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo .logo-icon,
.logo .logo-text {
  display: none;
}
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.logo-text span {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; white-space: nowrap; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
  color: #42584d;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-links > li > a.btn-primary,
.nav-links > li > a.btn-primary:hover {
  color: #ffffff;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  min-width: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  z-index: 200;
  padding: 6px 0;
  box-shadow: 0 14px 38px rgba(15,84,58,0.13);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--bg-elevated);
  color: var(--white);
}

/* Client Portal link — subtle separator before CTA */
.nav-links > li:has(> a[href="client-portal.html"]) {
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}
.nav-links > li:has(> a[href="client-portal.html"]) > a {
  color: var(--muted);
}
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: transparent;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202,168,75,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--cyan); }
.hero p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-card:hover {
  border-color: var(--cyan);
}
.stat-card .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.stat-card .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Trust Bar --------------------------------------------- */
.trust-bar {
  background: var(--bg-card);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.ti-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid rgba(202,168,75,0.45);
  flex-shrink: 0;
}
.ti-check::before {
  content: '\2713';
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

/* --- Services ---------------------------------------------- */
.services { background: var(--bg-elevated); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(15,84,58,0.18), 0 10px 32px rgba(15,84,58,0.10);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 22px;
  flex-shrink: 0;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.service-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.service-card a:hover { gap: 9px; color: var(--white); }

/* --- Standards Highlight ----------------------------------- */
.standards-section { background: var(--bg); }
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
  margin-top: 48px;
}
.std-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.std-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(15,84,58,0.10);
}
.std-badge {
  display: inline-block;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(202,168,75,0.38);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.std-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.std-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.std-card .std-industry {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* --- Certificate Verify Widget ----------------------------- */
.verify-section {
  background: var(--bg-card);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.verify-section .section-title { color: var(--white); }
.verify-section .section-subtitle { color: var(--muted); }
.verify-box {
  max-width: 680px;
  margin: 40px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.verify-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.verify-input-row { display: flex; gap: 12px; }
.verify-input-row input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
  font-family: inherit;
}
.verify-input-row input::placeholder { color: var(--muted); }
.verify-input-row input:focus { border-color: var(--cyan); }
.verify-result {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  display: none;
  font-size: 14px;
}
.verify-result.valid {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}
.verify-result.invalid {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

/* --- Process Steps ----------------------------------------- */
.process { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0;
  margin-top: 52px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 0 auto 20px;
}
.step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--muted); }

/* --- Why Us ------------------------------------------------ */
.why-us .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
}
.why-visual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.why-visual-stat {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.why-visual-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.why-visual-stat em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.why-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.why-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.why-item p { font-size: 13px; color: var(--muted); }

/* --- Industries -------------------------------------------- */
.industries { background: var(--bg-card); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.industry-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 16px;
  transition: all var(--transition);
  cursor: default;
}
.industry-item:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.industry-item p {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.industry-item:hover p { color: var(--white); }

/* --- News / Blog ------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 24px;
  margin-top: 48px;
}
.news-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(15,84,58,0.10);
}
/* News image strip — hidden, replaced by padding in news-body */
.news-img { display: none; height: 0; }
.news-body { padding: 24px; }
.news-tag {
  color: var(--cyan);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
  line-height: 1.45;
}
.news-body p { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.news-meta { font-size: 12px; color: var(--muted); display: flex; gap: 16px; }

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  background: var(--bg-elevated);
  color: var(--white);
  text-align: center;
  padding: 64px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.3px;
}
.cta-banner p { color: var(--muted); margin-bottom: 28px; font-size: 1rem; }
.cta-banner-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* --- Footer ----------------------------------------------- */
footer {
  background: #0f3f2d;
  color: rgba(255,255,255,0.72);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; margin: 16px 0; color: rgba(255,255,255,0.72); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  transition: all var(--transition);
}
.social-btn:hover {
  color: var(--cyan);
  border-color: var(--gold);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #ffffff; }

.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.fc-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.72);
}
.fc-item a { color: rgba(255,255,255,0.72); }
.fc-item a:hover { color: #ffffff; }
.fc-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.68);
}
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-bottom a:hover { color: #ffffff; }

/* --- Page Banner ------------------------------------------ */
.page-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--white);
}
.page-banner p { font-size: 1rem; color: var(--muted); }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--muted); }

/* --- Standards Page --------------------------------------- */
.standards-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
}
.standards-search { margin-bottom: 28px; }
.standards-search input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
  font-family: inherit;
}
.standards-search input::placeholder { color: var(--muted); }
.standards-search input:focus { border-color: var(--cyan); }

.std-table { width: 100%; border-collapse: collapse; }
.std-table th {
  background: var(--bg-elevated);
  color: var(--muted);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}
.std-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.std-table tr:hover td { background: var(--bg-elevated); }
.std-table .std-code { font-weight: 700; color: var(--cyan); white-space: nowrap; }
.std-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.std-status.active {
  background: rgba(34,197,94,0.12);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.25);
}
.std-status.review {
  background: rgba(251,191,36,0.1);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,0.25);
}

/* --- Contact Page ----------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}
.c-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.c-icon { font-size: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.c-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.c-value { font-size: 14px; color: var(--text); margin-top: 2px; }
.c-value a { color: var(--cyan); }
.c-value a:hover { color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group select option { background: var(--bg-card); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* --- Verify Page ------------------------------------------ */
.verify-full { max-width: 820px; margin: 0 auto; }
.verify-full-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}
.verify-full-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.verify-full-box p { color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.verify-full-input { display: flex; gap: 12px; margin-bottom: 24px; }
.verify-full-input input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
  font-family: inherit;
}
.verify-full-input input::placeholder { color: var(--muted); }
.verify-full-input input:focus { border-color: var(--cyan); }
.cert-result-card {
  display: none;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  overflow: hidden;
}
.cert-result-header {
  background: var(--cyan-dim);
  border-bottom: 1px solid rgba(202,168,75,0.32);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-result-header .check { font-size: 24px; }
.cert-result-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.cert-result-header p { font-size: 13px; color: var(--muted); }
.cert-result-body { padding: 28px; background: var(--bg-card); }
.cert-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cert-detail label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.cert-detail span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

/* --- Accordion -------------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition);
  background: var(--bg-card);
}
.accordion-header:hover { background: var(--bg-elevated); color: var(--white); }
.accordion-header.open { background: var(--bg-elevated); color: var(--cyan); }
.accordion-icon { font-size: 18px; transition: transform var(--transition); color: var(--muted); }
.accordion-header.open .accordion-icon { transform: rotate(45deg); color: var(--cyan); }
.accordion-body {
  display: none;
  padding: 0 24px 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  background: var(--bg-elevated);
}
.accordion-body.open { display: block; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4,1fr); }
  .why-us .container { grid-template-columns: 1fr; }
  .why-visual { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open .nav-cta { display: block; margin-left: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .steps { gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cert-detail-grid { grid-template-columns: 1fr; }
  .verify-full-box { padding: 28px 20px; }
  .verify-full-input { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .trust-bar .container { gap: 18px; justify-content: flex-start; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CLIENT PORTAL & CERTIFICATE STYLES
   ============================================================ */

/* --- Portal Login ----------------------------------------- */
.portal-login-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 20px;
}
.portal-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.portal-login-box .logo { justify-content: center; margin-bottom: 28px; }
.portal-login-box h2 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 700;
}
.portal-login-box .subtitle {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.portal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.portal-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.demo-creds {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 16px;
}
.demo-creds strong { color: var(--text); display: block; margin-bottom: 4px; }

/* --- Portal Dashboard ------------------------------------- */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 72px);
}
.portal-sidebar {
  background: #0f3f2d;
  color: rgba(255,255,255,0.72);
  padding: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.portal-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.portal-sidebar-header p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.portal-sidebar-header strong { color: var(--white); font-size: 14px; }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 13.5px;
  color: var(--muted);
  transition: all var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-elevated);
  color: var(--white);
}
.sidebar-nav a.active { border-left: 2px solid var(--cyan); }
.sidebar-nav a .sn-icon { font-size: 15px; width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.portal-main { padding: 32px 36px; background: var(--bg); }
.portal-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-header h1 { font-size: 1.4rem; color: var(--white); font-weight: 700; }
.portal-header p { font-size: 13.5px; color: var(--muted); }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pstat {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
}
.pstat:hover { border-color: var(--cyan); }
.pstat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pstat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pstat-value { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-top: 2px; }

.portal-section {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.portal-section-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-section-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.portal-section-body { padding: 24px; }

/* Certificate list in portal */
.cert-list { display: flex; flex-direction: column; gap: 14px; }
.cert-list-item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all var(--transition);
}
.cert-list-item:hover { border-color: var(--cyan); }
.cert-list-item.expired { opacity: 0.7; border-color: rgba(239,68,68,0.3); }
.cert-badge-code { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 0.5px; }
.cert-list-standard { font-size: 0.95rem; font-weight: 700; color: var(--white); margin: 4px 0; }
.cert-list-scope { font-size: 13px; color: var(--muted); }
.cert-list-meta { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.cert-meta-item label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.cert-meta-item span { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.cert-list-actions { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.cert-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pill-valid {
  background: rgba(34,197,94,0.12);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.25);
}
.pill-expired {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.pill-suspended {
  background: rgba(251,191,36,0.1);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,0.25);
}
.pill-pending {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(202,168,75,0.38);
}

/* --- Certificate Template --------------------------------- */
.cert-print-wrap {
  background: var(--bg);
  padding: 40px 20px;
  min-height: calc(100vh - 130px);
}
.cert-document {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cert-border {
  position: absolute;
  inset: 12px;
  border: 3px solid #0057B8;
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.cert-inner { padding: 52px 60px; position: relative; z-index: 1; background: #ffffff; }
.cert-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.cert-logo-block .cert-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #002F6C;
  letter-spacing: -0.5px;
}
.cert-logo-block .cert-logo-sub {
  font-size: 11px;
  color: #5A6478;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cert-accred {
  text-align: right;
  font-size: 11px;
  color: #5A6478;
  line-height: 1.7;
}
.cert-accred strong { color: #002F6C; font-size: 12px; }
.cert-divider-bar {
  height: 4px;
  background: linear-gradient(90deg, #002F6C, #0057B8, #3A9FD9);
  border-radius: 2px;
  margin-bottom: 32px;
}
.cert-title { text-align: center; margin-bottom: 28px; }
.cert-title .cert-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5A6478;
  font-weight: 600;
}
.cert-title h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #002F6C;
  margin: 8px 0 0;
  line-height: 1.2;
}
.cert-certifies { text-align: center; color: #5A6478; font-size: 15px; margin-bottom: 8px; }
.cert-company-name {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #002F6C;
  margin-bottom: 8px;
  border-bottom: 2px solid #E8F2FB;
  padding-bottom: 16px;
}
.cert-has-been { text-align: center; color: #5A6478; font-size: 14px; margin-bottom: 6px; }
.cert-standard-name {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0057B8;
  margin-bottom: 24px;
}
.cert-scope-box {
  background: #E8F2FB;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.cert-scope-box label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #002F6C;
}
.cert-scope-box p {
  font-size: 14px;
  color: #1A2340;
  margin-top: 6px;
  line-height: 1.6;
}
.cert-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.cert-date-item {
  text-align: center;
  padding: 14px;
  background: #F4F6F9;
  border-radius: 8px;
}
.cert-date-item label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5A6478;
}
.cert-date-item span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #002F6C;
  margin-top: 5px;
}
.cert-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}
.cert-sig { text-align: center; }
.cert-sig-line {
  border-top: 2px solid #002F6C;
  padding-top: 10px;
  margin-top: 48px;
}
.cert-sig-name { font-size: 13px; font-weight: 700; color: #002F6C; }
.cert-sig-title { font-size: 11px; color: #5A6478; }
.cert-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #D0D7E2;
  padding-top: 20px;
  font-size: 11px;
  color: #5A6478;
}
.cert-qr-placeholder {
  width: 72px;
  height: 72px;
  background: #F4F6F9;
  border: 1px solid #D0D7E2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-align: center;
  color: #5A6478;
  padding: 6px;
}
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,87,184,0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 4px;
}

/* Print styles */
@media print {
  body > *:not(.cert-print-wrap) { display: none !important; }
  .cert-print-wrap { padding: 0 !important; background: none !important; }
  .cert-document { box-shadow: none !important; border: none !important; max-width: 100% !important; }
  .no-print { display: none !important; }
  .cert-inner { padding: 32px 40px !important; }
}

/* --- Renewal Form ----------------------------------------- */
.renewal-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.renewal-info { display: flex; flex-direction: column; gap: 20px; }
.renewal-cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.renewal-cert-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.renewal-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.renewal-timeline h3 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.rtl-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.rtl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: 6px;
}

/* --- ISO 27001 Series Table ------------------------------- */
.series-group { margin-bottom: 48px; }
.series-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-group-title .sg-badge {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(202,168,75,0.38);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.series-std-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  transition: all var(--transition);
}
.series-std-card:hover { border-color: var(--cyan); background: var(--bg-elevated); }
.series-std-card .std-num { font-weight: 800; color: var(--cyan); font-size: 13.5px; }
.series-std-card .std-desc { font-size: 13.5px; color: var(--text); font-weight: 600; }
.series-std-card .std-detail { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.65; }
.certifiable-badge {
  font-size: 11px;
  background: rgba(34,197,94,0.12);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

/* Responsive portal */
@media (max-width: 992px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; height: auto; }
  .portal-main { padding: 24px 20px; }
  .cert-dates-row { grid-template-columns: 1fr 1fr; }
  .cert-sigs { grid-template-columns: 1fr; gap: 20px; }
  .cert-inner { padding: 32px 28px; }
  .renewal-grid { grid-template-columns: 1fr; }
  .series-std-card { grid-template-columns: 1fr; }
  .cert-list-item { grid-template-columns: 1fr; }
  .cert-list-actions { flex-direction: row; flex-wrap: wrap; }
}


/* --- Loading Spinner ------------------ */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.verify-result.loading {
  display: block;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   CSS REPAIR LAYER
   Cross-page layout, responsive, and overflow fixes
   ============================================================ */

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.btn {
  min-height: 40px;
}

.btn {
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.container {
  width: 100%;
  max-width: min(1200px, calc(100vw - 40px));
  padding-left: 0;
  padding-right: 0;
}

svg {
  flex-shrink: 0;
}

header {
  width: 100%;
}

.navbar {
  position: relative;
  min-width: 0;
}

.logo {
  min-width: 0;
  color: var(--white);
}

.logo:hover {
  color: var(--white);
}

.logo-text {
  min-width: 0;
}

.logo-text strong,
.logo-text span {
  overflow-wrap: anywhere;
}

.nav-links {
  min-width: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links .btn {
  justify-content: center;
}

.dropdown-menu {
  right: auto;
}

.dropdown-menu li a {
  white-space: normal;
}

.hero-badge {
  max-width: 100%;
}

.hero-content,
.page-banner .container {
  min-width: 0;
  max-width: 100%;
}

.hero-stats,
.services-grid,
.standards-grid,
.industries-grid,
.news-grid,
.portal-stats {
  min-width: 0;
}

.stat-card,
.service-card,
.std-card,
.news-card,
.pstat,
.portal-section,
.contact-info-card,
.verify-box,
.verify-full-box,
.renewal-cert-card,
.renewal-timeline {
  min-width: 0;
}

.service-card p,
.std-card p,
.news-body p,
.section-subtitle,
.page-banner p,
.contact-info-card,
.cert-list-scope,
.series-std-card .std-detail {
  overflow-wrap: anywhere;
}

.verify-input-row,
.verify-full-input {
  min-width: 0;
}

.verify-input-row input,
.verify-full-input input,
.standards-search input,
.form-group input,
.form-group select,
.form-group textarea {
  min-width: 0;
  width: 100%;
}

.std-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
}

.std-table thead,
.std-table tbody,
.std-table tr {
  width: 100%;
}

.std-table th,
.std-table td {
  min-width: 130px;
}

.std-table th:first-child,
.std-table td:first-child {
  min-width: 150px;
}

.std-table th:last-child,
.std-table td:last-child {
  min-width: 110px;
}

.std-table tr:last-child td {
  border-bottom: 0;
}

.portal-section-body > div[style*="overflow-x"] .std-table {
  border: 0;
  border-radius: 0;
}

.portal-layout {
  width: 100%;
}

.portal-main {
  min-width: 0;
}

.portal-section-header {
  gap: 14px;
}

.cert-result-header svg {
  color: #ffffff;
}

.cert-result-header h3,
.cert-result-header p {
  margin: 0;
}

.cert-document,
.cert-inner,
.cert-border {
  max-width: 100%;
}

.cert-inner {
  min-width: 0;
}

.cert-company-name,
.cert-standard-name,
.cert-scope-box p,
.cert-date-item span {
  overflow-wrap: anywhere;
}

.notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 16px 42px rgba(0,0,0,0.35);
  font-size: 13.5px;
}

.notification.success {
  border-color: rgba(34,197,94,0.35);
  color: #86efac;
}

.notification.error {
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}

@media (max-width: 1080px) {
  .navbar {
    height: auto;
    min-height: 84px;
    padding: 12px 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    right: -20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(0,0,0,0.4);
    padding: 14px 20px;
    gap: 4px;
    z-index: 999;
    white-space: normal;
  }

  .nav-links.open > li {
    width: 100%;
  }

  .nav-links.open > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 11px 12px;
  }

  .nav-links.open .nav-cta {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-links.open .nav-cta .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .nav-links > li:has(> a[href="client-portal.html"]) {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
    border-top-width: 1px;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 72px 0 64px;
  }

  .hero-stats {
    max-width: 720px;
    margin: 0 auto;
  }

  .contact-grid,
  .renewal-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: min(1200px, calc(100vw - 32px));
  }

  .page-banner {
    padding: 44px 0 38px;
  }

  .section-title {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  .hero-stats,
  .why-visual-inner,
  .cert-dates-row {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .standards-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .verify-box,
  .verify-full-box,
  .contact-info-card,
  .portal-login-box {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .verify-input-row {
    flex-direction: column;
  }

  .verify-input-row .btn,
  .verify-full-input .btn,
  .contact-form .btn {
    width: 100%;
  }

  .standards-filter {
    gap: 6px;
  }

  .filter-btn {
    flex: 1 1 auto;
  }

  .portal-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-section-header .btn {
    width: 100%;
  }

  .cert-list-actions {
    width: 100%;
  }

  .cert-list-actions .btn {
    flex: 1 1 160px;
  }

  .cert-header-row,
  .cert-footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .cert-accred {
    text-align: left;
  }

  .cert-title h1 {
    font-size: 1.55rem;
  }

  .cert-company-name {
    font-size: 1.28rem;
  }

  .cert-watermark {
    font-size: clamp(2.2rem, 14vw, 4rem);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.92rem;
  }

  .container {
    max-width: min(1200px, calc(100vw - 28px));
  }

  .navbar {
    padding-right: 44px;
  }

  .logo {
    width: min(245px, calc(100vw - 88px));
    height: 64px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text strong {
    font-size: 0.92rem;
  }

  .logo-text span {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hamburger {
    display: flex !important;
    position: fixed;
    right: auto;
    left: calc(min(100vw, 390px) - 52px);
    top: 31px;
    z-index: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100vw, 390px);
    max-width: 390px;
    margin-left: 0;
    padding-left: 14px;
    padding-right: 14px;
    transform: none;
  }

  .hero-content,
  .hero-stats {
    width: 100%;
    max-width: 330px;
  }

  .hero h1 {
    font-size: clamp(1.28rem, 6vw, 1.48rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero h1 span {
    display: block;
  }

  .mobile-only-break {
    display: block;
  }

  .hero p {
    font-size: 0.86rem;
    max-width: min(330px, calc(100vw - 40px));
  }

  .page-banner h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .hero-btns,
  .cta-banner-btns {
    flex-direction: column;
    width: min(330px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns .btn,
  .cta-banner-btns .btn {
    width: 100%;
  }

  .hero-stats,
  .why-visual-inner,
  .cert-dates-row,
  .cert-detail-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 22px 18px;
  }

  .trust-bar .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom > div {
    justify-content: center;
    flex-wrap: wrap;
  }

  .portal-main {
    padding: 20px 14px;
  }

  .portal-section-body {
    padding: 18px;
  }

  .pstat {
    align-items: flex-start;
  }

  .cert-print-wrap {
    padding: 18px 10px;
  }

  .cert-inner {
    padding: 28px 18px;
  }

  .cert-border {
    inset: 8px;
    border-width: 2px;
  }

  .series-group-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .std-table {
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .std-table thead {
    display: none;
  }

  .std-table tbody,
  .std-table tr,
  .std-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .std-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
  }

  .std-table td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
  }

  .std-table td:last-child {
    border-bottom: 0;
  }

  .std-table td::before {
    color: var(--muted);
    content: "Detail";
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .std-table td:nth-child(1)::before { content: "Standard"; }
  .std-table td:nth-child(2)::before { content: "Title"; }
  .std-table td:nth-child(3)::before { content: "Category"; }
  .std-table td:nth-child(4)::before { content: "Industry"; }
  .std-table td:nth-child(5)::before { content: "Status"; }
  .std-table td:nth-child(6)::before { content: "Action"; }
  .std-table td:nth-child(7)::before { content: "Result"; }

  #auditTable td:nth-child(1)::before { content: "Audit Type"; }
  #auditTable td:nth-child(2)::before { content: "Date"; }
  #auditTable td:nth-child(3)::before { content: "Standard"; }
  #auditTable td:nth-child(4)::before { content: "Auditor"; }
  #auditTable td:nth-child(5)::before { content: "Result"; }
  #auditTable td:nth-child(6)::before { content: "Major NC"; }
  #auditTable td:nth-child(7)::before { content: "Minor NC"; }
}

.btn.btn-primary,
.nav-links > li > a.btn.btn-primary,
.nav-cta > a.btn.btn-primary {
  background: #0f553b;
  border-color: #0f553b;
  color: #ffffff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.nav-links > li > a.btn.btn-primary:hover,
.nav-links > li > a.btn.btn-primary:focus,
.nav-cta > a.btn.btn-primary:hover,
.nav-cta > a.btn.btn-primary:focus {
  background: #174f39;
  border-color: #caa84b;
  color: #ffffff !important;
}
