/* =====================================================
   BlueBell Publication — Modern UI Layer
   modern.css — Additive enhancement on top of custom.css
   ===================================================== */

/* ─── 1. Design Tokens ─────────────────────────────── */
:root {
  --bb-navy:       #032558;
  --bb-navy-dark:  #021a3d;
  --bb-blue:       #0071f8;
  --bb-coral:      #ee626b;
  --bb-coral-dark: #d94f58;
  --bb-white:      #ffffff;
  --bb-off-white:  #f7f8fc;
  --bb-text:       #1e1e1e;
  --bb-muted:      #6b7280;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --radius-pill: 999px;

  --shadow-sm:  0 2px 8px rgba(3, 37, 88, 0.08);
  --shadow-md:  0 8px 30px rgba(3, 37, 88, 0.14);
  --shadow-lg:  0 20px 60px rgba(3, 37, 88, 0.20);
  --shadow-glow: 0 0 30px rgba(0, 113, 248, 0.35);

  --transition-fast: 0.2s ease;
  --transition-mid:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── 2. Smooth Scroll & Selection ─────────────────── */
html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--bb-coral);
  color: #fff;
}

/* ─── 3. Preloader — Elegant pulse ring ─────────────── */
.js-preloader {
  background: linear-gradient(135deg, var(--bb-navy-dark) 0%, #0a3a7a 100%);
}

.preloader-inner .dot,
.preloader-inner .dots span {
  background: var(--bb-coral);
}

/* ─── 4. Navbar — Glassmorphism on scroll ─────────────── */
.header-area {
  background: linear-gradient(135deg, var(--bb-navy) 0%, #0a3a7a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.background-header {
  background: rgba(3, 37, 88, 0.82) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 4px 32px rgba(3, 37, 88, 0.28) !important;
}

.header-area .main-nav .nav li a {
  position: relative;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.header-area .main-nav .nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bb-coral);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.header-area .main-nav .nav li a:hover::after,
.header-area .main-nav .nav li a.active::after {
  width: 50%;
}

.header-area .main-nav .nav li:hover a {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

/* ─── 5. Main Banner — Overlay & Floating Particles ─── */
.main-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 120px 120px;
}

.main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3, 37, 88, 0.55) 0%,
    rgba(0, 113, 248, 0.25) 60%,
    rgba(238, 98, 107, 0.20) 100%
  );
  z-index: 1;
  border-radius: 0 0 120px 120px;
}

/* Particle canvas sits behind content */
#bb-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.main-banner .container {
  position: relative;
  z-index: 3;
}

/* Carousel controls upgrade */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.30);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
  color: #fff;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 4px;
  transition: all 0.3s;
}

.carousel-indicators .active {
  background: var(--bb-coral);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* ─── 6. Features/Vision Cards ──────────────────────── */
.features .item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(3, 37, 88, 0.08);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  z-index: 0;
}

.features .item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 113, 248, 0.06) 0%, rgba(238, 98, 107, 0.06) 100%);
  opacity: 0;
  transition: opacity var(--transition-mid);
  z-index: -1;
}

.features .item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background-image: none;
}

.features .item:hover::before {
  opacity: 1;
}

.features .item .image {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(3, 37, 88, 0.18);
  transition: box-shadow var(--transition-mid), transform var(--transition-mid);
}

.features .item:hover .image {
  box-shadow: 0 12px 36px rgba(0, 113, 248, 0.3);
  transform: scale(1.05);
}

.features .item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bb-navy);
  line-height: 1.5;
}

/* ─── 7. Section Headings ────────────────────────────── */
.section-heading h2 {
  position: relative;
  display: block;
}

.section-heading h6 {
  display: inline-block;
  background: linear-gradient(135deg, rgba(238, 98, 107, 0.12), rgba(0, 113, 248, 0.12));
  border: 1px solid rgba(238, 98, 107, 0.3);
  border-radius: var(--radius-pill);
  color: var(--bb-coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  margin-bottom: 14px;
}

/* ─── 8. Trending / New Arrivals ─────────────────────── */
.trending {
  background: linear-gradient(180deg, var(--bb-off-white) 0%, #eef2ff 100%);
  position: relative;
}

.trending .item {
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  background: #fff;
  border: 1px solid rgba(3, 37, 88, 0.07);
}

.trending .item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.trending .item .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 37, 88, 0.5) 100%);
  border-radius: 25px;
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.trending .item:hover .thumb::after {
  opacity: 1;
}

