/* ============================================================
   DWACI: Divine Word Apostolic Church International
   Shared stylesheet for the front site and the Institute
   Palette: green #3C6246 · olive #313122 · peach #EBC094
            cream #FAF6E8 · white · border #EEE6DB
   Fonts:   Hedvig Letters Serif (headings) · Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:opsz@12..24&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green: #3C6246;
  --green-dark: #2C4A34;
  --olive: #313122;
  --peach: #EBC094;
  --peach-dark: #DFA96F;
  --cream: #FAF6E8;
  --cream-alt: #F0F0DE;
  --sand: #EFDFCE;
  --taupe: #9E8D7B;
  --text: #3D4343;
  --muted: #777C7B;
  --border: #EEE6DB;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(49, 49, 34, .10);
  --font-head: "Hedvig Letters Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 400; color: var(--olive); line-height: 1.2; }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { width: min(1176px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font-body);
}
.btn-peach { background: var(--peach); color: var(--olive); }
.btn-peach:hover { background: var(--peach-dark); color: var(--olive); transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn-outline:hover { background: var(--olive); color: var(--cream); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: var(--cream); color: var(--olive); }
.btn-sm { padding: 9px 20px; font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--peach);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 20px;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-head); font-size: 20px; color: var(--olive); line-height: 1.1; white-space: nowrap; }
.brand-tag { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.main-nav a, .main-nav .btn { white-space: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--olive); border-radius: 8px;
}
.main-nav a:hover, .main-nav li.active > a { color: var(--green); background: var(--cream-alt); }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; display: block;
}
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown li { display: block; }
.main-nav .dropdown a { padding: 10px 14px; border-radius: 8px; }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--olive); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: grid; place-items: center; text-align: center;
  color: var(--cream); overflow: hidden;
  isolation: isolate;
}
.hero-slide {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(49,49,34,.55) 0%, rgba(60,98,70,.65) 100%);
}
.hero-content { padding: 120px 20px; max-width: 860px; }
.hero-kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--peach); margin-bottom: 18px; font-weight: 600; }
.hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 72px); margin-bottom: 10px; }
.hero .hero-sub { font-family: var(--font-head); font-style: italic; font-size: clamp(20px, 3vw, 30px); color: var(--peach); margin-bottom: 22px; }
.hero p { font-size: 18px; max-width: 560px; margin: 0 auto 34px; color: rgba(250,246,232,.92); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(250,246,232,.45); transition: .25s; padding: 0;
}
.hero-dots button.active { background: var(--peach); width: 26px; border-radius: 6px; }

/* ---------- Countdown strip ---------- */
.countdown-strip { background: var(--olive); color: var(--cream); padding: 34px 0; }
.countdown-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.countdown-label h3 { color: var(--cream); font-size: 26px; }
.countdown-label span { color: var(--peach); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.countdown { display: flex; gap: 14px; }
.count-box { text-align: center; background: rgba(250,246,232,.08); border: 1px solid rgba(235,192,148,.35); border-radius: 12px; padding: 12px 18px; min-width: 84px; }
.count-box b { display: block; font-family: var(--font-head); font-size: 32px; color: var(--peach); }
.count-box small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,246,232,.75); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-alt); }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sand); color: var(--green);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .time { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* Photo schedule cards (service name + time over a photo) */
.photo-card {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center;
  isolation: isolate; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(49,49,34,.05) 35%, rgba(49,49,34,.78) 100%);
  transition: background .3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.photo-card .pc-body { padding: 26px 18px 30px; width: 100%; }
.photo-card h3 { color: var(--white); font-size: 27px; margin-bottom: 6px; }
.photo-card .time { color: rgba(250,246,232,.92); font-size: 14.5px; letter-spacing: .06em; font-weight: 600; }
.photo-card .pc-note { color: var(--peach); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; display: block; }

.card-img { overflow: hidden; padding: 0; }
.card-img .thumb { height: 210px; background-size: cover; background-position: center; transition: transform .4s ease; }
.card-img:hover .thumb { transform: scale(1.05); }
.card-img .card-body { padding: 26px 26px 30px; }
.card-img .meta { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split-img .frame { height: 460px; background-size: cover; background-position: center; }
.split-img .badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--peach); color: var(--olive); border-radius: 12px;
  padding: 14px 20px; font-family: var(--font-head); font-size: 18px;
}
.split-text h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 20px; }
.split-text p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Quote banner ---------- */
.quote-banner {
  background: var(--green); color: var(--cream);
  text-align: center; padding: 90px 20px;
  position: relative; overflow: hidden;
}
.quote-banner::before {
  content: "\201C"; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 340px; color: rgba(235,192,148,.14); line-height: 1;
}
.quote-banner blockquote { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 38px); max-width: 820px; margin: 0 auto 18px; position: relative; }
.quote-banner cite { color: var(--peach); font-style: normal; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }

