/**
 * RBSS Homepage - Senior UI Design
 * Contrast fixes, visual hierarchy, fintech polish
 */

/* === Hero Slider - Ensure readability on any background === */
.page-home .slide-overlay .tp-caption.title-slide,
.page-home .slide-overlay .tp-caption.title-slide span {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.3) !important;
}

.page-home .slide-overlay .tp-caption.sub-title {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35) !important;
}

/* Dark gradient overlay for slider text legibility */
.page-home .rev_slider_wrapper {
  position: relative;
}

.page-home .rev_slider_wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(91, 58, 153, 0.55) 0%, rgba(0,0,0,0.25) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Hero CTA buttons - ensure visibility */
.page-home .slide-overlay .tp-caption.flat-button {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.page-home .slide-overlay .tp-caption.flat-button.style2 {
  border: 2px solid rgba(255,255,255,0.9) !important;
}

/* === What We Do - Clear hierarchy & contrast === */
.page-home .section-iconbox {
  background: linear-gradient(180deg, #fff 0%, #FAF8FF 100%) !important;
}

.page-home .section-iconbox .title-section.style3 .title {
  color: #111827 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.page-home .section-iconbox .title-section .sub-title.style3 {
  color: #4B5563 !important;
  line-height: 1.7 !important;
}

.page-home .section-iconbox .iconbox .box-content .box-title {
  color: #1F2937 !important;
  font-weight: 600 !important;
}

.page-home .section-iconbox .iconbox .box-content p {
  color: #6B7280 !important;
  line-height: 1.6 !important;
}

/* === Projects Section - Balanced contrast === */
.page-home .flat-row.v4.bg-section {
  background: linear-gradient(180deg, #F9FAFB 0%, #fff 100%) !important;
}

.page-home .flat-row.v4 .title-section.style2 .title {
  color: #111827 !important;
}

.page-home .flat-row.v4 .title-section .sub-title {
  color: #4B5563 !important;
}

/* Image overlay text - crisp white */
.page-home .imagebox .imagebox-content .imagebox-title,
.page-home .imagebox .imagebox-content .imagebox-title p,
.page-home .imagebox .imagebox-content .imagebox-category {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

/* === Testimonials - Pure white text on purple === */
.page-home .section-testimonials2 .testimonials blockquote.whisper {
  color: rgba(255,255,255,0.95) !important;
  line-height: 1.75 !important;
}

.page-home .section-testimonials2 .testimonials .avatar .name {
  color: #fff !important;
  font-weight: 600 !important;
}

.page-home .section-testimonials2 .testimonials .avatar .position {
  color: rgba(255,255,255,0.85) !important;
}

.page-home .section-testimonials2 .testimonials .start i {
  color: #FCD34D !important;
}

/* === Request Callback - Form contrast === */
.page-home .parallax4 .section-overlay.style2 {
  background: linear-gradient(135deg, rgba(91, 58, 153, 0.88) 0%, rgba(55, 48, 163, 0.9) 100%) !important;
}

.page-home .parallax4 .title-section.color-white .title,
.page-home .parallax4 .title-section.color-white .sub-title {
  color: #fff !important;
  text-shadow: none !important;
}

.page-home .parallax4 .wrap-form input,
.page-home .parallax4 .wrap-form select {
  background: #fff !important;
  color: #1F2937 !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
}

.page-home .parallax4 .wrap-form input::placeholder {
  color: #9CA3AF !important;
}

.page-home .parallax4 .flat-button {
  background: #fff !important;
  color: #6B4EAA !important;
}

.page-home .parallax4 .flat-button:hover {
  background: #F5F0FF !important;
  color: #5B3A99 !important;
}

/* === Footer - Refined contrast === */
.page-home .footer .widget-logo p {
  color: #9CA3AF !important;
  line-height: 1.6 !important;
}

.page-home .footer .info-text,
.page-home .footer .popular-new h6 a {
  color: #D1D5DB !important;
}

/* === Subtle section dividers === */
.page-home .section-iconbox {
  border-top: 1px solid rgba(107, 78, 170, 0.06);
}

.page-home .section-testimonials2 {
  position: relative;
}

.page-home .section-testimonials2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* === Typography polish === */
.page-home .section-iconbox .title-section .title {
  font-size: 2.25rem !important;
  letter-spacing: -0.025em !important;
}

.page-home .flat-row.v4 .title-section .title {
  font-size: 2rem !important;
}

/* === Micro-interactions === */
.page-home .iconbox.style3 .box-content p {
  transition: color 0.2s ease;
}

.page-home .iconbox.style3:hover .box-content .box-title {
  color: #6B4EAA !important;
}
