/* ==========================================================
   Jersey College Helpdesk Theme — Hero band & header fixes (v6)
   ========================================================== */

/* ---- Tokens ---- */
:root{
  --jc-bg:#f6f2ea;              /* warm page background */
  --jc-surface:#ffffff;
  --jc-primary:#7b1f2b;         /* maroon */
  --jc-primary-700:#671a24;
  --jc-accent:#d59f0f;          /* gold */
  --jc-accent-700:#b3880c;
  --jc-ink:#1e1e1e;
  --jc-muted:#5b616e;
  --jc-border:#e6e2db;
  --jc-card-border:#e8e5de;
  --jc-radius:12px;
  --jc-shadow:0 1px 2px rgba(0,0,0,.06),0 10px 30px rgba(0,0,0,.06);
  --jc-font:system-ui,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  --jc-serif:ui-serif,Georgia,"Times New Roman",serif;
}

/* ---- Base ---- */
html,body{height:100%}
body{
  font-family:var(--jc-font);
  color:var(--jc-ink);
  background:var(--jc-bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:var(--jc-primary);text-decoration:none}
a:hover{text-decoration:underline}
#container{background:var(--jc-surface);box-shadow:var(--jc-shadow);overflow-x:hidden}
#content{padding:0}

/* ==========================================================
   HEADER (white bar with logo left, utilities right)
   ========================================================== */
#header{
  background:#fff !important;
  border-bottom:1px solid var(--jc-border) !important;
  padding:12px 18px !important;
  position:relative;
  min-height:64px; /* prevents clipping of Sign In */
}
#header::after{content:"";display:block;clear:both}

/* Hide any text node fallback inside #logo to prevent "SUPPORT CENTER" text */
#logo{float:left; font-size:0; line-height:0;}
#logo img{height:44px;width:auto;display:block; font-size:initial; line-height:normal;}

/* Right utilities (Guest User | Sign In) */
#header .pull-right.flush-right{
  float:right; margin:0; padding:2px 0 0 0;
  color:#4a4a4a;
  max-width:calc(100% - 220px);
  font-size:14px;
}
#header .pull-right.flush-right p{margin:0;line-height:1.2}
#header .pull-right.flush-right a{color:#4a4a4a !important;font-weight:600}

/* Kill any stray top-level headings above the landing page */
#content > h1,
#content > .header,
#content > .title { display:none !important; }

/* ==========================================================
   TOP NAV (pill row, sits under header)
   ========================================================== */
#nav{
  clear:both;                /* sit below header */
  display:flex; flex-wrap:wrap; gap:.5rem;
  justify-content:center;
  background:#fff !important;
  border-bottom:1px solid var(--jc-border) !important;
  padding:.6rem 0 !important; margin:0;
}
#nav li{list-style:none;margin:0;padding:0}
#nav li a{
  display:inline-block;
  color:#222 !important;
  font-weight:600;
  border-radius:999px;                 /* pill look */
  padding:.5rem .85rem;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-decoration:none;
  line-height:1.25;
}
#nav li a:hover,#nav li a.active{
  background:#f3efe9 !important; color:#111 !important;
}
/* remove legacy icon sprites / pseudo elements that show as boxes */
#nav li a:before,#nav li a:after,#nav li a i,
#nav li a span[class^="icon"],#nav li a span[class*=" icon"]{
  display:none !important; content:none !important;
}

/* ==========================================================
   HERO BAND — use a controlled ::before band (no bleed)
   ========================================================== */
#landing_page{
  position:relative;
  background:transparent;    /* keep page light */
  color:inherit;
  padding-top:0;
}

/* Maroon band ONLY behind the hero area (no full-page bleed) */
#landing_page::before{
  content:"";
  position:absolute;
  left:50%; transform:translateX(-50%);
  top:0; width:100vw; height:280px;   /* height of the hero band */
  background:var(--jc-primary);
  z-index:1;
}

/* Keep hero content above the band and centered */
#landing_page .thread-body,
#landing_page .search-form { position:relative; z-index:2 }

/* Title + intro copy inside hero */
#landing_page h1{
  font-family:var(--jc-serif);
  font-size:clamp(28px,3.5vw,48px);
  line-height:1.15;
  color:#fff !important;
  margin:28px auto 10px;
  max-width:900px;
  text-align:center;
}
#landing_page .thread-body p{
  color:#fff; opacity:.98;
  margin:0 auto 16px;
  max-width:900px; text-align:center;
}

