/* =========================================================
   London Region — Unified Module Styles
   Primary color comes from --region-color (set in header.dwt)
   Gold accent is fixed for London branding
   ========================================================= */

:root {
  --rm-primary:    var(--region-color);
  --rm-accent:     #D4A853;
  --rm-card-bg:    #ffffff;
  --rm-bg:         #f8fafc;
  --rm-text:       #1e293b;
  --rm-muted:      #64748b;
  --rm-border:     #e2e8f0;
  --rm-radius:     12px;
  --rm-transition: all 0.25s ease;
}

/* ---- Page container (light theme) ---- */
.rm-container {
  background: var(--rm-bg);
  padding: 10px;
  border-radius: var(--rm-radius);
  direction: rtl;
}

/* ---- Page header card ---- */
.rm-page-header {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--rm-border);
  position: relative;
  overflow: hidden;
}
.rm-page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--rm-primary) 0%, var(--rm-accent) 100%);
}
.rm-page-header h1 {
  font-size: 24px; font-weight: 700;
  color: var(--rm-primary);
  margin: 0 0 8px 0;
  display: flex; align-items: center; gap: 12px;
}
.rm-page-header p {
  font-size: 14px; color: var(--rm-muted);
  margin: 0; line-height: 1.8;
}

/* ---- Navigation card grid ---- */
.rm-nav-grid   { display: grid; gap: 20px; margin-bottom: 24px; }
.rm-nav-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rm-nav-grid-3 { grid-template-columns: repeat(3, 1fr); }

.rm-nav-card {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  padding: 32px 24px;
  border: 1px solid var(--rm-border);
  transition: var(--rm-transition);
  position: relative; overflow: hidden;
  text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
}
.rm-nav-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rm-primary);
  opacity: 0; transition: var(--rm-transition);
}
.rm-nav-card:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.1); transform: translateY(-4px); text-decoration: none; }
.rm-nav-card:hover::before { opacity: 1; }
.rm-nav-card.accent::before { background: var(--rm-accent); }
.rm-nav-card.success::before { background: var(--rm-primary); }

/* ---- Icon circle ---- */
.rm-icon-circle {
  width: 65px; height: 65px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(26, 43, 76, 0.1);
}
.rm-icon-circle i { font-size: 28px; color: var(--rm-primary); }
.rm-icon-circle.accent   { background: rgba(212, 168, 83, 0.15); }
.rm-icon-circle.accent i { color: var(--rm-accent); }
.rm-icon-circle.success   { background: rgba(26, 43, 76, 0.1); }
.rm-icon-circle.success i { color: var(--rm-primary); }

.rm-nav-card-title { font-size: 18px; font-weight: 700; color: var(--rm-text); margin-bottom: 4px; }
.rm-nav-card-sub   { font-size: 13px; color: var(--rm-muted); }

/* ---- Content card ---- */
.rm-content-card {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border);
  padding: 28px;
  margin-bottom: 20px;
}
.rm-content-card h2 { font-size: 20px; font-weight: 700; color: var(--rm-primary); margin-bottom: 16px; }
.rm-content-card p  { font-size: 14px; color: var(--rm-text); line-height: 1.8; }

/* ---- Checklist ---- */
.rm-checklist { list-style: none; padding: 0; margin: 0; }
.rm-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--rm-border);
  font-size: 14px; color: var(--rm-text);
}
.rm-checklist li:last-child { border-bottom: none; }
.rm-checklist li i { color: var(--rm-primary); margin-top: 2px; flex-shrink: 0; }

/* ---- Section header ---- */
.rm-section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.rm-section-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--rm-primary);
  display: flex; align-items: center; justify-content: center;
}
.rm-section-icon i { color: #fff; font-size: 18px; }
.rm-section-title { font-size: 18px; font-weight: 700; color: var(--rm-text); }

/* ---- Table ---- */
.rm-table-card {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border);
  overflow: hidden; margin-bottom: 20px;
}
.rm-table { width: 100%; border-collapse: collapse; }
.rm-table thead th {
  background: var(--rm-primary); color: #fff;
  padding: 14px 16px; text-align: right; font-size: 14px; font-weight: 600;
}
.rm-table tbody tr:hover { background: rgba(26, 43, 76, 0.04); }
.rm-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--rm-border); font-size: 14px; }

