/* Custom styles for admin dashboard and training portal */

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.admin-header {
    text-align: center;
    margin-bottom: 40px;
}
.admin-header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}
.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.admin-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}
.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}
.admin-section p {
    color: #666;
    margin-bottom: 20px;
}
.admin-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-right: 10px;
    min-height: 44px; /* Touch-friendly minimum height */
    line-height: 1.2;
}
.admin-btn:hover {
    background-color: #1a252f;
}
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly */
    z-index: 1000;
}
.back-btn:hover {
    background-color: #1a252f;
}
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly */
    z-index: 1000;
}
.logout-btn:hover {
    background-color: #c0392b;
}

/* Training Portal Styles */
.training-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.training-header {
    text-align: center;
    margin-bottom: 40px;
}
.training-header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}
.training-header p {
    color: #666;
    font-size: 18px;
}
.training-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.module-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
}
.module-card:hover {
    transform: translateY(-5px);
}
.module-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}
.module-card p {
    color: #666;
    margin-bottom: 25px;
    min-height: 60px;
}
.module-card .progress {
    height: 10px;
    margin-bottom: 15px;
    background-color: #f1f1f1;
    border-radius: 5px;
}
.module-card .progress-bar {
    background-color: #2c3e50;
}
.module-card .btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 44px; /* Touch-friendly */
    line-height: 1.2;
}
.module-card .btn:hover {
    background-color: #1a252f;
}
.training-resources {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.resource-item {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.resource-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}
.resource-item p {
    color: #666;
    font-size: 14px;
}
.resource-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    min-height: 44px; /* Touch-friendly */
    display: inline-block;
    padding: 8px 0;
}
.resource-item a:hover {
    text-decoration: underline;
}
.user-profile {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.profile-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}
.profile-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}
.profile-info p {
    color: #666;
}
.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly */
}
.logout-btn:hover {
    background-color: #c0392b;
}
.module-icon {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}
/* Modal Styles */
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    line-height: 1.4;
}
.modal-body {
    padding: 20px;
}
.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-primary {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly */
    width: 100%;
}
.btn-primary:hover {
    opacity: 0.9;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 2;
    min-height: 44px; /* Touch-friendly */
    min-width: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
}
.close:hover {
    color: black;
    text-decoration: none;
}
/* Ensure logo is responsive but constrained */
#about img.img-responsive {
    max-width: 60%;
    height: auto;
    vertical-align: middle;
}