/* Search pill (centered) */
#landing_page .search-form{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
  margin:0 auto; max-width:720px; padding:0 18px 24px;
}
#landing_page .search-form .search,
#landing_page .search-form input[type="text"]{
  flex:1; min-width:0;
  background:#fff; color:#111;
  border:1px solid transparent;
  border-radius:12px; padding:.9rem 1rem;
  box-shadow:var(--jc-shadow);
}
#landing_page .search-form .button,
#landing_page .search-form button{
  background:var(--jc-accent) !important; color:#212121 !important;
  border:0; border-radius:12px; padding:.9rem 1.1rem;
  font-weight:700; box-shadow:var(--jc-shadow);
}
#landing_page .search-form .button:hover,
#landing_page .search-form button:hover{
  background:var(--jc-accent-700) !important;
}

/* Remove the big empty white panel sometimes rendered under the search */
#landing_page .thread-body { background:transparent; border:0; box-shadow:none; }
#landing_page .thread-body:empty { display:none; }

/* Hide the sidebar inside hero space to avoid collision */
#landing_page .sidebar{display:none}
#landing_page .main-content{margin-right:0;padding:0}

/* ==========================================================
   CONTENT BELOW HERO (featured articles, CTAs)
   ========================================================== */

/* Immediately after #landing_page comes a wrapper with Featured */
#landing_page + div{ background:var(--jc-bg); }
#landing_page + div > h1{
  color:#222; margin:28px auto 12px; padding:0 18px; max-width:1100px;
}

/* Featured groups → cards */
#landing_page + div .featured-category.front-page{
  background:#fff; border:1px solid var(--jc-card-border);
  border-radius:12px; padding:16px; margin:0 18px 16px;
  box-shadow:var(--jc-shadow);
}
#landing_page + div .featured-category.front-page .category-name{
  color:var(--jc-primary); font-weight:800; margin-bottom:6px;
}

/* Sidebar CTAs (when they appear lower on the page) */
.front-page-button{width:100%}
.front-page-button .button{
  display:inline-block; width:100%; box-sizing:border-box;
  border:0; border-radius:10px; font-weight:700;
  text-align:center; padding:.85rem 1rem; white-space:normal;
  margin-bottom:.5rem;
}
.front-page-button .button.blue{
  background:var(--jc-accent) !important; color:#212121 !important;
}
.front-page-button .button.blue:hover{background:var(--jc-accent-700) !important}
.front-page-button .button.green{
  background:var(--jc-primary) !important; color:#fff !important;
}
.front-page-button .button.green:hover{background:var(--jc-primary-700) !important}

/* Keep any later sidebar narrow */
.sidebar{max-width:340px;width:100%}
.main-content{box-sizing:border-box}

/* ==========================================================
   FOOTER (dark)
   ========================================================== */
#footer{
  background:#0e0e0f; color:#e9e9ea;
  text-align:center; padding:18px; border-top:0;
}
#footer a{color:#e9e9ea}
#poweredBy{opacity:.85}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:1024px){
  #header{padding:10px 14px !important}
}
@media (max-width:980px){
  .sidebar,.main-content{float:none !important;width:auto !important;margin:0 !important}
  #nav{justify-content:flex-start; padding:.4rem 12px !important}
}
@media (max-width:700px){
  #logo, #header .pull-right.flush-right{float:none}
  #header .pull-right.flush-right{max-width:100%; margin-top:6px}
  #landing_page::before{height:320px}  /* a touch taller on mobile */
}
/* ===== JC FINAL HOTFIX (v7) ===== */

/* 1) Kill fallback “SUPPORT CENTER” text in logo area */
#logo { font-size:0 !important; line-height:0 !important; position:relative; }
#logo:before, #logo:after { content:none !important; display:none !important; }
#logo .valign-helper { display:none !important; }
#logo img { display:block; height:44px; width:auto; font-size:initial; line-height:normal; }

/* 2) Search pill & button — perfect vertical alignment and sizing */
#landing_page .search-form {
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  justify-content:center !important;
}
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  height:48px !important;
  padding:.75rem 1rem !important;
  border-radius:12px !important;
  box-shadow:var(--jc-shadow) !important;
}
#landing_page .search-form .button,
#landing_page .search-form button {
  height:48px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 16px !important;
  border-radius:12px !important;
  background:var(--jc-accent) !important;
  color:#212121 !important;
  border:0 !important;
}

