/* شعار الهيرو: بلا دائرة، أكبر، ظل أبيض، وحركة للخلفية */
.hero-pro-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(74vw, 18rem);
  aspect-ratio: 1;
}
.hero-pro-logo-wrap::before {
  content: none;
}
.hero-pro-logo-wrap::after {
  content: none;
}
.hero-pro-logo-glow {
  display: none !important;
}
.hero-pro-logo-circle {
  position: relative;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}
.hero-pro-logo-glow {
  display: none !important;
}
.hero-pro .hero-pro-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 8px #fff)
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 36px rgba(255, 255, 255, 0.55)) !important;
  transform-origin: center;
  animation: hero-heartbeat 1.5s ease-in-out infinite;
}
@media (min-width: 640px) {
  .hero-pro-logo-wrap { width: min(48vw, 23rem); }
}
@media (min-width: 1024px) {
  .hero-pro-logo-wrap { width: min(36vw, 28rem); }
}
.hero-pro-bg-slide.is-active .hero-pro-bg-img {
  animation: hero-bg-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.06); }
  24% { transform: scale(1); }
  38% { transform: scale(1.13); }
  56% { transform: scale(1); }
}
@keyframes hero-heart-core {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); }
  12% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  24% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  56% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
}
.hero-burst-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 16;
}
.hero-spark {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  pointer-events: none;
  line-height: 1;
}
.hero-spark--star {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
}
.hero-spark--star.is-gold {
  color: rgba(255, 210, 122, 0.7);
  text-shadow: 0 0 8px rgba(255, 210, 122, 0.25);
}
.hero-spark--ring {
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  background: transparent;
}
.hero-spark.is-fly {
  animation: hero-burst-fly 2.8s ease-out forwards;
}
.hero-spark.is-wander {
  animation: hero-wander var(--dur, 12s) ease-in-out infinite;
  opacity: 0.8;
}
@keyframes hero-burst-fly {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3) rotate(0deg); }
  8% { opacity: 0.42; }
  72% { opacity: 0.28; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(var(--s, 1.2)) rotate(var(--rot, 40deg)); }
}
#cms-announcement-root:not([data-ann-live-ok="1"]) {
  display: none !important;
}
.hero-honour {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: 12.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  text-align: center;
  color: #fff;
  pointer-events: none;
  z-index: 15;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-honour::before { content: none; }
.hero-honour-ring {
  position: relative;
  width: var(--ring, 168px);
  height: var(--ring, 168px);
  flex: none;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 200deg, #f6d27a, #fff, #c98a2c, #fff6d8, #f6d27a);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.14);
}
.hero-honour-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
  background: #123;
}
.hero-honour:not(.is-compact) figcaption {
  position: absolute;
  top: calc(var(--ring) + 0.28rem);
  right: 0;
  left: auto;
  transform: none;
}
.hero-honour figcaption {
  min-width: 0;
  max-width: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(4, 28, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.hero-honour .hero-honour-kicker,
.hero-honour strong,
.hero-honour small {
  display: block;
}
.hero-honour .hero-honour-kicker {
  color: #f6d27a;
  font-size: 0.68rem;
  font-weight: 800;
}
.hero-honour strong {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-honour small {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.84);
}
.hero-honour small bdi {
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-honour-score {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-honour-score b {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  color: #f8e2a2;
}
.hero-honour-score em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
}
.hero-honour.is-compact {
  width: 150px;
}
.hero-honour.is-compact figcaption {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  max-width: 9.2rem;
  gap: 0.2rem;
  padding: 0.08rem 0.4rem;
}
.hero-honour.is-compact strong {
  font-size: 0.62rem;
}
.hero-honour.is-compact .hero-honour-score b {
  font-size: 0.68rem;
}
.hero-honour.is-show {
  animation: hero-honour-life 2.8s ease-out forwards;
}
@keyframes hero-honour-life {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3); }
  8% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1); }
}
@media (max-width: 640px) {
  .hero-honour-ring { --ring: 132px; }
  .hero-honour strong { font-size: 0.9rem; }
}
@keyframes hero-wander {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(var(--wx), calc(var(--wy) * -0.6)); }
  50% { transform: translate(calc(var(--wx) * -0.7), var(--wy)); }
  75% { transform: translate(calc(var(--wx) * 0.4), calc(var(--wy) * 0.8)); }
}
@keyframes hero-bg-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pro-logo-wrap,
  .hero-burst-layer,
  .hero-spark,
  .hero-honour,
  .hero-pro-logo-wrap::after,
  .hero-pro .hero-pro-logo,
  .hero-pro-bg-slide.is-active .hero-pro-bg-img,
  .founder-copy-role,
  .founder-copy-name,
  .founder-copy-bio {
    animation: none;
  }
}

