/* =========================================================
   CodeSpazio — ALIVE UI additions v4.0
   Injected AFTER main style.css via <link> in header.php
   All selectors here are additive / override-safe.
   ========================================================= */

/* ── 0. New glow variables ────────────────────────────────── */
:root {
  --glow-gold:   0 0 28px rgba(176,141,87,.55), 0 0 8px rgba(176,141,87,.3);
  --glow-navy:   0 0 28px rgba(15,30,54,.4),    0 0 8px rgba(15,30,54,.2);
  --glow-white:  0 0 20px rgba(255,255,255,.25);
  --pulse-color: rgba(176,141,87,.35);
}

/* ── 1. TEXT SELECTION in brand gold ─────────────────────── */
::selection { background: var(--secondary); color: #fff; }

/* ── 2. HERO — animated gradient mesh background ─────────── */
.hero-section {
  background: linear-gradient(135deg, #071020 0%, #0f1e36 40%, #1c2b42 70%, #0f1e36 100%);
  background-size: 300% 300%;
  animation: heroGradientShift 12s ease-in-out infinite;
}
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particle canvas overlay */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above canvas */
.hero-section .container { position: relative; z-index: 2; }
.hero-section .floating-shapes { z-index: 1; }

/* Gold floating shapes instead of plain blue */
.shape-1 { background: radial-gradient(circle, #b08d57 0%, transparent 70%); opacity: .15 !important; }
.shape-2 { background: radial-gradient(circle, #0f1e36 0%, #2a3c54 60%, transparent 100%); opacity: .2 !important; }
.shape-3 { background: radial-gradient(circle, #b08d57 0%, transparent 70%); opacity: .1 !important; }

/* ── 3. HERO BADGE — gold glow ring ──────────────────────── */
.hero-badge {
  background: rgba(176,141,87,.15) !important;
  border: 1px solid rgba(176,141,87,.45) !important;
  color: #e8c87a !important;
  box-shadow: 0 0 18px rgba(176,141,87,.2);
  animation: fadeInDown .8s ease, badgePulse 3s ease-in-out 1s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 18px rgba(176,141,87,.2); }
  50%       { box-shadow: 0 0 32px rgba(176,141,87,.45); }
}

/* ── 4. HERO TITLE — brand gradient text ─────────────────── */
.hero-title-accent {
  background: linear-gradient(135deg, #e8c87a 0%, #b08d57 50%, #f0d48a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTextShift 4s ease infinite;
}
@keyframes gradientTextShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── 5. HERO STATS — pulse rings behind numbers ──────────── */
.hero-stat .number {
  position: relative;
  display: inline-block;
}
.hero-stat .number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(176,141,87,.3);
  animation: statPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes statPulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* ── 6. SECTION TITLE — animated gold underline ─────────── */
.section-title::after {
  background: linear-gradient(90deg, var(--secondary) 0%, #e8c87a 50%, var(--secondary) 100%);
  background-size: 200% auto;
  animation: goldLineShift 3s linear infinite;
  height: 3px;
  width: 56px;
}
@keyframes goldLineShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── 7. TAG / BADGE — shimmer sweep ─────────────────────── */
.tag, .section-badge {
  background: linear-gradient(90deg, var(--primary-light) 0%, rgba(176,141,87,.12) 50%, var(--primary-light) 100%);
  background-size: 200% auto;
  border: 1px solid rgba(176,141,87,.3) !important;
  color: var(--primary) !important;
  animation: tagShimmer 3.5s linear infinite;
}
@keyframes tagShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── 8. SERVICE ICON — gold glow on hover ────────────────── */
.service-icon {
  transition: transform .5s cubic-bezier(.25,1,.5,1),
              box-shadow .5s ease !important;
}
.card-premium:hover .service-icon {
  box-shadow: var(--glow-gold) !important;
}

/* ── 9. CARD PREMIUM — shimmer wipe + gold border glow ───── */
.card-premium {
  border: 1px solid rgba(176,141,87,.15) !important;
  transition: all .6s cubic-bezier(.25,1,.5,1) !important;
}
.card-premium::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform: skewX(-15deg);
  transition: left .7s ease;
  pointer-events: none;
  z-index: 2;
}
.card-premium:hover::after { left: 160%; }
.card-premium:hover {
  border-color: rgba(176,141,87,.35) !important;
  box-shadow: 0 20px 50px rgba(15,30,54,.08), 0 0 0 1px rgba(176,141,87,.2) !important;
}

/* ── 10. BUTTONS — animated gradient + glow ──────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, #0f1e36 0%, #b08d57 60%, #0f1e36 100%) !important;
  background-size: 200% auto !important;
  transition: background-position .6s ease, transform .3s ease, box-shadow .3s ease !important;
}
.btn-primary-custom:hover {
  background-position: right center !important;
  box-shadow: var(--glow-gold) !important;
}
.btn-primary-custom::before { display: none; } /* remove old overlay */

/* ── 11. SCROLL REVEAL — slide-up ───────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.25,1,.5,1),
              transform .75s cubic-bezier(.25,1,.5,1);
}
.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped children */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.animate-on-scroll:nth-child(4) { transition-delay: .3s; }

/* ── 12. CTA SECTION — animated diagonal gradient ────────── */
.cta-section {
  background: linear-gradient(120deg, #0f1e36 0%, #1c2b42 30%, #b08d57 60%, #0f1e36 100%) !important;
  background-size: 300% 300% !important;
  animation: ctaGradient 8s ease-in-out infinite !important;
  border-top: 2px solid rgba(176,141,87,.4);
  border-bottom: 2px solid rgba(176,141,87,.4);
  position: relative;
  overflow: hidden;
}
.cta-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='%23b08d57' fill-opacity='0.05'%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");
  pointer-events: none;
}
@keyframes ctaGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulsing ring on CTA heading */
.cta-section h2 {
  position: relative;
  display: inline-block;
}

/* ── 13. STATS SECTION NUMBERS — animated gradient text ──── */
.about-number {
  background: linear-gradient(135deg, #b08d57 0%, #e8c87a 50%, #b08d57 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradientTextShift 3s ease infinite !important;
}

/* ── 14. REVIEW CARDS — gold left border on hover ────────── */
.cs-card:hover {
  border-left: 3px solid var(--secondary) !important;
}

/* ── 15. FOOTER SOCIAL — gold glow on hover ──────────────── */
.footer-social a:hover {
  background: var(--secondary) !important;
  box-shadow: var(--glow-gold) !important;
  color: #fff !important;
}

/* ── 16. PAGE HERO — shimmer overlay ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #071020 0%, #0f1e36 50%, #1c2b42 100%) !important;
  background-size: 200% 200% !important;
  animation: heroGradientShift 10s ease-in-out infinite !important;
}

/* ── 17. SCROLL-TO-TOP button — gold glow ────────────────── */
#scrollTop {
  background: var(--gradient-brand) !important;
  border: none !important;
  box-shadow: var(--glow-gold) !important;
}
#scrollTop:hover {
  box-shadow: 0 0 40px rgba(176,141,87,.7) !important;
}

/* ── 18. NAV LINK active/hover — gold underline ──────────── */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: transform .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── 19. BLOG CARD — gold accent bar on hover ────────────── */
.blog-card:hover {
  border-color: rgba(176,141,87,.3) !important;
}
.blog-card::after {
  background: var(--gradient-brand) !important;
}

/* ── 20. COURSE CARD — animated gradient border on hover ──── */
.course-card {
  border: 1px solid var(--border);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease !important;
}
.course-card:hover {
  border-color: rgba(176,141,87,.4) !important;
  box-shadow: 0 16px 48px rgba(15,30,54,.08), 0 0 0 1px rgba(176,141,87,.15) !important;
}

/* ── 21. INPUT FOCUS — gold glow ─────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(176,141,87,.15) !important;
}

/* ── 22. WAVE DIVIDER (injected by JS between sections) ───── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* ── 23. Counter number glow ────────────────────────────────── */
.count-up {
  background: linear-gradient(135deg, #fff 0%, #e8c87a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 24. PRELOADER - gold spinner ───────────────────────────── */
.loader-ring {
  border-top-color: var(--secondary) !important;
}

/* ── 25. Reduced-motion safety ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-section, .page-hero, .cta-section { animation: none !important; }
  .hero-badge { animation: fadeInDown .8s ease; }
  .card-premium::after { display: none; }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── 26. FLOATING CHATBOT WIDGET (Editorial & Classic) ───── */
.chatbot-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  font-family: Georgia, 'Times New Roman', Times, Baskerville, serif;
}
.chatbot-toggle {
  width: 54px;
  height: 54px;
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
  transition: all .35s cubic-bezier(.25, 1, 0.5, 1);
}
.chatbot-toggle:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(15, 30, 54, 0.35);
  color: #fff !important;
}
.chatbot-toggle i {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.chatbot-toggle:hover i {
  transform: scale(1.1);
}
.chatbot-toggle.active i {
  transform: rotate(90deg);
}
.chatbot-window {
  position: absolute;
  bottom: 72px;
  left: 0;
  width: 350px;
  max-width: calc(100vw - 56px);
  height: 480px;
  background: #faf8f5;
  border-radius: 12px;
  border: 2px solid var(--secondary);
  box-shadow: 0 15px 45px rgba(27,20,10,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom left;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.25,1,.5,1);
  z-index: 10000;
}
.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.chatbot-header {
  background: #f4f0e6;
  color: var(--primary);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px double var(--secondary);
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border: 1px solid var(--secondary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: Georgia, serif;
  font-size: 0.95rem;
}
.chatbot-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-family: Georgia, serif;
  color: var(--primary);
  line-height: 1.25;
}
.chatbot-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.chatbot-status-dot {
  width: 6px;
  height: 6px;
  background: #5c7050;
  border-radius: 50%;
  display: inline-block;
}
.chatbot-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color .2s;
  line-height: 1;
}
.chatbot-close:hover {
  color: var(--primary);
}
.chatbot-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #faf8f5;
  font-size: 0.9rem;
  line-height: 1.6;
}
.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: #faf8f5;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: chatFadeIn 0.3s ease both;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-message.bot {
  align-self: flex-start;
}
.chat-message.user {
  align-self: flex-end;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 8px;
}
.chat-message.bot .chat-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-top-left-radius: 0;
  box-shadow: 0 2px 8px rgba(27,20,10,0.03);
}
.chat-message.user .chat-bubble {
  background: #f4f0e6;
  color: var(--primary);
  border: 1px solid var(--border);
  border-top-right-radius: 0;
  font-weight: 700;
}
.chat-options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.chat-opt-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.25s ease;
  font-weight: 700;
  font-family: Georgia, serif;
  box-shadow: var(--shadow-xs);
}
.chat-opt-btn:hover {
  background: #f4f0e6;
  border-color: var(--secondary);
  color: var(--primary);
  transform: translateX(4px);
}
.chatbot-footer {
  padding: 14px 18px;
  background: #fff;
  border-top: 2px double var(--secondary);
}
.chatbot-footer-text {
  margin: 0 0 8px 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chatbot-footer-actions {
  display: flex;
  gap: 10px;
}
.chat-action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s;
}
.chat-action-btn.call {
  background: #f4f0e6;
  color: var(--primary) !important;
  border: 1px solid rgba(15,30,54,.1);
}
.chat-action-btn.call:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary) !important;
}
.chat-action-btn.whatsapp {
  background: #5c7050;
  color: #fff !important;
  border: 1px solid rgba(92,112,80,.2);
}
.chat-action-btn.whatsapp:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  align-items: center;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: chatTypingDot 1.4s infinite both;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTypingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  45% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .chatbot-container {
    bottom: 20px;
    left: 20px;
  }
  .chatbot-window {
    width: 290px;
    height: 400px;
    bottom: 60px;
  }
  .chatbot-toggle {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
}

/* ── 27. PREMIUM CLASSIC CARDS DESIGN UPGRADES ───────────── */
.card-premium {
  position: relative;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(176, 141, 87, 0.2) !important;
  box-shadow: 0 4px 20px rgba(15, 30, 54, 0.02) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.card-premium::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px double rgba(176, 141, 87, 0.12);
  pointer-events: none;
  transition: border-color 0.5s ease;
  z-index: 1;
}
.card-premium:hover::before {
  border-color: rgba(176, 141, 87, 0.4);
}
.card-premium::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 0% !important;
  height: 3px !important;
  background: var(--secondary) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
}
.card-premium:hover::after {
  width: 100% !important;
}
.card-premium:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 20px 40px rgba(15, 30, 54, 0.08), 0 0 0 1px rgba(176, 141, 87, 0.15) !important;
}

