/* ==========================================================================
   R.K. Electricals — Site Stylesheet
   Brand colors derived from the company profile: deep navy + dark red
   ========================================================================== */

:root{
  --rk-navy:        #0a2647;
  --rk-navy-dark:   #06182f;
  --rk-navy-light:  #12365f;
  --rk-orange:      #8a1224;
  --rk-orange-dark: #6b0d1c;
  --rk-red:         #8a1224;
  --rk-red-dark:    #6b0d1c;
  --rk-gold:        #f2b705;
  --rk-blue:        #1c5aa0;
  --rk-grey-bg:     #f4f6f9;
  --rk-text-muted:  #6b7685;
  --rk-white:       #ffffff;
  --rk-radius:      10px;
  --rk-shadow:      0 10px 30px rgba(10, 38, 71, 0.08);
  --rk-shadow-lg:   0 20px 45px rgba(10, 38, 71, 0.16);
  --rk-font:        'Poppins', 'Segoe UI', Arial, sans-serif;
}

body{
  font-family: var(--rk-font);
  color: #2b3648;
  background-color: var(--rk-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6{
  font-weight: 700;
  color: var(--rk-navy);
}

a{ text-decoration: none; transition: all .2s ease-in-out; }
.text-orange{ color: var(--rk-orange) !important; }
.bg-navy{ background-color: var(--rk-navy) !important; }
.bg-navy-dark{ background-color: var(--rk-navy-dark) !important; }
.bg-soft{ background-color: var(--rk-grey-bg) !important; }

.section-pad{ padding: 80px 0; }
@media (max-width: 767px){ .section-pad{ padding: 50px 0; } }

.section-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rk-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  margin-bottom: 10px;
}
.section-eyebrow::before{
  content: "";
  width: 28px;
  height: 2px;
  background: var(--rk-orange);
  display: inline-block;
}

/* Buttons */
.btn-rk-primary{
  background-color: var(--rk-orange);
  border-color: var(--rk-orange);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .5px;
  transition: all .25s ease-in-out;
}
.btn-rk-primary:hover{
  background-color: var(--rk-orange-dark);
  border-color: var(--rk-orange-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-rk-outline{
  border: 2px solid var(--rk-navy);
  color: var(--rk-navy);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: .85rem;
}
.btn-rk-outline:hover{ background: var(--rk-navy); color: #fff; }
.btn-rk-white{
  background: #fff;
  color: var(--rk-navy);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: .85rem;
}
.btn-rk-white:hover{ background: var(--rk-orange); color: #fff; }

/* ---------------- Navbar ---------------- */
.rk-navbar{
  background-color: var(--rk-navy);
  padding: 0px 0;
  transition: all .3s ease;
}
.rk-navbar .navbar-brand img{ height: 46px; }
.navbar-brand-box{
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 8px;
  line-height: 1.1;
}
.navbar-brand-box img{ height: 42px; width: auto; display: block; }
.navbar-brand-box .brand-text{ display: flex; flex-direction: column; }
.navbar-brand-box .brand-name{
  font-weight: 800;
  color: var(--rk-red);
  font-size: 1.05rem;
  letter-spacing: .3px;
  white-space: nowrap;
}
.navbar-brand-box .brand-tag{
  font-weight: 600;
  color: var(--rk-navy);
  font-size: .62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-logo-box{
  background: #fff;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 8px;
}
.footer-logo-box img{ height: 60px; width: auto; display: block; }
.rk-navbar .nav-link{
  color: #dbe3ef !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 0 !important;
  position: relative;
}
.rk-navbar .nav-link.active,
.rk-navbar .nav-link:hover{ color: var(--rk-orange) !important; }
.rk-navbar .navbar-toggler{ border-color: rgba(255,255,255,.3); }
.rk-navbar .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.topbar{
  background: var(--rk-navy-dark);
  color: #c9d3e0;
  font-size: .85rem;
  padding: 7px 0;
}
.topbar a{ color: #c9d3e0; }
.topbar a:hover{ color: var(--rk-orange); }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  background: linear-gradient(120deg, rgba(6,24,47,.95) 35%, rgba(10,38,71,.8) 100%),
              url("../images/hero_banner.jpg") right center / cover no-repeat;
  color: #fff;
  padding: 50px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}
.hero::before{
  width: 420px; height: 420px;
  top: -140px; left: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(138,18,36,.55), rgba(138,18,36,0) 70%);
  animation: heroFloat1 9s ease-in-out infinite;
}
.hero::after{
  width: 320px; height: 320px;
  bottom: -120px; left: 42%;
  background: radial-gradient(circle at 40% 40%, rgba(242,183,5,.35), rgba(242,183,5,0) 70%);
  animation: heroFloat2 11s ease-in-out infinite;
}
.hero-blob{
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-blob-1{
  width: 260px; height: 260px; top: 18%; right: 6%;
  background: radial-gradient(circle at 35% 35%, rgba(28,90,160,.45), rgba(28,90,160,0) 70%);
  animation: heroFloat1 7.5s ease-in-out infinite reverse;
}
.hero-blob-2{
  width: 160px; height: 160px; bottom: 8%; right: 22%;
  background: radial-gradient(circle at 40% 40%, rgba(138,18,36,.4), rgba(138,18,36,0) 70%);
  animation: heroFloat2 8.5s ease-in-out infinite;
}
@keyframes heroFloat1{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(20px,-24px) scale(1.08); }
}
@keyframes heroFloat2{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-18px,18px) scale(1.1); }
}

.hero-eyebrow-chip{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  padding: 7px 16px 7px 10px;
  border-radius: 30px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  animation: fadeInUp .7s ease both;
}
.hero-eyebrow-chip .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rk-gold);
  box-shadow: 0 0 0 0 rgba(242,183,5,.6);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(242,183,5,.55); }
  70%{ box-shadow: 0 0 0 9px rgba(242,183,5,0); }
  100%{ box-shadow: 0 0 0 0 rgba(242,183,5,0); }
}