#hero-stats {
  position: relative;
  z-index: 12;
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto 0.15rem;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}
.hero-stat {
  min-height: 0;
  padding: 0.4rem 0.5rem 0.45rem;
  border-radius: 0.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}
.hero-stat strong {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-stat span {
  display: block;
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  line-height: 1.25;
}
#benefits .hero-pro-strip-bg > .max-w-6xl {
  padding-top: 0.35rem !important;
  padding-bottom: 0.2rem !important;
}
#benefits .hero-pro-cards {
  gap: 0.4rem !important;
}
#benefits .hero-pro-glass-card {
  min-height: 0 !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 0.8rem !important;
}
#benefits .hero-pro-card-item-icon {
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 0.5rem !important;
}
#benefits .hero-pro-card-item-icon svg {
  width: 1rem !important;
  height: 1rem !important;
}
#benefits .hero-pro-glass-card h3 {
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
}
#benefits .hero-pro-glass-card p {
  font-size: 0.75rem !important;
  margin-top: 0 !important;
  line-height: 1.25 !important;
}
#benefits .hero-pro-strip-waves {
  height: 46px !important;
}
@media (max-width: 900px) {
  .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero-stat { min-height: 0; padding: 0.8rem 0.7rem; }
}

#home-founders-live .founder-copy-role,
#home-founders-live .founder-copy-name {
  color: #0f172a;
}
.founder-story {
  margin-top: 1rem;
  max-width: 38rem;
}
.founder-story-text {
  min-height: 7.5rem;
  margin: 0;
  color: #334155;
  font-size: 1.05rem;
  line-height: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.founder-story-text.is-on {
  opacity: 1;
  transform: none;
}
.dark .founder-story-text {
  color: #e5e7eb;
}
.founder-story-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.founder-story-btn,
.founder-story-dot {
  border: 0;
  cursor: pointer;
}
.founder-story-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(13 148 136);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}
.founder-story-dots {
  display: flex;
  gap: 0.35rem;
}
.founder-story-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}
.founder-story-dot.is-active {
  width: 1.3rem;
  background: rgb(13 148 136);
}
.founder-copy-role {
  animation: founder-text-in 0.65s ease both;
}
.founder-copy-name {
  animation: founder-text-in 0.75s ease 0.12s both;
}
@keyframes founder-text-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* بطاقات الأقسام في الرئيسية: أصغر وأقرب لبعض */
#sections.home-dept-showcase {
  padding-top: 2rem !important;
  padding-bottom: 2.25rem !important;
}
#sections .dept-hero-header {
  margin-bottom: 1.15rem !important;
}
#sections .home-dept-showcase-title {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem) !important;
}
#sections .grid {
  gap: 0.75rem !important;
}
#sections .home-dept-card-media {
  aspect-ratio: 16 / 9 !important;
}
#sections .home-dept-card-body {
  padding: 0.7rem 0.8rem 0.85rem !important;
}
#sections .home-dept-card-body h3 {
  font-size: 0.98rem !important;
}
#sections .home-dept-card-body p {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}
#sections .home-dept-card-cta {
  margin-top: 0.65rem !important;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  font-size: 0.8rem !important;
}
#sections .home-dept-card-icon {
  width: 1.85rem !important;
  height: 1.85rem !important;
}
@media (min-width: 1024px) {
  #sections.home-dept-showcase {
    padding-top: 2.5rem !important;
    padding-bottom: 2.75rem !important;
  }
  #sections .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
  #sections .home-dept-card-media {
    aspect-ratio: 5 / 4 !important;
  }
}

