body {
  font-family: 'Mukta', sans-serif;
  background-color: #f8f9fa;
  color: #222;
}

/* Remove unwanted space below header/navbar */
body {
  margin: 0;
  padding: 0;
  font-family: 'Mukta', sans-serif;
  background-color: #f8f9fa;
  color: #222;
}

/* Fix spacing below navbar */
.navbar {
  margin-bottom: 0 !important;
}

/* Make carousel attach neatly to navbar */
.carousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Navbar */

.navbar {
  background-color: #004aad;
}
.navbar-brand, .nav-link {
  color: white !important;
  font-weight: 600;
}
.nav-link:hover {
  text-decoration: underline;
}

/* Carousel */
.carousel-item img{
  width:100%;
  max-height:60vh;
  object-fit:contain;
}

/* About Section */
#about {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}
#about h2 {
  color: #004aad;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Quick Links */
#quick-links {
  background-color: #e8f0fe;
  padding: 60px 20px;
  text-align: center;
}
#quick-links .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
}
#quick-links .card:hover {
  transform: scale(1.05);
  background-color: #dbe9ff;
}

/* News */
#news {
  background-color: #fff;
  padding: 60px 20px;
}
#news h2 {
  color: #004aad;
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Gallery */
#gallery {
  background-color: #e8f0fe;
  padding: 60px 20px;
}
#gallery h2 {
  color: #004aad;
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
}
#gallery img {
  border-radius: 10px;
  transition: 0.3s;
  width: 100%;
}
#gallery img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #004aad;
  color: white;
  padding: 30px 20px;
  text-align: center;
}
footer a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .carousel-item img {
    height: 40vh;
  }
  #quick-links .card h5 {
    font-size: 15px;
  }
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* Smooth horizontal scrolling */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Table Styling */
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background-color: #fff;
}

.member-table th,
.member-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.member-table th {
  background-color: #0078d4;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .member-table {
    font-size: 13px;
  }
  .member-table th,
  .member-table td {
    padding: 6px 8px;
  }
}

/* Header and address section */
.family-header,
.address {
  font-size: 16px;
  color: #222;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: #f7f9fb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Prevent horizontal scrolling for header info */
.family-header,
.address {
  overflow: hidden;
  white-space: normal;
}

/* Table container scrolls separately */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
}

/* Table styling */
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background-color: #fff;
  min-width: 600px; /* ensures table scrolls on small screens */
}

.member-table th,
.member-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.member-table th {
  background-color: #0078d4;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .member-table {
    font-size: 13px;
  }
  .member-table th,
  .member-table td {
    padding: 6px 8px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
}

/* Family box container */
.family-box {
  background: #fff;
  padding: 15px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 98%;
}

/* Header */
.family-header {
  font-size: 18px;
  font-weight: 600;
  color: #004aad;
  margin-bottom: 10px;
}

/* Address */
.address {
  margin-top: 10px;
  font-size: 15px;
}

/* Search box */
.search-container {
  margin-bottom: 10px;
  text-align: right;
}
.search-container input {
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 350px;
}

/* Table styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.member-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.member-table th, .member-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  white-space: nowrap;
  text-align: left;
}

.member-table th {
  background-color: #0078d4;
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .member-table {
    font-size: 13px;
    min-width: 700px;
  }
  .family-header {
    font-size: 16px;
  }
  .search-container {
    text-align: left;
  }
}

/* Better spacing and responsiveness for very small screens */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 15px;
    max-width: 160px;
  }
  .search-container input {
    width: 100%;
    font-size: 14px;
  }
  .family-box {
    margin: 10px auto;
    padding: 10px;
  }
}

@media print {
    body {
        display: none;
    }
}

.contact-section {
  padding: 60px 20px;
  background: #f5f7fa;
}

.contact-section .heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #222;
}

.contact-section .divider {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #0073e6, #00b4ff);
  margin: 12px auto 40px;
  border-radius: 10px;
}