/* 3) Remove the big white panel under the search (landing copy block) */
#landing_page .thread-body {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 auto !important;
  max-width:900px !important;
  min-height:0 !important;
}
#landing_page .thread-body:empty { display:none !important; }

/* Keep hero band height tidy (adjust if needed) */
#landing_page::before { height:280px !important; }

/* Ensure the nav never overlaps the hero and utilities are visible */
#header::after { content:""; display:block; clear:both; }
#nav { clear:both !important; }
/* ===== JC HOTFIX v8 ===== */

/* Kill any leftover fallback text in the logo area */
#logo { font-size:0 !important; line-height:0 !important; position:relative; }
#logo:before, #logo:after, #logo .valign-helper { display:none !important; content:none !important; }
#logo img { display:block; height:44px; width:auto; font-size:initial; line-height:normal; }

/* Make sure nav never overlaps hero and utilities are visible */
#header::after { content:""; display:block; clear:both; }
#nav { clear:both !important; }

/* Align search pill + gold button perfectly */
#landing_page .search-form {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin-top:6px !important;
}
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  height:48px !important;
  padding:.75rem 1rem !important;
  border-radius:12px !important;
  box-shadow:var(--jc-shadow) !important;
}
#landing_page .search-form .button,
#landing_page .search-form button {
  height:48px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 16px !important;
  border-radius:12px !important;
  background:var(--jc-accent) !important;
  color:#212121 !important;
  border:0 !important;
}

/* Reduce the hero band height slightly so it doesn't feel cramped at the top */
#landing_page::before { height:260px !important; }

/* Remove the BIG white gap under the hero:
   - the .clear right after #landing_page
   - margins/padding on the next wrapper */
#landing_page + .clear { display:none !important; height:0 !important; margin:0 !important; padding:0 !important; }
#landing_page + div { margin-top:0 !important; padding-top:12px !important; background:var(--jc-bg) !important; }

/* Ensure the landing content inside the hero doesn't add extra space */
#landing_page .main-content { margin:0 !important; padding:0 !important; }
#landing_page .thread-body { margin:0 auto 0 !important; padding:0 !important; max-width:900px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
#landing_page .thread-body:empty { display:none !important; }
/* ===== JC HERO HEIGHT FIX (v9) ===== */

/* Allow hero content to extend; ensure nothing clips */
#landing_page { overflow: visible !important; }

/* Make the maroon band tall enough for H1 + paragraph */
#landing_page::before {
  height: 420px !important;   /* desktop */
}

/* Comfortable spacing for hero text */
#landing_page h1 { margin-top: 36px !important; }
#landing_page .thread-body p {
  margin: 10px auto 24px !important;
  max-width: 900px !important;
  color: #fff !important;
}

/* Keep the section below snug to the hero */
#landing_page + .clear { display: none !important; height: 0 !important; }
#landing_page + div { margin-top: 0 !important; }

/* Scale the band height on narrower screens where lines wrap more */
@media (max-width: 1100px) {
  #landing_page::before { height: 480px !important; }
}
@media (max-width: 900px) {
  #landing_page::before { height: 520px !important; }
}
@media (max-width: 720px) {
  #landing_page::before { height: 560px !important; }
}
/* ===== JC HEADER LOGO CENTER FIX ===== */

/* Remove float and center the logo */
#logo {
  float: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 8px !important;
  text-align: center !important;
}

/* Make sure logo image stays centered and scales nicely */
#logo img {
  display: inline-block !important;
  height: 48px !important;
  width: auto !important;
  margin: 0 auto !important;
}

/* Center the nav directly beneath */
#nav {
  justify-content: center !important;
  text-align: center !important;
}
/* ===== JC BRAND HEADING STYLE (v10) ===== */

/* Hero H1 – Jersey College Support Center */
#landing_page h1 {
  font-family: "Georgia", "Times New Roman", serif !important;
  font-size: clamp(36px, 4vw, 56px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.15 !important;
  color: #fff !important;
  text-align: center !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.25); /* subtle depth */
}

