:root{
  /* Lighter, professional green/mint theme (vertical spacing tuned) */
  --bg: #e9eef7;
  --panel: #ffffff;
  --accent: #ff5048;
  --accent-2: #cf372c8c;
  --accent-dark: #e8433f;
  --muted: #20553c;
  --card-shadow: 0 10px 30px rgba(10,40,30,0.08);
  --glass: rgba(2,8,30,0.03);
  --white: #ffffff;
  --text: #0b4132;
  --text-muted: #3f6a5b;
  --border: #dff3e9;
  --card-radius: 12px;

  /* Single control for card backgrounds: change this one value to update all cards */
  --card-bg: linear-gradient(180deg, rgba(70,200,144,0.06), rgba(31,117,67,0.02));

  /* Vertical spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 48px;
  --space-xl: 72px;

  /* responsive fact size */
  --fact-size: clamp(150px, 20vw, 240px);

  /* float-note offset variable (used by transform). Adjust clamp values if needed. */
  --float-offset: clamp(0px, 8vw, 140px);
}

/* Reset and base */
*{box-sizing:border-box}
html,body{
  height:100%;margin:0;font-family:Roboto, system-ui, -apple-system,"Segoe UI",Arial;background:var(--bg);color:var(--text);
  background-image: url("images/newbg.jpg");
  background-repeat: repeat;
}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1100px;margin:36px auto;padding:28px}

/* HERO / top - taller and more airy */
.hero{
  position:relative;
  border-radius:var(--card-radius);
  overflow:hidden;
  padding:48px;
  min-height:220px;
  background:
    radial-gradient(circle at 12% 14%, rgba(39, 111, 80, 0.06), transparent 1%),
     linear-gradient(180deg, rgba(231, 238, 244, 0.56) 0%, rgba(250,252,250,0.98) 100%);
  box-shadow:var(--card-shadow);
  border:1px solid var(--border);
  margin-bottom:var(--space-xl);
}

.corner-accent{
  position:absolute;
  left:-40px;
  top:-40px;
  width:160px;
  height:160px;
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  border-radius:44% 26% 26% 44%;
  filter:blur(6px);
  opacity:0.12;
}
/* Allow content to wrap on small screens */
/* FIXED: Hero inner container */
.hero-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:clamp(20px, 5vw, 48px);
  flex-wrap:wrap;
}

/* FIXED: Brand left section with logo and title */
.brand-left{
  display:flex;
  align-items:center;
  gap:clamp(16px, 3vw, 24px);
  flex:  1 1 auto;
  min-width:0;
  justify-content:flex-start;
}

.main-title{
  font-family:Montserrat, sans-serif;
  font-weight:900;
  color:var(--accent);
  font-size:clamp(28px, 6vw, 56px);
  line-height:1;
  margin:0;
  letter-spacing:1px;
  text-transform:uppercase;
  flex: 2;                        /* give more space to title */
  text-align: center;
}
.main-title .sec{color:var(--text);font-size:inherit}
.badge{
  color:var(--muted);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 22px rgba(6,40,30,0.04);
  flex:0 0 auto;
  margin-top:8px;
}
.badge-img{max-width:140px;height:auto;display:block}

/* Delivered ribbon (more vertical spacing) */
.delivered{display:flex;justify-content:center;margin-top:var(--space-md);}
.ribbon{
  background:linear-gradient(180deg,var(--accent-2),var(--accent));
  color:var(--white);font-weight:700;padding:16px 20px;border-radius:12px;display:inline-block;
  box-shadow:0 10px 24px rgba(6,40,30,0.06);
  border:1px solid rgba(255,255,255,0.06);
  font-size:18px
}

/* CONTENT - increase vertical rhythm between sections */
.content{
  margin-top:0;
  padding:28px;
  background:linear-gradient(180deg, var(--panel), rgba(255,255,255,0.98));
  border-radius:14px;
  border:1px solid var(--border);
  box-shadow:0 8px 26px rgba(6,40,30,0.04);
}

/* Add consistent vertical spacing between direct child sections */
.content > * + *{ margin-top: var(--space-lg); }

/* location */
.location .label{color:var(--muted);font-weight:700;margin:0;font-size:26px}
.location h2{color:var(--accent-dark);margin:8px 0 0 0;font-family:Montserrat, sans-serif;font-size:32px;line-height:1.1}

/* two-column area - taller card surfaces and more breathing room */
/* allow wrapping and avoid negative margins */
.two-col{display:flex;gap:var(--space-lg);align-items:flex-start;flex-wrap:wrap}
.what{
  flex:1 1 320px;
  background:var(--card-bg);
  padding:28px;border-radius:12px;border:1px solid var(--border);
  box-shadow:0 10px 26px rgba(6,40,30,0.04);
  min-height:120px;
  max-width:100%;
}
.what h3{margin:0 0 16px 0;color:var(--muted);text-transform:uppercase;font-size:20px}
.what ul{margin:0;padding-left:1.2rem;font-size:18px;line-height:1.6;color:var(--text-muted)}
.notice{flex:0 0 280px;max-width:100%}

