/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* CSS Custom Variables for Kandhal Brand Identity */
:root {
  --primary: #C0001A;
  --primary-rgb: 192, 0, 26;
  --primary-hover: #9E0012;
  --secondary: #003580;
  --secondary-rgb: 0, 53, 128;
  --secondary-hover: #002860;
  --dark: #111827;
  --dark-accent: #1F2937;
  --light: #F9FAFB;
  --light-border: #E5E7EB;
  --text: #1A1A1A;
  --text-muted: #4B5563;
  --white: #FFFFFF;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dark);
}

p {
  font-family: var(--font-body);
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Navbar Logo */
.navbar-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.navbar-logo:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .navbar-logo {
    height: 48px;
  }
}

/* Utility Layouts & Classes */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }
.bg-light-custom { background-color: var(--light) !important; }

/* Custom Buttons */
.btn-kandhal-red {
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 4px;
  letter-spacing: 1px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-kandhal-red:hover {
  color: var(--white);
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(192, 0, 26, 0.6);
  transform: translateY(-2px);
}

.btn-kandhal-blue {
  background-color: var(--secondary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 4px;
  letter-spacing: 1px;
  border: 2px solid var(--secondary);
  transition: var(--transition);
}
.btn-kandhal-blue:hover {
  color: var(--white);
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  box-shadow: 0 0 20px rgba(0, 53, 128, 0.6);
  transform: translateY(-2px);
}

.btn-kandhal-outline {
  background-color: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 4px;
  letter-spacing: 1px;
  border: 2px solid var(--white);
  transition: var(--transition);
}
.btn-kandhal-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* SECTION 1 — TOP BAR */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}
.top-bar i {
  margin-right: 6px;
  color: rgba(255,255,255,0.85);
}
.top-bar a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* SECTION 2 — HEADER & NAVBAR */
.navbar-brand-custom {
  line-height: 1.1;
}
.navbar-brand-custom .brand-bold {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
}
.navbar-brand-custom .brand-sub {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--secondary);
}

.navbar-custom {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1000;
}
.navbar-custom.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar-custom .nav-link-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark) !important;
  font-size: 1rem;
  padding: 8px 16px !important;
  letter-spacing: 0.5px;
  position: relative;
}
.navbar-custom .nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.navbar-custom .nav-link-custom:hover::after {
  transform: scaleX(1);
}
.navbar-custom .nav-link-custom:hover {
  color: var(--primary) !important;
}

/* Highly visible active state */
.navbar-custom .nav-link-custom.active {
  background-color: var(--primary);
  color: var(--white) !important;
  border-radius: 4px;
}
.navbar-custom .nav-link-custom.active::after {
  display: none;
}

/* SECTION 3 — HERO SLIDER */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background-color: #000;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(0, 53, 128, 0.4) 100%);
  z-index: 3;
}
.hero-slide-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 900px;
  padding: 0 4%;
}
.hero-slide h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.hero-slide p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 650px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}
.hero-slide .btn-kandhal-red,
.hero-slide .btn-kandhal-outline {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s;
}

.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .btn-kandhal-red,
.hero-slide.active .btn-kandhal-outline {
  transform: translateY(0);
  opacity: 1;
}

/* Hero Controls */
.hero-control-prev,
.hero-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}
.hero-control-prev { left: 20px; }
.hero-control-next { right: 20px; }
.hero-control-prev:hover,
.hero-control-next:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-indicator-dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* SECTION HEADINGS */
.section-title-container {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}
.section-title-container h2 {
  font-size: 2.5rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 15px;
  position: relative;
}
.section-title-container h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--primary);
  margin: 10px auto 0 auto;
}
.section-title-container .section-subtitle {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto;
}

/* SECTION 4 — SERVICES CARDS */
.service-card {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  border-top: 4px solid var(--primary);
  border-radius: 4px;
  padding: 30px 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-top-color: var(--secondary);
}
.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background-color: rgba(192, 0, 26, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrapper {
  background-color: var(--secondary);
  color: var(--white);
  transform: rotateY(180deg);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark);
}
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.service-card-link i {
  transition: var(--transition);
}
.service-card:hover .service-card-link {
  color: var(--secondary);
}
.service-card:hover .service-card-link i {
  transform: translateX(5px);
}

/* SECTION 5 — WHY CHOOSE US */
.why-feature-block {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.why-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 53, 128, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.why-text-box h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.why-text-box p {
  font-size: 0.95rem;
}

/* SECTION 6 — STATISTICS COUNTER */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7A000F 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
}
.stats-card {
  text-align: center;
  padding: 20px;
}
.stats-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}
.stats-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* SECTION 7 — TESTIMONIALS */
.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  padding: 35px 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}
.testimonial-quote-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.05);
}
.testimonial-stars {
  color: #FBBF24;
  margin-bottom: 15px;
}
.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 20px;
}
.testimonial-author {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
}
.testimonial-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECTION 8 — CALL TO ACTION BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #001F4C 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 35px auto;
}

