@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1a237e;
  --accent: #ffc107;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #2980b9;
  --bg: #f5f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dee2e6;
}

* { box-sizing: border-box; }
html { direction: rtl; }
body { margin: 0; font-family: 'Heebo', sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.nav-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero { position: relative; min-height: 650px; color: #fff; overflow: hidden; display: grid; align-items: center; padding: 92px 0 72px; background: #111827; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(17,24,39,.92) 0%, rgba(26,35,126,.72) 45%, rgba(15,23,42,.38) 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 42px; align-items: end; }
.hero-content { max-width: 760px; }
.hero-kicker { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: .9rem; font-weight: 800; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); margin: 0 0 14px; letter-spacing: 0; line-height: 1.04; }
.hero p { font-size: 1.26rem; max-width: 720px; line-height: 1.85; margin: 0 0 28px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-highlights { display: grid; gap: 10px; max-width: 360px; justify-self: end; }
.hero-highlights div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 14px 16px; backdrop-filter: blur(12px); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.hero-highlights strong { display: block; font-size: 1.05rem; color: #fff; margin-bottom: 3px; }
.hero-highlights span { color: rgba(255,255,255,.8); font-weight: 600; }
.home-gallery { padding: 68px 0 72px; background: #eef3f8; }
.gallery-head { display: grid; gap: 8px; max-width: 720px; margin-bottom: 26px; }
.gallery-head span { color: var(--primary); font-weight: 800; }
.gallery-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.gallery-head p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 245px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; background: #111827; box-shadow: 0 18px 42px rgba(15,23,42,.16); }
.gallery-item-large { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform .35s ease, filter .35s ease; filter: saturate(1.04) contrast(1.02); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,.82) 100%); }
.gallery-item div { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; display: grid; gap: 3px; color: #fff; }
.gallery-item strong { font-size: 1.05rem; }
.gallery-item span { color: rgba(255,255,255,.82); font-weight: 600; line-height: 1.45; }
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.12) contrast(1.05); }
.section { padding: 36px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.site-footer { background: #111827; color: #f8fafc; padding: 42px 0 20px; }
.site-footer a { color: #f8fafc; }
.site-footer h2, .site-footer h3 { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 28px; align-items: stretch; }
.footer-about, .footer-contact { display: grid; align-content: start; gap: 14px; }
.footer-about h2 { font-size: 1.6rem; color: #fff; }
.footer-about p { margin: 0; color: #cbd5e1; line-height: 1.8; max-width: 440px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 12px; font-weight: 700; }
.footer-links a:hover { background: rgba(255,255,255,.1); }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-contact span { color: #94a3b8; font-size: .86rem; font-weight: 800; }
.footer-contact a, .footer-contact strong { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.footer-map iframe { width: 100%; height: 235px; border: 0; border-radius: 8px; background: #e2e8f0; display: block; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #cbd5e1; font-size: .9rem; }

.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar { width: 120px; position: fixed; right: 0; top: 0; height: 100vh; background: var(--primary); color: #fff; display: flex; flex-direction: column; z-index: 30; }
.sidebar-logo {cursor: pointer; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.sidebar-logo h2 { margin: 0 0 4px; font-size: 1.1rem; }
.sidebar-logo p { margin: 0; color: rgba(255,255,255,.72); }
#sidebar-nav { list-style: none; padding: 8px 0; margin: 0; flex: 1; }
#sidebar-nav a { color: rgba(255,255,255,0.82); display: block; padding: 12px 20px; font-weight: 500; }
#sidebar-nav a.active, #sidebar-nav a:hover { background: rgba(255,255,255,0.15); color: white; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.sidebar-user { margin-bottom: 12px; font-size: .9rem; }
.sidebar-user span { display: block; color: rgba(255,255,255,.72); }
.main-area { margin-right: 120px; flex: 1; min-width: 0; }
.topbar { background: white; padding: 16px 24px; box-shadow: 0 2px 12px rgba(15, 23, 42, .08); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar h1 { margin: 0; font-size: 1.35rem; }
#section-title { color: var(--muted); }
.content-area { padding: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 18px; border-radius: 8px; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { min-height: 28px; padding: 4px 10px; font-size: 0.82rem; }
.icon-btn { border: 0; background: transparent; font: inherit; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle-control { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); cursor: pointer; user-select: none; }
.toggle-control input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 48px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s ease; }
.toggle-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; top: 3px; right: 3px; box-shadow: 0 1px 4px rgba(15,23,42,.25); transition: transform .15s ease; }
.toggle-control input:checked + .toggle-track { background: var(--success); }
.toggle-control input:checked + .toggle-track .toggle-thumb { transform: translateX(-22px); }

.badge { align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-box { background: white; border-radius: 10px; padding: 24px; max-width: 720px; width: min(96vw, 720px); max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.24); }
.modal-box-large { max-width: 980px; width: min(96vw, 980px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-start; margin-top: 18px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; background: #fff; }
.form-control + .form-control { margin-top: 8px; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.day-filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.day-filter-btn.active { background: var(--primary); color: #fff; }

#toast-container { position: fixed; top: 18px; left: 508px; z-index: 1400; display: grid; gap: 8px; width: min(280px, calc(100vw - 36px)); pointer-events: none; }
.alert { padding: 8px 12px; border-radius: 8px; margin: 0; font-size: .9rem; line-height: 1.35; font-weight: 700; box-shadow: 0 10px 28px rgba(15,23,42,.14); pointer-events: auto; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.panel { background: #fff; border: 1px solid #e7ebf0; border-radius: 8px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(15,23,42,.04); }
.panel h2, .panel h3 { margin-top: 0; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { padding: 12px 16px; text-align: right; font-weight: 700; border-bottom: 1px solid var(--line); }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: #f8f9fa; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; border: 1px solid #e7ebf0; }
.activity-table-sections { display: grid; gap: 18px;  }
.activity-table-section { display: grid; gap: 10px; border: 4px solid #bdc4cb; border-radius: 8px; padding: 16px;  }
.activity-table-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-table-title h3 { margin: 0; font-size: 1rem; }
.activity-table-title span { min-width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; }
.activity-table th, .activity-table td { white-space: nowrap; }
.activity-table td:first-child { font-weight: 700; }
.empty-cell { color: var(--muted); text-align: center; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.group-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e7ebf0;}
.group-card-header { background: var(--primary); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; }
.group-card-body { padding: 16px 18px; display: grid; gap: 8px; }
.group-card h3 { margin: 0; font-size: 1.05rem; }
.card-search { margin-bottom: 14px; max-width: 360px; }
.activity-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eef2ff; }
.public-content { display: grid; gap: 6px; }
.public-content-preview { margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; height: 85px;}
.read-more-btn { justify-self: start; border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 800; padding: 0; cursor: pointer; height: 20px;}
.read-more-btn:hover { text-decoration: underline; }
.guide-about-btn { border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 800; padding: 0; cursor: pointer; }
.guide-about-btn:hover { text-decoration: underline; }
.public-content-full { line-height: 1.75; white-space: pre-line; }
.public-group-filter { margin: -6px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.group-type-filter-btn { border: 1px solid #cbd5e1; background: #fff; color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.group-type-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.group-type-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.public-group-grid { grid-template-columns: repeat(auto-fill, 350px); justify-content: center; align-items: start; }
.public-group-card { width: 350px; height: 600px; background: #fff; border: 1px solid #e0e7f0; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 210px 60px 270px 60px; box-shadow: 0 8px 24px rgba(15,23,42,.09); }
.public-group-image { background: #eef2ff; overflow: hidden; }
.public-group-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-group-title { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 0 16px; background: var(--primary); color: #fff; }
.public-group-title h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.public-group-title span { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 4px 8px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.public-group-details { padding: 14px 16px; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.public-group-facts { display: grid; gap: 6px; align-content: start; overflow: hidden; font-size: .9rem; line-height: 1.32; }
.public-group-facts div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-group-facts strong { color: var(--primary); }
.public-group-course-preview { margin: 3px 0 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.public-group-course-preview strong { color: var(--primary); }
.public-group-read-more { width: 100%; text-align: center; }
.public-group-action { display: flex; align-items: center; padding: 10px 16px 16px; }
.public-group-action .btn { width: 100%; text-align: center; }
.group-full-details { display: grid; gap: 18px; }
.group-full-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.group-full-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 14px; }
.group-full-row { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; background: #f8fafc; }
.group-full-row span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.group-full-row strong { color: var(--text); overflow-wrap: anywhere; }
.group-full-section { border-top: 1px solid var(--line); padding-top: 14px; }
.group-full-section h3 { margin: 0 0 8px; font-size: 1rem; }
.group-full-section p { margin: 0; line-height: 1.75; white-space: pre-line; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid var(--line); }
.tab-btn { padding: 10px 20px; border: none; background: none; cursor: pointer; font: inherit; }
.tab-btn.active { border-bottom: 2px solid var(--primary); color: var(--primary); font-weight: 700; }
.dashboard-day-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px; }
.daily-summary-textarea { min-height: 420px; direction: rtl; white-space: pre-wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;    margin: 20px; }
.stat { background: #fff;     border: 4px solid #bdc4cb; border-radius: 8px; padding: 16px; }
.stat strong { display: block; font-size: 1.8rem; color: var(--primary); }

.context-menu { position: fixed; z-index: 1100; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15,23,42,.16); border-radius: 8px; padding: 8px; display: grid; gap: 8px; min-width: 160px; }
.context-actions { display: grid; gap: 4px; }
.context-action { width: 100%; border: 0; background: #fff; color: var(--text); text-align: right; padding: 8px 10px; border-radius: 6px; font: inherit; cursor: pointer; }
.context-action:hover { background: #f1f5f9; }
.context-action.danger { color: var(--danger); }
.context-title { color: var(--muted); font-size: .82rem; font-weight: 700; padding: 4px 4px 0; }
.context-colors { display: grid; grid-template-columns: repeat(4, 28px); gap: 6px; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cbd5e1; cursor: pointer; }
.ref-preview-popover { position: fixed; z-index: 1200; width: 300px; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; box-shadow: 0 18px 44px rgba(15,23,42,.18); padding: 14px; direction: rtl; pointer-events: none; }
.ref-preview-popover.is-frozen { pointer-events: auto; user-select: text; cursor: text; border-color: var(--success); box-shadow: 0 18px 44px rgba(15,23,42,.18), 0 0 0 3px rgba(39,174,96,.14); }
.ref-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ref-preview-copy { border: 1px solid #cbd5e1; background: #f8fafc; color: var(--primary); border-radius: 6px; padding: 5px 9px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ref-preview-copy:hover { background: #eef2ff; border-color: #b7c3d7; }
.ref-preview-kicker { color: var(--primary); font-size: .78rem; font-weight: 800; margin-bottom: 3px; }
.ref-preview-popover h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.ref-preview-row { display: grid; grid-template-columns: 86px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid #edf2f7; font-size: .88rem; }
.ref-preview-row span { color: var(--muted); }
.ref-preview-row strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.ref-preview-loading, .ref-preview-empty { color: var(--muted); font-size: .9rem; }
.post-copy-preview { display: block; width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; margin: 0 0 14px; }
.post-copy-empty { padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.survey-question.panel { margin: 12px 0; }
.choice-line { display: block; padding: 7px 0; font-weight: 700; }
.choice-line input { margin-left: 6px; }
.survey-answer-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid #edf2f7; }
.survey-answer-row span { white-space: pre-line; }

.ag-theme-alpine { direction: ltr; --ag-font-family: 'Heebo', sans-serif; --ag-border-radius: 8px; }
.ag-theme-alpine .ag-cell, .ag-theme-alpine .ag-header-cell-text { direction: rtl; text-align: right; }
.ag-theme-alpine input.ag-text-field-input, .ag-theme-alpine .ag-cell-inline-editing input, .ag-theme-alpine .ag-cell-inline-editing select { direction: rtl; text-align: right; }
.multi-select-cell-editor { width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 36px rgba(15,23,42,.18); padding: 8px; direction: rtl; }
.multi-select-options { display: grid; gap: 4px; max-height: 230px; overflow-y: auto; }
.multi-select-option { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 8px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.multi-select-option:hover { background: #f1f5f9; }
.multi-select-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.multi-select-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.multi-select-field { min-height: 42px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.multi-select-field-options { display: flex; flex-wrap: wrap; gap: 6px; }
.multi-select-field-option { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f8fafc; font-size: .86rem; font-weight: 700; cursor: pointer; }
.multi-select-field-option:has(input:checked) { background: #eef2ff; border-color: var(--primary); color: var(--primary); }
.multi-select-field-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }

@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; height: auto; }
  .dashboard-layout { display: block; }
  .main-area { margin-right: 0; }
  #sidebar-nav { display: flex; overflow-x: auto; }
  #sidebar-nav a { white-space: nowrap; }
  .sidebar-footer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 590px; padding: 72px 0 46px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(17,24,39,.88) 0%, rgba(26,35,126,.74) 58%, rgba(15,23,42,.64) 100%); }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .hero h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .hero p { font-size: 1.08rem; }
  .hero-highlights { justify-self: stretch; max-width: none; }
  .home-gallery { padding: 48px 0 52px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item-large { grid-row: span 1; }
  .public-group-grid { grid-template-columns: 350px; }
  .group-full-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map iframe { height: 220px; }
  .footer-bottom { display: grid; }
}




.ag-icon{
    font-size: 12px !important;
}

.ag-cell{
        display: flex !important;
        /* justify-content: center; */
        align-items: center;
    --ag-internal-calculated-line-height: 20px !important;
    
} 

.ag-header-cell-text{
    text-wrap: auto !important;
    text-align: center !important;
}



.ag-cell-value > input[type="checkbox"]{
    width: 40px;
    height: 40px;
}


.loginContainer{
    height: 400px; display: grid; grid-template-columns: 1fr 1fr; justify-content: center; align-items: center;    gap: 41px;
}

@media screen and (max-width: 770px) {

    h1{
        text-align: center;
    }
        
    .site-nav-inner {
        height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin: 15px;
        flex-wrap: wrap;
    }

    .loginContainer{
        height: 700px; display: block;
    }
    .loginContainer > div{
         display: block !important; 
         margin: 20px auto;
    }

    .section-title{
        justify-content: center;    
    }

}