.trending .item .down-content span.category {
  background: rgba(0, 113, 248, 0.1);
  color: var(--bb-blue);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── 9. Subject / Category Cards ───────────────────── */
.service-work.card {
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.service-work.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg) !important;
}

.service-work .service-work-vertical {
  backdrop-filter: blur(2px);
}

.service-work .service-work-vertical span.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  border-width: 2px;
  transition: all 0.3s ease;
}

.service-work:hover .service-work-vertical span.btn {
  background: rgba(255,255,255,0.2);
}

/* ─── 10. Stats Section (New) ────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--bb-navy) 0%, #0a3a7a 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,113,248,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(238,98,107,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.12);
}

.stat-card .stat-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  background: linear-gradient(135deg, var(--bb-coral), #ff8a65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.stat-card .stat-number .stat-suffix {
  font-size: 36px;
  font-weight: 700;
  color: var(--bb-coral);
}

.stat-card .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── 11. CTA / Newsletter ───────────────────────────── */
.cta .shop,
.cta .subscribe {
  background: linear-gradient(135deg, #f8f9ff 0%, var(--bb-off-white) 100%);
  border: 1px solid rgba(3, 37, 88, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.cta .shop:hover,
.cta .subscribe:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cta .subscribe form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 248, 0.2);
  transition: box-shadow 0.3s ease;
}

.cta .subscribe form button,
.main-button a,
.contact-page .left-text form button {
  position: relative;
  overflow: hidden;
}

.cta .subscribe form button::after,
.main-button a::after,
.contact-page .left-text form button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.cta .subscribe form button:hover::after,
.main-button a:hover::after,
.contact-page .left-text form button:hover::after {
  width: 300px;
  height: 300px;
}

/* ─── 12. Contact Form Polish ─────────────────────────── */
.contact-page .left-text form input,
.contact-page .left-text form textarea {
  border: 1.5px solid #e7e7e7;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.contact-page .left-text form input:focus,
.contact-page .left-text form textarea:focus {
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 248, 0.15);
  outline: none;
  background: #fff;
}

.contact-page .left-text form button {
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.contact-page .left-text form button:hover {
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0056cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 248, 0.35);
}

/* ─── 13. About Page Upgrades ─────────────────────────── */
.about-us .left-image img {
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.about-us .left-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.objective-icon {
  background: linear-gradient(135deg, var(--bb-navy) 0%, #0a3a7a 100%);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  box-shadow: var(--shadow-sm);
}

.objective:hover .objective-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: var(--shadow-glow);
}

.core-value {
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  border: 1px solid rgba(3, 37, 88, 0.06);
}

.core-value:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md) !important;
  border-left: 4px solid var(--bb-blue);
}

.achievements {
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.achievements:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

.achievements .col-md-3.bg-primary {
  background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%) !important;
  transition: all var(--transition-mid);
}

.achievements:hover .col-md-3.bg-primary {
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%) !important;
}

/* ─── 14. Footer Upgrades ─────────────────────────────── */
footer {
  background: linear-gradient(135deg, #021a3d 0%, var(--bb-navy) 60%, #0a3a7a 100%) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-blue) 0%, var(--bb-coral) 50%, var(--bb-blue) 100%);
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;
}

@keyframes shimmer-line {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

footer a.text-light {
  position: relative;
  transition: color var(--transition-fast);
}

footer a.text-light:hover {
  color: var(--bb-coral) !important;
}

.footer-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  margin: 4px;
  transition: all var(--transition-mid);
}

.footer-icons li a:hover {
  background: var(--bb-coral);
  border-color: var(--bb-coral);
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 8px 20px rgba(238,98,107,0.5);
}

.footer-icons li a i {
  font-size: 18px;
}

/* ─── 15. Page Heading Banner ─────────────────────────── */
.page-heading {
  position: relative;
  overflow: hidden;
}

.page-heading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3, 37, 88, 0.75) 0%,
    rgba(0, 113, 248, 0.4) 50%,
    rgba(238, 98, 107, 0.30) 100%
  );
  z-index: 1;
}

.page-heading .container {
  position: relative;
  z-index: 2;
}

.page-heading h3 {
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeSlideUp 0.7s ease both;
}

.page-heading .breadcrumb {
  animation: fadeSlideUp 0.7s ease 0.15s both;
}

/* ─── 16. Scroll Reveal Animations ───────────────────── */

