/* ============================================================
   ReadySchoolDesk — Website CSS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --ws-primary: #6366f1;
  --ws-primary-dark: #4f46e5;
  --ws-secondary: #f59e0b;
  --ws-dark: #0f172a;
  --ws-text: #334155;
  --ws-muted: #64748b;
  --ws-border: #e2e8f0;
  --ws-bg: #f8fafc;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--ws-text); line-height: 1.7; }
img { max-width: 100%; }

/* ── Top Bar ─────────────────────────────────────────────── */
.website-topbar { background: var(--ws-dark); color: rgba(255,255,255,.7); font-size: 13px; }

/* ── Navbar ──────────────────────────────────────────────── */
.website-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ws-border);
  padding: 12px 0;
  transition: all .3s;
}

.website-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.brand-name { font-size: 1.1rem; font-weight: 700; color: var(--ws-dark); line-height: 1.2; }
.brand-tagline { font-size: 11px; color: var(--ws-muted); }
.brand-icon { width: 44px; height: 44px; background: var(--ws-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; }

.website-navbar .nav-link { color: var(--ws-text); font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 8px; transition: all .2s; }
.website-navbar .nav-link:hover, .website-navbar .nav-link.active { color: var(--ws-primary); background: rgba(99,102,241,.08); }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge { background: rgba(99,102,241,.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 500; display: inline-block; margin-bottom: 20px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { background: linear-gradient(135deg, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 500px; }

.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-value { font-size: 1.8rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); }

/* ── Section Styles ──────────────────────────────────────── */
.section-badge { background: rgba(99,102,241,.1); color: var(--ws-primary); border-radius: 20px; padding: 6px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 12px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--ws-dark); margin-bottom: 16px; }
.section-subtitle { color: var(--ws-muted); font-size: 1rem; max-width: 600px; margin: 0 auto 40px; }

/* ── Feature Cards ───────────────────────────────────────── */
.feature-card { background: #fff; border: 1px solid var(--ws-border); border-radius: 16px; padding: 28px; transition: all .3s; height: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.1); border-color: var(--ws-primary); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }

/* ── News Cards ──────────────────────────────────────────── */
.news-card { background: #fff; border: 1px solid var(--ws-border); border-radius: 16px; overflow: hidden; transition: all .3s; height: 100%; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.news-card:hover img { transform: scale(1.05); }
.news-card-body { padding: 20px; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(99,102,241,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card { background: #fff; border: 1px solid var(--ws-border); border-radius: 16px; padding: 28px; position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 16px; right: 20px; font-size: 5rem; color: var(--ws-primary); opacity: .1; font-family: Georgia, serif; line-height: 1; }

/* ── Admission CTA ───────────────────────────────────────── */
.admission-cta { background: linear-gradient(135deg, var(--ws-primary) 0%, #8b5cf6 100%); border-radius: 24px; padding: 60px 40px; color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */
.website-footer { background: var(--ws-dark); }
.footer-link { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; display: block; padding: 4px 0; transition: color .2s; }
.footer-link:hover { color: #fff; }

/* ── Admission Form ──────────────────────────────────────── */
.admission-hero { background: linear-gradient(135deg, #0f172a, #1e1b4b); padding: 80px 0 40px; color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-section { min-height: 70vh; }
}

/* ── Animations ──────────────────────────────────────────── */
.animate-fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* ── Flash Updates Ticker ────────────────────────────────── */
.flash-updates-bar {
  background: linear-gradient(90deg, #1a1a2e, #16213e, #0f3460);
  border-bottom: 2px solid var(--ws-secondary);
  overflow: hidden;
  position: relative;
}

.flash-label {
  background: var(--ws-secondary);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  white-space: nowrap;
  z-index: 2;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 30px;
}

.flash-ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.flash-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: flash-scroll var(--ticker-duration, 30s) linear infinite;
}

.flash-ticker-track:hover {
  animation-play-state: paused;
}

.flash-ticker-item {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0 8px;
}

.flash-link {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}

.flash-link:hover {
  color: var(--ws-secondary);
  text-decoration: underline;
}

.flash-separator {
  color: var(--ws-secondary);
  margin: 0 16px;
  font-size: 8px;
  opacity: .6;
}

.flash-type-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.flash-type-general    { background: #94a3b8; }
.flash-type-admission  { background: #22c55e; }
.flash-type-exam       { background: #06b6d4; }
.flash-type-result     { background: #6366f1; }
.flash-type-holiday    { background: #f59e0b; }
.flash-type-urgent     { background: #ef4444; }

/* Blinking animation for urgent/highlighted items */
@keyframes flash-blink {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0.3; }
}

.flash-blink {
  animation: flash-blink 1.2s ease-in-out infinite;
}

/* NEW badge pulse for urgent type */
.flash-ticker-item.flash-blink .flash-type-dot {
  animation: dot-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 6px currentColor;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .6; }
}

@keyframes flash-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .flash-label { font-size: 10px; padding: 8px 14px; padding-right: 24px; }
  .flash-ticker-item { font-size: 13px; }
}