/* ---------- Sermon rows ---------- */
.sermon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 28px; margin-bottom: 14px; transition: .25s;
}
.sermon-row:hover { box-shadow: var(--shadow); transform: translateX(6px); }
.sermon-row .s-info h3 { font-size: 19px; }
.sermon-row .s-info span { color: var(--muted); font-size: 13.5px; }
.sermon-row .s-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--olive); border-radius: 24px; color: var(--cream);
  padding: 70px 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-panel h2 { color: var(--cream); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-panel p { color: rgba(250,246,232,.8); }
.cta-panel .cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: rgba(250,246,232,.82); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 44px; padding: 70px 0 50px; }
.site-footer h4 { color: var(--peach); font-size: 17px; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a { color: rgba(250,246,232,.82); }
.site-footer a:hover { color: var(--peach); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { font-size: 14px; margin-top: 14px; color: rgba(250,246,232,.65); }
.newsletter-form { display: flex; gap: 10px; margin-top: 14px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(235,192,148,.4);
  background: rgba(250,246,232,.08); color: var(--cream); font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(250,246,232,.5); }
.footer-bottom { border-top: 1px solid rgba(250,246,232,.15); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(250,246,232,.55); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(235,192,148,.4); color: var(--peach); font-size: 15px;
}
.socials a:hover { background: var(--peach); color: var(--olive); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(49,49,34,.62), rgba(60,98,70,.72)), var(--olive) center/cover no-repeat;
  color: var(--cream); text-align: center; padding: 110px 20px 90px;
}
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.page-hero p { color: rgba(250,246,232,.85); max-width: 620px; margin: 0 auto; }
.page-hero .crumbs { margin-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--cream); font-family: var(--font-body); font-size: 15px; color: var(--text);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check-row input { margin-top: 4px; }

.fieldset-title { font-family: var(--font-head); font-size: 24px; color: var(--olive); margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--sand); }
.fieldset-title:first-child { margin-top: 0; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #E4EFE4; color: #2C4A34; border: 1px solid #BFD8BF; }
.alert-error { background: #F7E3DD; color: #7A2E1D; border: 1px solid #E8C0B4; }
.alert-info { background: var(--sand); color: var(--olive); border: 1px solid var(--border); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-green { background: #E4EFE4; color: var(--green-dark); }
.badge-peach { background: var(--sand); color: #8A5A2B; }
.badge-gray { background: var(--cream-alt); color: var(--muted); }
.badge-red { background: #F7E3DD; color: #7A2E1D; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th { text-align: left; padding: 14px 18px; background: var(--cream-alt); color: var(--olive); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
table.data td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: middle; }
table.data tr:hover td { background: var(--cream); }

/* ---------- LMS layout ---------- */
.lms-shell { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding: 44px 0 90px; }
.lms-side { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 96px; }
.lms-side a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--olive); margin-bottom: 4px; }
.lms-side a:hover, .lms-side a.active { background: var(--cream-alt); color: var(--green); }
.lms-side .side-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); padding: 12px 14px 6px; }
.lms-main h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.lms-main .sub { color: var(--muted); margin-bottom: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 34px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--green); }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.lesson-item { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; transition: .2s; }
.lesson-item:hover { box-shadow: var(--shadow); }
.lesson-item .num { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--green); display: grid; place-items: center; font-family: var(--font-head); flex-shrink: 0; }
.lesson-item .grow { flex: 1; }
.lesson-item h4 { font-size: 17px; }
.lesson-item small { color: var(--muted); }

.discussion-post { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.discussion-post .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--peach); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.who b { display: block; font-size: 15px; color: var(--olive); }
.who small { color: var(--muted); font-size: 12.5px; }
.reply-list { margin-top: 16px; padding-left: 24px; border-left: 3px solid var(--sand); }