/* Elements with data-reveal start hidden */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="left"].revealed {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="right"].revealed {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal-stagger].revealed > *:nth-child(1)  { transition-delay: 0.05s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(2)  { transition-delay: 0.12s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(3)  { transition-delay: 0.19s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(4)  { transition-delay: 0.26s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(5)  { transition-delay: 0.33s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(6)  { transition-delay: 0.40s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(7)  { transition-delay: 0.47s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(8)  { transition-delay: 0.54s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(9)  { transition-delay: 0.61s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 0.68s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(11) { transition-delay: 0.75s; opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(12) { transition-delay: 0.82s; opacity: 1; transform: none; }

/* ─── 17. Keyframe Animations ─────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,113,248,0); }
  50%       { box-shadow: 0 0 24px 6px rgba(0,113,248,0.3); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── 18. Back-To-Top Button ──────────────────────────── */
#bb-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(238,98,107,0.4);
}

#bb-back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#bb-back-to-top:hover {
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0056cc 100%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.1);
}

/* ─── 19. Trending Filter Buttons (books.html) ─────────── */
.trending ul.trending-filter li a {
  transition: all var(--transition-mid);
  font-weight: 500;
}

.trending ul.trending-filter li a:hover {
  background: rgba(0,113,248,0.1);
  color: var(--bb-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.trending ul.trending-filter li a.is_active {
  background: linear-gradient(135deg, var(--bb-coral), #d94f58);
  box-shadow: 0 4px 16px rgba(238,98,107,0.4);
  transform: translateY(-2px);
}

/* ─── 20. Book Cards (trending-box) ──────────────────── */
.trending-box .item {
  background: #fff;
  border: 1px solid rgba(3,37,88,0.07);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.trending-box .item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ─── 21. Preloader upgrade ──────────────────────────── */
.js-preloader .preloader-inner .dot {
  background: linear-gradient(135deg, var(--bb-coral), var(--bb-blue));
}

/* ─── 22. Logo hover ─────────────────────────────────── */
.header-area .main-nav .logo img {
  transition: transform var(--transition-mid), opacity var(--transition-fast);
}

.header-area .main-nav .logo img:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ─── 23. Section wrapper gradient backgrounds ────────── */
.section.categories {
  position: relative;
}

/* ─── 24. Orange button in contact ───────────────────── */
.orange-button {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%);
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0px 30px;
  border: none;
  border-radius: var(--radius-pill);
  transition: all var(--transition-mid);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.orange-button:hover {
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0056cc 100%);
  box-shadow: 0 8px 24px rgba(0,113,248,0.35);
  transform: translateY(-2px);
}

/* ─── 25. Main button upgrade ────────────────────────── */
.main-button a {
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%);
  box-shadow: 0 4px 16px rgba(238,98,107,0.3);
  transition: all var(--transition-mid);
}

.main-button a:hover {
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0056cc 100%);
  box-shadow: 0 8px 28px rgba(0,113,248,0.4);
  transform: translateY(-3px);
}

/* ─── 26. Responsive tweaks ──────────────────────────── */
@media (max-width: 767px) {
  .stat-card .stat-number {
    font-size: 36px;
  }

  .stat-card .stat-icon {
    font-size: 28px;
  }

  #bb-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .stats-section {
    padding: 60px 0;
  }

  .main-banner {
    border-radius: 0 0 60px 60px;
  }

  .main-banner::before {
    border-radius: 0 0 60px 60px;
  }
}

@media (max-width: 992px) {
  .stat-card {
    margin-bottom: 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   HERO CAROUSEL — Modern Overlay Design
   ═══════════════════════════════════════════════════════ */

/* Make the banner section stretch taller on desktop */
.main-banner {
  padding: 100px 0 0 0; /* 100px = fixed header height */
}

.bb-hero-carousel .carousel-item img {
  max-height: 540px;
  min-height: 340px;
  object-fit: cover;
  width: 100%;
}

/* Dark gradient overlay covering left half of the slide */
.bb-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(3, 37, 88, 0.88) 0%,
    rgba(3, 37, 88, 0.72) 38%,
    rgba(3, 37, 88, 0.15) 65%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Slide content container */
.bb-slide-content {
  padding: 40px 0 40px 60px;
  max-width: 560px;
}

/* Pill tag above title */
.bb-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 98, 107, 0.22);
  border: 1px solid rgba(238, 98, 107, 0.55);
  color: #ffb3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

/* Main heading on each slide */
.bb-slide-title {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.bb-slide-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ee626b, #ff8a65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle / description */
.bb-slide-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

/* CTA buttons row */
.bb-slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bb-btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bb-coral) 0%, #d94f58 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(238, 98, 107, 0.45);
  transition: all var(--transition-mid);
  text-decoration: none !important;
}

.bb-btn-primary:hover {
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0056cc 100%);
  box-shadow: 0 8px 32px rgba(0, 113, 248, 0.50);
  transform: translateY(-3px) scale(1.03);
}

.bb-btn-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  transition: all var(--transition-mid);
  text-decoration: none !important;
}

.bb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.70);
  transform: translateY(-3px);
}

/* Slide-in animation for text on active slide */
.carousel-item.active .animate-slide .bb-slide-tag,
.carousel-item.active .animate-slide .bb-slide-title,
.carousel-item.active .animate-slide .bb-slide-desc,
.carousel-item.active .animate-slide .bb-slide-actions {
  animation: slideInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.active .animate-slide .bb-slide-title {
  animation-delay: 0.08s;
}

.carousel-item.active .animate-slide .bb-slide-desc {
  animation-delay: 0.16s;
}

.carousel-item.active .animate-slide .bb-slide-actions {
  animation-delay: 0.24s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom navigation arrow buttons */
.bb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-mid);
}

.bb-carousel-prev {
  left: 20px;
}

.bb-carousel-next {
  right: 20px;
}

.bb-carousel-btn:hover {
  background: var(--bb-coral);
  border-color: var(--bb-coral);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(238, 98, 107, 0.55);
}

/* Custom dot indicators at bottom */
.bb-carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 60px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

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

.bb-dot.active,
.bb-dot:hover {
  background: var(--bb-coral);
  width: 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(238,98,107,0.6);
}

/* Mobile responsive for hero */
@media (max-width: 767px) {
  .bb-slide-overlay {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(3, 37, 88, 0.92) 45%,
      rgba(3, 37, 88, 0.97) 100%
    );
    align-items: flex-end;
  }

  .bb-slide-content {
    padding: 24px 20px 60px 20px;
    max-width: 100%;
  }

  .bb-slide-title {
    font-size: 22px;
  }

  .bb-slide-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .bb-carousel-indicators {
    left: 20px;
    bottom: 14px;
  }

  .bb-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .bb-btn-primary,
  .bb-btn-outline {
    font-size: 13px;
    padding: 10px 20px;
  }

  .bb-hero-carousel .carousel-item img {
    min-height: 280px;
  }
}

@media (max-width: 992px) {
  .bb-slide-content {
    padding: 30px 0 40px 30px;
    max-width: 100%;
  }

  .bb-slide-title {
    font-size: 28px;
  }
}

/* ═══════════════════════════════════════════════════════
   VISION / MISSION / VALUES — Glassmorphism Cards
   ═══════════════════════════════════════════════════════ */

.bb-vmv-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.bb-vmv-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Section header */
.bb-section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(238, 98, 107, 0.12), rgba(0, 113, 248, 0.12));
  border: 1px solid rgba(238, 98, 107, 0.3);
  color: var(--bb-coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.bb-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--bb-navy);
  margin-bottom: 0;
}

