/* Reset layout issues */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Wrap content to prevent stretching on big screens */
.container,
.content-section,
.hero-section {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
  width: 100%;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global text alignment on small screens */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  p,
  ul,
  li {
    font-size: 0.95rem;
  }
}

/* Utility spacing helpers */
.section-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.text-center-md {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-md {
    text-align: left;
  }
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  background-color: #fffffff2;
  /* Updated color as requested */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
  color: #000;
  /* Default text color */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ff2007;
}

/* Dropdown Hover */
.hover-dropdown:hover>.dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  background-color: #fffffff2;
  /* Matches navbar background */
  border: none;
}

.dropdown-item {
  color: #000;
  /* Visible text */
}

.dropdown-item:hover {
  background-color: #fffffff2;
  color: #ff2807;
}

/* Multi-level submenu fix */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover>.dropdown-menu {
    display: block;
  }
}

* Dropdown Submenu */ .dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

/* Selection */
::selection {
  background-color: var(--primary-red);
  color: white;
}

* Dropdown Submenu */ .dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .footer {
    padding: 1rem 0 !important;
  }

  .footer .row>div {
    margin-bottom: 1rem;
  }

  .footer .text-white-50,
  .footer h5 {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .footer .social-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
  }

  .footer .social-icon i {
    font-size: 0.9rem;
  }

  .footer .footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer ul li,
  .footer p {
    margin-bottom: 0.4rem;
  }

  .footer hr {
    margin: 1rem 0;
  }

  .footer .text-center p {
    font-size: 0.65rem;
  }
}

.pulse-button {
  background: linear-gradient(45deg, #ffcc00, #ff9900);
  color: #111 !important;
  border: none;
  animation: pulse 2s infinite;
  transition: transform 0.2s;
}

.pulse-button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ffb700, #ff7a00);
  color: #fff !important;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(255, 200, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); }
}