.hero h1{
  color: #fff; font-size: 3.1rem; font-weight: 800; line-height: 1.15;
  margin-top: 18px;
  animation: fadeInUp .8s ease .1s both;
}
.hero h1 .text-orange{
  background: linear-gradient(90deg, var(--rk-red) 0%, #ff5a5f 45%, var(--rk-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.hero .lead{
  color: #cfd8e6; font-size: 1.1rem; max-width: 540px;
  animation: fadeInUp .8s ease .22s both;
}
.hero .hero-cta-row{ animation: fadeInUp .8s ease .34s both; }

.hero-badges{
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px;
  animation: fadeInUp .8s ease .46s both;
}
.hero-badge-chip{
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: #eef2f8;
  animation: chipFloat 4.5s ease-in-out infinite;
}
.hero-badge-chip:nth-child(2){ animation-delay: .4s; }
.hero-badge-chip:nth-child(3){ animation-delay: .8s; }
.hero-badge-chip i{ color: var(--rk-gold); font-size: 1.05rem; }
@keyframes chipFloat{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

.hero-stats{
  display: flex;
  gap: 34px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .58s both;
}
.hero-stats .stat-item{ position: relative; padding-left: 4px; }
.hero-stats .stat-num{
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rk-orange);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stats .stat-label{ font-size: .8rem; color: #cfd8e6; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px){
  .hero{ padding: 120px 0 70px; }
  .hero h1{ font-size: 2.1rem; }
}

.page-header{
  position: relative;
  background: linear-gradient(120deg, rgba(6,24,47,.95), rgba(10,38,71,.85)),
              url("../images/hero-building.png") center / cover no-repeat;
  color: #fff;
  padding: 90px 0 50px;
  overflow: hidden;
}
.page-header::before{
  content: "";
  position: absolute; top: -80px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,18,36,.45), rgba(138,18,36,0) 70%);
  animation: heroFloat1 9s ease-in-out infinite;
}
.page-header h1{ color:#fff; font-weight: 800; animation: fadeInUp .6s ease both; }
.page-header .breadcrumb{ background: transparent; margin: 0; padding: 0; animation: fadeInUp .6s ease .1s both; }
.page-header .breadcrumb a{ color: #cfd8e6; }
.page-header .breadcrumb .active{ color: var(--rk-orange); }

/* ---------------- Cards ---------------- */
.rk-card{
  background: #fff;
  border-radius: var(--rk-radius);
  box-shadow: var(--rk-shadow);
  border: 1px solid #eef1f6;
  transition: all .25s ease-in-out;
  height: 100%;
}
.rk-card:hover{ box-shadow: var(--rk-shadow-lg); transform: translateY(-6px); }

.service-card{ padding: 0; text-align: left; overflow: hidden; }
.service-card-media{
  position: relative; height: 170px; overflow: hidden;
  background: linear-gradient(135deg, var(--rk-navy), var(--rk-navy-light));
}
.service-card-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rk-card:hover .service-card-media img{ transform: scale(1.08); }
.service-card-media-fallback{
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); font-size: 2.6rem;
}
.service-icon-badge{
  position: absolute; left: 10px; bottom: 10px;
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff; box-shadow: var(--rk-shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--rk-red); font-size: 1.4rem; overflow: hidden;
}
.service-icon-badge img{ width: 100%; height: 100%; object-fit: cover; }
.service-card-body{ padding: 34px 26px 26px; }
.service-card-body h5{ font-size: 1.1rem; margin-bottom: 10px; }
.service-card-body p{ color: var(--rk-text-muted); font-size: .92rem; }
.service-card-body .read-more{ color: var(--rk-red); font-weight: 700; font-size: .82rem; text-transform: uppercase; }

.detail-icon-badge{
  width: 52px; height: 52px; border-radius: 12px; background: var(--rk-grey-bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rk-red); font-size: 1.4rem; overflow: hidden; flex-shrink: 0;
}
.detail-icon-badge img{ width: 100%; height: 100%; object-fit: cover; }

.project-icon-badge{
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff; box-shadow: var(--rk-shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; z-index: 2;
}
.project-icon-badge img{ width: 100%; height: 100%; object-fit: cover; }

.stat-strip{
  position: relative;
  background: linear-gradient(120deg, var(--rk-navy) 0%, var(--rk-navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.stat-strip::before{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.stat-strip .stat-box{
  position: relative;
  text-align: center;
  padding: 40px 10px;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: transform .25s ease;
}
.stat-strip .stat-box:hover{ transform: translateY(-6px); }
.stat-strip .stat-box:last-child{ border-right: none; }
.stat-strip .stat-icon{
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.stat-strip .stat-num{
  font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stat-strip .stat-num .stat-suffix{ font-size: 1.4rem; }
.stat-strip .stat-label{
  font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: #cfd8e6;
  margin-top: 6px;
}
/* color-coded accents so the strip feels lively, not monotone navy */
.stat-strip .stat-box:nth-child(6n+1) .stat-icon{ background: linear-gradient(135deg, var(--rk-red), #c23146); }
.stat-strip .stat-box:nth-child(6n+2) .stat-icon{ background: linear-gradient(135deg, var(--rk-gold), #d99a00); }
.stat-strip .stat-box:nth-child(6n+3) .stat-icon{ background: linear-gradient(135deg, var(--rk-blue), #2f7fd1); }
.stat-strip .stat-box:nth-child(6n+4) .stat-icon{ background: linear-gradient(135deg, var(--rk-red), #c23146); }
.stat-strip .stat-box:nth-child(6n+5) .stat-icon{ background: linear-gradient(135deg, var(--rk-blue), #2f7fd1); }
.stat-strip .stat-box:nth-child(6n+6) .stat-icon{ background: linear-gradient(135deg, var(--rk-gold), #d99a00); }

/* count-up trigger state */
.stat-strip .stat-num.counting{ animation: countPop .4s ease; }
@keyframes countPop{
  0%{ transform: scale(.85); opacity: .4; }
  100%{ transform: scale(1); opacity: 1; }
}

/* ---------------- Project / gallery cards ---------------- */
.project-card{ overflow: hidden; border-radius: var(--rk-radius); position: relative; }
.project-card img{ width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img{ transform: scale(1.08); }
.project-card .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,24,47,.92) 0%, rgba(6,24,47,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff;
}
.project-card .badge-cat{
  background: var(--rk-orange); color: #fff; font-size: .7rem;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 8px; width: fit-content;
}
.project-filters .btn{
  border: 1px solid #dfe4ea; color: var(--rk-navy); margin: 4px; border-radius: 30px;
  font-size: .85rem; padding: 7px 20px; font-weight: 600;
}
.project-filters .btn.active,
.project-filters .btn:hover{ background: var(--rk-orange); border-color: var(--rk-orange); color: #fff; }

/* ---------------- CTA ---------------- */
.cta-section{
  background: linear-gradient(120deg, var(--rk-navy) 0%, var(--rk-navy-light) 100%);
  color: #fff;
  border-radius: var(--rk-radius);
  padding: 50px;
}
@media (max-width: 767px){ .cta-section{ padding: 34px 22px; text-align:center; } }

/* ---------------- Client logos ---------------- */
.client-logo{
  background: #fff; border-radius: 8px; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: .75; transition: all .2s ease-in-out;
  border: 1px solid #eef1f6; height: 100px;
}
.client-logo:hover{ filter: none; opacity: 1; }
.client-logo img{ max-height: 55px; max-width: 100%; object-fit: contain; }

/* ---------------- Footer ---------------- */
.rk-footer{ background: var(--rk-navy-dark); color: #b9c3d3; }
.rk-footer h5{ color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.rk-footer a{ color: #b9c3d3; }
.rk-footer a:hover{ color: var(--rk-orange); }
.rk-footer .footer-links li{ margin-bottom: 10px; }
.footer-social-label{
  display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #8593a8;
}
.rk-footer .social-icons a{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
  font-size: 1rem;
  transition: all .2s ease;
}
.rk-footer .social-icons a:hover{ transform: translateY(-3px); color: #fff; }
.rk-footer .social-icons a[aria-label="Facebook"]:hover{ background: #1877f2; border-color: #1877f2; }
.rk-footer .social-icons a[aria-label="Twitter / X"]:hover{ background: #000; border-color: #000; }
.rk-footer .social-icons a[aria-label="LinkedIn"]:hover{ background: #0a66c2; border-color: #0a66c2; }
.rk-footer .social-icons a[aria-label="Instagram"]:hover{ background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.rk-footer .social-icons a[aria-label="YouTube"]:hover{ background: #ff0000; border-color: #ff0000; }
.footer-bottom{ background: var(--rk-navy-dark); border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; }
.footer-strip{ background: var(--rk-navy); padding: 18px 0; color: #dbe3ef; font-size: .9rem; }

/* ---------------- Misc ---------------- */
.breadcrumb-wrap{ background: var(--rk-grey-bg); padding: 16px 0; }
.icon-badge{
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--rk-navy); color: var(--rk-orange);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.timeline-dot{
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--rk-grey-bg); border: 2px solid var(--rk-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--rk-navy);
}
.form-control{ border-radius: 6px; padding: 12px 14px; border: 1px solid #e1e6ee; }
.form-control:focus{ border-color: var(--rk-orange); box-shadow: 0 0 0 .2rem rgba(138,18,36,.15); }
.progress{ height: 8px; border-radius: 20px; }
.progress-bar{ background-color: var(--rk-orange); }

.testimonial-card{
  background: var(--rk-navy-light); color: #fff; border-radius: var(--rk-radius); padding: 34px;
}
.testimonial-card .stars{ color: var(--rk-orange); }

.whatsapp-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.back-to-top{
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rk-orange); color: #fff; display: none;
  align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.blockquote-icon{ font-size: 2rem; color: var(--rk-orange); opacity: .5; }

/* ---------------- Sticky detail-page sidebar ---------------- */
.sticky-sidebar{
  position: -webkit-sticky;
  position: sticky;
  top: 110px;              /* clears the sticky navbar + a little breathing room */
  align-self: flex-start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 991px){
  .sticky-sidebar{ position: static; max-height: none; overflow: visible; }
}

/* ---------------- Rich text (django-ckeditor-5) content ---------------- */
.ck-content{
  color: #45526a;
  font-size: 1rem;
  line-height: 1.8;
}
.ck-content > *:first-child{ margin-top: 0; }
.ck-content > *:last-child{ margin-bottom: 0; }
.ck-content h1, .ck-content h2, .ck-content h3,
.ck-content h4, .ck-content h5, .ck-content h6{
  color: var(--rk-navy);
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: .6em;
}
.ck-content h1{ font-size: 1.9rem; }
.ck-content h2{ font-size: 1.55rem; }
.ck-content h3{ font-size: 1.3rem; }
.ck-content h4{ font-size: 1.1rem; }
.ck-content p{ margin-bottom: 1.1em; }
.ck-content a{ color: var(--rk-red); font-weight: 600; text-decoration: underline; }
.ck-content a:hover{ color: var(--rk-red-dark); }

.ck-content ul, .ck-content ol{
  padding-left: 0;
  margin: 0 0 1.3em 0;
  list-style: none;
}
.ck-content ul li, .ck-content ol li{
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.ck-content ul li::before{
  content: "\f26a";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--rk-red);
  font-size: .95rem;
}
.ck-content ol{ counter-reset: ck-ol; }
.ck-content ol li{ counter-increment: ck-ol; }
.ck-content ol li::before{
  content: counter(ck-ol);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rk-red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-content ul ul, .ck-content ul ol,
.ck-content ol ul, .ck-content ol ol{ margin-top: 10px; margin-bottom: 0; }
.ck-content li > ul, .ck-content li > ol{ margin-top: 10px; }

.ck-content blockquote{
  margin: 1.6em 0;
  padding: 16px 24px;
  border-left: 4px solid var(--rk-red);
  background: var(--rk-grey-bg);
  color: var(--rk-navy);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.ck-content img, .ck-content .image{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--rk-shadow);
  margin: 1.2em 0;
}
.ck-content figure.image{ margin: 1.2em 0; }
.ck-content figcaption{
  text-align: center;
  color: var(--rk-text-muted);
  font-size: .85rem;
  margin-top: 6px;
}
.ck-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  overflow: hidden;
  border-radius: 8px;
}
.ck-content table td, .ck-content table th{
  border: 1px solid #e5e9f0;
  padding: 10px 14px;
}
.ck-content table th{ background: var(--rk-navy); color: #fff; }
.ck-content table tr:nth-child(even) td{ background: #f8f9fc; }
.ck-content hr{ border: none; border-top: 2px dashed #e5e9f0; margin: 2em 0; }
.ck-content code{
  background: #f1f3f8; color: var(--rk-red);
  padding: 2px 6px; border-radius: 4px; font-size: .9em;
}
.ck-content pre{
  background: var(--rk-navy-dark); color: #eaeef5;
  padding: 16px; border-radius: 8px; overflow-x: auto;
}
.ck-content pre code{ background: transparent; color: inherit; padding: 0; }
.ck-content mark{ background: rgba(138,18,36,.15); padding: 0 2px; }

/* Minimal CKEditor5 widget skin adjustments inside the Django admin/forms stay default;
   this section only styles rendered (frontend) rich text output. */

/* Footer rich-text override (footer bg is dark) */
.rk-footer .ck-content{ color: #b9c3d3; }
.rk-footer .ck-content p{ color: #b9c3d3; margin-bottom: .8em; }
.rk-footer .ck-content a{ color: var(--rk-red); }
.rk-footer .ck-content a:hover{ color: #fff; }
.ck-content-sm{ font-size: .92rem; line-height: 1.7; }
.ck-content-sm ul li, .ck-content-sm ol li{ margin-bottom: 6px; }

/* ---------------- Leadership (About Us) ---------------- */
.leadership-card{
  display: flex;
  gap: 22px;
  background: #fff;
  border-radius: var(--rk-radius);
  box-shadow: var(--rk-shadow);
  padding: 26px;
  height: 100%;
  border: 1px solid #eef1f6;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.leadership-card:hover{ box-shadow: var(--rk-shadow-lg); transform: translateY(-6px); }
.leadership-card::before{
  content: "";
  position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--rk-red), var(--rk-gold));
}
.leadership-photo{
  flex-shrink: 0;
  width: 110px; height: 130px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--rk-shadow);
}
.leadership-photo img{ width: 100%; height: 100%; object-fit: cover; }
.leadership-body{ flex: 1; min-width: 0; }
.leadership-role-badge{
  display: inline-block;
  background: var(--rk-navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.leadership-quote{
  position: relative;
  color: var(--rk-text-muted);
  font-size: .92rem;
  font-style: italic;
  line-height: 1.65;
  padding-left: 22px;
  margin-bottom: 12px;
}
.leadership-quote::before{
  content: "\201C";
  position: absolute; left: -2px; top: -8px;
  font-size: 2rem; color: var(--rk-red); opacity: .45;
  font-style: normal; font-family: Georgia, serif;
}
.leadership-name{ font-weight: 800; color: var(--rk-navy); margin-bottom: 2px; }
.leadership-company{ color: var(--rk-red); font-weight: 700; font-size: .85rem; }
@media (max-width: 575px){
  .leadership-card{ flex-direction: column; }
  .leadership-photo{ width: 100%; height: 200px; }
}

/* ---------------- Core Values grid ---------------- */
.core-value-card{
  background: #fff;
  border-radius: var(--rk-radius);
  border: 1px solid #eef1f6;
  padding: 28px 18px;
  text-align: center;
  height: 100%;
  transition: all .25s ease;
}
.core-value-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--rk-shadow-lg);
  border-color: transparent;
}
.core-value-icon{
  width: 66px; height: 66px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--rk-navy), var(--rk-navy-light));
  transition: transform .25s ease;
}
.core-value-card:hover .core-value-icon{ transform: scale(1.1) rotate(-6deg); }
.core-value-card:nth-child(6n+1) .core-value-icon{ background: linear-gradient(135deg, var(--rk-red), #c23146); }
.core-value-card:nth-child(6n+2) .core-value-icon{ background: linear-gradient(135deg, var(--rk-gold), #d99a00); }
.core-value-card:nth-child(6n+3) .core-value-icon{ background: linear-gradient(135deg, var(--rk-blue), #2f7fd1); }
.core-value-card:nth-child(6n+4) .core-value-icon{ background: linear-gradient(135deg, var(--rk-navy), var(--rk-navy-light)); }
.core-value-card:nth-child(6n+5) .core-value-icon{ background: linear-gradient(135deg, var(--rk-red), #c23146); }
.core-value-card:nth-child(6n+6) .core-value-icon{ background: linear-gradient(135deg, var(--rk-gold), #d99a00); }
.core-value-card h5{ font-size: 1rem; margin-bottom: 8px; }
.core-value-card p{ color: var(--rk-text-muted); font-size: .85rem; margin-bottom: 0; }

/* ---------------- Detail page banner (service/project) ---------------- */
.detail-banner{
  position: relative;
  border-radius: var(--rk-radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--rk-shadow-lg);
}
.detail-banner img{ width: 100%; height: 360px; object-fit: cover; display: block; }
.detail-banner .detail-banner-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,24,47,.92) 0%, rgba(6,24,47,.35) 55%, rgba(6,24,47,.05) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px;
}
.detail-banner .detail-banner-badge{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rk-red); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 14px; width: fit-content;
}
.detail-banner h1{ color: #fff; font-size: 2.1rem; margin-bottom: 6px; }
.detail-banner .detail-banner-sub{ color: #cfd8e6; font-size: .95rem; }
@media (max-width: 575px){
  .detail-banner img{ height: 240px; }
  .detail-banner h1{ font-size: 1.5rem; }
}

/* Service/project card polish: featured ribbon + hover shine */
.rk-card{ position: relative; }
.featured-ribbon{
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--rk-gold), #d99a00);
  color: #1a1400; font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

/* ---------------- Detail page: info rows + gallery ---------------- */
.info-row{
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e9f0;
}
.info-row:last-child{ border-bottom: none; padding-bottom: 0; }
.info-row .info-icon{
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--rk-grey-bg); color: var(--rk-red);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.info-row .info-label{ font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: var(--rk-text-muted); }
.info-row .info-value{ font-weight: 700; color: var(--rk-navy); font-size: .92rem; }

.gallery-thumb{
  position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--rk-shadow);
  display: block; aspect-ratio: 4 / 3;
}
.gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-thumb:hover img{ transform: scale(1.12); }

.related-project-item{
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.related-project-item .thumb{
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; box-shadow: var(--rk-shadow);
}
.related-project-item .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.related-project-item .title{ font-weight: 700; color: var(--rk-navy); font-size: .88rem; line-height: 1.3; }
.related-project-item .meta{ color: var(--rk-text-muted); font-size: .74rem; }

/* ---------------- Service enquiry sidebar form ---------------- */
.enquiry-card{
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--rk-red), var(--rk-gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.enquiry-card .form-control{ font-size: .9rem; padding: 10px 12px; }