.blog-card {
  position: relative;
  background: #fff !important;
  border: 1px solid rgba(176, 141, 87, 0.15) !important;
  box-shadow: 0 4px 20px rgba(15, 30, 54, 0.02) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 20px 40px rgba(15, 30, 54, 0.08) !important;
}
.blog-card .blog-date {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--secondary) !important;
  font-weight: 500;
}

.course-card {
  position: relative;
  background: #fff !important;
  border: 1px solid rgba(176, 141, 87, 0.15) !important;
  box-shadow: 0 4px 20px rgba(15, 30, 54, 0.02) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px double rgba(176, 141, 87, 0.1);
  pointer-events: none;
  transition: border-color 0.5s ease;
  z-index: 1;
}
.course-card:hover::before {
  border-color: rgba(176, 141, 87, 0.35);
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 20px 40px rgba(15, 30, 54, 0.08) !important;
}

.cs-card {
  position: relative;
  background: #f4f0e6 !important;
  border: 1px solid rgba(176, 141, 87, 0.25) !important;
  border-left: 4px solid var(--secondary) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(15, 30, 54, 0.01) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.cs-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  border-left-color: var(--primary) !important;
  box-shadow: 0 15px 30px rgba(15, 30, 54, 0.06), 0 0 0 1px rgba(176, 141, 87, 0.2) !important;
  background: #fff !important;
}

