/* Rainbow Ruby School - custom primary school theme */
:root {
  --rrs-red: #03594e;
  --rrs-blue: #03594e;
  --rrs-yellow: #f8c62f;
  --rrs-green: #1ab69d;
  --rrs-ink: #1f2937;
  --rrs-soft: #f4f8ff;
  --rrs-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--rrs-ink);
  background: #fffdf8;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.rrs-topbar {
  background: #02463d;
  color: var(--rrs-white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rrs-topbar a {
  color: #f8fafc;
}

.rrs-topbar strong {
  letter-spacing: 0.02em;
}

.rrs-wrap {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.rrs-topbar .rrs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 10px 0;
  justify-content: space-between;
}

.rrs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce3ee;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rrs-header.is-scrolled {
  border-bottom-color: #cfd8e6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.rrs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.rrs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.rrs-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--rrs-red),
    var(--rrs-yellow),
    var(--rrs-green),
    var(--rrs-blue),
    var(--rrs-red)
  );
}

.rrs-brand h1 {
  margin: 0;
  font-size: 19px;
  color: var(--rrs-blue);
  line-height: 1.1;
}

.rrs-brand small {
  color: #4b5563;
  font-size: 12px;
}

.rrs-nav {
  flex: 1;
}

.rrs-nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cfd8e6;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: 0.2s ease;
}

.rrs-nav-toggle:hover {
  border-color: #aac0de;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.rrs-nav-toggle:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.rrs-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rrs-blue);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rrs-nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rrs-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.rrs-nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.rrs-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.rrs-nav li {
  position: relative;
}

.rrs-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: 0.01em;
  position: relative;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rrs-nav > ul > li > a:hover {
  background: #e6f7f3;
  color: var(--rrs-blue);
}

.rrs-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--rrs-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.rrs-nav > ul > li > a:hover::after,
.rrs-nav > ul > li > a.is-active::after {
  transform: scaleX(1);
}

.rrs-nav > ul > li > a.is-active {
  background: linear-gradient(180deg, #f2fbf8 0%, #e3f4ef 100%);
  color: #03483e;
  border-color: #9fcfbe;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 7px 16px rgba(3, 89, 78, 0.16);
  padding-left: 30px;
}

.rrs-nav > ul > li > a.is-active::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid #5b9f89;
  background:
    radial-gradient(circle at 30% 32%, #f8c62f 0 26%, #0000 28%),
    radial-gradient(circle at 65% 68%, #1ab69d 0 30%, #0000 33%),
    #e8f6f2;
}

.rrs-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--rrs-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.rrs-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
}

.rrs-dropdown a:hover {
  background: var(--rrs-soft);
  color: var(--rrs-blue);
}

.rrs-nav li:hover .rrs-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rrs-nav li:focus-within .rrs-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rrs-submenu-toggle {
  display: none;
}

.rrs-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.rrs-btn-primary {
  background: var(--rrs-red);
  color: var(--rrs-white);
}

.rrs-btn-primary:hover {
  background: #02493f;
}

.rrs-btn-secondary {
  background: var(--rrs-yellow);
  color: #101828;
}

.rrs-btn-secondary:hover {
  background: #e4a905;
}

.rrs-hero {
  background:
    radial-gradient(circle at 10% 20%, #dbeafe 0%, #dbeafe00 35%),
    radial-gradient(circle at 90% 10%, #fef3c7 0%, #fef3c700 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 64px 0 52px;
}

.rrs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.rrs-kicker {
  color: var(--rrs-green);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.rrs-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.15;
  color: #0f172a;
}

.rrs-lead {
  color: #374151;
  font-size: 17px;
  max-width: 65ch;
}

.rrs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.rrs-image-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.18);
}

.rrs-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.rrs-section {
  padding: 62px 0;
}

.rrs-section-alt {
  background: #f8fbff;
}

.rrs-section h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(24px, 3.5vw, 34px);
}

.rrs-subtext {
  margin: 0 0 24px;
  color: #4b5563;
  max-width: 75ch;
}

.rrs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rrs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rrs-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.rrs-card h4 {
  margin: 0 0 8px;
  color: var(--rrs-blue);
  font-size: 19px;
}

.rrs-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rrs-pill-list li {
  background: #e8faf6;
  color: #0d4d44;
  border-radius: 999px;
  font-size: 13px;
  padding: 7px 12px;
  font-weight: 600;
}

.rrs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.rrs-list {
  margin: 0;
  padding-left: 18px;
}

.rrs-list li {
  margin-bottom: 8px;
}

