/* Base layout overrides */
.container {
  max-width: 1400px !important;
  width: 95% !important;
}

@media (max-width: 1500px) {
  .container {
    max-width: 95% !important;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 98% !important;
    width: 98% !important;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 0.5rem;
  padding: 1rem 50px 0.5rem;
  margin-top: -0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  margin-left: -50px;
  margin-right: -50px;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -50px;
  right: -50px;
  height: 50px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  height: 50px;
  background: transparent;
  pointer-events: none;
}

.dropdown-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  right: -50px;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1rem;
  background: transparent;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 50px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
  margin-left: -50px;
  margin-right: -50px;
}

.dropdown-content a:hover {
  background: #f8f9fa;
  color: #333;
}

.dropdown-content .divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.5rem -50px;
}

.dropdown-content a.text-danger {
  color: #dc3545;
}

.dropdown-content a.text-danger:hover {
  background: #f8d7da;
  color: #721c24;
}

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 350px;
  font-family: 'Inter', sans-serif;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent p {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-consent .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent .btn-allow {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.cookie-consent .btn-allow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent .btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-consent .btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 768px) {
  .cookie-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 15px;
  }

  .cookie-consent .cookie-buttons {
    flex-direction: column;
  }

  .cookie-consent .btn-allow,
  .cookie-consent .btn-decline {
    width: 100%;
    text-align: center;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent.animate-in {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

footer {
  background: #2d3748;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

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

.footer-section h3 {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

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

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: #e2e8f0;
}

.footer-left {
  text-align: left;
  justify-self: start;
}

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

.social-link {
  color: #a0aec0;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: #e2e8f0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
  color: #a0aec0;
  font-size: 0.9rem;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: white;
  color: var(--text-primary);
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }

  header .container {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  header h1 {
    font-size: 1.35rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .primary-nav .btn,
  .primary-nav .dropdown {
    width: 100%;
  }

  .primary-nav .nav-link,
  .primary-nav .btn {
    justify-content: flex-start;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    opacity: 1;
    border-radius: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .dropdown-content.show {
    display: block;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown-content a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown-content .divider {
    display: none;
    margin-left: 0;
    margin-right: 0;
  }

  .dropdown-content a i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
  }
}

.dropdown-content a i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}
