/* CSS Variables for Color Scheme */
:root {
  --primary-color: #4fc3f7;
  --secondary-color: #29b6f6;
  --primary-dark: #0288d1;
  --accent-color: #81c784;
  --success-color: #66bb6a;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-muted: #95a5a6;
  --white: #ffffff;
  --light-bg: #f8fafb;
  --dark-bg: #1a1a2e;
  --darker-bg: #16213e;
  --card-bg: rgba(255, 255, 255, 0.05);
  --gradient: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --shadow: 0 4px 20px rgba(79, 195, 247, 0.1);
  --shadow-hover: 0 8px 30px rgba(79, 195, 247, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Global Responsive Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Main Navigation and Footer Styles */

/* Bootstrap Navbar Customization */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(79, 195, 247, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
  transition: all 0.3s ease;
  padding: 0.8rem 0;
  width: 100%;
  max-width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  position: fixed;
  top: 0;
  box-sizing: border-box;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(79, 195, 247, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.navbar .container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo {
  height: 70px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1.2rem !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  overflow: hidden;
  margin: 0 0.2rem;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(129, 212, 250, 0.08) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.2);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.25);
  border-color: var(--primary-color);
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(79, 195, 247, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(79, 195, 247, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  padding: 1rem 0 !important;
}

.dropdown-item {
  color: var(--text-dark) !important;
  padding: 0.9rem 1.5rem !important;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 0 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(129, 212, 250, 0.08) 100%) !important;
  color: var(--primary-color) !important;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.2);
}

.navbar-toggler {
  border: none !important;
  padding: 8px !important;
  border-radius: 8px !important;
  background: rgba(79, 195, 247, 0.1) !important;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(79, 195, 247, 0.2) !important;
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25) !important;
}

/* Bootstrap Blue Color Override */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-color) !important;
}

/* Dropdown Toggle - White text when open */
.navbar-nav .dropdown-toggle.show,
.navbar-nav .dropdown-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.25);
  border-color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(129, 212, 250, 0.08) 100%) !important;
  color: var(--primary-color) !important;
}

/* Remove Bootstrap Blue Focus Outlines */
.nav-link:focus,
.dropdown-item:focus {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25) !important;
  outline: none !important;
}

/* Bootstrap Dropdown Customization */
.dropdown-toggle::after {
  margin-right: 0.5rem;
  margin-left: 0;
}

.dropdown-toggle:hover::after {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 1rem;
  position: relative;
  overflow: visible;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #b0bec5;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #b0bec5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-article {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #37474f;
}

.footer-article h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-article span {
  color: #78909c;
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid #37474f;
  padding-top: 1rem;
  text-align: center;
  color: #b0bec5;
}

/* Footer HTML Structure - Add this to all pages */
.footer-html {
  display: none;
}

/* Responsive Design for Navigation and Footer */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .navbar .container {
    padding: 0 30px;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-menu a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }
  
  .nav-menu {
    gap: 1.2rem;
  }
  
  .nav-menu a {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .logo {
    height: 80px;
  }

  .footer-logo {
    height: 100px;
  }

  /* Bootstrap Mobile Navbar Customization */
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 251, 0.98) 100%);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 0 0 20px 20px;
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    text-align: center;
    padding: 1rem 1.5rem !important;
    border-radius: 12px;
    margin: 0.2rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 195, 247, 0.1);
  }

  .nav-link:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(129, 212, 250, 0.1) 100%);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.3);
  }

  .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
    border-color: var(--primary-color);
  }

  .dropdown-menu {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(129, 212, 250, 0.05) 100%) !important;
    border: 1px solid rgba(79, 195, 247, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin: 0.5rem 0;
  }

  .dropdown-item {
    text-align: center;
    padding: 0.8rem 1rem !important;
    margin: 0.1rem 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
  }

  .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(129, 212, 250, 0.08) 100%) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
  }

  /* Override any Bootstrap blue colors in mobile */
  .dropdown-item.active,
  .dropdown-item:active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(129, 212, 250, 0.08) 100%) !important;
    color: var(--primary-color) !important;
  }

  .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo {
    height: 70px;
  }

  .footer-logo {
    height: 90px;
  }

  .navbar-collapse {
    padding: 0.8rem;
  }

  .nav-link {
    padding: 0.8rem 1rem !important;
    font-size: 1rem;
    margin: 0.1rem 0;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .nav-link {
    padding: 0.7rem 0.8rem !important;
    font-size: 0.95rem;
    margin: 0.1rem 0;
  }
}

/* WhatsApp Fixed Button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
  border: none;
  outline: none;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 85px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
