/* ====== KG Container ====== */
.kg-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  /* ====== HERO Section ====== */
  .kg-hero-section {
    position: relative;
    background: url('/frontend_assets/Kg-Bg1.jpeg') center/cover no-repeat;
    height: 90vh;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }
  
  .kg-hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
  }
  
  .kg-hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .kg-hero-content p {
    font-size: 18px;
  }
  
  /* ====== Buttons ====== */
  .kg-btn-main,
  .kg-btn-secondary {
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s ease;
    text-decoration: none;
  }
  
  .kg-btn-main {
    background: #ff7f50;
    color: #fff;
  }
  
  .kg-btn-main:hover {
    background: #e66a3d;
  }
  
  .kg-btn-secondary {
    background: #4caf50;
    color: #fff;
  }
  
  .kg-btn-secondary:hover {
    background: #388e3c;
  }
  
  /* ====== About Section ====== */
  .kg-about-section {
    padding: 80px 0;
  }
  
  .kg-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .kg-about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .kg-about-text h2 {
    font-size: 32px;
    color: #333;
  }
  
  .kg-about-text p {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
  }
  
  .kg-about-text ul {
    margin-top: 20px;
  }
  
  .kg-about-text ul li {
    font-size: 16px;
    margin-bottom: 10px;
    list-style: none;
  }
  
  .kg-about-text ul li::before {
    content: "✔️ ";
    color: #ff7f50;
  }
  
  /* ====== Features Section ====== */
  .kg-features-section {
    padding: 80px 0;
    background: #fff;
  }
  
  .kg-features-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
  }
  
  .kg-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
  }
  
  .kg-feature-card {
    background: #f8f8f8;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .kg-feature-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .kg-feature-card h3 {
    font-size: 20px;
    margin-top: 15px;
    color: #333;
  }
  
  .kg-feature-card p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
  }
  
  /* ====== Gallery Section ====== */
  .gallery {
    padding: 60px 20px;
    background: #f4f4f4;
    text-align: center;
  }
  
  .gallery h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
  }
  
  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .image-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .image-item img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
  }
  
  .image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
  }
  
  .image-item:hover img {
    transform: scale(1.08);
  }
  
  /* ====== Lightbox ====== */
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    text-align: center;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin-top: 3%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #ccc;
  }
  
  /* ====== Responsive Design ====== */
  @media (max-width: 991px) {
    .kg-about-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .kg-about-text {
      padding: 0 20px;
    }
  }
  
  @media (max-width: 768px) {
    .kg-hero-content h1 {
      font-size: 28px;
    }
  
    .kg-hero-content p {
      font-size: 16px;
    }
  
    .kg-btn-main,
    .kg-btn-secondary {
      padding: 12px 20px;
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .gallery h1 {
      font-size: 26px;
    }
  
    .image-item img {
      max-height: 180px;
    }
  }
  @media (max-width: 768px) {
    .kg-hero-section {
      margin-top: 40px; /* smaller gap for mobile */
      height: auto; /* optional: allows it to shrink if needed */
      padding: 60px 20px;
    }
  
    .kg-hero-content h1 {
      font-size: 28px;
    }
  
    .kg-hero-content p {
      font-size: 16px;
    }
  
    .kg-btn-main {
      font-size: 16px;
      padding: 12px 25px;
    }
  }
  
  /* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Gallery Container */
.gallery {
  padding: 60px 10px;
  background: #f4f4f4;
  text-align: center;
}

.gallery h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
}

/* Grid Layout */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted for larger images */
  gap: 20px; /* Increased gap between images */
  max-width: 1200px; /* Increased max width for larger gallery */
  margin: 0 auto;
}

/* Image Item Styling */
.image-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Image Styling */
.image-item img {
  width: 100%;
  height: 250px; /* Increased height for larger images */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Hover Effect */
.image-item:hover {
  transform: translateY(-5px);
}

.image-item:hover img {
  transform: scale(1.05);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust for smaller screens */
    gap: 10px;
  }

  .image-item img {
    height: 200px; /* Adjust height for smaller screens */
  }
}
