@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

/* ==========================================================
   ICAR CICR - Shibboleth IdP landing page
   Palette built on olive green #697522 with a restrained gold accent. Premium treatment: serif headings, layered
   gradients, soft elevation, restrained orange accents.
   ========================================================== */

:root {
  --green-900: #2f3510;
  --green-800: #4a5318;
  --blue: #697522;            /* primary green (kept as --blue for compatibility) */
  --blue-dark: #556019;
  --navy: #2b3010;            /* deep green for text / headings */
  --orange: #d9a521;
  --orange-d: #b8860b;
  --olive: #dfe5b5;
  --olive-soft: #f1f4dc;
  --cream: #f9faf0;
  --sky: #f4f6e4;
  --pink: #fbf3dc;
  --text: #566048;
  --line: #dde3b4;
  --radius: 16px;
  --wrap: 1120px;
  --shadow-sm: 0 4px 14px rgba(47, 53, 16, .07);
  --shadow-md: 0 14px 34px rgba(47, 53, 16, .12);
  --shadow-lg: 0 26px 60px rgba(47, 53, 16, .22);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14.5px; line-height: 1.7; color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--orange-d); }
.wrap { width: 92%; max-width: var(--wrap); margin: 0 auto; }
section { scroll-margin-top: 90px; }

/* ---------- Top ticker ---------- */
.topbar { height: 34px; line-height: 34px; overflow: hidden; white-space: nowrap; font-size: 12px; letter-spacing: .2px; color: #f1f4d2; background: linear-gradient(90deg, var(--green-900), var(--green-800)); }
.ticker { display: inline-block; padding-left: 100%; animation: tick 40s linear infinite; }
.topbar:hover .ticker { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(47, 53, 16, .08);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), #a8b53a 55%, var(--orange)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 20px; }
.brand img { display: block; height: 80px; width: auto; max-width: 100%; }
.nav { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 9px 18px; font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--navy); text-decoration: none; border-radius: 999px; transition: all .25s; }
.nav a:hover { color: var(--green-800); background: var(--olive-soft); }
.nav .active a { color: #fff; background: linear-gradient(135deg, var(--blue), var(--green-800)); box-shadow: 0 8px 18px rgba(74, 83, 24, .30); }
.nav-toggle { display: none; width: 42px; height: 42px; font-size: 18px; color: var(--green-800); background: var(--olive-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 560px;
  padding: 80px 0 150px;
  background:
    linear-gradient(100deg, rgba(38, 43, 12, .94) 0%, rgba(47, 53, 16, .78) 44%, rgba(74, 83, 24, .14) 100%),
    url("../images/hero.jpg") center right / cover no-repeat,
    url("../images/slides/img1.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 12% 20%, rgba(217, 165, 33, .16), transparent 60%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--blue), #a8b53a 50%, var(--orange)); }
.hero .wrap { position: relative; z-index: 2; width: 92%; }
.hero-text { max-width: 600px; padding-left: 24px; border-left: 4px solid var(--orange); }
.hero h1 { margin: 0 0 16px; font-family: var(--font-head); font-size: 38px; line-height: 1.18; font-weight: 700; letter-spacing: -.2px; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .40); }
.hero p { margin: 0; font-size: 14.5px; line-height: 1.8; color: #eef1d6; text-shadow: 0 1px 8px rgba(0, 0, 0, .40); }

/* ---------- Search card ---------- */
div#onos-finder {
  position: relative; z-index: 5;
  width: 92%; max-width: 620px;
  margin: -78px auto 0;
  padding: 28px 30px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
div#onos-finder h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--navy); }
div#onos-finder p.onos-hint { margin: 0 0 16px; font-size: 12.5px; color: #76806a; }
div#onos-finder form#onos-search-form { display: flex; gap: 10px; margin: 0; }
div#onos-finder input#onos-q { flex: 1; min-width: 0; height: 46px; padding: 0 20px; font: inherit; font-size: 14px; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; transition: all .2s; }
div#onos-finder input#onos-q:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(105, 117, 34, .15); }
div#onos-finder button[type="submit"] { height: 46px; padding: 0 28px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .3px; color: #2b3010; background: linear-gradient(135deg, #e8bc4a, var(--orange-d)); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 20px rgba(217, 165, 33, .35); transition: all .25s; }
div#onos-finder button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(217, 165, 33, .45); }
div#onos-finder p.small { margin: 16px 0 0; font-size: 12px; color: #76806a; }
div#onos-finder p.small a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Sections ---------- */
.section { padding: 74px 0 64px; background: linear-gradient(180deg, var(--cream), var(--olive-soft)); }
.section.alt { background: linear-gradient(180deg, var(--olive-soft), #e3e9b8); border-top: 1px solid var(--line); }
.section h2 { margin: 0; font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.1px; color: var(--navy); }
.section h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--orange), #f0cf6e); border-radius: 4px; }

/* ---------- Accordion ---------- */
.collapsible { display: flex; align-items: center; gap: 16px; width: 100%; padding: 15px 22px; font: inherit; text-align: left; color: #fff; background: linear-gradient(135deg, var(--green-800), var(--blue)); border: 0; border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-md); transition: all .25s; }
.collapsible:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.collapsible .ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; font-size: 17px; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; }
.collapsible b { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: .6px; }
.collapsible .fa-chevron-down { float: none !important; font-size: 12px; color: #fff; transition: transform .25s; }
.collapsible.active { color: var(--navy); background: #fff; border: 1px solid var(--line); border-bottom-color: var(--line); border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; transform: none; }
.collapsible.active .ico { color: var(--green-800); background: var(--olive-soft); border-color: var(--line); }
.collapsible.active .fa-chevron-down { color: var(--navy); transform: rotate(180deg); }

.content { display: none; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.content.open { display: block; }
.collapsible b .count { margin-left: 12px; padding: 3px 11px; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #2b3010; background: var(--orange); border-radius: 999px; }
.collapsible.active b .count { color: #2b3010; background: var(--orange); }

.jfilter { position: relative; margin-bottom: 16px; }
.jfilter .fa { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--green-800); }
.jfilter input { width: 100%; height: 46px; padding: 0 18px 0 44px; font: inherit; font-size: 13.5px; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; transition: all .2s; }
.jfilter input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(105, 117, 34, .13); }

.jgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-height: 500px; padding-right: 8px; overflow-y: auto; align-items: start; }
.jgrid::-webkit-scrollbar { width: 8px; }
.jgrid::-webkit-scrollbar-thumb { background: #b5c06a; border-radius: 8px; }
.content .list-group-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  min-height: 64px; margin: 0; padding: 12px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.35;
  color: var(--navy); text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 12px;
  transition: all .22s;
}
.content .list-group-item .av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--green-800)); border-radius: 10px; transition: all .22s; }
.content .list-group-item .lbl { flex: 1; min-width: 0; }
.content .list-group-item:hover { border-color: var(--line); border-left-color: var(--orange); background: #fffdf8; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.content .list-group-item:hover .av { background: linear-gradient(135deg, #e8bc4a, var(--orange-d)); color: #2b3010; }
.steps-toggle { flex-basis: 100%; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--blue); border-top: 1px dotted var(--line); cursor: pointer; }
.steps-toggle::before { content: "\25B8"; display: inline-block; margin-right: 6px; transition: transform .2s; }
.steps-toggle.on::before { transform: rotate(90deg); }
.tooltip-text { display: none; flex-basis: 100%; font-size: 12px; font-weight: 400; line-height: 1.55; color: var(--text); }
.tooltip-text.show { display: block; }
.tooltip-text br + br { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.card { padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 4px 0; font-size: 13.5px; word-break: break-word; }
.card .fa { width: 24px; font-size: 13px; color: var(--blue); }
.card li:first-child { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; color: var(--navy); }
.notice { margin-top: 24px; padding: 14px 20px; font-size: 12.5px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; box-shadow: var(--shadow-sm); }
.site-footer { height: 14px; background: linear-gradient(90deg, var(--green-900), var(--green-800)); border-top: 3px solid var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .jgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .jgrid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 10px 4%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .brand img { height: 60px; width: auto; }
  .hero { min-height: 0; padding: 56px 0 120px; background-position: center, 70% center, center; }
  .hero h1 { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0 48px; }
}
@media (max-width: 560px) {
  .jgrid { grid-template-columns: 1fr; }
  div#onos-finder form#onos-search-form { flex-direction: column; }
  div#onos-finder button[type="submit"] { width: 100%; }
}