/* ── 28. FLOATING CAPSULE NAVIGATION BAR ─────────────────── */
header {
  display: contents;
}

.navbar {
  position: sticky !important;
  top: 20px !important;
  margin: 20px auto !important;
  max-width: 1320px;
  width: calc(100% - 48px) !important;
  border-radius: 999px !important;
  padding: 14px 36px !important; /* Enlarged layout padding */
  background: rgba(244, 240, 230, 0.9) !important; /* Rich warm sand glass background */
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1.5px solid rgba(176, 141, 87, 0.45) !important; /* Bold Antique Gold border */
  border-bottom: 1.5px solid rgba(176, 141, 87, 0.45) !important;
  box-shadow: 0 10px 30px rgba(15, 30, 54, 0.05), 0 1px 3px rgba(176, 141, 87, 0.05), 0 0 18px rgba(176, 141, 87, 0.2) !important; /* Soft gold glowing under-light */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Scrolled state compaction styling */
.navbar.scrolled {
  top: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding: 8px 36px !important; /* Enlarged scrolled vertical padding */
  border-color: rgba(176, 141, 87, 0.65) !important;
  border-bottom-color: rgba(176, 141, 87, 0.65) !important;
  box-shadow: 0 12px 35px rgba(15, 30, 54, 0.08), 0 1px 5px rgba(176, 141, 87, 0.1), 0 0 24px rgba(176, 141, 87, 0.3) !important;
}

/* Ensure navbar-brand and logo text look prominent */
.navbar-brand {
  margin-right: 24px;
}
.navbar-brand img {
  height: 90px !important; /* Increased logo height from 80px */
}
.navbar.scrolled .navbar-brand img {
  height: 62px !important; /* Increased scrolled logo height from 56px */
}
.navbar-brand .d-flex span {
  font-size: 1.45rem !important; /* Enlarged brand name 'CodeSpazio' */
}
.navbar-brand .d-flex span span {
  font-size: 1.45rem !important;
}
.navbar-brand .d-flex span:last-child {
  font-size: 0.75rem !important; /* Enlarged brand subtitle 'Solutions Pvt Ltd' */
}

/* Enforce slightly larger navigation links for readability */
.navbar-nav .nav-link {
  font-size: 0.95rem !important; /* Increased link font-size */
  padding: 10px 18px !important; /* Increased link padding */
}
.navbar-nav .nav-link.nav-contact-btn {
  padding: 10px 24px !important; /* Taller contact button padding to balance */
}


/* Mobile responsive capsule overrides and dropdown menu styling */
@media (max-width: 991px) {
  .navbar {
    top: 10px !important;
    margin: 10px 12px !important;
    width: calc(100% - 24px) !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
  }
  
  .navbar.scrolled {
    top: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 6px 18px !important;
  }

  .navbar-collapse {
    background: rgba(244, 240, 230, 0.98) !important; /* Matching warm sand glass bubble */
    border: 1.5px solid rgba(176, 141, 87, 0.45) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin-top: 12px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 15px 35px rgba(15, 30, 54, 0.12) !important;
  }
  
  .navbar-nav {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
}

/* Styling dropdown menus to match the navbar warm ivory/sand frosted glass aesthetic */
.dropdown-menu {
  background: rgba(244, 240, 230, 0.98) !important; /* Matching warm sand dropdown */
  border: 1.5px solid rgba(176, 141, 87, 0.4) !important;
  box-shadow: 0 12px 35px rgba(15, 30, 54, 0.1) !important;
}
.dropdown-item {
  color: var(--primary) !important;
  font-family: Georgia, serif !important;
  font-weight: 600;
  transition: all 0.25s ease !important;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(176, 141, 87, 0.1) !important;
  color: var(--secondary) !important;
  padding-left: 1.25rem !important; /* Slide-in micro-animation */
}

/* ── 29. FOCUS STATE CLEANUP (COMPLETELY REMOVE ALL BOXES/GLOWS ON CLICK) ── */
/* 
   Ensures that clicking any button, link, card, menu item, or floating widget 
   does not generate any focus outline border, shadow box, or glowing box.
*/
a:focus, a:active, a:focus-visible,
button:focus, button:active, button:focus-visible,
.btn:focus, .btn:active, .btn:focus-visible,
.btn-primary-custom:focus, .btn-primary-custom:active, .btn-primary-custom:focus-visible,
.btn-outline-custom:focus, .btn-outline-custom:active, .btn-outline-custom:focus-visible,
.navbar .btn-primary:focus, .navbar .btn-primary:active, .navbar .btn-primary:focus-visible,
.nav-link:focus, .nav-link:active, .nav-link:focus-visible,
.navbar-brand:focus, .navbar-brand:active, .navbar-brand:focus-visible,
.navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler:focus-visible,
.dropdown-item:focus, .dropdown-item:active, .dropdown-item:focus-visible,
.card-premium:focus, .card-premium:active, .card-premium:focus-visible,
.blog-card:focus, .blog-card:active, .blog-card:focus-visible,
.course-card:focus, .course-card:active, .course-card:focus-visible,
.cs-card:focus, .cs-card:active, .cs-card:focus-visible,
.chatbot-toggle:focus, .chatbot-toggle:active, .chatbot-toggle:focus-visible,
.chat-opt-btn:focus, .chat-opt-btn:active, .chat-opt-btn:focus-visible,
.chat-action-btn:focus, .chat-action-btn:active, .chat-action-btn:focus-visible,
#scrollTop:focus, #scrollTop:active, #scrollTop:focus-visible,
#whatsappFloat:focus, #whatsappFloat:active, #whatsappFloat:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit;
  -webkit-tap-highlight-color: transparent !important; /* Disables tap-highlight boxes on mobile browsers */
}

/* ── 30. ENLARGED HERO GRID CARDS ────────────────────────── */
.hero-inner-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-inner-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(176, 141, 87, 0.35) !important;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ── 31. CLASSIC & AESTHETICS TICKER / MARQUEE LINE ──────── */
.cs-ticker {
  background: #f4f0e6 !important; /* Elegant warm sand paper background */
  border-top: 1.5px solid rgba(176, 141, 87, 0.3) !important; /* Top gold border */
  border-bottom: 1.5px solid rgba(176, 141, 87, 0.3) !important; /* Bottom gold border */
  padding: 10px 0 !important;
  margin-top: 0 !important;
}

.cs-ticker__track span {
  color: var(--primary) !important; /* Midnight Navy text */
  font-family: Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important; /* Elegantly scaled text */
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.cs-ticker__track span i {
  color: var(--secondary) !important; /* Antique Gold icons */
  font-size: 0.88rem !important;
}

.cs-ticker__dot {
  color: var(--secondary) !important; /* Antique Gold diamond dividers */
  font-size: 0.5rem !important;
  opacity: 0.8 !important;
}

/* ── 32. ABOUT PAGE INFO CARD CONTRAST UPGRADES ───────────── */
.about-hero-card {
  background: var(--gradient-brand) !important;
  color: #ffffff !important;
}
.about-hero-card h3 {
  color: #ffffff !important;
}
.about-hero-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.about-hero-card i {
  color: #ffffff !important;
}
.about-hero-card .col-6 div {
  background: rgba(255, 255, 255, 0.15) !important; /* Slightly more visible background */
  border: 1px solid rgba(255, 255, 255, 0.25) !important; /* Elegant thin white border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.about-hero-card .col-6 div:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}
.about-hero-card .col-6 p {
  color: #ffffff !important;
  font-weight: 700 !important; /* More weight to make it legible */
}

/* ── 33. MEET OUR DIRECTORS SECTION STYLING ── */
.director-card {
  background: #ffffff !important;
  border: 1px solid rgba(176, 141, 87, 0.15) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 4px 20px rgba(15, 30, 54, 0.02) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.director-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 20px 40px rgba(15, 30, 54, 0.08) !important;
}
.director-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}
.director-pill {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
}

/* ── 34. EDITORIAL BLOG CONTENT TYPOGRAPHY ── */
.blog-content {
  color: var(--text) !important;
}
.blog-content p {
  margin-bottom: 1.6rem !important;
  color: var(--text) !important;
  font-size: 1.1rem !important;
  line-height: 1.95 !important;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  color: var(--primary) !important;
}
.blog-content h2, .blog-content h3, .blog-content h4 {
  font-family: Georgia, serif !important;
  font-weight: 800 !important;
  margin-top: 2.2rem !important;
  margin-bottom: 1.1rem !important;
  letter-spacing: -0.01em !important;
}
.blog-content h2 { font-size: 1.75rem !important; }
.blog-content h3 { font-size: 1.50rem !important; }
.blog-content h4 { font-size: 1.30rem !important; }
.blog-content ul, .blog-content ol {
  margin-bottom: 1.6rem !important;
  padding-left: 2.2rem !important;
}
.blog-content li {
  margin-bottom: 0.5rem !important;
  line-height: 1.8 !important;
}
.blog-content blockquote {
  border-left: 4px solid var(--secondary) !important;
  padding-left: 1.5rem !important;
  margin: 2.2rem 0 !important;
  font-style: italic !important;
  color: var(--text-secondary) !important;
  background: var(--bg-2) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  border-radius: 0 8px 8px 0 !important;
}
.blog-content a {
  color: var(--secondary) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: color 0.25s ease !important;
}
.blog-content a:hover {
  color: var(--primary) !important;
}