/* Sub-paragraph in hero */
#landing_page .thread-body p {
  font-family: "Georgia", "Times New Roman", serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #fdfdfd !important;
  opacity: 0.95 !important;
  text-align: center !important;
  margin: 0 auto 28px !important;
  max-width: 800px !important;
}

/* Adjust hero band for balanced spacing */
#landing_page::before {
  height: 460px !important;
  background: #7b1f2b !important; /* official JC maroon */
}

/* Ensure search pill sits comfortably below heading */
#landing_page .search-form {
  margin-top: 16px !important;
}

/* On smaller screens, scale gracefully */
@media (max-width: 900px) {
  #landing_page h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
  #landing_page .thread-body p {
    font-size: 16px !important;
  }
  #landing_page::before {
    height: 520px !important;
  }
}
/* ===== JC BRANDED SEARCH BAR + BUTTON (v11) ===== */

/* Search input */
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  flex: 1 !important;
  min-width: 0 !important;
  background: #f8f5f1 !important;           /* light cream background */
  color: #1e1e1e !important;
  border: 1px solid #e3dcd0 !important;     /* subtle border tone */
  border-radius: 999px !important;          /* pill shape */
  padding: 0.9rem 1.25rem !important;
  font-size: 1rem !important;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.08),
    0 2px 5px rgba(0,0,0,0.05) !important;
  transition: all 0.2s ease-in-out !important;
}

#landing_page .search-form .search:focus,
#landing_page .search-form input[type="text"]:focus {
  border-color: #c6bba8 !important;
  outline: none !important;
  background: #fcfaf8 !important;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.1),
    0 0 0 3px rgba(213,159,15,0.25) !important;
}

/* Gold Search Button */
#landing_page .search-form .button,
#landing_page .search-form button {
  background: #d59f0f !important;           /* official gold */
  color: #1a1a1a !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 999px !important;
  height: 48px !important;
  padding: 0 28px !important;
  cursor: pointer !important;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.1) !important;
  transition: all 0.2s ease-in-out !important;
}

#landing_page .search-form .button:hover,
#landing_page .search-form button:hover {
  background: #b3880c !important;           /* darker gold on hover */
  box-shadow:
    0 3px 6px rgba(0,0,0,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.15) !important;
}

/* Center & spacing alignment */
#landing_page .search-form {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 18px auto 28px !important;
  max-width: 720px !important;
}

/* Responsive scaling */
@media (max-width: 700px) {
  #landing_page .search-form {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #landing_page .search-form .search,
  #landing_page .search-form button {
    width: 100% !important;
  }
}
/* ===== JC TUNE-UP (v12) ===== */

/* 1) Smaller, tighter hero heading */
#landing_page h1 {
  font-size: clamp(30px, 2.6vw, 40px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.18 !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  text-shadow: none !important;   /* remove heavy shadow */
}

/* 2) Right-size the search pill and button */
#landing_page .search-form {
  gap: 8px !important;
  margin: 10px auto 16px !important;
}
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  height: 42px !important;
  padding: .6rem 1rem !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05) !important;
}
#landing_page .search-form .button,
#landing_page .search-form button {
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 -1px 0 rgba(0,0,0,.08) !important;
}

/* 3) Make the maroon band shorter so Featured heading shows */
#landing_page::before {
  height: 260px !important;    /* was taller; shorten so next section is visible */
}

/* 4) Ensure the intro paragraph sits fully inside the band */
#landing_page .thread-body p {
  margin: 8px auto 18px !important;
  max-width: 880px !important;
}

/* 5) Bring Featured heading back into view and neutral styling */
#landing_page + div > h1 {
  position: relative !important;
  z-index: 1 !important;
  color: #222 !important;
  text-shadow: none !important;
  margin-top: 16px !important;   /* small buffer below hero */
}

/* 6) Safety: hero container should not clip children */
#landing_page { overflow: visible !important; }

/* 7) Mobile: allow an extra line if H1 wraps */
@media (max-width: 900px) {
  #landing_page::before { height: 300px !important; }
}
@media (max-width: 700px) {
  #landing_page::before { height: 340px !important; }
  #landing_page h1 { font-size: 28px !important; }
}
/* ===== JC VISIBILITY HOTFIX (v13) ===== */

/* Keep the hero text (H1 + paragraph) ABOVE the band and visible */
#landing_page .thread-body,
#landing_page .thread-body p {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
}