/* ---- Badge ---- */
.rm-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--rm-primary); color: #fff;
}
.rm-badge.accent { background: var(--rm-accent); color: #1A2B4C; }

/* ---- Alert boxes ---- */
.rm-alert {
  border-radius: var(--rm-radius); padding: 16px 20px;
  border-right: 4px solid; margin-bottom: 16px; font-size: 14px;
  line-height: 1.7;
}
.rm-alert.info    { background: rgba(26,43,76,0.05);  border-color: var(--rm-primary); color: var(--rm-primary); }
.rm-alert.warning { background: rgba(212,168,83,0.1); border-color: var(--rm-accent);  color: var(--rm-text); }
.rm-alert.danger  { background: rgba(26,43,76,0.08);  border-color: var(--rm-primary); color: var(--rm-text); }

/* ---- Empty state ---- */
.rm-empty {
  background: var(--rm-card-bg); border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border); padding: 60px 32px;
  text-align: center;
}
.rm-empty-icon  { font-size: 64px; color: var(--rm-border); margin-bottom: 16px; }
.rm-empty-title { font-size: 20px; font-weight: 700; color: var(--rm-text); margin-bottom: 8px; }
.rm-empty-text  { font-size: 14px; color: var(--rm-muted); }

/* ---- Glass/dark variant (over video background) ---- */
.rm-glass-container {
  direction: rtl;
  padding: 10px;
}
.rm-glass-header {
  background: rgba(26,43,76,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rm-radius);
  padding: 28px 32px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.rm-glass-header::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--rm-accent) 0%, var(--rm-primary) 100%);
}
.rm-glass-header h1 {
  font-size: 24px; font-weight: 700; color: #fff;
  margin: 0 0 8px 0; display: flex; align-items: center; gap: 12px;
}
.rm-glass-header p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.8; }

.rm-glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rm-radius);
  padding: 32px 24px;
  text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  transition: var(--rm-transition);
  position: relative; overflow: hidden;
}
.rm-glass-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--rm-accent);
  opacity: 0; transition: var(--rm-transition);
}
.rm-glass-card:hover { transform: translateY(-4px); text-decoration: none; background: rgba(255,255,255,0.1); }
.rm-glass-card:hover::after { opacity: 1; }
.rm-glass-card-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(212,168,83,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.rm-glass-card-icon i { font-size: 28px; color: var(--rm-accent); }
.rm-glass-card-title  { font-size: 18px; font-weight: 700; color: #fff; }

/* ---- Social links (studentsocieties/pages.dwt) ---- */
.rm-social-handle       { color: var(--rm-primary); font-weight: 600; text-decoration: none; }
.rm-social-handle:hover { color: var(--rm-accent); }
.rm-email-link          { color: var(--rm-muted); font-size: 13px; text-decoration: none; }
.rm-email-link:hover    { color: var(--rm-primary); }
.rm-no-data             { color: var(--rm-border); font-style: italic; font-size: 13px; }

/* ---- Download item ---- */
.rm-download-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rm-border);
}
.rm-download-item:last-child { border-bottom: none; }
.rm-download-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(26, 43, 76, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rm-download-icon i { color: var(--rm-primary); font-size: 20px; }
.rm-download-name { font-size: 14px; font-weight: 600; color: var(--rm-text); flex: 1; }
.rm-download-btn {
  padding: 6px 16px; border-radius: 6px;
  background: var(--rm-primary); color: #fff;
  font-size: 13px; text-decoration: none; white-space: nowrap;
}
.rm-download-btn:hover { background: var(--rm-accent); color: #1A2B4C; text-decoration: none; }

/* ---- Info card with colored left border ---- */
.rm-info-card {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border);
  padding: 24px; margin-bottom: 16px;
  border-right: 4px solid var(--rm-primary);
}
.rm-info-card.accent  { border-right-color: var(--rm-accent); }
.rm-info-card.success { border-right-color: var(--rm-primary); }
.rm-info-card.danger  { border-right-color: var(--rm-accent); }
.rm-info-card h3 { font-size: 16px; font-weight: 700; color: var(--rm-text); margin: 0 0 8px 0; }
.rm-info-card p  { font-size: 14px; color: var(--rm-muted); margin: 0; line-height: 1.7; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .rm-nav-grid-2, .rm-nav-grid-3 { grid-template-columns: 1fr; }
  .rm-page-header  { padding: 20px; }
  .rm-page-header h1 { font-size: 20px; }
  .rm-glass-header { padding: 20px; }
}
