body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #0F2443;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 45px;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0F2443;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #0052CC;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(15,36,67,0.78), rgba(0,82,204,0.72));
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #0052CC;
  padding: 12px 28px;
  margin-top: 20px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #e6e6e6;
}

.section {
  padding: 80px 0;
}

.section.light {
  background-color: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0F2443;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  padding: 12px 24px;
  background-color: #0052CC;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #003e99;
}

.map-container {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.testimonial-slider p {
  display: none;
  font-style: italic;
  text-align: center;
  font-size: 1.1rem;
}

.footer {
  background-color: #0F2443;
  color: white;
  text-align: center;
  padding: 20px 0;
}

.card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0052CC;
  display: block;
}

.card h3 {
  margin: 10px 0 10px;
  font-size: 1.2rem;
  color: #0F2443;
}

.faq-item {
  margin-bottom: 30px;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #0052CC;
}

.carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.intro-text {
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.faq-item {
  margin-bottom: 20px;
}
.faq-item summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  color: #0052CC;
}
.faq-item p {
  margin: 10px 0 0;
  padding-left: 10px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  color: #25D366;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #25D366;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.whatsapp-float i {
  font-size: 1.2rem;
}
.whatsapp-float i {
  font-size: 1.2rem;
}
.callback {
  background-color: #eef3f8;
  text-align: center;
}
.callback-form {
  margin-top: 20px;
}
.callback-form input {
  margin: 5px;
  padding: 10px;
  width: 250px;
  max-width: 90%;
}
.callback-form button {
  padding: 10px 20px;
  background: #0052CC;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.callback-form button:hover {
  background: #003e99;
}

details.faq-item {
  transition: all 0.3s ease-in-out;
}
details.faq-item[open] summary {
  color: #003e99;
}

.team-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.team-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}
.team-info {
  flex: 1;
  max-width: 700px;
}
.team-name {
  color: #0052CC;
  margin-bottom: 0.2rem;
}
.team-title-line {
  border: none;
  border-top: 3px solid #0052CC;
  width: 180px;
  margin: 0.2rem 0 0.8rem 0;
}
.team-role {
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}
.team-bio {
  color: #4a4a4a;
  margin-bottom: 1rem;
}