.rrs-news-item {
  border-left: 5px solid var(--rrs-yellow);
  padding-left: 14px;
  margin-bottom: 14px;
}

.rrs-news-item h5 {
  margin: 0 0 4px;
  font-size: 16px;
}

.rrs-footer {
  background: #0f172a;
  color: #dbe5ff;
  padding: 40px 0 28px;
}

.rrs-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.rrs-footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
}

.rrs-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rrs-footer li {
  margin-bottom: 8px;
}

.rrs-footer a:hover {
  color: #ffffff;
}

.rrs-copyright {
  border-top: 1px solid rgba(219, 229, 255, 0.2);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 13px;
}

.rrs-img-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rrs-img-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.rrs-page-hero {
  background: linear-gradient(135deg, #e7f7f3, #fdfcf3);
  padding: 46px 0;
}

.rrs-page-hero h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.rrs-page-hero p {
  margin: 8px 0 0;
  max-width: 80ch;
}

@media (min-width: 992px) {
  .rrs-nav > ul {
    background: #f7fafc;
    border: 1px solid #d4deea;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  .rrs-nav > ul > li > a {
    border-radius: 9px;
  }
}

.rrs-form {
  display: grid;
  gap: 14px;
}

.rrs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rrs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rrs-field-full {
  grid-column: 1 / -1;
}

.rrs-field label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.rrs-field input,
.rrs-field select,
.rrs-field textarea {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #111827;
  background: #ffffff;
}

.rrs-field input:focus,
.rrs-field select:focus,
.rrs-field textarea:focus {
  border-color: #1ab69d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.12);
}

.rrs-field textarea {
  resize: vertical;
  min-height: 120px;
}

.rrs-form-note {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.rrs-form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.rrs-form-status.is-info {
  color: #1d4ed8;
}

.rrs-form-status.is-success {
  color: #166534;
}

.rrs-form-status.is-error {
  color: #b91c1c;
}

.rrs-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rrs-floating-cta {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rrs-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rrs-floating-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.28);
  color: #ffffff;
}

.rrs-floating-btn-apply {
  background: var(--rrs-blue);
}

.rrs-floating-btn-whatsapp {
  background: #15803d;
}

.rrs-floating-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 991px) {
  .rrs-header-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .rrs-brand {
    flex: 1;
    min-width: 0;
  }

  .rrs-nav-toggle {
    display: inline-flex;
  }

  .rrs-nav {
    width: 100%;
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f3;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    padding: 8px;
  }

  .rrs-nav.is-open {
    display: block;
  }

  .rrs-nav > ul {
    display: block;
  }

  .rrs-nav > ul > li {
    border-bottom: 1px solid #edf1f6;
  }

  .rrs-nav > ul > li:last-child {
    border-bottom: 0;
  }

  .rrs-nav > ul > li > a {
    padding: 12px 42px 12px 10px;
    border-bottom: 0;
    border-radius: 10px;
  }

  .rrs-nav > ul > li > a:hover {
    background: #f4f8ff;
  }

  .rrs-nav > ul > li > a::after {
    display: none;
  }

  .rrs-nav > ul > li > a.is-active {
    background: linear-gradient(180deg, #046658 0%, #03594e 100%);
    color: #ffffff;
    border-color: #02493f;
    box-shadow: 0 8px 16px rgba(2, 73, 63, 0.3);
    padding-left: 10px;
  }

  .rrs-nav > ul > li > a.is-active::before {
    display: none;
  }

  .rrs-nav > ul > li.has-dropdown {
    position: relative;
  }

  .rrs-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 8px;
  }

  .rrs-submenu-toggle::before {
    content: "+";
  }

  .rrs-submenu-toggle[aria-expanded="true"]::before {
    content: "-";
  }

  .rrs-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 4px 0 8px 12px;
    min-width: 0;
    display: none;
    margin: 0 6px 8px 8px;
    border-left: 2px solid #e6edf7;
  }

  .rrs-dropdown a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .rrs-nav > ul > li.is-open > .rrs-dropdown {
    display: block;
  }

  .rrs-form-grid {
    grid-template-columns: 1fr;
  }

  .rrs-hero-grid,
  .rrs-grid-3,
  .rrs-grid-2,
  .rrs-split,
  .rrs-footer-grid {
    grid-template-columns: 1fr;
  }

  .rrs-img-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .rrs-img-grid {
    grid-template-columns: 1fr;
  }

  .rrs-floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .rrs-floating-btn {
    justify-content: center;
  }
}
