:root {
  --brand: #008bcc;
  --brand-2: #1195a1;
  --ink: #111320;
  --muted: #5b6573;
  --focus-ring-color: #008bcc;
}

/* One Hebrew-capable family across the whole site (Rubik). The body previously used
   'Open Sans', which ships no Hebrew glyphs, so all Hebrew body copy silently fell
   back to a random system font. Keeping the legacy helper classes pointed at the
   same family avoids breaking any markup that still references them. */
body,
.fonts-varela,
.fonts-assistant,
.fonts-alef,
.fonts-sans {
  font-family: 'Rubik', system-ui, 'Segoe UI', Arial, sans-serif;
}
body {
  background-color: #fafafa;
  color: var(--ink);
}

/* Keyboard accessibility: a visible focus ring on every interactive element (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.footer-social-link:focus-visible,
.builder-btn:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Lighter ring against the dark footer. */
footer a:focus-visible,
.footer-social-link:focus-visible {
  outline-color: #4db8e8;
}

/* Visually-hidden skip link that appears on keyboard focus. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 1080;
  background: #fff;
  color: var(--brand);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.skip-link:focus {
  inset-inline-start: 1rem;
}

main {
  min-height: 520px;  
}

.pedgogy-logo a {
  text-decoration: none;
}
.pedgogy-logo strong {
  font-family: 'Heebo', sans-serif;
  font-size: 52px;  
  line-height: 52px;
  vertical-align: middle;
  letter-spacing: -3px;
  color: var(--brand);
}
.logo {
  max-height: 64px;
  transition: max-height 0.3s ease;
}
.navbar.scrolled .logo {
  max-height: 48px;
}
.navbar-brand {
  padding: 8px 0;
}
.navbar-school-name {
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a2a3a;
  letter-spacing: -0.5px;
}
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
  margin-left: 0.2rem !important;
  margin-right: 0.2rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

article {
  text-align: right;
}
.navbar {
  padding: 0.25rem 0;
  transition: all 0.3s ease;
}
.navbar-light {
  background-color: #fff !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
.navbar.scrolled {
  padding: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 600;
  color: #2B3049;
  position: relative;
}
.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #008bcc, #1195a1);
  transition: all 0.3s ease;
  transform: translateX(50%);
  border-radius: 2px;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: #008bcc;
  background-color: rgba(0, 139, 204, 0.06);
}
.navbar-light .navbar-nav .nav-link:hover::after {
  width: 60%;
}
.navbar-light .navbar-nav .nav-link.active {
  color: #008bcc;
}
.navbar-light .navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
}
.navbar-toggler:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 139, 204, 0.2);
}


.carousel-item img { 
  max-height: 600px;
}
.carousel-control-prev-icon, .carousel-control-next-icon, .carousel-caption {
  background-color: #14141469;
  border-radius: 3px;
}
.carousel-caption {
  border-radius: 8px;
}
#page-lists {
  margin: 20px 0;
}
.bgimage {
  overflow: hidden;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}
.list-links .card {
  cursor: pointer;
}
.list-links .card:hover {
  background-color: rgb(248, 255, 250);
  box-shadow: 3px 3px 3px rgb(117, 117, 117);
}

.dated {
  position: absolute;
  bottom: 2px;
  left: 16px;
  font-size: 0.7rem;
  
}

.breadcrumb-item a {
  font-size: 1.2rem;
  color: var(--brand);
}
.breadcrumb-item a:hover {
  background-color: #c6f0fd;
}
.breadcrumb-item+.breadcrumb-item::before {
  color: var(--brand);
  font-size: 1.2rem;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  border-inline-start: 4px solid var(--brand);
  color: var(--ink);
  line-height: 1.25;
}
h2 {
  font-size: 1.6rem;
  border-inline-start: 3px solid var(--brand-2);
  color: var(--ink);
  line-height: 1.3;
}
h1, h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-inline-start: 1rem;
}

.builder-content h1,
.builder-content h2,
.builder-content h3,
.builder-content h4,
.builder-content h5,
.builder-content h6 {
  border-right: none;
  padding-right: 0;
  color: inherit;
  margin-top: initial;
  margin-bottom: initial;
}
iframe {
  min-height: 460px;
}
.content {
  padding: 1rem 0;
}

footer {
  background: linear-gradient(180deg, #1a2d42, #16293b);
  color: #c8d6e0;
  font-size: 0.95rem;
}
footer h5 {
  border-right: none;
  padding-right: 0;
}
.footer-main {
  padding: 3rem 0 2rem;
}
.footer-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  color: #c2d2df;
  line-height: 1.6;
}
.footer-contact-list li svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.footer-contact-list li a {
  color: #d0e0ee;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list li a:hover {
  color: #fff;
}
.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #b0c4d4;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social-link:hover {
  background: #008bcc;
  color: #fff;
  transform: translateY(-3px);
}
.footer-nav-col {
  padding-top: 0.25rem;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  padding: 0.35rem 0;
}
.footer-nav-list li a {
  color: #c2d2df;
  text-decoration: none;
  transition: all 0.2s ease;
  padding-inline-start: 0;
  display: inline-block;
}
.footer-nav-list li a:hover {
  color: #fff;
  padding-inline-start: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9fb3c4;
}
.footer-bottom a {
  color: #4db8e8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: #fff;
}

footer a {
  color: #d0e0ee;
}
footer a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  .footer-main .row > div + div {
    margin-top: 2rem;
  }
}
.media {
  position: relative;
}
.home-media .carousel-caption{
  bottom: auto;
  top: 2rem;
}

.sun-editor-editable {
  line-height: 1.5;
  color: #333;
  text-align:right;
  direction: rtl;
  background-color: #fff;
  word-wrap: normal;
  padding: 8px;
  margin: 0;
}

.sun-editor-editable * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/** controllers on tag */
.sun-editor-editable td, .sun-editor-editable th,
.sun-editor-editable figure, .sun-editor-editable figcaption, .sun-editor-editable img,
.sun-editor-editable iframe, .sun-editor-editable video, .sun-editor-editable audio {
  position: relative;
}