.prose { max-width: 760px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--text); }
.prose h2, .prose h3 { margin: 28px 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; text-align: center; padding: 50px 32px; }
  .cta-panel .cta-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .lms-shell { grid-template-columns: 1fr; }
  .lms-side { position: static; }
}
/* Menu becomes a hamburger below 1120px so labels never get squeezed onto two lines */
@media (max-width: 1120px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border); padding: 12px 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 18px; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 8px 0 0; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .countdown-inner { justify-content: center; text-align: center; }
  .form-card { padding: 26px 20px; }
  .hero-content { padding: 90px 16px; }
}

/* ---------- Institute front page: open-Bible photo header ---------- */
/* The photo is dark at the top (room for the title) with the Bible lit along the bottom. */
.page-hero--bible {
  background-color: #061722;
  background-image: url('../img/bible-hero.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(100%, 1700px) auto;
  min-height: clamp(560px, 46vw + 40px, 700px);
  padding: 84px 20px 330px;
}
.page-hero--bible h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.page-hero--bible p { text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
/* On very wide screens the photo stops at 1700px, so its side edges fade into the background colour */
@media (min-width: 1701px) {
  .page-hero--bible {
    background-image: linear-gradient(90deg, #061722 0, rgba(6, 23, 34, 0) 9%, rgba(6, 23, 34, 0) 91%, #061722 100%), url('../img/bible-hero.jpg');
    background-size: min(100%, 1700px) 100%, min(100%, 1700px) auto;
  }
}
/* Phones: show the middle of the photo, larger, rather than a tiny whole book */
@media (max-width: 760px) {
  .page-hero--bible { background-size: auto 430px; min-height: 560px; padding: 60px 18px 250px; }
}

/* ---------- Dashboard welcome panel (text edited under Admin > Welcome Page) ---------- */
.welcome-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; margin-bottom: 34px; box-shadow: var(--shadow); }
.welcome-card > h2 { font-size: 28px; margin-bottom: 14px; }
.welcome-content { position: relative; max-height: 340px; overflow: hidden; transition: max-height .3s ease; }
.welcome-content.open { max-height: none; }
.welcome-content:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.welcome-content h2 { font-size: 25px; margin: 26px 0 10px; }
.welcome-content h3 { font-size: 21px; margin: 22px 0 8px; }
.welcome-content h4 { font-size: 18px; margin: 18px 0 6px; }
.welcome-content > :first-child { margin-top: 0; }
.welcome-content p { margin-bottom: 14px; }
.welcome-content ul { margin: 0 0 16px 22px; }
.welcome-content li { margin-bottom: 6px; }
.welcome-content .wc-img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.welcome-content a { text-decoration: underline; }
@media (max-width: 760px) { .welcome-card { padding: 22px 20px; } }

/* ---------- Admin: simple, compact lists and panels ---------- */
.simple-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.simple-head h1 { font-size: 30px; margin: 0 0 2px; }
.simple-head p { margin: 0; color: var(--muted); font-size: 14px; }
.simple-panel { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 22px; }
.simple-panel h2 { font-size: 19px; margin-bottom: 14px; }
.simple-panel .form-grid { gap: 12px 16px; }
.simple-panel label { font-size: 11px; margin-bottom: 5px; }
.simple-panel input[type=text], .simple-panel select, .simple-panel textarea { padding: 9px 12px; font-size: 14px; }
.inline-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; margin: 0 0 8px; cursor: pointer; }
.inline-check input { width: auto; margin: 0; }
table.simple-list { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.simple-list th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); padding: 10px 14px; background: var(--cream-alt); }
table.simple-list td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
table.simple-list tr:hover td { background: var(--cream); }
table.simple-list .num { text-align: right; width: 80px; }
table.simple-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
table.simple-list .warn { color: #9A3B26; }
table.simple-list tr.is-hidden td { opacity: .65; }
table.simple-list .acts { text-align: right; white-space: nowrap; }
table.simple-list .acts a, table.simple-list .acts button { font-size: 13.5px; margin-left: 14px; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-body); color: var(--green); }
table.simple-list .acts form { display: inline; }
table.simple-list .acts .danger { color: #9A3B26; font-weight: 500; }
.cotutor-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.cotutor-pick label { display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; margin: 0; cursor: pointer; }
.cotutor-pick input { width: auto; margin: 0; }
@media (max-width: 760px) { table.simple-list th:nth-child(2), table.simple-list td:nth-child(2) { display: none; } }

/* ---------- Tutor page: posted announcements ---------- */
.ann-row { display: flex; justify-content: space-between; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.ann-main { min-width: 0; flex: 1; }
.ann-main b { font-size: 15px; }
.ann-main small { display: block; color: var(--muted); font-size: 12.5px; }
.ann-main p { margin: 4px 0 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.ann-acts { display: flex; align-items: flex-start; gap: 14px; white-space: nowrap; }
.ann-acts summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--green); list-style: none; }
.ann-acts summary::-webkit-details-marker { display: none; }
.ann-acts .danger { background: none; border: none; color: #9A3B26; font-size: 13.5px; cursor: pointer; padding: 0; font-family: var(--font-body); }
.ann-acts form { display: inline; }
.ann-acts details[open] { position: relative; }
.ann-edit { display: block !important; white-space: normal; position: absolute; right: 0; top: 24px; z-index: 5; width: min(420px, 80vw); background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.ann-edit input[type=text], .ann-edit textarea { margin-bottom: 8px; padding: 9px 12px; font-size: 14px; }
.ann-edit textarea { min-height: 110px; }
.ann-edit small { display: block; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .ann-row { flex-direction: column; } .ann-edit { position: static; width: 100%; margin-top: 8px; } }

/* ---------- Admin: Courses list ---------- */
.crs-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.crs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.crs-chip b { color: var(--olive); font-size: 14px; }
.crs-chip-alert { background: #FFF1DC; border-color: var(--peach); color: #8A5A2B; font-weight: 600; }
.crs-chip-alert b { color: #8A5A2B; }
.crs-tools { margin: 0 0 14px; }
.crs-search { width: 100%; max-width: 380px; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239E8D7B' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center; }
.crs-list { display: flex; flex-direction: column; gap: 10px; }
.crs-row { display: grid; grid-template-columns: 50px minmax(0, 1.6fr) minmax(0, 1.2fr) 76px auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 12px; padding: 12px 18px 12px 14px; transition: box-shadow .18s ease, transform .18s ease; }
.crs-row:hover { box-shadow: 0 8px 22px rgba(49, 49, 34, .09); transform: translateY(-1px); }
.crs-row.is-hidden { border-left-color: var(--taupe); }
.crs-row.is-hidden .crs-num, .crs-row.is-hidden .crs-main { opacity: .6; }
.crs-row.no-tutor { border-left-color: #C0553B; }
.crs-num { width: 48px; height: 48px; border-radius: 12px; background: var(--sand); color: var(--green-dark); display: grid; place-items: center; font-family: var(--font-head); font-size: 17px; }
.crs-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.crs-title a:first-child { font-weight: 700; font-size: 15.5px; color: var(--olive); }
.crs-title a:first-child:hover { color: var(--green); }
.crs-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: pre-wrap; }
.crs-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crs-avatars { display: flex; flex-shrink: 0; }
.crs-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--green); color: var(--peach); border: 2px solid var(--white); margin-left: -9px; }
.crs-av:first-child { margin-left: 0; }
.crs-av.alt { background: var(--peach); color: var(--olive); }
.crs-teamtext { min-width: 0; line-height: 1.3; }
.crs-lead { display: block; font-size: 14px; font-weight: 600; color: var(--olive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crs-teamtext small { color: var(--muted); font-size: 12px; }
.crs-notutor { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #F7E3DD; color: #7A2E1D; font-size: 12.5px; font-weight: 600; }
.crs-count { text-align: center; line-height: 1.15; }
.crs-count b { display: block; font-family: var(--font-head); font-size: 22px; color: var(--green); font-weight: 400; }
.crs-count small { font-size: 11.5px; color: var(--muted); }
.crs-acts { display: flex; align-items: center; gap: 14px; justify-content: flex-end; white-space: nowrap; }
.crs-acts form { margin: 0; }
.crs-edit { font-size: 13.5px; font-weight: 600; color: var(--green); }
.crs-edit:hover { text-decoration: underline; }
.crs-del { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: #B98A7C; cursor: pointer; font-family: var(--font-body); }
.crs-del:hover { color: #9A3B26; text-decoration: underline; }
@media (max-width: 1000px) {
  .crs-row { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "num main count" "num team team" "acts acts acts"; row-gap: 10px; }
  .crs-num { grid-area: num; align-self: start; }
  .crs-main { grid-area: main; }
  .crs-count { grid-area: count; }
  .crs-team { grid-area: team; }
  .crs-acts { grid-area: acts; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--border); }
}
/* small buttons (used in lists and the tutor page) */
.btn-xs { padding: 8px 20px; font-size: 11.5px; letter-spacing: .08em; }

/* ---------- Shared list rows (Users, Approvals, Grading, My Grades) ---------- */
[hidden] { display: none !important; }
.lst-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.lst-search-form { flex: 1; min-width: 240px; max-width: 420px; margin: 0; }
.lst-search-form .crs-search { max-width: none; }
.ltabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--cream-alt); border-radius: 999px; flex-wrap: wrap; }
.ltabs button { border: none; background: transparent; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font-body); }
.ltabs button small { margin-left: 4px; font-size: 11.5px; opacity: .8; }
.ltabs button:hover { color: var(--olive); }
.ltabs button.on { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 4px rgba(49, 49, 34, .12); }
.lst { display: flex; flex-direction: column; gap: 10px; }
.lrow { --edge: var(--green); display: grid; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--edge); border-radius: 12px; padding: 12px 18px 12px 14px; transition: box-shadow .18s ease, transform .18s ease; }
.lrow:hover { box-shadow: 0 8px 22px rgba(49, 49, 34, .09); transform: translateY(-1px); }
.lrow.usr { grid-template-columns: 46px minmax(0, 1.5fr) minmax(0, 1fr) 150px auto; }
.lrow.enr { grid-template-columns: 46px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 100px auto; }
.lrow.gra { grid-template-columns: 46px minmax(0, 1.1fr) minmax(0, 1.3fr) 80px 120px auto; }
.lrow.myg { grid-template-columns: minmax(0, 1.6fr) 150px 120px auto; }
.lrow.role-student { --edge: var(--green); }
.lrow.role-tutor { --edge: var(--peach-dark); }
.lrow.role-admin { --edge: var(--olive); }
.lrow.st-pending { --edge: var(--peach-dark); }
.lrow.st-active { --edge: var(--green); }
.lrow.st-declined { --edge: #C0553B; }
.lrow.is-off { --edge: #C0553B; }
.lrow.is-off .lav, .lrow.is-off .lmain { opacity: .55; }
.lav { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--peach); display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex-shrink: 0; }
.lrow.role-tutor .lav { background: var(--peach); color: var(--olive); }
.lrow.role-admin .lav { background: var(--olive); color: var(--peach); }
.lmain { min-width: 0; }
.lname { font-weight: 700; font-size: 15.5px; color: var(--olive); line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lsub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.35; }
.lcourse { font-size: 14px; color: var(--olive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnote { font-size: 13px; color: var(--text); background: var(--cream); border-radius: 8px; padding: 6px 10px; line-height: 1.4; }
.lscore b { font-family: var(--font-head); font-size: 22px; font-weight: 400; color: var(--green); line-height: 1.1; }
.lscore b small { font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.lbar { display: block; height: 6px; border-radius: 99px; background: var(--cream-alt); overflow: hidden; margin: 3px 0 1px; }
.lbar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.lrow.st-declined .lbar i { background: #C0553B; }
.lacts { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; flex-wrap: wrap; }
.lacts form { margin: 0; }
.ltext { background: none; border: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--green); cursor: pointer; font-family: var(--font-body); }
.ltext:hover { text-decoration: underline; }
.ltext.danger { color: #B98A7C; font-weight: 500; }
.ltext.danger:hover { color: #9A3B26; }
.role-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.role-form select { padding: 8px 30px 8px 12px; font-size: 13.5px; border-radius: 999px; width: auto; background-color: var(--cream); }
.rolepill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #E4EFE4; color: var(--green-dark); }
.rolepill.role-tutor { background: var(--sand); color: #8A5A2B; }
.rolepill.role-admin { background: var(--olive); color: var(--peach); }
@media (max-width: 1000px) {
  .lrow.usr { grid-template-columns: 46px minmax(0, 1fr) auto; row-gap: 10px; }
  .lrow.enr, .lrow.gra { grid-template-columns: 46px minmax(0, 1fr) auto; row-gap: 10px; }
  .lrow.usr > .lcell:nth-of-type(1), .lrow.usr > .lcell:nth-of-type(2) { grid-column: 2 / -1; }
  .lrow.enr > .lcell, .lrow.gra > .lcell { grid-column: 2 / -1; }
  .lrow .lacts { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--border); }
  .lrow.myg { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .lrow.myg .lacts { grid-column: 1 / -1; }
}

/* keep status badges on one line in list rows */
.lcell .badge { white-space: nowrap; align-self: flex-start; }
.lrow.gra { grid-template-columns: 46px minmax(0, 1.1fr) minmax(0, 1.3fr) 80px 130px auto; }
