/* ============================================
   RIKI - Bootstrap 5 Custom CSS
   Production-optimized for www.riki.co.in
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --riki-primary: #a83125;
  --riki-primary-dark: #8e0000;
  --riki-primary-light: rgba(168,49,37,.1);
  --riki-font-body: 'Inter', sans-serif;
  --riki-font-heading: 'Montserrat', sans-serif;
  --riki-radius-lg: 24px;
  --riki-radius-xl: 32px;
  --riki-radius-2xl: 40px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--riki-font-body);
  background: #faf9f9;
  color: #1a1c1c;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--riki-font-heading);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ---- Bootstrap Color Overrides ---- */
.text-primary { color: var(--riki-primary) !important; }
.bg-primary   { background-color: var(--riki-primary) !important; }
.border-primary { border-color: var(--riki-primary) !important; }
.btn-primary {
  background-color: var(--riki-primary);
  border-color: var(--riki-primary);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--riki-primary-dark);
  border-color: var(--riki-primary-dark);
  color: #fff;
}
.btn-outline-primary {
  color: var(--riki-primary);
  border-color: var(--riki-primary);
}
.btn-outline-primary:hover {
  background-color: var(--riki-primary);
  border-color: var(--riki-primary);
  color: #fff;
}

/* ---- Hero Slider ---- */
#hero-section {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  background: #0a0a0a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.28) 55%,
    rgba(0,0,0,.08) 100%
  );
  z-index: 3;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 80px;
  max-width: 1400px;
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-text {
  max-width: 640px;
  color: #fff;
}
.hero-tag {
  display: inline-block;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px 0;
  
}
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.85;
  max-width: 560px;
  color: rgba(255,255,255,.88);
}
/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: #fff;
}
/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---- Navbar ---- */
.riki-navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.riki-navbar .navbar-brand img { width: 110px; }
.riki-navbar .nav-link {
  font-weight: 600;
  color: #374151;
  padding: .5rem 1rem;
  transition: color .2s;
}
.riki-navbar .nav-link:hover,
.riki-navbar .nav-link.active { color: var(--riki-primary); }
.btn-get-in-touch {
  background: var(--riki-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 28px;
  transition: opacity .2s;
}
.btn-get-in-touch:hover { opacity: .88; color: #fff !important; }

/* ---- Mega Menu ---- */
.mega-dropdown { position: static !important; }
.mega-menu-panel {
  position: fixed;
  left: 50%;
  top: 80px;
  width: min(1200px, calc(100vw - 32px));
  background: #fff;
  border-radius: 0 0 28px 28px;
  border: 1px solid #ececec;
  box-shadow: 0 30px 90px rgba(15,23,42,.12);
  padding: 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 1050;
  pointer-events: none;
}
.mega-dropdown:hover .mega-menu-panel,
.mega-dropdown:focus-within .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-banner {
  background: linear-gradient(135deg,#c62828,#8e0000);
  padding: 48px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 0 28px;
}
.mega-tag {
  display: inline-flex;
  width: max-content;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.mega-banner h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.mega-banner p  { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.85; margin: 0; }
.mega-content   { padding: 36px 40px; }

.mega-col h3 { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.mega-col small { color: #6b7280; font-size: 12px; }
.mega-col h5 {
  color: var(--riki-primary);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}
.mega-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.mega-links a {
  display: flex; align-items: center; gap: 10px;
  color: #4b5563; font-size: 14px; font-weight: 500;
  transition: .2s;
}
.mega-links a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 100px;
  background: #cbd5e1;
  transition: .2s;
  flex-shrink: 0;
}
.mega-links a:hover { color: var(--riki-primary); padding-left: 6px; }
.mega-links a:hover::before { background: var(--riki-primary); }

/* ---- Mobile Offcanvas Menu ---- */
.riki-offcanvas { width: 320px !important; }
.mobile-link {
  display: block;
  padding: 8px 0;
  color: #555;
  font-size: 14px;
  transition: .3s;
}
.mobile-link:hover { color: var(--riki-primary); padding-left: 8px; }
.mobile-accordion .accordion-button {
  font-weight: 600;
  background: transparent;
  color: #111827;
  padding: 14px 0;
  box-shadow: none !important;
}
.mobile-accordion .accordion-button::after { filter: none; }
.mobile-accordion .accordion-button:not(.collapsed) { color: var(--riki-primary); background: transparent; }
.mobile-accordion .accordion-body { padding: 0 0 12px 0; }
.mobile-accordion .accordion-item { border: 0; border-bottom: 1px solid #e5e7eb; }
.mobile-accordion .accordion-item:last-child { border-bottom: 0; }

/* ---- Badge pill ---- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  background: var(--riki-primary-light);
  color: var(--riki-primary);
  font-size: 13px; font-weight: 600;
}
.badge-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--riki-primary);
  flex-shrink: 0;
}

/* ---- Cards ---- */
.riki-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--riki-radius-lg);
  transition: transform .3s, box-shadow .3s;
}
.riki-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.riki-icon-box {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--riki-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.riki-icon-box .material-symbols-outlined { font-size: 32px; color: var(--riki-primary); }

/* ---- Stat gradient bar ---- */
.stat-bar {
  background: linear-gradient(to right, var(--riki-primary), #dc2626);
  border-radius: var(--riki-radius-lg);
}

/* ---- Testimonial Slider ---- */
.testimonial-slider { width: 100%; overflow: hidden; position: relative; }
.testimonial-track {
  display: flex; gap: 24px;
  width: max-content;
  animation: testimonialScroll 30s linear infinite;
}
.testimonial-slider:hover .testimonial-track { animation-play-state: paused; }
.testimonial-card {
  width: 420px; min-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
  transition: .4s ease;
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,.12); }
.testimonial-card p { color: #4b5563; font-size: 16px; line-height: 1.8; }
.more-content { margin-top: 20px; }
.divider { width: 60px; height: 3px; background: var(--riki-primary); border-radius: 20px; margin-bottom: 18px; }
@keyframes testimonialScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Brand Slider ---- */
.brand-slider { overflow: hidden; position: relative; width: 100%; }
.brand-slider::before, .brand-slider::after {
  content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}
.brand-slider::before { left: 0;  background: linear-gradient(to right, #f9fafb, transparent); }
.brand-slider::after  { right: 0; background: linear-gradient(to left, #f9fafb, transparent); }
.brand-track {
  display: flex; gap: 24px; width: max-content;
  animation: brandScroll 30s linear infinite;
}
.brand-slider:hover .brand-track { animation-play-state: paused; }
.brand-card {
  width: 300px; min-height: 300px; flex-shrink: 0;
  background: #fff; border-radius: 28px; overflow: hidden;
  border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: .35s;
}
.brand-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,.12); }
.brand-card img    { width: 100%; height: 160px; object-fit: contain; padding: 28px; }
.brand-card h3     { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #111827; }
.brand-card p      { text-align: center; color: #6b7280; font-size: 13px; line-height: 1.6; padding: 0 20px 24px; }
@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Achievement Cards ---- */
.achievement-card { transition: all .35s ease; }
.achievement-card:hover { transform: translateY(-5px); }
.achievement-card.active {
  border: 2px solid var(--riki-primary) !important;
  box-shadow: 0 25px 80px rgba(168,49,37,.20);
}

/* ---- About Bubble Layout ---- */
.bubble-wrap { position: relative; height: 520px; width: 100%; max-width: 480px; margin: auto; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; background: #fff; }
.bubble-center  { left:18%; top:34%; width:220px; height:220px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.bubble-top     { left:52%; top:10%; width:160px; height:160px; box-shadow: 0 20px 50px rgba(0,0,0,.10); }
.bubble-bottom  { left:56%; top:62%; width:185px; height:185px; box-shadow: 0 20px 50px rgba(0,0,0,.10); }
.bubble img { width:100%; height:100%; object-fit:contain; padding: 20px; }
.bubble-dec {
  position: absolute; border-radius: 50%;
  background: var(--riki-primary-light);
}

/* ---- Bento / Grid Sections ---- */
.bento-grid { display: grid; gap: 16px; }
.bento-card {
  position: relative; overflow: hidden;
  border-radius: var(--riki-radius-xl);
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
  min-height: 280px;
}
.bento-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.bento-card:hover img { transform: scale(1.08); }
.bento-card .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.bento-card .card-body-inner {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px; color: #fff; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
}

/* ---- Footer ---- */
.riki-footer { background: rgb(168,49,35); padding: 60px 0; }
.footer-inner {
  background: #fff;
  border-radius: var(--riki-radius-2xl);
  border: 1px solid rgba(229,231,235,.8);
  box-shadow: 0 30px 80px rgba(0,0,0,.08);
  padding: 56px;
  position: relative;
}
.footer-inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--riki-radius-2xl);
  padding: 2px;
  background: linear-gradient(to right, var(--riki-primary), #ef4444, var(--riki-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.footer-inner h4 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #111827; }
.footer-info-item { display: flex; gap: 12px; color: #6b7280; margin-bottom: 14px; align-items: flex-start; }
.footer-info-item .material-symbols-outlined { color: var(--riki-primary); flex-shrink: 0; font-size: 22px; }
.footer-links a { display: block; color: #6b7280; margin-bottom: 12px; transition: color .2s; font-size: 14px; }
.footer-links a:hover { color: var(--riki-primary); padding-left: 4px; }
.footer-divider { border-top: 1px solid #e5e7eb; margin: 32px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-bottom p, .footer-bottom a { font-size: 13px; color: #9ca3af; margin: 0; }
.footer-bottom a:hover { color: var(--riki-primary); }

/* ---- Contact Form ---- */
.form-control-riki, .form-select-riki {
  height: 56px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 15px;
  padding: 0 20px;
  transition: .3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--riki-font-body);
}
.form-control-riki:focus, .form-select-riki:focus {
  border-color: var(--riki-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(168,49,37,.08);
}
.form-select-riki {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right .6rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
textarea.form-control-riki { height: auto; padding: 14px 20px; resize: none; border-radius: 16px; }

/* ---- Section heading utility ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  background: var(--riki-primary-light);
  color: var(--riki-primary);
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.section-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--riki-primary); flex-shrink: 0;
}

/* ---- Process Steps ---- */
.process-line {
  position: absolute; left: 0; top: 32px;
  width: 100%; height: 2px;
  background: #e5e7eb; display: none;
}
@media (min-width: 992px) { .process-line { display: block; } }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--riki-primary);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(168,49,37,.3);
}

/* ---- Specialization rows ---- */
.spec-row img {
  border-radius: var(--riki-radius-xl);
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* ---- Privacy sidebar ---- */
.privacy-toc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--riki-radius-lg);
  padding: 32px;
  position: sticky; top: 100px;
}
.privacy-toc a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
  color: #374151; font-size: 14px; transition: color .2s;
}
.privacy-toc a:last-child { border-bottom: 0; }
.privacy-toc a:hover { color: var(--riki-primary); }

/* ---- Blog / Awards ---- */
.blog-badge {
  display: inline-flex; align-items: center;
  padding: 6px 18px; border-radius: 100px;
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.quote-block {
  background: #fef2f2;
  border-left: 4px solid var(--riki-primary);
  border-radius: 0 16px 16px 0;
  padding: 32px 40px;
  font-size: 20px;
  font-style: italic;
  color: #374151;
  line-height: 1.7;
}

/* ---- Director section ---- */
.director-section {
  background: linear-gradient(to bottom right, var(--riki-primary), #b71c1c, #7f0000);
  position: relative; overflow: hidden;
}
.director-section .glow-top {
  position: absolute; top: 0; right: 0;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.10);
  border-radius: 50%; filter: blur(100px);
}
.director-section .glow-bot {
  position: absolute; bottom: 0; left: 0;
  width: 320px; height: 320px;
  background: rgba(0,0,0,.18);
  border-radius: 50%; filter: blur(80px);
}
.director-img-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.director-img-wrap::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.20);
  z-index: 1; pointer-events: none;
}
.director-img-wrap img { display: block; width: 100%; height: 650px; object-fit: cover; }

/* ---- Advantage timeline ---- */
.adv-line {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: #e5e7eb;
}
.adv-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.adv-num { font-size: 72px; font-weight: 700; color: rgba(168,49,37,.08); line-height: 1; }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  #hero-section   { height: 75vh; min-height: 420px; }
  .hero-content   { padding: 0 40px; }
  .hero-text.right { text-align: left; margin-left: 0; }
  .hero-text.right .hero-desc { margin-left: 0; }
  .hero-arrow     { width: 38px; height: 38px; }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .mega-menu-panel { display: none !important; }
  .director-img-wrap img { height: 420px; }
  .bubble-wrap    { display: none; }
  .adv-line       { display: none; }
  .footer-inner   { padding: 32px 24px; }
}

@media (max-width: 767.98px) {
  #hero-section   { height: 60vw; min-height: 300px; }
  .hero-content   { padding: 0 20px; }
  .hero-title     { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-desc      { font-size: 14px; line-height: 1.7; }
  .hero-dot       { width: 6px; height: 6px; }
  .hero-dot.active { width: 20px; }
  .hero-arrow     { display: none; }
  .testimonial-card { width: 280px; min-width: 280px; padding: 22px; }
  .brand-card     { width: 230px; min-height: 250px; }
  .brand-card img { height: 120px; }
  .brand-slider::before, .brand-slider::after { width: 40px; }
  .spec-row img   { height: 280px; }
  .director-img-wrap img { height: 480px; }
  .footer-inner   { padding: 24px 20px; border-radius: 24px; }
  .quote-block    { padding: 24px; font-size: 17px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
  #hero-section   { height: 56vw; min-height: 260px; }
  .hero-title     { font-size: clamp(1.3rem, 5vw, 2rem); }
  .hero-desc      { display: none; }
  .testimonial-card { width: 250px; min-width: 250px; }
}

/* ---- Performance: reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .testimonial-track, .brand-track { animation: none; }
  .riki-card:hover, .bento-card:hover img,
  .brand-card:hover, .testimonial-card:hover { transform: none; }
}

/* ============================================
   PATCH & POLISH — production fixes
   ============================================ */

/* Bootstrap resets form-label margin */
.form-label { margin-bottom: 6px; }

/* Slightly darker secondary text than Bootstrap default for better readability */
.text-secondary { color: #5a5c61 !important; }

/* Bootstrap gap utilities need flex/grid — ensure nav works */
.riki-navbar nav.d-none { gap: 4px; }

/* Fix Bootstrap accordion arrow colour in mobile menu */
.mobile-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a83125'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Fix Bootstrap btn focus ring colour */
.btn-primary:focus-visible,
.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(168,49,37,.35);
}
.btn-outline-secondary:focus-visible { box-shadow: none; }

/* Ensure h-100 images inside achievement cards don't overflow */
.achievement-card img { display: block; }

/* bento section overflow fix */
.bento-card { display: block; }
.bento-card > img {
  width: 100%; height: 100%;
  display: block;
}

/* Footer map iframe border-radius fix for older Safari */
.footer-inner .rounded-4 iframe { border-radius: 16px; }

/* Privacy TOC sticky on large screens — already set above, reinforce z-index */
@media (min-width: 992px) {
  .privacy-toc { position: sticky; top: 100px; z-index: 1; }
}

/* Smooth offcanvas open (Bootstrap already handles, reinforce) */
.offcanvas { transition: transform .3s ease-in-out !important; }

/* Ensure section-label inline-flex works on all breakpoints */
.section-label { display: inline-flex !important; }

/* Fix mega menu panel position context */
.riki-navbar { position: relative; }
.riki-navbar > .container-xxl { position: relative; }

/* ============================================
   DEFENCE SOLUTIONS BENTO SECTION
   ============================================ */
.defence-section { background: #f0efef; }

.defence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 265px 265px;
  gap: 14px;
}

.defence-grid .bento-card {
  min-height: unset;
  border-radius: 18px;
  overflow: hidden;
}

.defence-grid .bento-card img {
  border-radius: 18px;
}

/* Small red pill badge on each bento card */
.defence-badge {
  display: inline-block;
  background: var(--riki-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* Right text column */
.defence-text-col { padding-left: 0; }

@media (min-width: 992px) {
  .defence-text-col { padding-left: 3rem !important; }
}

@media (max-width: 991.98px) {
  .defence-grid {
    grid-template-rows: 220px 220px;
    gap: 10px;
  }
  .defence-text-col {
    padding-left: 0 !important;
    padding-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .defence-grid {
    grid-template-rows: 175px 175px;
    gap: 8px;
  }
}

@media (max-width: 479px) {
  .defence-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .defence-grid .bento-card { min-height: 200px; }
}

/* ============================================
   HERO SLIDER — arrows & dots
   ============================================ */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  padding: 0;
  flex-shrink: 0;
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: #fff;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.30); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

@media (max-width: 767.98px) {
  .hero-arrow { display: none; }
  .hero-dots  { bottom: 14px; }
  .hero-dot   { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
}
