/* =========================================
   SPENA BRAND PALETTE & TYPOGRAPHY
   Extracted directly from the Spena Crest
========================================= */
:root {
  --spena-blue: #26348B;       /* Top Shield Royal Blue & "Spena" text */
  --spena-blue-dark: #1A2463;  /* Deep Hover Blue */
  --spena-burgundy: #7D1935;   /* Lower Shield Maroon/Burgundy */
  --spena-gold: #F9D616;       /* Keys, Book & Banner Gold */
  --spena-gold-hover: #E5C20B;
  --spena-ink: #16181D;        /* Crest Outline Charcoal */
  --bg-light: #F7F8FC;
  --white: #FFFFFF;
  --text-muted: #5A6072;
  --border-color: #E2E6F0;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 4px 12px rgba(22, 24, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 52, 139, 0.12);
  --shadow-lg: 0 18px 40px rgba(22, 24, 29, 0.18);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   LOCAL TIKTOK-STYLE REEL CARDS
========================================= */
.tiktok-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.reel-card {
  position: relative;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--spena-gold);
}

.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px; /* Leaves room for native video play/pause bar */
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--white);
  pointer-events: none;
}

.reel-tag {
  display: inline-block;
  background: var(--spena-gold);
  color: var(--spena-blue);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.reel-overlay h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reel-link {
  pointer-events: auto;
  color: var(--spena-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.reel-link:hover {
  text-decoration: underline;
}



body {
  font-family: var(--font-body);
  color: var(--spena-ink);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-gold {
  background-color: var(--spena-gold);
  color: var(--spena-blue);
}

.btn-gold:hover {
  background-color: var(--spena-gold-hover);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--spena-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--spena-blue-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--spena-blue);
}

/* =========================================
   TOP UTILITY BAR & NAVBAR
========================================= */
.top-bar {
  background-color: var(--spena-burgundy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact span {
  margin-right: 20px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
}

.top-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-links .badge-link {
  background-color: var(--spena-gold);
  color: var(--spena-blue);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  opacity: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--spena-blue);
  letter-spacing: 0.3px;
  line-height: 1.05;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--spena-burgundy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  color: var(--spena-ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--spena-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--spena-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--spena-blue);
  cursor: pointer;
}

/* =========================================
   HERO IMAGE SLIDER
========================================= */
.hero-slider {
  position: relative;
  height: 82vh;
  min-height: 540px;
  max-height: 760px;
  overflow: hidden;
  background-color: var(--spena-blue);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 5s ease, visibility 0.8s;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 36, 99, 0.68) 0%,
    rgba(38, 52, 139, 0.12) 15%,
    rgba(125, 25, 53, 0.4) 50%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
}

.slide-pill {
  display: inline-block;
  background-color: var(--spena-gold);
  color: var(--spena-blue);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.slide-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.94;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(22, 24, 29, 0.35);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s;
}

.slider-arrow:hover {
  background: var(--spena-gold);
  color: var(--spena-blue);
  border-color: var(--spena-gold);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--spena-gold);
}

/* =========================================
   STATS BAR
========================================= */
.stats-bar {
  background: var(--white);
  position: relative;
  z-index: 10;
  margin-top: -36px;
}

.stats-grid {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--spena-gold);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(38, 52, 139, 0.08);
  color: var(--spena-blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-item h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--spena-burgundy);
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =========================================
   GENERAL SECTIONS
========================================= */
.section {
  padding: 84px 0;
}

.section-subtitle {
  display: inline-block;
  color: var(--spena-burgundy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 48px;
}

.text-center {
  text-align: center;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--spena-blue);
  margin-bottom: 14px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-card-visual {
  background: linear-gradient(145deg, var(--bg-light) 0%, #ECEFFA 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-crest-display {
  max-width: 190px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.about-card-visual h3 {
  color: var(--spena-blue);
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.about-card-visual p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.experience-badge {
  position: absolute;
  bottom: -18px;
  right: 20px;
  background: var(--spena-blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  border-left: 5px solid var(--spena-gold);
  box-shadow: var(--shadow-md);
  font-weight: 700;
}

.check-list {
  list-style: none;
  margin: 22px 0 30px;
}

.check-list li {
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--spena-ink);
}

/* Programs Cards */
.programs-section {
  background-color: var(--bg-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  padding: 34px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card.featured {
  border-top: 5px solid var(--spena-gold);
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.card-badge.royal { background: rgba(38, 52, 139, 0.12); color: var(--spena-blue); }
.card-badge.gold { background: var(--spena-gold); color: var(--spena-blue); }
.card-badge.burgundy { background: rgba(125, 25, 53, 0.12); color: var(--spena-burgundy); }

.card-icon {
  font-size: 2rem;
  color: var(--spena-blue);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--spena-ink);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--spena-burgundy);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(120deg, var(--spena-blue) 0%, var(--spena-burgundy) 100%);
  color: var(--white);
  padding: 56px 0;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.news-date {
  background: var(--spena-blue);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  height: fit-content;
  border-bottom: 4px solid var(--spena-gold);
}

.news-date span {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--spena-burgundy);
  text-transform: uppercase;
}

.news-body h3 {
  font-size: 1.1rem;
  margin: 4px 0 8px;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--spena-ink);
  color: #D2D6E2;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.text-white { color: var(--white) !important; }
.text-gold { color: var(--spena-gold) !important; }

.footer-desc {
  margin-top: 16px;
  max-width: 340px;
  font-size: 0.92rem;
}

.footer h4 {
  color: var(--spena-gold);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-links a {
  color: #D2D6E2;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--spena-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* =========================================
   STICKY LEFT: CALL & WHATSAPP BUTTONS
========================================= */
.sticky-left-actions {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sticky-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.25s ease;
}

.sticky-btn:hover {
  transform: scale(1.1);
}

.call-btn {
  background-color: var(--spena-blue);
  border: 2px solid var(--spena-gold);
}

.whatsapp-btn {
  background-color: #25D366;
}

.sticky-btn .tooltip {
  position: absolute;
  left: 66px;
  background: var(--spena-ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sticky-btn:hover .tooltip {
  opacity: 1;
}

/* =========================================
   STICKY RIGHT: SPENA AI ASSISTANT
========================================= */
.ai-widget-wrapper {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 995;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sticky-ai-btn {
  background: linear-gradient(135deg, var(--spena-blue), var(--spena-burgundy));
  color: var(--white);
  border: 2px solid var(--spena-gold);
  border-radius: 50px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}

.sticky-ai-btn:hover {
  transform: translateY(-3px);
}

.ai-chat-box {
  width: 350px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 14px;
  display: none;
  flex-direction: column;
  animation: popUp 0.25s ease;
}

.ai-chat-box.open {
  display: flex;
}

@keyframes popUp {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  background: var(--spena-blue);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--spena-gold);
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--spena-gold);
  color: var(--spena-blue);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.ai-header-info h4 {
  font-size: 0.95rem;
  line-height: 1.2;
}

.ai-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-status .dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
}

#closeAiChat {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ai-chat-messages {
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-light);
}

.msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  max-width: 85%;
  line-height: 1.45;
}

.msg.bot {
  background: var(--white);
  color: var(--spena-ink);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.user {
  background: var(--spena-blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.quick-prompts button {
  background: var(--white);
  border: 1px solid var(--spena-blue);
  color: var(--spena-blue);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-prompts button:hover {
  background: var(--spena-blue);
  color: var(--white);
}

.ai-chat-input {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: var(--white);
}

.ai-chat-input input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.ai-chat-input button {
  background: var(--spena-gold);
  color: var(--spena-blue);
  border: none;
  padding: 0 18px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-chat-input button:hover {
  background: var(--spena-gold-hover);
}

/* =========================================
   INSTAGRAM & DUAL SOCIAL HUB STYLES
========================================= */
.social-pill-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  border: none;
}

.btn-instagram:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.reel-tag.ig-tag {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: var(--white);
}

.instagram-embeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}




/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 900px) {
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 3px solid var(--spena-gold);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .slider-arrow {
    display: none;
  }
}
