/* Styles for live blocks rendered by PageBlockRenderer (news, gallery, teachers, stats, cta, contact).
   Used both on the public school page and inside the page-builder canvas. Scoped by class names only. */
.mcms-page { direction: rtl; text-align: right; }
.mcms-page img { max-width: 100%; height: auto; }

.mcms-blk { margin: 1rem 0; }
.mcms-blk-empty { text-align: center; color: #64748b; background: #fff; padding: 1.5rem; border: 1px dashed #cbd5e1; border-radius: 12px; }

.mcms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.mcms-grid-tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.mcms-card { display: block; color: #1e293b; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.mcms-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.mcms-card img { width: 100%; height: 150px; object-fit: cover; display: block; background: #f1f5f9; }
.mcms-card-body { padding: .9rem 1rem; }
.mcms-card-body h4 { font-size: 1rem; margin: 0 0 .35rem; line-height: 1.7; }
.mcms-card-body small { color: #64748b; }
.mcms-card-img img { height: 140px; }
.mcms-card-person { text-align: center; padding: 1.1rem .8rem; }
.mcms-card-person h4 { font-size: .95rem; margin: .6rem 0 0; }
.mcms-avatar { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: rgba(37, 99, 235, .12); color: #2563eb; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }

.mcms-stats { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.mcms-stats > div { color: #1e293b; min-width: 120px; text-align: center; padding: 1rem 1.4rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.mcms-stats strong { display: block; font-size: 1.8rem; color: #2563eb; }
.mcms-stats span { color: #64748b; font-size: .9rem; }

.mcms-btn { display: inline-block; padding: .7rem 1.6rem; border-radius: 999px; background: #2563eb; color: #fff !important; font-weight: 700; text-decoration: none; }
.mcms-btn:hover { filter: brightness(1.1); }

.mcms-contact { list-style: none; padding: 0; margin: 0; }
.mcms-contact li { padding: .45rem 0; }
.mcms-contact i { color: #2563eb; margin-left: .4rem; }

/* generic building blocks offered by the builder */
.mcms-section { padding: 3rem 1rem; }
.mcms-container { max-width: 1140px; margin: 0 auto; }
.mcms-hero { padding: 4.5rem 1rem; text-align: center; color: #fff; background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.mcms-hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.mcms-hero p { opacity: .9; max-width: 640px; margin: 0 auto 1.5rem; line-height: 2; }
.mcms-cols { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.mcms-cols > * { flex: 1 1 260px; min-width: 0; }
.mcms-box { color: #1e293b; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.5rem; }
.mcms-title { text-align: center; margin-bottom: 1.6rem; }
.mcms-title h2 { font-size: 1.6rem; margin: 0 0 .4rem; }
.mcms-title p { color: #64748b; margin: 0; }
.mcms-video { position: relative; padding-bottom: 56.25%; height: 0; }
.mcms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.mcms-table { width: 100%; border-collapse: collapse; }
.mcms-table th, .mcms-table td { border: 1px solid #e2e8f0; padding: .6rem .8rem; }
.mcms-table th { background: #f1f5f9; }