/* Responsive styles */
@media (max-width: 768px) {
    .admin-container,
    .training-container {
        padding: 20px 15px;
    }
    .admin-sections,
    .training-modules,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .admin-section,
    .module-card {
        padding: 20px;
    }
    .admin-section h2,
    .module-card h3 {
        font-size: 20px;
    }
    .training-header h1 {
        font-size: 28px;
    }
    .training-header p {
        font-size: 16px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-header img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .back-btn,
    .logout-btn {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    .training-resources {
        padding: 20px;
    }
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    .admin-btn,
    .btn-primary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .admin-container,
    .training-container {
        padding: 15px 10px;
    }
    .admin-section,
    .module-card {
        padding: 15px;
    }
    .training-header h1 {
        font-size: 24px;
    }
    .module-icon {
        font-size: 36px;
    }
    .profile-header img {
        width: 60px;
        height: 60px;
    }
}
/* Accessibility improvements */
@media (hover: none) and (pointer: coarse) {
    .admin-btn:hover,
    .back-btn:hover,
    .logout-btn:hover,
    .btn-primary:hover,
    .close:hover {
        opacity: 1; /* Disable hover effects for touch devices */
    }
    .module-card:hover {
        transform: none;
    }
    .admin-btn:active,
    .back-btn:active,
    .logout-btn:active,
    .btn-primary:active,
    .close:active {
        opacity: 0.8; /* Provide feedback on activation */
    }
}

@media (prefers-contrast: high) {
    .admin-section,
    .module-card,
    .training-resources,
    .user-profile {
        border: 2px solid #000;
    }
    .admin-btn,
    .back-btn,
    .logout-btn,
    .btn-primary {
        border: 2px solid #000;
        background-color: #fff;
        color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-card,
    .admin-btn,
    .back-btn,
    .logout-btn,
    .btn-primary {
        transition: none;
    }
    .module-card:hover {
        transform: none;
    }
}

body {
  background: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden; }

html, body {
  width: 100%;
  height: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2; }

h1 {
  font-size: 3.5em;
  line-height: 1.5; }

h2 {
  font-size: 2.5em; }

h3 {
  font-size: 2em; }

p {
  color: #757575;
  font-size: 14px;
  font-weight: normal;
  line-height: 24px; }

#top {
  position: relative;
  width: 100%;
  height: 100%; }

.text-align-right {
  text-align: right; }

.text-align-center {
  text-align: center; }

.text-align-left {
  text-align: left; }

.section-btn {
  background: #a5c422;
  border-radius: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  padding: 15px 30px;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out; }
  .section-btn:hover {
    background: #393939;
    color: #ffffff; }

#about .section-btn {
  background: #f9f9f9;
  color: #222; }
  #about .section-btn:hover {
    background: #393939;
    color: #ffffff; }

#team .section-btn {
  border: 1px solid #ffffff;
  border-radius: 2px;
  color: #ffffff;
  padding: 15px 30px; }
  #team .section-btn:hover {
    background: #ffffff;
    color: #222; }

.btn-blue {
  background: #46bcec !important; }

.btn-gray {
  background: #757575 !important; }

.smoothScroll {
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out; }

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff; }

.spinner {
  border: 1px solid transparent;
  border-radius: 3px;
  position: relative; }

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 1px solid #757575;
  border-top-color: #ffffff;
  -webkit-animation: spinner .9s linear infinite;
  animation: spinner .9s linear infinite; }

@-webkit-keyframes spinner {
  to {
    transform: rotate(360deg); } }

@keyframes spinner {
  to {
    transform: rotate(360deg); } }

header {
  height: auto;
  padding: 15px 0 0 0; }
  header .text-align-right {
    padding-top: 15px; }
  header span {
    display: inline-block;
    padding: 5px 15px; }
  header .phone-icon {
    border-right: 1px solid #e0e0e0; }

.navbar-default {
  background: #ffffff;
  border: none;
  -webkit-box-shadow: 0 2px 8px 0 rgba(50, 50, 50, 0.08);
          box-shadow: 0 2px 8px 0 rgba(50, 50, 50, 0.08);
  margin: 0 !important;
  padding: 0; }
  .navbar-default .navbar-brand {
    color: #444;
    font-size: 30px;
    font-weight: 800;
    margin-right: 25px;
    padding-top: 25px;
    padding-bottom: 25px; }
  .navbar-default .navbar-nav > li > a {
    color: #757575;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-top: 25px;
    padding-bottom: 25px; }
  .navbar-default .navbar-nav > li > a:hover {
    color: #a5c422; }
  .navbar-default .navbar-nav > .active > a,
  .navbar-default .navbar-nav > .active > a:hover,
  .navbar-default .navbar-nav > .active > a:focus {
    color: #a5c422;
    background-color: transparent; }
  .navbar-default .navbar-nav > li .appointment-btn {
    background: #a5c422;
    border-radius: 3px;
    color: #ffffff;
    padding: 10px 20px;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 15px; }
  .navbar-default .navbar-nav > li .appointment-btn:hover {
    background: #393939;
    color: #ffffff !important; }
  .navbar-default .navbar-toggle {
    border: none;
    padding-top: 10px; }
  .navbar-default .navbar-toggle .icon-bar {
    background: #a5c422;
    border-color: transparent; }
  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus {
    background-color: transparent; }

#home {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100%;
  text-align: center; }
  #home h1 {
    color: #393939; }
  #home h3 {
    color: #757575;
    margin-top: 10px; }
  #home .slider .owl-dots {
    position: absolute;
    bottom: 25px;
    width: 100%; }

.item {
  position: relative;
  text-align: center; }
  .item .caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%; }

#about, #team, #news, #appointment, #footer {
  padding-top: 100px;
  padding-bottom: 100px; }

#google-map {
  padding-bottom: 100px; }

#about .about-info h2 {
  margin-bottom: 25px; }

#about .profile img {
  border: 1px solid #f9f9f9;
  margin-top: 25px; }

#about .profile figcaption {
  margin-top: 15px; }

#about .profile figcaption h3 {
  font-size: 1.2em; }

#team {
  background: #393939;
  background-size: cover;
  color: #ffffff; }
  #team h2 {
    color: #ffffff; }
  #team h3 {
    color: #ffffff; }

