html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  position: relative;
  z-index: 0;
}

/* Enforce Stacking Context */
header {
  position: relative;
  z-index: 1030;
}

nav.navbar {
  position: relative;
  z-index: 1030;
}

.container,
main {
  position: relative;
  z-index: 10;
}

footer {
  position: relative;
  z-index: 10;
  margin-top: 2rem;
}

/* Admin Sidebar Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

#admin-sidebar {
  width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  background-color: #212529;
  /* Dark color matching bootstrap dark navbar */
  color: white;
  transition: all 0.3s;
  z-index: 1040;
  position: relative;
}

#admin-sidebar .sidebar-header {
  padding: 20px;
  background: #1a1e21;
  border-bottom: 1px solid #343a40;
}

#admin-sidebar .sidebar-header h4 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

#admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  border-radius: 0;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  white-space: nowrap;
}

#admin-sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

#admin-sidebar .nav-link.active {
  color: #fff;
  background-color: #0d6efd;
  /* Primary blue for active link */
}

#admin-sidebar .nav-link i {
  width: 20px;
  margin-right: 10px;
}

#admin-content {
  flex-grow: 1;
  background-color: #f8f9fa;
  transition: all 0.3s;
}

.admin-top-bar {
  background-color: white;
  border-bottom: 1px solid #dee2e6;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#admin-sidebar .sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 20px;
  background: #1a1e21;
  border-top: 1px solid #343a40;
}

@media (max-width: 768px) {
  #admin-sidebar {
    margin-left: -250px;
  }

  #admin-sidebar.active {
    margin-left: 0;
  }
}

/* ===== Premium Front-end Footer ===== */
.site-footer {
  margin-top: 3rem;
}

.footer-main {
  background: #1e293b;
  color: #cbd5e1;
}

.footer-heading {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #3b82f6;
  border-radius: 2px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin-right: 12px;
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: #60a5fa;
}

.fb-widget-wrapper {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.25s;
  font-size: 1rem;
}

.footer-social a:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-2px);
}

/* Home Page Mobile Banner Adjustment */
@media (max-width: 768px) {
  .home-banner-img {
    height: auto !important;
    min-height: 200px !important;
    max-height: 350px !important;
  }
}