/* ══════════════════════════════════════════════════════
   University of Malta — CMMBrec Site Stylesheet
   Brand colours extracted directly from www.um.edu.mt

   T4 NOTE: In Terminal 4 the global UM stylesheet provides
   the header, navbar, footer and base typography.
   Only the rules under "CONTENT AREA" need to go into
   your T4 custom CSS / content-type stylesheet.
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Segoe UI', Arial, Helvetica, sans-serif; font-size: 15px;
  line-height: 1.6; color: #666; background: #fff; }
a { color: #ba0c2f; text-decoration: none; }
a:hover { text-decoration: underline; color: #8a0922; }
img { max-width: 100%; }

/* ── UM Brand Colours (from live site) ──────────────── */
:root {
  --um-red:        #ba0c2f;   /* rgb(186,12,47)  — primary brand red   */
  --um-red-dark:   #8a0922;   /* hover / darker red                     */
  --um-red-light:  #fbeaed;   /* tinted red background                  */
  --um-grey-dark:  #666666;   /* rgb(102,102,102) — body text           */
  --um-grey-mid:   #999999;   /* secondary text                         */
  --um-grey-light: #f1f1f1;   /* rgb(241,241,241) — sidebar background  */
  --um-border:     #dddddd;   /* borders                                */
  --um-white:      #ffffff;
  --um-green:      #1e7e34;   /* status: approved                       */
  --um-amber:      #d07000;   /* status: borderline                     */
  --um-purple:     #6f42c1;   /* status: UREC-DP                        */
}

/* ══════════════════════════════════════════════════════
   UM HEADER  (T4 template provides this)
   ══════════════════════════════════════════════════════ */
