﻿/* =====================================================
   BSS REGION PAGE v2 — Hero banner, grade cards
   ===================================================== */

.rt-root { min-height: 100vh; }

/* ── HERO ──────────────────────────────────────────── */
.rt-hero { padding: 130px 64px 70px; text-align: center; }

.rt-hero-shape {
  position: absolute; pointer-events: none; opacity: 0.06;
  border: 2px solid rgba(255,255,255,0.5);
}
.rt-shape-1 { width:140px; height:140px; border-radius:50%;  top:10%; right:12%;  animation: rtFloat 16s ease-in-out infinite; }
.rt-shape-2 { width:80px;  height:80px;  border-radius:10px; bottom:15%; left:8%;  animation: rtFloat 12s ease-in-out infinite 2s; }
.rt-shape-3 { width:100px; height:100px; border-radius:50%;  top:40%; left:20%;   animation: rtFloat 18s ease-in-out infinite 4s; }
@keyframes rtFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(6deg); }
  66%       { transform: translateY(8px) rotate(-4deg); }
}

.rt-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.2; pointer-events: none;
}
.rt-orb-1 {
  width:350px; height:350px; top:-80px; right:-60px;
  background: radial-gradient(circle, #E08B30 0%, transparent 70%);
  animation: rtOrbPulse 9s ease-in-out infinite;
}
.rt-orb-2 {
  width:280px; height:280px; bottom:-60px; left:5%;
  background: radial-gradient(circle, #D4736A 0%, transparent 70%);
  animation: rtOrbPulse 11s ease-in-out infinite 3s;
}
@keyframes rtOrbPulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50%       { transform: scale(1.15) translate(12px,-10px); opacity: 0.3; }
}

.rt-deco-shape {
  position: absolute; pointer-events: none;
  animation: rtDecoFloat ease-in-out infinite both;
}
@keyframes rtDecoFloat {
  0%   { transform: translate(0,0)   rotate(var(--r,0deg)); opacity: 1; }
  25%  { transform: translate(10px,-14px) rotate(calc(var(--r,0deg) + 4deg)); opacity: 0.8; }
  50%  { transform: translate(-6px,-22px) rotate(calc(var(--r,0deg) - 2deg)); opacity: 1; }
  75%  { transform: translate(8px,6px)    rotate(calc(var(--r,0deg) + 2deg)); opacity: 0.7; }
  100% { transform: translate(0,0)   rotate(var(--r,0deg)); opacity: 1; }
}

.rt-hero-content { position: relative; z-index: 2; }

.rt-breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: rgba(255,255,255,0.4);
  margin-bottom: 24px; animation: rtFadeIn 0.6s ease-out;
}
.rt-bread-link {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.rt-bread-link:hover { color: #E08B30; }
.rt-bread-sep    { opacity: 0.3; }
.rt-bread-current { color: rgba(255,255,255,0.6); }

.rt-hero-title {
  font-family: 'DM Serif Display', serif; font-size: 52px;
  color: #fff; line-height: 1.1; margin-bottom: 12px;
  animation: rtFadeIn 0.6s ease-out 0.1s both;
}
.rt-hero-sub {
  font-size: 16px; color: #E08B30; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  animation: rtFadeIn 0.6s ease-out 0.2s both;
}
.rt-hero-wave {
  position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 60px; display: block;
}
@keyframes rtFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SEARCH ────────────────────────────────────────── */
.rt-search-section { padding: 28px 48px 0; text-align: center; }
.rt-search-wrap {
  position: relative; max-width: 420px; margin: 0 auto;
  animation: rtFadeIn 0.6s ease-out 0.4s both;
}
.rt-search-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); z-index: 2;
}
.rt-search {
  width: 100%; padding: 14px 22px 14px 50px;
  border-radius: 14px; border: 2px solid rgba(27,58,92,0.1);
  background: #fff; font-size: 15px; color: #2C2215;
  outline: none; font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}
.rt-search:focus {
  border-color: rgba(27,58,92,0.25);
  box-shadow: 0 0 0 4px rgba(27,58,92,0.06);
}

/* ── GRADE CARDS ───────────────────────────────────── */
.rt-grades-section { padding: 32px 48px 80px; }
.rt-section-title {
  font-family: 'DM Serif Display', serif; font-size: 28px;
  color: #1B3A5C; text-align: center; margin-bottom: 32px;
  animation: rtFadeIn 0.6s ease-out 0.5s both;
}
.rt-grades-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}

.rt-grade-card {
  position: relative; background: #fff; border-radius: 20px;
  overflow: hidden; cursor: pointer; text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  animation: rtCardEntry 0.5s ease-out both;
  display: flex; flex-direction: column;
}
@keyframes rtCardEntry {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.rt-grade-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.rt-grade-card.hidden { display: none; }

.rt-grade-accent {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; transition: height 0.3s;
}
.rt-grade-card:hover .rt-grade-accent { height: 6px; }

.rt-grade-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; min-height: 140px; transition: background 0.3s;
}
.rt-grade-icon-wrap svg { transition: transform 0.4s; }
.rt-grade-card:hover .rt-grade-icon-wrap svg { transform: scale(1.1) rotate(2deg); }

.rt-grade-info { padding: 4px 20px 22px; }
.rt-grade-name {
  font-family: 'DM Serif Display', serif; font-size: 18px;
  color: #1B3A5C; margin-bottom: 6px;
}
.rt-grade-arrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; opacity: 0;
  transform: translateX(-6px); transition: all 0.3s;
}
.rt-grade-card:hover .rt-grade-arrow { opacity: 1; transform: translateX(0); }

.rt-no-results {
  text-align: center; color: #7A6B5A; padding: 48px; font-size: 15px;
}

/* AJAX loading transition */
#bss-grades-grid { transition: opacity 0.15s ease; }

/* ── COMING SOON ───────────────────────────────────── */
.bss-coming-soon {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 60px 40px;
  background: linear-gradient(135deg,#fffbf5 0%,#fff8ee 100%);
  border: 2px solid #E08B30;
  border-radius: 16px;
  text-align: center;
  color: #1B3A5C;
}
.bss-coming-soon-title {
  font-size: 20px; font-weight: 700;
  color: #1B3A5C; margin: 0;
}
.bss-coming-soon-msg {
  font-size: 15px; color: #5A4A3A;
  max-width: 480px; margin: 0; line-height: 1.6;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .rt-hero           { padding: 110px 24px 60px; }
  .rt-hero-title     { font-size: 36px; }
  .rt-deco-shape     { display: none; }
  .rt-search-section { padding: 24px 24px 0; }
  .rt-grades-section { padding: 28px 24px 60px; }
  .rt-grades-grid    { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .rt-grade-icon-wrap { min-height: 110px; padding: 16px; }
}
@media (max-width: 480px) {
  .rt-hero-title   { font-size: 28px; }
  .rt-grades-grid  { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .rt-grade-info   { padding: 4px 14px 18px; }
  .rt-grade-name   { font-size: 15px; }
}