.departments-page.home-dept-showcase {
  background:
    radial-gradient(ellipse 52% 38% at 8% 0%, rgb(var(--brand-primary-rgb) / 0.16), transparent 62%),
    radial-gradient(ellipse 42% 34% at 96% 88%, rgb(var(--brand-primary-rgb) / 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, rgb(var(--brand-surface-rgb) / 0.78) 36%, #ffffff 100%) !important;
}
.departments-page .home-dept-showcase-bg-blobs {
  background:
    radial-gradient(ellipse 48% 36% at 14% 16%, rgb(var(--brand-primary-rgb) / 0.1), transparent 64%),
    radial-gradient(ellipse 40% 32% at 88% 78%, rgb(var(--brand-primary-rgb) / 0.08), transparent 60%) !important;
}
.departments-page .home-dept-showcase-title,
.departments-page .sections-cards-title {
  color: #0f172a !important;
  text-shadow: none !important;
}
.departments-page header > p {
  color: #475569 !important;
}
.departments-page .brand-primary-orb {
  opacity: 0.28;
}
.dark .departments-page.home-dept-showcase {
  background:
    radial-gradient(ellipse 52% 38% at 8% 0%, rgb(var(--brand-primary-rgb) / 0.2), transparent 62%),
    radial-gradient(ellipse 42% 34% at 96% 88%, rgb(var(--brand-primary-rgb) / 0.12), transparent 60%),
    linear-gradient(180deg, rgb(17 24 39) 0%, rgb(var(--brand-darkest-rgb) / 0.28) 42%, rgb(17 24 39) 100%) !important;
}
.dark .departments-page .home-dept-showcase-title,
.dark .departments-page .sections-cards-title {
  color: #f3f4f6 !important;
}
.dark .departments-page header > p {
  color: #cbd5e1 !important;
}
.departments-page:has(.dept-stage) ul.grid,
.departments-page .dept-stage-legacy {
  display: none !important;
}
.departments-page .dept-stage {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.15fr);
  grid-template-areas:
    "copy visual"
    "tabs tabs";
  gap: 1rem 1.1rem;
  align-items: stretch;
  margin-top: 0.25rem;
}
.dept-stage-copy {
  grid-area: copy;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  padding: 1.45rem 1.35rem 1.25rem;
  border-radius: 1.7rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgb(var(--brand-primary-rgb) / 0.14);
  box-shadow: 0 12px 32px rgb(var(--brand-darker-rgb) / 0.08);
  overflow: hidden;
}
.dept-stage-progress {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
}
.dept-stage-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: rgb(var(--brand-primary-rgb));
  animation-name: dept-stage-bar;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes dept-stage-bar {
  from { width: 0; }
  to { width: 100%; }
}
.dept-stage-kicker {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgb(var(--brand-primary-rgb));
}
.dept-stage-copy-body.is-out {
  opacity: 0;
  transform: translateY(10px);
}
.dept-stage-copy-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.dept-stage-index {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.dept-stage-title {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1.25;
  font-weight: 800;
}
.dept-stage-desc {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.9;
}
.dept-stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: rgb(var(--brand-primary-rgb));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.dept-stage-cta svg {
  width: 1rem;
  height: 1rem;
}
[dir="rtl"] .dept-stage-cta svg {
  transform: scaleX(-1);
}
.dept-stage-visual { grid-area: visual; }
.dept-stage-tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.15rem 0 0;
  padding: 0;
}
.dept-stage-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  text-align: start;
  border: 1px solid rgb(var(--brand-primary-rgb) / 0.14);
  background: #fff;
  color: #0f172a;
  border-radius: 1rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgb(var(--brand-darker-rgb) / 0.06);
}
.dept-stage-tab.is-on {
  background: rgb(var(--brand-primary-rgb));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgb(var(--brand-primary-rgb) / 0.28);
}
.dept-stage-tab-photo {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex: none;
  background: rgb(var(--brand-surface-rgb));
}
.dept-stage-tab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dept-stage-tab-no {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.7;
}
.dept-stage-tab-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}
.dept-stage-frame {
  position: relative;
  height: 100%;
  min-height: 24rem;
  border-radius: 1.7rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}
