/* Sunny Academy theme: light yellow / orange accents and ornament background */
:root{
  --sunny-yellow:#FFF6C3;
  --sunny-orange:#FFB36B;
  --sunny-accent:#FF8A00;
  --sunny-green:#9ACD32;
  --text-color:#5a4a2a;
}

body.home, body.d-flex.home {
  background-image: linear-gradient(135deg,var(--sunny-yellow) 0%, #FFE4B5 40%, var(--sunny-orange) 100%);
  color: var(--text-color);
  background-attachment: fixed;
}

/* Decorative repeating SVG with letters, numbers and math symbols */
body.home::before, body.d-flex.home::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><style>text{font-family:Arial,Helvetica,sans-serif;font-weight:700;}</style><text x='10' y='30' fill='%23FF7043' font-size='26' transform='rotate(-15 10 30)'>A</text><text x='70' y='40' fill='%23FFD54A' font-size='20' transform='rotate(10 70 40)'>B</text><text x='130' y='30' fill='%239ACD32' font-size='18' transform='rotate(-20 130 30)'>C</text><text x='30' y='110' fill='%23FF8A00' font-size='22' transform='rotate(8 30 110)'>1</text><text x='90' y='140' fill='%23FF7043' font-size='18' transform='rotate(-12 90 140)'>2</text><text x='150' y='120' fill='%23FFD54A' font-size='20' transform='rotate(20 150 120)'>3</text><text x='20' y='170' fill='%239ACD32' font-size='20' transform='rotate(-5 20 170)'>+</text><text x='60' y='60' fill='%23FF8A00' font-size='20' transform='rotate(25 60 60)'>=</text><text x='160' y='170' fill='%23FF7043' font-size='18' transform='rotate(30 160 170)'>*</text></svg>");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Ensure page-wrap content sits above the ornament layer */
#page-wrap { position: relative; z-index: 2; }

/* Buttons and rounded elements */
.cta-btn, .mc-btn, .btn, .mc-btn-3, .btn-style-1, .btn-style-2 { border-radius: 28px; }

/* Accent colors */
a, .logo a { color: var(--sunny-accent); font-weight:700; }
.header { background: rgba(255,255,255,0.9); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.header .container {
  text-align: center;
}

.site-brand {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 0;
}

.site-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(255, 138, 0, 0.28);
  border: 3px solid rgba(255, 214, 74, 0.7);
  background: #fff9f0;
}

.site-title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #D97700;
  background: linear-gradient(90deg, #FFB347, #FF8A00, #7CB342);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 12px rgba(255, 140, 0, 0.18);
  text-align: center;
  display: inline-block;
}

@media (max-width: 768px) {
  .site-title { font-size: 32px; }
  .site-logo { width: 64px; height: 64px; }
}

/* Cards */
.service-card, .login-card, .course-card { background: linear-gradient(180deg,#ffffff 0%, #FFF9F0 100%); border-radius: 12px; }

/* Contact button */
.call-btn { background: var(--sunny-green); color: #fff; padding: 10px 16px; border-radius: 12px; }

/* Slight adjustments for admin area */
body.d-flex .container, .container-fluid { z-index: 3; }

/* Calendar styling */
.sunny-calendar {
  background: linear-gradient(180deg, #ffffff 0%, #FFF9F0 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fc .fc-toolbar-title { color: var(--text-color); font-weight: 800; }
.fc .fc-button-primary {
  background: var(--sunny-accent);
  border-color: var(--sunny-accent);
  border-radius: 18px;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--sunny-green);
  border-color: var(--sunny-green);
}
.fc .fc-daygrid-event {
  border-radius: 12px;
  padding: 2px 6px;
  font-weight: 600;
}
.fc .fc-timegrid-event {
  border-radius: 12px;
}
.fc .fc-daygrid-day-number {
  color: var(--text-color);
  font-weight: 700;
}
.fc .fc-col-header-cell-cushion { color: var(--text-color); }

@media (max-width:780px){
  body.home::before, body.d-flex.home::before { opacity: 0.16; }
}
