* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Responsive base font size */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

.main-section {
  flex: 1 0 auto;
  min-height: 0;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
}



/* Sidebar Base Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px; /* Hidden by default */
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  border-right: 1px solid #e9ecef;
}

.sidebar.active {
  left: 0;
}

/* Overlay for backdrop */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1040;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Links */
.sidebar a {
  padding: 16px 24px;
  text-decoration: none;
  font-size: 15px;
  color: #495057;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 12px;
  margin: 6px 16px;
  position: relative;
  letter-spacing: 0.3px;
}

.sidebar a:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  transition: height 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.sidebar-option:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateX(8px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.sidebar-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  font-weight: 600;
}

.sidebar-option:hover:before,
.sidebar-option.active:before {
  height: 70%;
}

/* Close Button */

.closebtn {
  font-size: 32px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: transparent;
}

.closebtn:hover {
  color: #dc3545;
  background: #ffe6e6;
  /* transform: rotate(90deg); */
}

/* Menu Button Enhancement */
#menuButton {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 12px !important;
  background: transparent;
  border: 2px solid transparent;
}

#menuButton:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white !important;
  border-color: #3b82f6;
  transform: scale(1.1);
}

#menuButton:active {
  transform: scale(0.95);
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Sidebar Header */
.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.sidebar-header h5 {
  margin: 0;
  color: #1e40af;
  font-weight: 700;
  font-size: 18px;
}

/* Responsive Adjustments */
/* Sidebar Responsive */
@media screen and (max-width: 768px) {
  .sidebar {
    width: 260px;
    left: -260px;
  }
  
  .sidebar a {
    font-size: 14px;
    padding: 14px 20px;
    margin: 4px 12px;
  }
  
  .sidebar-header {
    padding: 16px 20px;
  }
}

@media screen and (max-width: 480px) {
  .sidebar {
    width: 240px;
    left: -240px;
  }
  
  .sidebar a {
    font-size: 14px;
    padding: 12px 16px;
    margin: 4px 10px;
  }
  
  .closebtn {
    font-size: 28px;
    width: 36px;
    height: 36px;
    line-height: 28px;
  }
  
  .sidebar-header {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
}


.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 15px;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
}

.card-hover:hover {
  transform: translateY(-5px);
  transition: transform 0.2s;
}

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Landscape orientation and small height devices */
@media screen and (max-height: 450px) {
  .sidebar {
    padding-top: 15px;
  }
  
  .sidebar a {
    font-size: 16px;
  }
}

/* Container responsive improvements */
@media (max-width: 1400px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 992px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}
/* Hero and Search Form Responsive */
@media screen and (max-width: 992px) {
  .hero {
    padding: 35px 18px;
  }
  
  .search-form .row {
    flex-direction: column;
  }
  
  .search-form .col-md-4, 
  .search-form .col-md-8 {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: 30px 15px;
    border-radius: 8px;
  }
  
  .search-form .col-md-4, 
  .search-form .col-md-8 {
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding: 25px 12px;
    border-radius: 6px;
  }
}

a{
  text-decoration: none;
}

#id_get_address{
  border:1px solid #dee2e6
}

.navbar {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand img {
    height: clamp(35px, 5vw, 50px);
    width: auto;
    transition: transform 0.3s ease;
}
.navbar-brand img:hover {
    transform: scale(1.1);
}
.navbar-brand span {
    color: #1e3a8a;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 1px;
}
.btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.85rem, 2vw, 1rem);
}
.btn-outline-secondary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
    transform: translateY(-2px);
}
.menu-button {
    font-size: 1.5rem;
    color: #343a40;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.menu-button:hover {
    color: #1e3a8a;
}
.profile-icon {
    fill: #6c757d;
    transition: fill 0.3s ease;
}
.btn-outline-secondary:hover .profile-icon {
    fill: #fff;
}
@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }
    
    .btn-outline-secondary {
        padding: 0.45rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .btn-outline-secondary {
        padding: 0.4rem 1rem;
    }
    
    .menu-button {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.75rem;
    }
    
    .btn-outline-secondary {
        padding: 0.35rem 0.75rem;
    }
    
    .menu-button {
        font-size: 1.2rem;
    }
}


/* Footer */
.footer {
  background: linear-gradient(90deg, #ffffff 0%, #e6f0fa 100%);
  color: #003087;
  padding: 30px 15px;
  width: 100%;
  border-top: 1px solid #e0e0e0;
}

.footer .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand .logo {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #003087;
  transition: color 0.3s ease;
}

.footer__brand .logo:hover {
  color: #0056b3;
}

.footer__brand h5 {
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin-top: 10px;
}

.footer__connect a {
  color: #003087;
  text-decoration: none;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  transition: color 0.3s ease;
  word-break: break-word;
}

.footer__connect a:hover {
  color: #0056b3;
}

.social-media-icon {
  display: flex;
  gap: 15px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer__nav a {
  color: #003087;
  text-decoration: none;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.footer__nav a:hover {
  color: #001f5c;
  transform: translateY(-2px);
}

.footer-icon {
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  fill: #003087;
  transition: fill 0.3s ease;
}

.footer-icon:hover {
  fill: #0056b3;
}

.footer-chat-icon {
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  fill: #003087;
  margin-top: 10px;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.footer-chat-icon:hover {
  fill: #0056b3;
  transform: scale(1.1);
}

.footer__legal {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(0.75rem, 2vw, 0.8rem);
  color: #666;
  line-height: 1.6;
}
/* Footer Responsive */
@media (max-width: 992px) {
  .footer {
    padding: 25px 15px;
  }
  
  .footer__nav {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 20px 10px;
  }
  
  .footer__brand .logo {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  
  .footer__nav {
    justify-content: center;
    gap: 10px;
  }
  
  .social-media-icon {
    justify-content: center;
  }
  
  .footer-chat-icon {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 8px;
  }
  
  .footer__brand .logo {
    letter-spacing: 1px;
  }
  
  .footer__nav {
    gap: 8px;
    font-size: 0.9rem;
  }
  
  .footer-icon {
    width: 20px;
    height: 20px;
  }
  
  .footer-chat-icon {
    width: 35px;
    height: 35px;
  }
}