/* Icon wrapper — floating circle */
.bb-vmv-icon-wrap {
  margin-bottom: 28px;
}

.bb-vmv-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.bb-vmv-card:hover .bb-vmv-icon {
  transform: scale(1.12) rotate(-5deg);
}

/* Card base */
.bb-vmv-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 44px 36px 40px;
  border: 1px solid rgba(3, 37, 88, 0.08);
  box-shadow: 0 4px 24px rgba(3, 37, 88, 0.08);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  cursor: default;
}

.bb-vmv-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 20px 60px rgba(3, 37, 88, 0.16);
}

/* Top accent bar that slides up on hover */
.bb-vmv-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 24px 24px;
  transition: height var(--transition-mid);
}

.bb-vmv-card:hover .bb-vmv-accent {
  height: 6px;
}

/* Card text body area */
.bb-vmv-body {
  padding: 0;
}

/* Small label badge */
.bb-vmv-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* Heading */
.bb-vmv-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--bb-navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Body text */
.bb-vmv-text {
  font-size: 14px;
  color: var(--bb-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Vision (Blue) ── */
.bb-vmv-vision .bb-vmv-icon {
  background: linear-gradient(135deg, #e0edff, #b8d4ff);
  color: var(--bb-blue);
  box-shadow: 0 8px 24px rgba(0, 113, 248, 0.2);
}

.bb-vmv-vision .bb-vmv-label {
  background: rgba(0, 113, 248, 0.1);
  color: var(--bb-blue);
}

.bb-vmv-vision .bb-vmv-accent {
  background: linear-gradient(90deg, var(--bb-blue), #5ba3ff);
}

.bb-vmv-vision:hover {
  border-color: rgba(0, 113, 248, 0.2);
}

/* ── Mission (Coral) ── */
.bb-vmv-mission .bb-vmv-icon {
  background: linear-gradient(135deg, #ffe0e2, #ffb8bc);
  color: var(--bb-coral);
  box-shadow: 0 8px 24px rgba(238, 98, 107, 0.2);
}

.bb-vmv-mission .bb-vmv-label {
  background: rgba(238, 98, 107, 0.1);
  color: var(--bb-coral);
}

.bb-vmv-mission .bb-vmv-accent {
  background: linear-gradient(90deg, var(--bb-coral), #ff8a65);
}

.bb-vmv-mission:hover {
  border-color: rgba(238, 98, 107, 0.2);
}

/* ── Values (Purple/Navy) ── */
.bb-vmv-values .bb-vmv-icon {
  background: linear-gradient(135deg, #e8e0ff, #c5b3ff);
  color: #7c3aed;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.bb-vmv-values .bb-vmv-label {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.bb-vmv-values .bb-vmv-accent {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.bb-vmv-values:hover {
  border-color: rgba(124, 58, 237, 0.2);
}

/* Mobile responsiveness for VMV cards */
@media (max-width: 767px) {
  .bb-vmv-section {
    padding: 60px 0 40px;
  }

  .bb-vmv-card {
    padding: 32px 24px;
  }

  .bb-section-title {
    font-size: 28px;
  }
}


/* ═══════════════════════════════════════════════════
   PREMIUM PRINCIPLE CARDS (Vision / Mission / Values)
   ═══════════════════════════════════════════════════ */

.bb-vmv-section-sub {
  font-size: 16px;
  color: var(--bb-muted);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.7;
}

/* Card shell */
.bb-principle-card {
  position: relative;
  border-radius: 24px;
  padding: 48px 36px 40px;
  overflow: hidden;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.4s ease;
  cursor: default;
}

.bb-principle-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0,0,0,0.25) !important;
}

/* Floating decorative orbs */
.bb-principle-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.bb-principle-orb1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -60px;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent);
  animation: orbFloat 6s ease-in-out infinite;
}

.bb-principle-orb2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -30px;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent);
  animation: orbFloat 8s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(12px, -16px) scale(1.05); }
}

