/* KEC design system — copied from the original static site so every page matches. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #0a1433; overflow-x: hidden; width: 100%; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
.section-padding { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .section-padding { padding: 6rem 2.5rem; } }
.hero-bg { background: #0a1433; }
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -12px rgba(10,20,51,0.15); }
.transition-smooth { transition: all 0.2s ease; }
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  background: #0a1433; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(10,20,51,0.4); transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(10,20,51,0.5); }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(4px); overflow-y: auto; padding: 20px; }
.modal.active { display: flex; }
.modal-box { background: white; padding: 2rem; border-radius: 24px; max-width: 520px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.donate-option { border: 2px solid #e5e7eb; border-radius: 16px; padding: 16px; transition: all 0.2s; cursor: pointer; }
.donate-option:hover, .donate-option.selected { border-color: #0a1433; background: #f8fafc; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 420px; }
.gallery-grid .g-item {
  border-radius: 16px; background-size: cover; background-position: center; background-color: #e67e22;
  display: flex; align-items: center; justify-content: center; color: white; font-weight: bold;
  font-size: 1.2rem; text-align: center; transition: background-image 1s ease, opacity .6s ease;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; height: 350px; }
  .gallery-grid .g-item:nth-child(2), .gallery-grid .g-item:nth-child(3) { display: none; }
}
.brand-text { font-size: clamp(11px, 1.5vw, 14px); }
.brand-sub { font-size: clamp(8px, 1vw, 11px); }
.img-placeholder, .hero-img-placeholder, .logo-placeholder, .footer-logo-placeholder {
  background-color: #e67e22; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; text-align: center; padding: 1rem;
}
.hero-img-placeholder { font-size: 1.1rem; width: 100%; height: 100%; }
.logo-placeholder, .footer-logo-placeholder { font-weight: 800; font-size: clamp(8px, 1vw, 12px); width: 100%; height: 100%; border-radius: 50%; padding: 0; }
img.object-cover { display: block; }
.g-item-text { background: rgba(0,0,0,0.3); padding: 8px 16px; border-radius: 8px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.about-grid > div { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
img, svg, .g-item, .hero-img-placeholder, .img-placeholder { max-width: 100%; }
.nav-links { gap: clamp(0.5rem, 1.5vw, 1.5rem); }
.nav-link { font-size: clamp(12px, 1vw, 14px); }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
p { font-size: clamp(0.9rem, 1vw, 1.1rem); }
.btn-text { font-size: clamp(0.8rem, 0.9vw, 1rem); }
.profile-upload {
  width: 100px; height: 100px; border-radius: 50%; background: #e67e22; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: bold; font-size: 14px; overflow: hidden; border: 3px solid #e5e7eb; cursor: pointer; position: relative; flex-shrink: 0;
}
.profile-upload img { width: 100%; height: 100%; object-fit: cover; }
.age-display { font-weight: 600; color: #0a1433; background: #f0f4ff; padding: 4px 12px; border-radius: 20px; display: inline-block; font-size: 14px; }

/* shared form + table pieces for member & admin pages */
.kec-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; font-size: 14px; background: #fff; color: #0a1433; }
.kec-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(10,20,51,0.2); }
.kec-input[readonly], .kec-input:disabled { background: #f9fafb; color: rgba(10,20,51,.6); }
.kec-label { display: block; font-size: 14px; font-weight: 500; color: rgba(10,20,51,.8); margin-bottom: 4px; }
.kec-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(10,20,51,.6); padding: 12px 16px; background: rgba(249,250,251,.8); white-space: nowrap; }
.kec-table td { padding: 12px 16px; font-size: 14px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.kec-table tr:hover td { background: rgba(248,250,252,.7); }