.um-topbar { background: var(--um-red); color: #fff; }
.um-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 6px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.um-topbar a { color: rgba(255,255,255,.85); font-size: 12px; }
.um-topbar a:hover { color: #fff; text-decoration: none; }

.um-navbar { background: #fff; border-bottom: 3px solid var(--um-red);
  box-shadow: 0 2px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.um-navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 0; }
.um-logo-link { display: flex; align-items: center; gap: 10px; padding: 12px 0;
  margin-right: 24px; flex-shrink: 0; }
.um-logo { height: 40px; }
.um-logo-text { font-size: 18px; font-weight: 700; color: var(--um-red);
  letter-spacing: -.3px; line-height: 1.1; }
.um-logo-text span { display: block; font-size: 11px; font-weight: 400;
  color: var(--um-grey-dark); letter-spacing: 0; }

.um-navlinks { display: flex; list-style: none; margin: 0; padding: 0; }
.um-navlinks a { display: block; padding: 16px 14px; font-size: 13px; color: #333;
  border-bottom: 3px solid transparent; margin-bottom: -3px; transition: .15s; }
.um-navlinks a:hover { color: var(--um-red); border-bottom-color: var(--um-red);
  text-decoration: none; }
.um-navlinks a.active { color: var(--um-red); border-bottom-color: var(--um-red);
  font-weight: 600; }

/* ── Page title band ─────────────────────────────────── */
.um-pagetitle { background: var(--um-grey-light); border-bottom: 1px solid var(--um-border);
  padding: 20px 0; }
.um-pagetitle-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.breadcrumb { font-size: 12px; color: var(--um-grey-mid); margin-bottom: 8px; }
.breadcrumb a { color: var(--um-grey-mid); }
.breadcrumb a:hover { color: var(--um-red); }
.breadcrumb .sep { margin: 0 6px; }
.um-pagetitle h1 { font-size: 24px; color: var(--um-grey-dark); font-weight: 700;
  line-height: 1.2; margin-bottom: 4px; }
.um-pagetitle .page-sub { font-size: 14px; color: var(--um-grey-mid); }

/* Red accent bar on hero variant */
.um-pagetitle.hero { background: var(--um-red); border-bottom: none; }
.um-pagetitle.hero .breadcrumb,
.um-pagetitle.hero .breadcrumb a { color: rgba(255,255,255,.7); }
.um-pagetitle.hero h1 { color: #fff; }
.um-pagetitle.hero .page-sub { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════════════════
   CONTENT AREA  (submit these rules to T4)
   ══════════════════════════════════════════════════════ */

/* ── Page layout ────────────────────────────────────── */
.um-page-layout { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px;
  display: flex; gap: 28px; align-items: flex-start; }

/* ── Sidebar ────────────────────────────────────────── */
.um-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 70px; }
.sidebar-nav { background: var(--um-white); border: 1px solid var(--um-border);
  border-top: 3px solid var(--um-red); border-radius: 0 0 4px 4px; overflow: hidden; }
.sidebar-nav h3 { background: var(--um-grey-light); color: var(--um-grey-dark);
  padding: 10px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; border-bottom: 1px solid var(--um-border); }
.sidebar-nav ul { list-style: none; padding: 4px 0; }
.sidebar-nav ul li a { display: block; padding: 8px 14px; font-size: 15px;
  color: var(--um-grey-dark); border-left: 3px solid transparent; transition: .15s; }
.sidebar-nav ul li a:hover { background: var(--um-red-light);
  border-left-color: var(--um-red); color: var(--um-red); text-decoration: none; }
.sidebar-nav ul li a.active { background: var(--um-red-light);
  border-left-color: var(--um-red); color: var(--um-red); font-weight: 600; }

/* ── Main content ───────────────────────────────────── */
.um-main { flex: 1; min-width: 0; }
.um-main p { margin-bottom: 12px; color: #555; }

.intro-section { background: #fff; border: 1px solid var(--um-border);
  border-top: 3px solid var(--um-red); border-radius: 0 0 4px 4px;
  padding: 24px; margin-bottom: 24px; }
.intro-section h2 { font-size: 20px; color: var(--um-grey-dark); font-weight: 700;
  padding-bottom: 10px; border-bottom: 1px solid var(--um-border); margin-bottom: 14px; }

/* ── Cards grid ─────────────────────────────────────── */
.cards-section { margin-bottom: 24px; }
.um-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.um-card { background: #fff; border: 1px solid var(--um-border);
  padding: 28px 24px 24px; text-decoration: none; color: inherit; transition: .2s;
  display: flex; flex-direction: column; gap: 16px; }
.um-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); text-decoration: none; }
.um-card h3 { font-size: 22px; color: var(--um-red); font-weight: 400;
  margin: 0; line-height: 1.25; }
.um-card p  { font-size: 13px; color: var(--um-grey-mid); margin: 0; flex: 1; }
.find-out-more { font-size: 14px; color: var(--um-red); font-weight: 400; }
.card-tag, .card-tag-ext { display: none; }

/* ── Notice / info band ─────────────────────────────── */
.notice-band { background: #fff8e1; border: 1px solid #ffe082; border-left: 4px solid #f9a825;
  border-radius: 0 4px 4px 0; padding: 12px 16px; display: flex; gap: 12px;
  align-items: flex-start; margin-bottom: 24px; font-size: 13px; color: #5a4000; }
.notice-band.notice-info { background: var(--um-red-light); border-color: #f5a3b0;
  border-left-color: var(--um-red); color: #5a0015; }
.notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-band a { color: var(--um-red); font-weight: 600; }

/* ── Quick guide ────────────────────────────────────── */
.quick-guide { background: #fff; border: 1px solid var(--um-border);
  border-top: 3px solid var(--um-red); border-radius: 0 0 4px 4px;
  padding: 24px; margin-bottom: 24px; }
.quick-guide h2 { font-size: 20px; color: var(--um-grey-dark); font-weight: 700;
  padding-bottom: 10px; border-bottom: 1px solid var(--um-border); margin-bottom: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 12px; margin-top: 14px; }
.guide-item { border-radius: 3px; padding: 14px; font-size: 13px; }
.guide-item .guide-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.guide-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.guide-item p { font-size: 12px; margin: 0; color: inherit; }
.guide-yes { background: #fbeaed; border-left: 3px solid var(--um-red); }
.guide-yes strong { color: var(--um-red); }
.guide-no  { background: #eaf6ec; border-left: 3px solid var(--um-green); }
.guide-no  strong { color: var(--um-green); }

/* ── Generic content section ────────────────────────── */
.content-section { background: #fff; border: 1px solid var(--um-border);
  border-top: 3px solid var(--um-red); border-radius: 0 0 4px 4px;
  padding: 24px; margin-bottom: 24px; }
.content-section h2 { font-size: 20px; color: var(--um-grey-dark); font-weight: 700;
  padding-bottom: 10px; border-bottom: 1px solid var(--um-border); margin-bottom: 14px; }
.content-section h3 { font-size: 15px; color: var(--um-red); margin: 18px 0 8px;
  font-weight: 700; }
.content-section p  { font-size: 14px; margin-bottom: 10px; color: #555; }
.content-section ul, .content-section ol { padding-left: 20px; margin-bottom: 12px; }
.content-section li { margin-bottom: 6px; font-size: 14px; color: #555; }
.content-section a  { color: var(--um-red); }

/* Tables */
.content-section table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.content-section table th { background: var(--um-red); color: #fff; padding: 10px 12px; text-align: left; }
.content-section table td { padding: 9px 12px; border-bottom: 1px solid var(--um-border); color: #555; }
.content-section table tr:nth-child(even) td { background: var(--um-grey-light); }

/* ── Committee person cards ──────────────────────────── */
.person-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 14px; margin-top: 14px; }
.person-card { background: #fff; border: 1px solid var(--um-border); border-radius: 4px;
  padding: 18px; text-align: center; }
.person-avatar { width: 56px; height: 56px; border-radius: 50%;
  background: var(--um-red); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 10px; }
.person-card h4 { font-size: 14px; color: var(--um-grey-dark); margin-bottom: 3px; }
.person-card .role  { font-size: 12px; color: var(--um-grey-mid); }
.person-card .email { font-size: 12px; margin-top: 8px; }
.person-card .email a { color: var(--um-red); }

/* ── Profile link on person cards ───────────────────── */
.person-card-link { text-decoration: none; color: inherit; cursor: pointer;
  transition: .2s; display: flex; flex-direction: column; }
.person-card-link:hover { border-color: var(--um-red);
  box-shadow: 0 3px 12px rgba(186,12,47,.12); text-decoration: none; }
.person-card-link:hover .person-avatar { background: var(--um-red-dark); }
.profile-link { font-size: 11px; color: var(--um-red); margin-top: 10px;
  font-weight: 600; letter-spacing: .2px; }
.person-card-link:hover .profile-link { text-decoration: underline; }

.chair-avatar { background: var(--um-red-dark) !important; }
.chair-role { color: var(--um-red); font-weight: 700; }

.person-card-secretary { border-style: dashed; opacity: .85; }
.secretary-avatar { background: #999 !important; }

/* ── FAQ accordion ───────────────────────────────────── */
.faq-item { border: 1px solid var(--um-border); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.faq-q { background: #fff; padding: 13px 16px; cursor: pointer; font-weight: 600;
  font-size: 14px; color: var(--um-grey-dark); display: flex; justify-content: space-between;
  align-items: center; user-select: none; gap: 12px; }
.faq-q:hover { background: var(--um-grey-light); }
.faq-q::after { content: '+'; font-size: 18px; font-weight: 300; flex-shrink: 0;
  color: var(--um-red); transition: .2s; }
.faq-item.open .faq-q { background: var(--um-red-light); color: var(--um-red); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 14px 16px; font-size: 14px; background: #fafafa;
  border-top: 1px solid var(--um-border); line-height: 1.7; color: #555; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--um-red); }

/* ── Resource list ───────────────────────────────────── */
.resource-list { list-style: none; }
.resource-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--um-border); font-size: 14px; }
.resource-list li:last-child { border-bottom: none; }
.resource-list .res-icon { font-size: 20px; flex-shrink: 0; }
.resource-list .res-info strong { display: block; color: var(--um-grey-dark); }
.resource-list .res-info span { font-size: 12px; color: var(--um-grey-mid); }
.resource-list a { color: var(--um-red); font-size: 12px; }

/* ── Buttons ────────────────────────────────────────── */
.btn-um { display: inline-block; padding: 8px 18px; background: var(--um-red); color: #fff;
  border: none; border-radius: 3px; font-size: 13px; cursor: pointer; transition: .15s; }
.btn-um:hover { background: var(--um-red-dark); color: #fff; text-decoration: none; }
.btn-um-outline { background: transparent; color: var(--um-red);
  border: 1px solid var(--um-red); }
.btn-um-outline:hover { background: var(--um-red); color: #fff; }

/* ══════════════════════════════════════════════════════
   FOOTER  (T4 template provides this)
   ══════════════════════════════════════════════════════ */
.um-footer { background: #2b2b2b; color: rgba(255,255,255,.75); margin-top: 48px;
  border-top: 4px solid var(--um-red); }
.um-footer-inner { max-width: 1200px; margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; }
.footer-col { font-size: 13px; line-height: 1.8; }
.footer-col strong { color: #fff; display: block; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.65); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center;
  padding: 12px 24px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .um-page-layout { flex-direction: column; padding: 16px; }
  .um-sidebar { width: 100%; position: static; }
  .sidebar-nav { margin-bottom: 16px; }
}
@media (max-width: 640px) {
  .um-navlinks { display: none; }
  .um-pagetitle h1 { font-size: 20px; }
  .um-cards { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .um-cards { grid-template-columns: 1fr; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .um-topbar, .um-navbar, .um-footer, .um-sidebar { display: none; }
  .um-page-layout { display: block; padding: 0; }
  .um-main { width: 100%; }
  a[href]::after { content: none; }
}
