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

/* Custom Variables */
:root {
  --kanz-blue: #012b56;
  --kanz-yellow: #fbe517;
  --primary-color: #00274d; /* Navy Blue - still the main branding color */
  --secondary-color: #fbe517; /* Gold/Yellow - still the accent color */
  --text-color: #212529; /* Dark Grey for body text */
  --light-text-color: #f8f9fa; /* Light Grey for dark backgrounds */
  --light-bg: #f8f9fa; /* Off-white for sections */
  --dark-bg: #343a40; /* Dark grey for footer */
  --navbar-bg-light: #ffffff; /* New: White background for navbar */
  --navbar-text-dark: #212529; /* New: Dark text for white navbar */

  --font-family-base: 'DM Sans', sans-serif;
  --font-family-headings: 'DM Sans', sans-serif;
}

/* General Styles */
body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on small devices */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  font-weight: 700;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

.container {
  padding: 0 1.5rem; /* More generous container padding */
}

/* Navbar Customization */
.navbar {
  background-color: var(--navbar-bg-light) !important; /* White Navbar */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease-in-out;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  color: var(--primary-color) !important; /* Brand text matches primary color */
}

.navbar-brand img {
  margin-right: 0.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--navbar-text-dark) !important; /* Dark text for links */
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent; /* For underline effect */
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important; /* Hover/active in accent color */
  /*border-color: var(--secondary-color);  Highlight active/hover */
}

.dropdown-menu {
  background-color: var(--navbar-bg-light);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.dropdown-item {
  color: var(--navbar-text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--primary-color);
}

.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%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 39, 77, 0.95), rgba(0, 39, 77, 0.95)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: var(--light-text-color);
  padding: 8rem 0; /* More vertical padding */
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--secondary-color); /* Accent color for hero heading */
}

/* Section Spacing */
section {
  padding: 6rem 0; /* Consistent vertical spacing for sections */
}

/* Card Styles */
.card {
  border: none;
  border-radius: 0.75rem; /* More rounded corners */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.18) !important; /* Stronger hover shadow */
}

.card-img-top {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.btn-warning {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-warning:hover {
  background-color: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
  color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
}

/* About Page Specifics (can be used elsewhere) */
.about-section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 50px !important;
  font-weight: 600;
  color: var(--kanz-blue);
}
.about-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--kanz-yellow);
}

.info-card {
    border: 0;
    border-radius: 0.5rem;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.vision-mission-card {
    border-top: 4px solid var(--kanz-yellow);
    text-align: center;
}

.values-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.values-list-item .icon {
    font-size: 2rem;
    color: var(--kanz-blue);
}

.journey-card hr {
    border-color: rgba(0,0,0,0.08);
}

.contact-card-title {
  color: var(--kanz-blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card-title i {
  color: var(--kanz-yellow);
}

.contact-details .card-body h5 {
  color: var(--kanz-blue);
  font-weight: 600;
}

.contact-details .card-body i {
  color: var(--kanz-blue);
  font-size: 1.25rem;
  vertical-align: text-top;
}

.testimonial-card {
  border: 3px solid #ececec;
}

.product-card {
  background-color: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

.product-card-img {
  padding: 2rem 1rem;
  background-color: #fff;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative; /* Add positioning context */
}

.product-card-img img {
  max-height: 220px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* New style for the absolute positioned price tag */
.product-price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(1, 43, 86, 0.9); /* Kanz Blue with slight transparency */
    color: var(--kanz-yellow);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid var(--kanz-yellow);
}

.product-label {
  background-color: var(--kanz-yellow);
  color: var(--kanz-blue);
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  text-align: center; /* Center the product name */
}

/* New Enquire Button style for top-left positioning */
.enquire-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #FFF;
  color: #1a4067;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  border: 2px #fbe517 solid;
}

.enquire-btn:hover {
    background-color: #1a4067; /* Darker WhatsApp Green */
    transform: scale(1.05);
    color: #fff;
}


/* Simplified product name style */
.product-label .product-name-text {
    line-height: 1.2;
    /* Removed flex properties as they are no longer needed */
}


/* Why Choose Kanz Tech Section */
.why-kanz .text-center i {
  color: var(--secondary-color); /* Icons in accent color */
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.why-kanz .text-center:hover i {
  transform: translateY(-5px) scale(1.05);
}

/* Testimonials Section */
.testimonials .card {
  background-color: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.testimonials .card-body i.bi-star-fill {
  color: var(--secondary-color);
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.cta h2 {
  color: var(--secondary-color); /* Accent color for CTA heading */
}

/* Footer Customization */
footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
}

footer h5 {
  color: var(--secondary-color);
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--light-text-color);
}

footer .social-links a {
  font-size: 1.75rem;
  margin-right: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

footer .social-links a:hover {
  color: var(--secondary-color);
}

/* Forms */
.form-floating .form-control,
.form-floating .form-control:focus {
  border-color: var(--primary-color);
  /* box-shadow: 0 0 0 0.25rem rgba(0, 39, 77, 0.1); */
  border: 2px solid var(--secondary-color) ;
}

.form-floating > label {
  color: var(--text-color);
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Pagination Styles */
.pagination {
  margin-bottom: 0;
}

.page-link {
  color: var(--kanz-blue);
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

.page-link:hover {
  color: var(--kanz-blue);
  background-color: var(--kanz-yellow);
  border-color: var(--kanz-yellow);
  text-decoration: none;
}

.page-link:focus {
  color: var(--kanz-blue);
  background-color: var(--kanz-yellow);
  border-color: var(--kanz-yellow);
  box-shadow: 0 0 0 0.25rem rgba(251, 229, 23, 0.25);
}

.page-item.active .page-link {
  color: #fff;
  background-color: var(--kanz-blue);
  border-color: var(--kanz-blue);
  box-shadow: 0 0 0 0.25rem rgba(1, 43, 86, 0.25);
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* Admin Panel Pagination Info Text */
.pagination-info {
  color: var(--text-color);
  font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero img {
    margin-top: 2rem;
  }
  
  /* Responsive pagination */
  .pagination {
    justify-content: center;
  }
  
  .pagination-info {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .d-flex.justify-content-between {
    flex-direction: column !important;
    align-items: center !important;
  }
}