.contact-wrapper {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.contact-info,
.contact-form {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info h3,
.contact-form h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #0073e6;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 14px;
  color: #444;
}

.contact-info i {
  color: #0073e6;
  margin-right: 10px;
}

.info-note {
  margin-top: 25px;
  background: #f0f7ff;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  color: #333;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #0073e6;
  font-size: 16px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.input-group textarea {
  resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.15);
}

.contact-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #0073e6, #00b4ff);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,115,230,0.35);
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Navbar background (optional) */
.navbar {
  background-color: #0d6efd; /* Bootstrap primary */
  font-family: 'Mukta', sans-serif;
}

/* Normal nav link */
.navbar .nav-link {
  font-size: 16px;
  color: #fff !important;
  transition: all 0.3s ease; /* smooth animation */
}

/* Hover effect – text bigger */
.navbar .nav-link:hover {
  font-size: 18px;          /* text bigger */
  transform: scale(1.1);   /* zoom effect */
  color: #ffeb3b !important; /* optional hover color */
}

/* Active menu item */
.navbar .nav-link.active {
  font-weight: 700;
  color: #ffeb3b !important;
}

/* FORCE navbar hover effect */
.navbar-dark .navbar-nav .nav-link {
  font-size: 16px;
  color: #ffffff !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover = BIG text */
.navbar-dark .navbar-nav .nav-link:hover {
  transform: scale(1.2);
  color: #ffeb3b !important;
}

/* Active link */
.navbar-dark .navbar-nav .nav-link.active {
  font-weight: 700;
  color: #ffeb3b !important;
}

.register-business{
background:#0d6efd;
color:white;
text-align:center;
padding:60px 20px;
margin-top:40px;
}

.register-business h2{
font-size:32px;
margin-bottom:10px;
}

.register-business p{
font-size:18px;
margin-bottom:25px;
}

.register-btn{
display:inline-block;
background:white;
color:#0d6efd;
padding:14px 28px;
font-weight:bold;
border-radius:6px;
text-decoration:none;
transition:.3s;
}

.register-btn:hover{
background:#f1f1f1;
}

/* scrolling businesses */

.business-scroll{
display:flex;
gap:20px;
margin-top:40px;
overflow-x:auto;
padding-bottom:10px;
}

.mini-card{
min-width:150px;
background:white;
color:black;
border-radius:8px;
padding:10px;
text-align:center;
box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

.mini-card img{
width:100%;
height:80px;
object-fit:cover;
border-radius:6px;
margin-bottom:5px;
}

.business-promo{
padding:60px 20px;
text-align:center;
background:#f8f9fb;
}

.business-promo h2{
font-size:32px;
margin-bottom:10px;
}

.business-promo p{
margin-bottom:20px;
font-size:17px;
}

.register-btn{
display:inline-block;
background:#0d6efd;
color:white;
padding:12px 25px;
border-radius:6px;
text-decoration:none;
margin-bottom:35px;
font-weight:600;
}

.business-preview{
display:flex;
gap:20px;
overflow-x:auto;
padding:15px;
}

.mini-business-card{
min-width:200px;
max-width:200px;
background:white;
border-radius:10px;
padding:12px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
text-align:center;
flex-shrink:0;
}

.mini-business-card img{
width:100%;
height:120px;
object-fit:cover;
border-radius:6px;
display:block;
}

.mini-business-card h4{
font-size:15px;
margin:8px 0;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.mini-business-card span{
font-size:14px;
color:#666;
display:block;
margin-bottom:10px;
}

.view-btn{
display:inline-block;
background:#198754;
color:white;
padding:6px 14px;
border-radius:5px;
text-decoration:none;
font-size:14px;
}

.view-all{
margin-top:25px;
}

.view-all a{
text-decoration:none;
font-weight:600;
color:#0d6efd;
}

@media(max-width:768px){

.mini-business-card{
min-width:160px;
max-width:160px;
}

.mini-business-card img{
height:100px;
}

}