/* File: global.css - COMPLETE VERSION */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f1f9fb;
  color: #022c3b;
  overflow-x: hidden;
}

/* =================================
   HEADER & NAVIGATION STYLES
   ================================= */

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: #022c3b;
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 80px;
  width: 230px;
}

/* Desktop Navigation - Show by default */
.desktop-nav {
  display: flex !important;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header .desktop-nav ul li a {
  font-size: 20px !important;
}

.desktop-nav a {
  text-decoration: none;
  color: #022c3b;
  font-weight: 600;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: #ff7a00;
}

.auth-buttons {
  display: flex !important;
}

.auth-buttons a {
  margin-left: 20px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  background: #ff7a00;
  color: white;
  transition: all 0.3s ease;
}

.auth-buttons a:hover {
  background: #e56a00;
  transform: translateY(-2px);
}

.signup {
  background: #ff7a00;
  color: white;
}

.login {
  background: #022c3b;
  color: white;
}

.reqtraining {
  background: #034a5a;
  color: white;
  transition: background 0.2s ease;
}

.reqtraining:hover {
  background: #ff7a00;
}

/* =================================
   MOBILE MENU & SIDEBAR STYLES
   ================================= */

/* Mobile Menu Button - Hide by default */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #022c3b;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 122, 0, 0.1);
  color: #ff7a00;
}

/* Animation for mobile menu icon */
.mobile-menu-btn.active {
  transform: rotate(90deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 30px 25px;
  border-bottom: 1px solid rgba(2, 44, 59, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-logo img {
  height: 60px;
  width: auto;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #022c3b;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background: rgba(255, 122, 0, 0.1);
  color: #ff7a00;
}

.sidebar-nav {
  padding: 20px 0;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  text-decoration: none;
  color: #022c3b;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 122, 0, 0.1);
  border-left-color: #ff7a00;
  color: #ff7a00;
  transform: translateX(5px);
}

.sidebar-nav a i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.sidebar-cta {
  margin: 30px 25px;
  padding: 20px;
  background: linear-gradient(135deg, #ff7a00, #ff9500);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.sidebar-cta h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 15px;
}

.sidebar-cta a {
  display: inline-block;
  background: white;
  color: #ff7a00;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sidebar-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

/* =================================
   FOOTER STYLES
   ================================= */

.site-footer {
  background: #022c3b;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-branding img {
  height: 50px;
  margin-bottom: 10px;
}

.footer-branding p {
  font-size: 14px;
  color: #cbd5e0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff9500;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
  /* Hide desktop navigation */
  .desktop-nav {
    display: none !important;
  }

  .auth-buttons {
    display: none !important;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block !important;
  }

  /* Adjust header for mobile */
  header {
    padding: 15px 20px;
  }

  .logo img {
    height: 60px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 280px;
    left: -280px;
  }
}

/* =================================
   COMMON UTILITY STYLES
   ================================= */

/* Smooth transitions */
* {
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

/* Common button styles */
.cta-button {
  background: #022c3b;
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 44, 59, 0.3);
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(2, 44, 59, 0.4);
}