.dept-stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.dept-stage-frame img.is-on {
  opacity: 1;
}
.dept-stage-photo-count {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.dept-stage-nav {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.dept-stage-prev { inset-inline-start: 1rem; }
.dept-stage-next { inset-inline-end: 1rem; }
.dark .dept-stage-copy,
.dark .dept-stage-tab {
  background: rgba(17, 24, 39, 0.9);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .dept-stage-desc,
.dark .dept-stage-index { color: #cbd5e1; }
.dark .dept-stage-progress { background: rgba(255, 255, 255, 0.08); }
.dark .dept-stage-tab.is-on {
  background: rgb(var(--brand-primary-rgb));
  color: #fff;
  border-color: transparent;
}
@media (max-width: 900px) {
  .departments-page .dept-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "copy"
      "tabs";
  }
  .dept-stage-frame { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .dept-stage-copy { min-height: 0; }
  .dept-stage-tabs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dept-stage-frame img,
  .dept-stage-copy-body { transition: none; }
  .dept-stage-progress > span { animation: none; width: 100%; }
}

/* التقويم على سعة الشاشة */
#year-calendar-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem) 2.5rem !important;
}
.year-cal-root { overflow: visible !important; }
.year-cal-root > .relative > header,
.year-cal-root .year-cal-tabs,
.year-cal-root #year-cal-hijri-note,
.year-cal-root > .relative > footer,
#year-cal-grid,
.year-cal-deco,
.year-cal-bg {
  display: none !important;
}
.cal-stage {
  position: relative;
  width: 100%;
  margin: 0 auto 1rem;
  padding: 0.4rem 0 0.2rem;
}
.cal-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.cal-shape-a {
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  top: -3.5rem;
  inset-inline-start: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand-primary-rgb) / 0.22), transparent 68%);
}
.cal-shape-b {
  width: 9.5rem;
  height: 9.5rem;
  top: 18%;
  inset-inline-end: -1.5rem;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--brand-primary-rgb) / 0.28);
}
.cal-shape-c {
  width: 4.5rem;
  height: 4.5rem;
  bottom: 5.5rem;
  inset-inline-start: 42%;
  border-radius: 1.2rem;
  transform: rotate(18deg);
  background: rgb(var(--brand-primary-rgb) / 0.12);
}
.cal-studio {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16.5rem, 0.72fr);
  gap: 1rem;
  width: 100%;
}
.cal-studio-main,
.cal-service,
.cal-service-card {
  background: #fff;
  border: 1px solid rgb(var(--brand-primary-rgb) / 0.12);
  box-shadow: 0 16px 40px rgb(var(--brand-darker-rgb) / 0.07);
}
.cal-studio-main {
  border-radius: 1.8rem;
  padding: 1.35rem 1.35rem 1.1rem;
}
.cal-studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.cal-studio-kicker {
  margin: 0 0 0.15rem;
  color: rgb(var(--brand-primary-rgb));
  font-size: 0.8rem;
  font-weight: 800;
}
.cal-studio-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.cal-studio-year {
  font-size: 1.7rem;
  font-weight: 800;
  color: rgb(var(--brand-primary-rgb));
}
.cal-studio-week,
.cal-studio-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-studio-week span {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0 0.55rem;
}
.cal-studio-day {
  height: 3.15rem;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
}
.cal-studio-day > span {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.cal-studio-day.is-weekend { color: #94a3b8; }
.cal-studio-day.is-school > span { background: rgb(var(--brand-surface-rgb) / 0.7); }
.cal-studio-day.is-today > span {
  background: rgb(var(--brand-primary-rgb));
  color: #fff;
  box-shadow: 0 8px 18px rgb(var(--brand-primary-rgb) / 0.35);
}
.cal-services {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cal-service {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 1.35rem;
  padding: 0.95rem 1rem;
  color: #0f172a;
}
.cal-service p {
  margin: 0;
  color: rgb(var(--brand-primary-rgb));
  font-size: 0.75rem;
  font-weight: 800;
}
.cal-service strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.cal-service span { color: #64748b; font-size: 0.86rem; }
.cal-service-mark {
  width: 3.3rem;
  height: 3.3rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgb(var(--brand-primary-rgb));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}
.cal-service-mark--soft {
  background: rgb(var(--brand-surface-rgb));
  color: rgb(var(--brand-dark-rgb));
  font-size: 0.82rem;
}
.cal-service-duty {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-height: 9.5rem;
  background: linear-gradient(160deg, rgb(var(--brand-primary-rgb)), rgb(var(--brand-dark-rgb)));
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
}
.cal-service-duty::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.12);
  inset-inline-end: -2.2rem;
  bottom: -2.4rem;
}
.cal-service-duty p { color: rgba(255, 255, 255, 0.82); }
.cal-service-duty strong { font-size: 1.55rem; }
.cal-service-duty span { color: rgba(255, 255, 255, 0.9); }
.cal-count {
  margin-top: 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.cal-count b { font-size: 2.4rem; line-height: 1; }
.cal-count small { font-size: 0.9rem; }
.cal-service-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
.cal-service-card {
  border-radius: 1.15rem;
  padding: 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #0f172a;
}
.cal-service-card b { font-size: 0.95rem; }
.cal-service-card span { color: #64748b; font-size: 0.75rem; line-height: 1.4; }
.cal-service-card.is-now {
  background: rgb(var(--brand-primary-rgb));
  color: #fff;
  border-color: transparent;
}
.cal-service-card.is-now span { color: rgba(255, 255, 255, 0.88); }
.cal-service-card.is-next { box-shadow: inset 0 0 0 1.5px rgb(var(--brand-primary-rgb)), 0 16px 40px rgb(var(--brand-darker-rgb) / 0.07); }
.dark .cal-studio-main,
.dark .cal-service,
.dark .cal-service-card {
  background: rgba(17, 24, 39, 0.92);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .cal-studio-head h2,
.dark .cal-studio-day { color: #f8fafc; }
.dark .cal-studio-week span,
.dark .cal-studio-day.is-weekend,
.dark .cal-service span,
.dark .cal-service-card span { color: #94a3b8; }
.dark .cal-service-mark--soft { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.dark .cal-service-card.is-now span { color: rgba(255, 255, 255, 0.88); }
@media (max-width: 980px) {
  .cal-studio { grid-template-columns: 1fr; }
  .cal-service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-shape-b, .cal-shape-c { display: none; }
}
@media (min-width: 1100px) {
  .cal-studio-day { height: 3.55rem; font-size: 1.05rem; }
  .cal-studio-day > span { width: 2.8rem; height: 2.8rem; }
}
