body {
  font-family: 'Cairo', sans-serif;
  color: #333;
  overflow-x: hidden;
}

.knr-carp-call-btn {
  background-color: #f0f3ff;
  color: #30168f;
  padding: 8px 20px;
  border-radius: 12px;
  border: 2px solid #30168f;
  transition: 0.3s;
}

.knr-carp-call-btn:hover {
  background-color: #30168f;
  color: white;
}

.knr-carp-hero {
  background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

.knr-carp-feature {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.knr-carp-feature:hover {
  transform: translateY(-5px);
}

.knr-carp-section {
  padding: 80px 0;
}

.bg-light {
  background-color: #f8faff !important;
}

.text-primary {
  color: #30168f !important;
}

.btn-primary {
  background-color: #30168f;
  border-color: #30168f;
}

.knr-carp-footer {
  background-color: #1a1a1a !important;
}

.entry-img figcaption {
  display: none;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-5px);
}

.transition-base {
  transition: all 0.3s ease;
}

.pulse-anim {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {

  /* Full-width images like stories */
  .entry-img img,
  .work-card img,
  section img.img-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0 !important;
  }

  /* Image captions visible on mobile */
  .img-caption {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #30168f;
    padding: 10px 15px;
    background: #f8f9fa;
    margin-top: -4px;
  }

  /* Text alignment for mobile */
  p,
  .lead,
  li {
    text-align: justify;
    text-justify: inter-word;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-align: center;
  }

  /* Better spacing */
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.entry-img figcaption {
  display: none;
}

#hero {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

#hero .carousel-item {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero .carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 50px;
}

#hero .carousel-content {
  text-align: center;
}

#hero h2 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
}

#hero p {
  width: 80%;
  margin: 0 auto 30px auto;
  color: #fff;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 10%;
}

#hero .carousel-control-prev-icon,
#hero .carousel-control-next-icon {
  background: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 50%;
}

#hero .carousel-indicators li {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

#hero .carousel-indicators .active {
  background: #fff;
}

@media (max-width: 768px) {
  #hero {
    height: 60vh;
    min-height: 400px;
  }

  #hero .carousel-item {
    height: 60vh;
    min-height: 400px;
  }

  #hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  #hero p {
    width: 95%;
    font-size: 16px;
  }

  #hero .carousel-container {
    padding: 40px 20px;
  }
}

/* Footer mobile padding for buttons */
@media (max-width: 768px) {
  footer.knr-carp-footer {
    padding-bottom: 100px !important;
  }

  .knr-carp-footer .col-md-4 {
    text-align: center !important;
  }

  .knr-carp-footer ul {
    list-style: none;
    padding: 0;
  }
}

/* Floating buttons z-index fix */
.position-fixed[style*="z-index: 1030"] {
  z-index: 1020 !important;
}

footer {
  position: relative;
  z-index: 1025 !important;
}

/* Fix z-index - buttons always on top */
.position-fixed[style*="z-index"] {
  z-index: 9999 !important;
}

footer.knr-carp-footer {
  position: relative;
  z-index: 1 !important;
}

/* Mobile footer centering */
@media (max-width: 768px) {
  .knr-carp-footer {
    text-align: center !important;
  }

  .knr-carp-footer .col-md-4 {
    text-align: center !important;
  }

  .knr-carp-footer ul {
    padding: 0 !important;
    list-style: none;
  }

  .knr-carp-footer ul li {
    display: block;
    margin: 5px 0;
  }

  .knr-carp-footer p,
  .knr-carp-footer h4 {
    text-align: center !important;
  }
}

/* Fix footer quick links alignment on mobile */
@media (max-width: 768px) {
  .knr-carp-footer ul.list-unstyled {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .knr-carp-footer ul.list-unstyled li {
    text-align: center !important;
  }

  .knr-carp-footer ul.list-unstyled li a {
    display: inline-block;
  }
}

/* Fix image captions - dark color on light background */
.img-caption {
  color: #30168f !important;
  background: #f8f9fa !important;
  font-weight: 600 !important;
}

/* Footer desktop - center items under headers */
@media (min-width: 769px) {
  .knr-carp-footer .col-md-4 {
    text-align: center !important;
  }

  .knr-carp-footer ul {
    padding: 0 !important;
    list-style: none;
  }

  .knr-carp-footer ul li {
    text-align: center !important;
  }

  .knr-carp-footer p,
  .knr-carp-footer h4 {
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .small-on-mobile {
    font-size: 0.9rem !important;
  }
}

/* Responsive Table Styles (Table to Card on Mobile) */
@media screen and (max-width: 768px) {
  .fsk-fixed-table thead {
    display: none;
  }

  .fsk-fixed-table,
  .fsk-fixed-table tbody,
  .fsk-fixed-table tr,
  .fsk-fixed-table td {
    display: block;
    width: 100%;
  }

  .fsk-fixed-table tr {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .fsk-fixed-table td {
    text-align: right;
    padding-left: 0;
    position: relative;
    padding-bottom: 10px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .fsk-fixed-table td:last-child {
    border-bottom: 0;
  }

  /* Add labels before content */
  .fsk-fixed-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #30168f;
    margin-left: 10px;
  }
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}