.team-photo {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.team-info {
  flex: 1 1 50%;
}
@media (max-width: 768px) {
  .team-photo, .team-info {
    flex: 1 1 100%;
    text-align: center;
  }
  .team-photo {
    margin-bottom: 20px;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#team .team-container {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

/* Hover effect on headshot */
.team-photo img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* General fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in to common sections */
.section {
  animation: fadeInUp 0.9s ease forwards;
  opacity: 0;
}

/* Animate CTA buttons */
.cta-button, .callback-form button, form button {
  transition: all 0.3s ease;
}
.cta-button:hover, .callback-form button:hover, form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animate service cards */
.card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Animate testimonial carousel */
.testimonial-slider {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.team-photo {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.team-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-info {
  flex: 1 1 55%;
  max-width: 600px;
}

.team-name {
  color: #0052CC;
  margin-bottom: 0.2rem;
}

.team-role {
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.team-bio {
  color: #4a4a4a;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .team-photo, .team-info {
    flex: 1 1 100%;
    text-align: center;
  }
  .team-photo {
    margin-bottom: 20px;
  }
}

.team-socials {
  margin-top: 1rem;
}
.team-socials a {
  margin-right: 15px;
  font-size: 1.4rem;
  color: #0052CC;
  text-decoration: none;
  transition: color 0.3s ease;
}
.team-socials a:hover {
  color: #003a99;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #0052CC;
  text-align: center;
  padding: 12px 0;
  z-index: 999;
}
.sticky-cta a {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}
.sticky-cta a:hover {
  text-decoration: underline;
}

/* Case Studies styling */
#case-studies .cards .card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
#case-studies .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hero-points {
  list-style: disc;
  text-align: left;
  max-width: 600px;
  margin: 20px auto;
  padding-left: 1.2rem;
  color: white;
}
.criteria-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 20px;
}
.criteria-table th, .criteria-table td {
  border: 1px solid #ddd;
  padding: 12px;
}
.criteria-table th {
  background: #f1f1f1;
  text-align: left;
}
.quick-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.quick-form input, .quick-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.quick-form button {
  background: #0052CC;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.quick-form button:hover {
  background: #003e99;
}

.cards a {
  display: inline-block;
  margin-top: 10px;
  color: #0052CC;
  text-decoration: none;
  font-weight: bold;
}
.cards a:hover {
  text-decoration: underline;
}
details.faq-item {
  background: #ffffff;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
details.faq-item summary {
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}
details.faq-item summary::after {
  content: "▶";
  position: absolute;
  right: 0;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
details.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-container {
  justify-content: center;
}

.logo-display-section {
  background: transparent;
  padding: 40px 0 20px 0;
  text-align: center;
}
.logo-center img.faded-logo {
  opacity: 0.15;
  max-width: 300px;
  height: auto;
}


.slider-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.slider-track {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}
.slider-card {
  flex: 0 0 280px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.slider-card h3 {
  margin-top: 0;
  color: #0F2443;
}
.slider-card a {
  display: inline-block;
  margin-top: 10px;
  color: #0052CC;
  text-decoration: none;
  font-weight: bold;
}
.slider-card a:hover {
  text-decoration: underline;
}


.floating-cta {
  opacity: 0;
  pointer-events: none;

  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0052CC;
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: background 0.3s ease;
}
.floating-cta:hover {
  background: #003e99;
}
.floating-cta i {
  font-size: 1.1rem;
}

.floating-cta.show { pointer-events: auto; }

#client-testimonials .carousel .testimonial-entry {
  display: none;
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
#client-testimonials .carousel .testimonial-entry p {
  margin-bottom: 0.6rem;
}


.testimonial-dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.testimonial-dot.active {
  background-color: #0052CC;
}

.enquire-now-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #0052CC;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.enquire-now-btn:hover {
  background-color: #003e99;
}


/* Brand/Association strip above footer */
.brand-partners {
  background: #ffffff;
  padding: 72px 0; /* well-spaced above and below */
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brand-partners__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.brand-logo {
  height: 48px;
  width: auto;
}
.brand-copy {
  margin: 0;
  font-size: 1rem;
  color: #0F2443;
  opacity: .9;
}
@media (min-width: 768px) {
  .brand-partners {
    padding: 88px 0;
  }
  .brand-logo {
    height: 56px;
  }
}


/* Social links section (above footer) */
.social-strip {
  background: #ffffff;
  padding: 56px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.social-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #0F2443;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.social-link i {
  font-size: 1.2rem;
}
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.social-link.fb:hover {
  color: #1877F2;
  border-color: rgba(24,119,242,0.3);
}
.social-link.li:hover {
  color: #0077B5;
  border-color: rgba(0,119,181,0.3);
}

@media (min-width: 768px) {
  .social-strip { padding: 64px 0; }
}


/* Social heading styling */
.social-heading {
  text-align: center;
  margin: 0 0 18px 0;
  font-size: 1.6rem;
  color: #0F2443;
}


/* Hero logo overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/krdfinancial.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(60%, 520px);
  opacity: 0.12;          /* subtle overlay */
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero::after {
    background-size: 70%;
    opacity: 0.14; /* slightly stronger on small screens for visibility */
  }
}


/* Slight text shadow to keep contrast on lighter hero */
.hero-title-shadow {
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}


/* --- SEO & Mobile performance enhancements --- */
img { max-width: 100%; height: auto; display: block; }

:root {
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 28px;
}
body { font-size: var(--text-base); }

@media (max-width: 480px) {
  .hero { padding: 72px 16px; }
  .hero h1 { font-size: 1.9rem; }
  .cta-button { padding: 12px 18px; }
  .team-photo img { width: 160px; height: 160px; }
  .section { padding: 56px 0; }
}

/* Improve focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #0052CC;
  outline-offset: 2px;
}

/* === Added: Strong borders for Facebook & LinkedIn buttons === */
.social-link.fb {
  border: 2px solid #1877F2; /* Facebook brand blue */
}

.social-link.li {
  border: 2px solid #0A66C2; /* LinkedIn brand blue */
}

/* Keep hover states consistent and visible */
.social-link.fb:hover {
  border-color: #145DB2;
}

.social-link.li:hover {
  border-color: #084E99;
}

/* === Footer phone button styles === */
.footer-phone {
  margin: 8px 0;
}

.footer-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px; /* pill-shaped */
  background: #0052CC;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.footer-phone-btn i {
  font-size: 0.95rem;
}

.footer-phone-btn span {
  letter-spacing: 0.03em;
}

.footer-phone-btn:hover,
.footer-phone-btn:focus-visible {
  background: #003e99;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.footer-phone-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero logo image */
.hero-logo {
  display: block;
  margin: 0 auto 24px;
  max-width: 260px;
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 190px;
    margin-bottom: 20px;
  }
}