/* SECTION 9 — FOOTER */
footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0 0;
  border-top: 5px solid var(--primary);
}
footer h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}
footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer-logo .brand-bold {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo .brand-sub {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 2px;
}
.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background-color: var(--dark-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social-links a:hover {
  background-color: var(--primary);
}

.footer-links-list {
  list-style: none;
  padding: 0;
}
.footer-links-list li {
  margin-bottom: 12px;
}
.footer-links-list a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links-list a::before {
  content: '\F285';
  font-family: 'bootstrap-icons';
  font-size: 0.75rem;
  color: var(--primary);
}
.footer-links-list a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-bottom-bar {
  background-color: #0c111d;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

/* INTERNAL PAGE BANNER */
.internal-page-banner {
  height: 320px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: #0c111d;
}
.internal-page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(17, 24, 39, 0.9) 0%, rgba(0, 53, 128, 0.5) 100%);
  z-index: 1;
}
.internal-page-banner-content {
  position: relative;
  z-index: 2;
}
.internal-page-banner h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
}
.internal-breadcrumb {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.internal-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

/* ABOUT US DETAILS */
.about-card-wrapper {
  border: 1px solid var(--light-border);
  padding: 40px;
  border-radius: 4px;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.about-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.about-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(192,0,26,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}
.about-card-wrapper:nth-child(even) .about-card-icon {
  background-color: rgba(0,53,128,0.1);
  color: var(--secondary);
}
.about-card-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.value-card {
  text-align: center;
  border: 1px solid var(--light-border);
  padding: 30px 20px;
  border-radius: 4px;
  background-color: var(--white);
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 15px auto;
}
.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* DETAILED SERVICES PAGES (Alternating grid layout) */
.detailed-service-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--light-border);
}
.detailed-service-block:last-child {
  border-bottom: none;
}
.detailed-service-block:nth-child(even) {
  background-color: var(--light);
}
.detailed-service-block h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--dark);
}
.detailed-service-block p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.service-feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.service-feature-list li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}
.detailed-service-image {
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* GUARDING PROCESS & PHILOSOPHY */
.guarding-type-card {
  border: 1px solid var(--light-border);
  border-radius: 4px;
  background-color: var(--white);
  padding: 30px;
  transition: var(--transition);
  height: 100%;
}
.guarding-type-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.guarding-type-icon {
  width: 55px;
  height: 55px;
  border-radius: 4px;
  background-color: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.guarding-type-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.training-process-timeline {
  position: relative;
  padding: 40px 0;
}
.training-process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--light-border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 4px solid var(--white);
}
.timeline-panel {
  width: 45%;
  background-color: var(--white);
  border: 1px solid var(--light-border);
  padding: 25px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.timeline-item:nth-child(odd) .timeline-panel {
  float: left;
}
.timeline-item:nth-child(even) .timeline-panel {
  float: right;
}
.timeline-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.timeline-panel p {
  font-size: 0.95rem;
  margin-bottom: 0;
}
/* Clearfix for timeline */
.training-process-timeline::after,
.timeline-item::after {
  content: "";
  display: table;
  clear: both;
}

.deployment-area-card {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.deployment-area-card:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}
.deployment-area-card:hover h4,
.deployment-area-card:hover i {
  color: var(--white) !important;
}
.deployment-area-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}
.deployment-area-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 600;
}

/* QUALITY POLICY COMMITMENTS */
.quality-card {
  border: 1px solid var(--light-border);
  padding: 30px;
  border-radius: 4px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}
.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--secondary);
}
.quality-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.quality-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.compliance-check-card {
  background-color: var(--light);
  border: 1px solid var(--light-border);
  padding: 25px;
  border-radius: 4px;
  height: 100%;
}
.compliance-check-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.compliance-check-card h4 i {
  color: #10B981;
}

/* GALLERY PAGE MASONRY & LIGHTBOX */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 3/2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(192, 0, 26, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  padding: 20px;
  text-align: center;
  z-index: 2;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
.gallery-item-overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  margin-bottom: 4px;
}
.gallery-item-overlay span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.75);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.gallery-item:hover .gallery-item-overlay i,
.gallery-item:hover .gallery-item-overlay h3,
.gallery-item:hover .gallery-item-overlay span {
  transform: translateY(0);
}

/* Lightbox Modal CSS */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}
.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 4px solid var(--white);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}
.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}
.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10002;
}
.lightbox-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
  transition: var(--transition);
  z-index: 10001;
  background-color: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--primary);
  color: var(--white);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* CONTACT PAGE CUSTOM CONTROLS */
.contact-info-card {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  padding: 40px;
  border-radius: 4px;
  height: 100%;
}
.contact-info-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 8px;
}
.contact-info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}
.contact-detail-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}
.contact-detail-icon {
  width: 45px;
  height: 45px;
  border-radius: 4px;
  background-color: rgba(192, 0, 26, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-detail-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-detail-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-form-wrapper {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  padding: 40px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 8px;
}
.contact-form-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.form-control-custom {
  font-family: var(--font-body);
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 4px;
  transition: var(--transition);
}
.form-control-custom:focus {
  outline: 0;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 53, 128, 0.15);
}

.map-wrapper {
  border: 1px solid var(--light-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
  .hero-slider-container {
    height: 520px;
  }
  .hero-slide h1 {
    font-size: 2.6rem;
  }
  .hero-slide p {
    font-size: 1.1rem;
  }
  .training-process-timeline::before {
    left: 20px;
  }
  .timeline-badge {
    left: 20px;
  }
  .timeline-panel {
    width: 85%;
    float: right !important;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-prev, .lightbox-next { font-size: 2.2rem; }
}

@media (max-width: 767px) {
  .top-bar {
    text-align: center;
  }
  .top-bar .text-end {
    text-align: center !important;
    margin-top: 5px;
  }
  .hero-slider-container {
    height: 460px;
  }
  .hero-slide h1 {
    font-size: 2rem;
  }
  .hero-slide p {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }
  .hero-slide-content {
    align-items: center;
    text-align: center;
  }
  .btn-kandhal-red, .btn-kandhal-blue {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
  .section-title-container h2 {
    font-size: 2rem;
  }
  .cta-banner h2 {
    font-size: 2rem;
  }
  .cta-banner p {
    font-size: 1.05rem;
  }
  .detailed-service-image {
    height: 280px;
    margin-top: 25px;
  }
  .about-card-wrapper, .contact-info-card, .contact-form-wrapper {
    padding: 25px;
  }
}