/* Make sure the intro paragraph is inside the maroon area and readable */
#landing_page .thread-body p {
  color: #fff !important;            /* visible on maroon */
  margin: 8px auto 18px !important;  /* sits under H1, inside band */
  max-width: 880px !important;
  background: transparent !important;
  text-shadow: none !important;
}

/* Give the maroon band enough height to include the paragraph */
#landing_page::before {
  height: 300px !important;          /* adjust if your H1 wraps more than 2 lines */
}

/* Bring the “Featured Knowledge Base Articles” heading back, on light bg */
#landing_page + div > h1 {
  position: relative !important;
  z-index: 1 !important;
  color: #222 !important;
  text-shadow: none !important;      /* remove white ghosting */
  margin-top: 14px !important;       /* small gap after hero */
}

/* Collapse any spacer that was creating a big white gap */
#landing_page + .clear {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Safety: don't clip hero content */
#landing_page { overflow: visible !important; }

/* If your H1 wraps to 3 lines, let the band grow a bit more */
@media (max-width: 900px) {
  #landing_page::before { height: 330px !important; }
}
@media (max-width: 700px) {
  #landing_page::before { height: 360px !important; }
}
/* ===== JC HOTFIX v14: search size + hero content + featured ===== */

/* 1) Smaller KB search (height + width) */
#landing_page .search-form {
  gap: 8px !important;
  margin: 8px auto 14px !important;
  max-width: 640px !important;             /* whole search row width */
  justify-content: center !important;
  align-items: center !important;
}
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  flex: 0 1 520px !important;               /* max input width */
  height: 40px !important;                  /* shorter */
  padding: .55rem .9rem !important;         /* tighter padding */
  border-radius: 18px !important;           /* less pill-y */
  font-size: .95rem !important;
}
#landing_page .search-form .button,
#landing_page .search-form button {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 18px !important;
  font-size: .95rem !important;
}

/* 2) Make sure the intro paragraph is visible and inside the hero */
#landing_page .thread-body,
#landing_page .thread-body p {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
}
#landing_page .thread-body p {
  color: #fff !important;                   /* readable on maroon */
  margin: 8px auto 16px !important;
  max-width: 880px !important;
  background: transparent !important;
  text-shadow: none !important;
  line-height: 1.5 !important;
}

/* 3) Give the maroon band sufficient height for H1 + paragraph */
#landing_page::before {
  height: 360px !important;                 /* adjust if your H1 wraps more */
}

/* 4) Remove the big white gap; ensure “Featured” shows under hero */
#landing_page + .clear {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#landing_page + div {
  margin-top: 0 !important;
  padding-top: 12px !important;
  background: var(--jc-bg) !important;
}
#landing_page + div > h1 {
  position: relative !important;
  z-index: 1 !important;
  color: #222 !important;
  text-shadow: none !important;
  margin: 14px auto 10px !important;
}

/* 5) Ensure hero doesn’t clip content */
#landing_page { overflow: visible !important; }

/* 6) Slightly reduce hero heading so it fits comfortably */
#landing_page h1 {
  font-size: clamp(28px, 2.4vw, 36px) !important;
  margin-top: 18px !important;
  margin-bottom: 8px !important;
}

@media (max-width: 900px) {
  #landing_page::before { height: 400px !important; }
}
@media (max-width: 700px) {
  #landing_page::before { height: 440px !important; }
  #landing_page .search-form { max-width: 100% !important; }
  #landing_page .search-form .search,
  #landing_page .search-form button { width: 100% !important; }
}
/* ===== JC HOTFIX v15 — shrink search bar & lower position ===== */

/* Search form layout */
#landing_page .search-form {
  gap: 6px !important;
  margin: 20px auto 14px !important;   /* dropped 10px lower than before */
  max-width: 560px !important;         /* narrower overall width */
  justify-content: center !important;
  align-items: center !important;
}

/* Input box */
#landing_page .search-form .search,
#landing_page .search-form input[type="text"] {
  flex: 0 1 420px !important;          /* smaller width */
  height: 36px !important;             /* shorter height */
  padding: .45rem .8rem !important;    /* tighter padding */
  font-size: .9rem !important;
  border-radius: 16px !important;
}

/* Search button */
#landing_page .search-form .button,
#landing_page .search-form button {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: .9rem !important;
  border-radius: 16px !important;
  line-height: 1 !important;
}