.team-thumb {
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 15px 0; }
  .team-thumb .team-info {
    padding: 20px 30px; }
  .team-thumb h3 {
    color: #222; }
  .team-thumb p {
    color: #a5c422;
    font-weight: bold; }
  .team-thumb .team-contact-info {
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    padding-top: 15px; }
    .team-thumb .team-contact-info p {
      color: #757575;
      font-size: 12px;
      font-weight: normal; }
  .team-thumb .social-icon {
    position: absolute;
    top: 0;
    right: -100%;
    background: #393939;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out; }
    .team-thumb .social-icon li {
      display: block;
      padding: 10px 0; }
      .team-thumb .social-icon li a {
        border-radius: 50%;
        color: #a5c422;
        font-size: 1.5em;
        width: 50px;
        height: 50px;
        line-height: 50px;
        text-decoration: none;
        text-align: center;
        -webkit-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
        margin: 5px; }
        .team-thumb .social-icon li a:hover {
          background: #ffffff;
          color: #a5c422; }
  .team-thumb:hover .social-icon {
    right: 0; }

.news-thumb {
  margin-bottom: 25px; }
  .news-thumb .news-info {
    padding: 30px;
    border: 1px solid #f0f0f0; }
    .news-thumb .news-info h3 {
      margin-top: 10px;
      margin-bottom: 5px; }
    .news-thumb .news-info span {
      color: #a5c422;
      font-weight: bold; }
    .news-thumb .news-info .author {
      border-top: 1px solid #f0f0f0;
      margin-top: 20px;
      padding-top: 20px; }
      .news-thumb .news-info .author img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        float: left;
        margin-right: 15px; }
      .news-thumb .news-info .author h5 {
        margin-bottom: 2px; }

.news-detail-thumb {
  margin-bottom: 20px; }

.news-detail-thumb blockquote {
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  border-left: 5px solid #a5c422; }

.news-detail-thumb .news-image {
  margin-bottom: 25px; }

.news-sidebar {
  margin-top: 15px; }

.news-archives, .news-categories, .news-ads {
  margin-bottom: 35px; }

.news-archives li, .news-categories li {
  margin-bottom: 10px; }

.news-ads img {
  width: 100%; }

.recent-post {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0; }
  .recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; }

.recent-post h4 {
  font-size: 1em;
  font-weight: normal;
  margin-top: 5px; }

.recent-post .media .media-object {
  width: 100px;
  height: 100px;
  margin-right: 15px; }

#appointment {
  background-size: cover;
  background-position: center center; }

#appointment-form {
  background: #ffffff;
  border-radius: 5px;
  padding: 40px; }
  #appointment-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0px;
    -webkit-box-shadow: none;
            box-shadow: none;
    color: #393939;
    font-size: 16px;
    font-weight: normal;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding: 10px 0; }
  #appointment-form button#cf-submit {
    background: #a5c422;
    border: none;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
    height: 50px;
    margin-top: 25px;
    width: 100%; }
  #appointment-form button#cf-submit:hover {
    background: #393939; }

#map {
  width: 100%;
  height: 450px; }

footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 40px;
  padding-bottom: 40px; }

footer .copyright-text p {
  margin: 0; }

footer .footer-menu {
  margin: 0; }
  footer .footer-menu li {
    display: inline-block;
    margin: 0 10px; }
    footer .footer-menu li a {
      color: #757575; }
      footer .footer-menu li a:hover {
        color: #a5c422; }

footer .social-icon {
  position: relative;
  padding: 0;
  margin: 0; }
  footer .social-icon li {
    display: inline-block;
    list-style: none;
    margin: 0 5px;
    vertical-align: top; }
    footer .social-icon li a {
      background: #757575;
      border-radius: 50px;
      color: #ffffff;
      font-size: 15px;
      width: 40px;
      height: 40px;
      line-height: 40px;
      text-decoration: none;
      text-align: center;
      -webkit-transition: all 0.4s ease-in-out;
      transition: all 0.4s ease-in-out; }
      footer .social-icon li a:hover {
        background: #a5c422;
        -webkit-transform: scale(1.1);
                transform: scale(1.1); }

.angle-up-btn {
  text-align: right; }
  .angle-up-btn a {
    background: #a5c422;
    border-radius: 3px;
    color: #ffffff;
    font-size: 2em;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-decoration: none;
    text-align: center;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    display: inline-block; }
    .angle-up-btn a:hover {
      background: #393939; }

@media (max-width: 980px) {
  .navbar-default .navbar-brand {
    padding-top: 15px;
    padding-bottom: 15px; }
  .navbar-default .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px; } }

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em; }
  h2 {
    font-size: 2em; }
  header {
    padding: 0; }
  .text-align-right {
    text-align: left; }
  .navbar-default .navbar-nav > li .appointment-btn {
    margin: 15px; }
  #team .col-md-4 {
    display: block;
    width: 100%; }
  #appointment {
    background-position: top; }
    #appointment .col-md-6 {
      width: 100%; }
    #appointment .col-md-offset-3 {
      margin-left: 0; }
  footer {
    text-align: center; }
    footer .footer-menu, footer .copyright-text {
      padding-bottom: 20px; }
  .angle-up-btn {
    text-align: center;
    padding-bottom: 20px; } }