/* float */
.sun-editor-editable .__se__float-left {
  float: right;
}
.sun-editor-editable .__se__float-right {
  float: left;
}
.sun-editor-editable .__se__float-center {
  float: center;
}
.sun-editor-editable .__se__float-none {
  float: none;
}

/* nested list ol, ul */
.sun-editor-editable ol ol, .sun-editor-editable ol ul, .sun-editor-editable ul ol, .sun-editor-editable ul ul {
  margin: 0;
}
.sun-editor-editable ol ol, .sun-editor-editable ul ol {
  list-style-type: lower-alpha;
}
.sun-editor-editable ol ol ol, .sun-editor-editable ul ol ol, .sun-editor-editable ul ul ol {
  list-style-type: upper-roman;
}
.sun-editor-editable ul ul, .sun-editor-editable ol ul {
  list-style-type: circle;
}
.sun-editor-editable ul ul ul, .sun-editor-editable ol ul ul, .sun-editor-editable ol ol ul {
  list-style-type: square;
}
.sun-editor-editable p {
  margin: 0;
}

/* sub, sup */
.sun-editor-editable sub, .sun-editor-editable sup {
  font-size: 75%;
  line-height: 0;
}
.sun-editor-editable sub {
  vertical-align: sub;
}
.sun-editor-editable sup {
  vertical-align: super;
}

/* blockquote */
.sun-editor-editable blockquote {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: #999;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  border-style: solid;
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 20px;
  padding-left: 5px;
  border-right-width: 5px;
  border-color: #4b4b4b;
}
.sun-editor-editable blockquote blockquote {
  border-color: #616161;
}

/* table */
.sun-editor-editable table {
  display: table;
  table-layout: auto;
  border: 1px solid rgb(204, 204, 204);
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  background-color: transparent;
  border-spacing: 0;
  border-collapse: collapse;
}
.sun-editor-editable table thead {
  border-bottom: 2px solid #333;
}
.sun-editor-editable table tr {
  border: 1px solid #efefef;
}
.sun-editor-editable table th {
  background-color: #f3f3f3;
}
.sun-editor-editable table th, .sun-editor-editable table td {
  border: 1px solid #e1e1e1;
  padding:0.4em;
  background-clip: padding-box;
}
/** table - select class */
.sun-editor-editable table td.se-table-selected-cell, .sun-editor-editable table th.se-table-selected-cell {
  border: 1px double #4592ff;
  background-color: #f1f7ff;
}
.sun-editor-editable.se-disabled * {
  user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/** component (image, iframe video) */
.sun-editor-editable .se-component {
  display: flex;
  padding: 1px;
  margin: 0 0 10px;
}
.sun-editor-editable .se-component.__se__float-left {
  margin: 0 0 10px 20px;
}
.sun-editor-editable .se-component.__se__float-right {
  margin: 0 20px 10px 0;
}
.sun-editor-editable[contenteditable=true] .se-component {
  outline: 1px dashed #e1e1e1;
}

/** image, video .. */
.sun-editor-editable img, .sun-editor-editable iframe, .sun-editor-editable video, .sun-editor-editable audio {
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  max-width: 100%;
}

/** image, video iframe figure cover */
.sun-editor-editable .se-image-container, .sun-editor-editable .se-video-container {
  width: auto;
  height: auto;
  max-width: 100%;
}

.sun-editor-editable figure {
  display: block;
  outline: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.sun-editor-editable figure figcaption {
  padding: 1em .5em;
  margin: 0;
  background-color: #f9f9f9;
  outline: none;
}
.sun-editor-editable figure figcaption p{
  line-height: 2;
  margin: 0;
}

/* image */
.sun-editor-editable .se-image-container a img {
  padding: 1px;
  margin: 1px;
  outline: 1px solid #4592ff;
}

/** video */
.sun-editor-editable .se-video-container iframe {
  outline: 1px solid #9e9e9e;
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  width: 100%;
  height: 100%;
}
.sun-editor-editable .se-video-container figure {
  right: 0px;
  width: 100%;
  max-width: 100%;
}