/* CHANGE: use transform with --float-offset to move visually without reflow */
.float-note{
  background:var(--card-bg);
  padding:20px;border-radius:12px;border:1px solid rgba(6,40,30,0.03);
  text-align:center;color:var(--text);
  min-height:180px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 8px 18px rgba(6,40,30,0.04);

  /* visual translation only — does NOT change document flow */
  transform: translateY(var(--float-offset));
  will-change: transform;
  /* optional transition if you'd like a smooth change when resizing */
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.float-note p{margin:8px 0;font-weight:800;color:var(--text);line-height:1.2;font-size:18px}

/* Certifications (more vertical space, taller tiles) */
.certs{margin-top:var(--space-md)}
.certs-title{color:var(--muted);font-size:18px;margin:0 0 8px 0;font-weight:700}
.cert-grid{display:flex;justify-content:center;align-items:center;padding:12px 10px 18px 10px;flex-wrap:wrap}
.cert-logos{
  display:flex;
  flex-wrap:wrap;
  gap:22px 24px;
  justify-content:center;
  align-items:center;
  max-width:980px;
  width:100%;
}
.cert-item{
  flex:0 1 190px; /* flexible instead of fixed width */
  height:120px;
  display:flex;align-items:center;justify-content:center;
  background:var(--card-bg);
  border-radius:12px;padding:12px;
  box-shadow:0 8px 20px rgba(6,40,30,0.04);
  border:1px solid var(--border);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cert-item:hover{ transform:translateY(-6px) scale(1.02); box-shadow:0 18px 36px rgba(6,40,30,0.10); }
.cert-logo{max-width:100%;max-height:100%;object-fit:contain;display:block}

/* Quick facts - responsive circular facts */
.quick-facts{display:flex;gap:var(--space-md);margin-top:var(--space-md);flex-wrap:wrap;justify-content:center}
.fact{
  width:var(--fact-size);
  height:var(--fact-size);
  background:var(--card-bg);
  color:var(--accent-dark);font-weight:900;padding:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;text-align:center;box-shadow:0 16px 32px rgba(6,40,30,0.06);border:1px solid var(--border);
  font-size:16px;
}
.fact span{display:block;font-weight:800;margin-top:12px;font-size:14px}

/* Register row - spaced and taller */
.register{display:flex;justify-content:space-between;align-items:center;margin-top:var(--space-lg);gap:24px;flex-wrap:wrap}
.reg-left{display:flex;flex-direction:column;gap:8px}
.reg-label{color:var(--muted);margin:0}
.reg-link{
  background:linear-gradient(90deg,var(--accent-2),var(--accent));
  color:var(--white);padding:12px 16px;border-radius:10px;font-weight:900;text-decoration:none;display:inline-block;
  box-shadow:0 10px 26px rgba(70,200,144,0.08);
  font-size:16px;
}
.download-btn{
  background:transparent;border:2px solid var(--border);color:var(--text);padding:12px 16px;border-radius:10px;text-decoration:none;font-weight:800;
}

/* QR and reg-right */
.reg-right{display:flex;flex-direction:column;align-items:center;gap:12px}
.qr{margin-top:6px;display:flex;align-items:center;justify-content:center}
.qr-img{width:160px;height:auto;background:var(--white);padding:12px;border-radius:12px;display:block;box-shadow:0 12px 28px rgba(6,40,30,0.06)}

/* Contacts - spread out */
.contacts{display:flex;gap:16px;margin-top:var(--space-sm);flex-wrap:wrap}
.contact-item{background:var(--card-bg);padding:12px 16px;border-radius:8px;color:var(--text-muted);font-weight:700;border:1px solid var(--border)}

/* Typography & legibility */
h1,h2,h3{letter-spacing:0.6px}
p,li{color:var(--text-muted)}
h1.main-title{font-weight:900}
.location h2{font-size:20px;}

/* Accessibility helpers and responsive adjustments */
@media (max-width:980px){
  .main-title,.main-title .sec{font-size:clamp(22px,5.5vw,40px)}
  .two-col{flex-direction:column}
  .notice{width:100%}
  .cert-grid{flex-direction:column;align-items:center}
  .cert-logos{gap:18px}
  .fact{width:clamp(110px,22vw,160px);height:clamp(110px,22vw,160px)}
  .qr-img{width:140px}
  .hero{padding:28px}
  .delivered{margin-top:var(--space-sm)}
  .wrap{padding:20px}

  /* reduce translation so stacked layout doesn't leave huge gaps */
  .float-note{ transform: translateY(clamp(8px, 4vw, 40px)); }
}
@media (max-width:520px){
  .wrap{padding:18px;margin:18px auto}
  .main-title,.main-title .sec{font-size:clamp(20px,6.5vw,28px)}
  .cert-item{ flex:0 1 140px; height:92px; }
  .fact{width:clamp(90px,30vw,120px);height:clamp(90px,30vw,120px);padding:12px}
  .qr-img{width:110px}
  .badge-img{max-width:110px}
  .reg-link,.download-btn{font-size:14px;padding:10px 12px}
  .location .label{font-size:20px}
  .location h2{font-size:20px}

  .float-note{ transform: translateY(8px); }
}