/* ===== Base / Layout ===== */
html { scroll-behavior: smooth; }
:root {
  --sidebar-width: 200px;
  --sidebar-gap: 20px;
  --max-card: 1100px;
  --radius-card: 14px;
  --radius-inner: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.14);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.20);
  --brand: #0077cc;
  --brand-dark: #005fa3;
  --success: #2e7d32;
  --success-dark: #256429;
  --text: #223;
  --muted: #5b6470;
  --surface: #e9edf3;
  --overlay-default: rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f8fb;
  color: var(--text);
}

/* ===== Buttons ===== */
.btn,
button.btn,
a.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.btn:hover,
button.btn:hover,
a.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn.green { background: var(--success); }
.btn.green:hover { background: var(--success-dark); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== Sidebar ===== */
.side-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  padding: var(--sidebar-gap);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 20;
}
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a {
  display: block;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: var(--brand);
  color: #fff !important;
  box-shadow: var(--shadow);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.side-nav a:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-left: var(--sidebar-width);
  height: 400px;
  background: url('banner.jpg') no-repeat top center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== Content ===== */
.content { margin-left: var(--sidebar-width); padding: 20px; }

/* ===== Blog layout helpers ===== */
.page { margin-left: var(--sidebar-width); padding: 20px; }
.main-content { max-width: 800px; margin: 0 auto; }
.blog-banner { text-align: center; margin: 30px 0; }
.blog-banner img { border-radius: 10px; box-shadow: var(--shadow); max-width: 100%; height: auto; }

/* ===== Photo Cards ===== */
.photo-card {
  background-color: #0d1117; /* dark base */
  border-radius: var(--radius-card);
  margin: 40px auto;
  max-width: var(--max-card);
  box-shadow: var(--shadow);
  overflow: hidden;

  background-image: var(--bg, none);
  background-repeat: no-repeat;
  background-size: cover;      /* fill card; may crop */
  background-position: center;

  color: #fff;
}
.photo-card .inner {
  background: var(--overlay, var(--overlay-default)); /* 0.55 black overlay by default */
  padding: 28px;
  border-radius: var(--radius-inner);
}
.photo-card h2,
.photo-card h3 { margin-top: 0; color: #fff; }
.photo-card p,
.photo-card ul { color: #eee; }
.photo-card .card-actions { margin-top: 16px; }

/* ===== ASN Banner (solid overlay; text NOT transparent) ===== */
.photo-card.asn-banner {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 320px;
}
.photo-card.asn-banner .inner {
  /* keep readable dark overlay */
  --overlay: rgba(0,0,0,0.55);
  text-align: center;
}
/* NOTE: no special text transparency here — it stays solid */

/* ===== Contact / Videos / Footer ===== */
.contact-form { display: flex; flex-direction: column; }
.contact-form label { margin-top: 10px; margin-bottom: 4px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  padding: 8px; border: 1px solid #ccc; border-radius: 6px; font: inherit; background: #fff; color: var(--text);
}
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-grid iframe { width: 100%; height: 315px; border: none; border-radius: 12px; box-shadow: var(--shadow); }
footer {
  margin-left: var(--sidebar-width);
  padding: 20px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--muted);
}
footer a { color: var(--brand); text-decoration: none; }
footer a:hover { color: var(--brand-dark); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .side-nav { position: relative; width: 100%; height: auto; box-shadow: none; }
  .content, .hero, footer, .page { margin-left: 0; }
  .hero { height: 250px; background-position: top center; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-card.asn-banner { min-height: 260px; }
}