/* Icon ring */
.bb-principle-icon-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.35s ease, background 0.35s ease;
  flex-shrink: 0;
}

.bb-principle-card:hover .bb-principle-icon-ring {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(255,255,255,0.28);
}

.bb-principle-icon {
  font-size: 36px;
  color: #fff;
  line-height: 1;
}

/* Label badge */
.bb-principle-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 40px;
  padding: 4px 14px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

/* Heading */
.bb-principle-heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Body text */
.bb-principle-text {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 0;
  flex: 1;
}

/* Decorative dot row */
.bb-principle-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.bb-principle-dots span {
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: transform 0.3s ease, background 0.3s ease;
}

.bb-principle-dots span:nth-child(1) { width: 10px; height: 10px; }
.bb-principle-dots span:nth-child(2) { width: 7px;  height: 7px; margin-top: 1.5px; }
.bb-principle-dots span:nth-child(3) { width: 5px;  height: 5px; margin-top: 2.5px; }

.bb-principle-card:hover .bb-principle-dots span {
  background: rgba(255,255,255,0.9);
  transform: scale(1.2);
}

/* ── Vision — deep royal blue ── */
.bb-principle-vision {
  background: linear-gradient(135deg, #1a4fa8 0%, #0d2d6e 60%, #0a1f54 100%);
  box-shadow: 0 16px 48px rgba(26, 79, 168, 0.40);
}

/* ── Mission — rich coral-red ── */
.bb-principle-mission {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 60%, #6e1a14 100%);
  box-shadow: 0 16px 48px rgba(192, 57, 43, 0.40);
}

/* ── Values — deep teal-emerald ── */
.bb-principle-values {
  background: linear-gradient(135deg, #0e6b5e 0%, #085940 60%, #04382a 100%);
  box-shadow: 0 16px 48px rgba(14, 107, 94, 0.40);
}

/* Mobile */
@media (max-width: 767px) {
  .bb-principle-card {
    min-height: auto;
    padding: 36px 28px 32px;
  }

  .bb-principle-heading { font-size: 20px; }
}
