/* =========================================================
   MBCC / MoeCommunityCloud - styles.css (FULL UPDATED)
   Goals:
   - Remove "big banner" look by default (no forced tall images)
   - Improve readability (fonts + spacing)
   - Reduce wasted whitespace
   - Keep AdSense-safe (no sticky weirdness)
   - Maintain black/red/gold MBCC identity
   ========================================================= */

:root{
  --bg:#0b0b0b;
  --panel:#111111;
  --panel2:#0f0f0f;
  --text:#f7f3e9;
  --muted:rgba(247,243,233,.75);
  --muted2:rgba(247,243,233,.62);
  --red:#c1121f;
  --gold:#d4af37;
  --goldDark:#a8831e;
  --border:rgba(255,255,255,.08);
  --borderGold:rgba(212,175,55,.26);
  --shadow:0 14px 40px rgba(0,0,0,.45);
  --r:16px;

  --max:1100px;
}

/* -------------------------
   Base / reset
------------------------- */
*{box-sizing:border-box}
html{
  font-size:17px; /* readability */
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.7;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--text); text-decoration:none}
a:hover{color:var(--gold)}
strong{color:#fff}
p{margin:0 0 12px}
ul,ol{margin:0 0 12px}

/* -------------------------
   Layout helpers
------------------------- */
.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.section{
  padding:22px 0;          /* tighter than before */
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.hr,
hr{
  border:0;
  border-top:1px solid var(--border);
  margin:16px 0;
}

/* -------------------------
   Typography
------------------------- */
h1{
  font-size:2.2rem;
  line-height:1.15;
  margin:0 0 10px;
}
h2{
  font-size:1.7rem;
  line-height:1.2;
  margin:0 0 10px;
}
h3{
  font-size:1.3rem;
  line-height:1.25;
  margin:0 0 8px;
}
.lead{
  font-size:1.1rem;
  line-height:1.75;
  color:var(--muted);
}
.small{
  font-size:.95rem;
  color:var(--muted);
  line-height:1.75;
}

/* -------------------------
   Topbar / Nav
------------------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,11,11,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.navwrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}
.brandlogoimg{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.brandmeta .name{
  font-weight:900;
  letter-spacing:.2px;
}
.brandmeta .tag{
  font-size:.88rem;
  color:var(--muted2);
  margin-top:2px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  background:transparent;
}
.nav a:hover{
  border-color:rgba(212,175,55,.22);
  color:var(--text);
}
.nav a.primary{
  border-color:rgba(193,18,31,.45);
  background:rgba(193,18,31,.14);
  color:#fff;
}
.nav a.primary:hover{
  border-color:rgba(212,175,55,.55);
  background:rgba(212,175,55,.12);
}

/* -------------------------
   Panels / Cards
------------------------- */
.panel{
  border:1px solid var(--border);
  background:
    radial-gradient(1000px 360px at 20% 0%, rgba(193,18,31,.18), transparent 55%),
    radial-gradient(900px 420px at 85% 10%, rgba(212,175,55,.10), transparent 55%),
    var(--panel);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}

.panel.float{
  width:min(var(--max), calc(100% - 32px));
  margin:16px auto 0;
  padding:16px;
}

.card{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:14px;
}
.card p{color:var(--muted)}
.card .meta{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.card .actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

/* -------------------------
   IMPORTANT: Banner removal / image sizing
   This prevents "big ass banners" everywhere.
------------------------- */
.card img,
.panel img{
  width:100%;
  height:auto;            /* no forced tall banners */
  max-height:220px;       /* cap for safety */
  object-fit:cover;
  object-position:center;
  border-radius:14px;
}

/* If any image must be full-width but still not huge */
.heroImg,
.bannerImg{
  max-height:260px;
  object-fit:cover;
  border-radius:14px;
}

/* -------------------------
   Grids
------------------------- */
.grid{display:grid; gap:14px}
.grid2{display:grid; gap:14px; grid-template-columns:repeat(2, minmax(0,1fr))}
.grid3{display:grid; gap:14px; grid-template-columns:repeat(3, minmax(0,1fr))}

@media (max-width:900px){
  .grid2, .grid3{grid-template-columns:1fr}
  .brand{min-width:auto}
}

/* Split blocks */
.split{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
@media (max-width:900px){
  .split{grid-template-columns:1fr}
}
.list{
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  border-radius:var(--r);
  padding:14px;
}

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  color:var(--muted);
  font-size:.85rem;
}

/* -------------------------
   Buttons / CTAs
------------------------- */
.ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.22);
  background:rgba(0,0,0,.20);
  color:#fff;
  font-weight:800;
  letter-spacing:.1px;
}
.btn:hover{
  border-color:rgba(212,175,55,.55);
  background:rgba(212,175,55,.10);
}

.btn.primary{
  border-color:rgba(193,18,31,.55);
  background:rgba(193,18,31,.18);
}
.btn.primary:hover{
  border-color:rgba(212,175,55,.60);
  background:rgba(212,175,55,.12);
}

/* Badge */
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(193,18,31,.55);
  background:rgba(193,18,31,.14);
  color:#fff;
  font-size:.85rem;
  font-weight:800;
}

/* Bullets */
.bullets{
  margin:10px 0 0 18px;
  color:var(--muted);
}
.bullets li{margin:8px 0}

/* -------------------------
   Forms
------------------------- */
.formRow{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  align-items:center;
  margin-top:10px;
}
@media (max-width:900px){
  .formRow{grid-template-columns:1fr}
}

.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
.input::placeholder{color:rgba(247,243,233,.45)}
.input:focus{
  border-color:rgba(212,175,55,.55);
  box-shadow:0 0 0 4px rgba(212,175,55,.10);
}

.note{
  margin-top:10px;
  font-size:.88rem;
  color:var(--muted2);
}

/* -------------------------
   AdSense slots (CLS-safe)
------------------------- */
.adSlot{
  margin-top:16px;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
  padding:12px;
}
.adSlot ins.adsbygoogle{
  min-height:90px; /* stability */
}

/* -------------------------
   Footer
------------------------- */
.footer{
  border-top:1px solid var(--border);
  padding:22px 0;
  margin-top:18px;
  background:rgba(0,0,0,.20);
}
.footgrid{
  display:grid;
  gap:14px;
  grid-template-columns:1.2fr .8fr;
  align-items:start;
}
@media (max-width:900px){
  .footgrid{grid-template-columns:1fr}
}
.footlinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
@media (max-width:900px){
  .footlinks{justify-content:flex-start}
}
.footlinks a{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
}
.footlinks a:hover{
  border-color:rgba(212,175,55,.22);
  color:var(--text);
}

/* -------------------------
   Utility
------------------------- */
.hidden{display:none !important}