.navbar-default .navbar-nav > li > a {
    font-size: var(--navbar-font-size) !important;
}

/* Header styles to prevent wrapping and minimize height */
header {
    height: auto;
    padding: 5px 0;
    min-height: 0;
}
header .col-md-8.text-align-right {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}
header span.phone-icon,
header span.email-icon {
    padding: 0;
    margin: 0 8px;
    border: 0;
    line-height: 1;
}
header .email-icon a {
    white-space: nowrap;
}

/* Submit button styling */
.submit-btn {
    background-color: #a5c422;
    border: none;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
    height: 50px;
    width: 100%;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.4s ease-in-out;
}

.submit-btn:hover {
    background-color: #393939;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    header {
        display: none;
    }
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
    }
    .navbar-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
        margin-top: -5px; /* moved up by 5px */
        height: 56px;
        order: 1;
    }
    .navbar-brand img {
        max-height: 56px; /* reduced from 70px to 56px (20% smaller) */
        width: auto;
        margin-bottom: 0;
    }
    .navbar-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding: 6px 8px;
        min-height: 44px; /* Touch-friendly */
        min-width: 44px; /* Touch-friendly */
    }
    .brand-text {
        display: block;
        font-size: 10px; /* reduced tagline size */
        margin-top: 2px;
        line-height: 1.1;
        font-weight: 500;
        color: #222;
        margin-left: 2px;
    }
    header {
        padding: 0;
    }
    header .container {
        padding: 0 10px;
    }
    header .phone-icon,
    header .email-icon {
        font-size: 12px;
        padding: 0 8px;
    }

    /* Improved mobile navigation */
    .navbar-default .navbar-nav li a {
        padding: 12px 15px;
        font-size: 16px;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
    }

    /* Better mobile form controls */
    .form-control {
        min-height: 44px; /* Touch-friendly */
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile-friendly buttons */
    .section-btn,
    button[type="submit"] {
        min-height: 44px; /* Touch-friendly */
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Mobile map improvements */
    #map {
        height: 400px; /* Smaller on mobile */
    }

    /* Mobile modal improvements */
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    /* Mobile admin button positioning */
    .admin-button-container {
        bottom: 10px;
        right: 10px;
    }

    .admin-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .navbar-brand img {
        max-height: 48px; /* Even smaller for very small screens */
    }

    .brand-text {
        font-size: 9px;
    }

    header .phone-icon,
    header .email-icon {
        font-size: 11px;
        padding: 0 4px;
    }

    .navbar-default .navbar-nav li a {
        padding: 10px 12px;
        font-size: 15px;
    }

    #map {
        height: 300px; /* Even smaller for very small screens */
    }
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .navbar-brand {
        display: flex;
        align-items: center; /* Vertically align logo and tagline */
        padding: 10px 15px;
        gap: 12px; /* Reduced gap for better spacing */
    }
    .navbar-brand img {
        height: 3.2em; /* Slightly reduced height for better proportion */
        width: auto;
        flex-shrink: 0;
        margin: 0; /* Remove any default margins */
    }
    .brand-text {
        font-size: 0.95rem; /* Slightly smaller for better balance */
        line-height: 1.2;
        font-weight: 500;
        color: #222;
        white-space: nowrap;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
    }
}

/* Touch-friendly improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
    .section-btn:hover,
    .admin-btn:hover {
        transform: none;
    }

    .section-btn:active,
    .admin-btn:active {
        transform: scale(0.98);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar-default {
        border: 2px solid #000;
    }

    .section-btn,
    .admin-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .section-btn,
    .admin-btn {
        transition: none;
    }

    .section-btn:hover,
    .admin-btn:hover {
        transform: none;
    }
}

#map-loading {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}