/* ===== BASE STYLES - SHARED ACROSS ALL PAGES ===== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modern Navbar with Sidebar */
.navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  backdrop-filter: blur(10px);
  border-bottom: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Increased padding for better desktop navigation size */
  padding: 20px 30px;
  position: relative;
  min-height: 60px;
  color: #fff;
}

.login-btn {
  background: rgba(227, 33, 40, 0.1);
  border: 2px solid #e32128;
  color: #e32128;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(227, 33, 40, 0.2);
}

.login-btn:hover {
  background: #e32128;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 33, 40, 0.4);
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 50px !important;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

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

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  right: 30px;
}

.hamburger {
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1001;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(227, 33, 40, 0.1);
  color: #e32128;
  border-right: 3px solid #e32128;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.modern-footer {
  background: #1a1a1a;
  color: #ccc;
}

.footer-main {
  padding: 50px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  height: 60px;
  width: 170px;
  margin-bottom: 15px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-logo p {
  color: #888;
  font-size: 14px;
}

.footer-col h4 {
  color: #e32128;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #e32128;
}

.footer-bottom {
  background: #111;
  padding: 20px 0;
  border-top: 1px solid #333;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  font-size: 14px;
  gap: 20px;
}

.footer-bottom .footer-logo {
  display: flex;
  align-items: center;
}

.footer-bottom .footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-bottom .footer-logo img:hover {
  opacity: 1;
}


/* Page Header */
.page-header {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  margin-top: 80px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Back Button */
.back-button-container {
  position: fixed;
  top: 90px;
  left: 20px;
  z-index: 1000;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  border: 2px solid rgba(227, 33, 40, 0.1);
}

.back-button:hover {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 33, 40, 0.4);
  border-color: rgba(227, 33, 40, 0.3);
}

.back-button i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-2px);
}

/* Responsive Design */
@media (min-width: 1024px) {
  .nav-container {
    padding: 25px 40px;
    min-height: 80px;
  }

  .login-btn {
    padding: 14px 28px;
    font-size: 17px;
    left: 40px;
  }

  .logo img {
    height: 70px;
    height: 50px;
  }

  .menu-btn {
    padding: 15px;
    right: 40px;
  }

  .hamburger {
    width: 30px;
    height: 4px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 15px;
    min-height: 60px;
  }

  .login-btn {
    position: static;
    font-size: 12px;
    padding: 6px 12px;
  }

  .logo {
    position: static;
    transform: none;
  }

  .logo img {
    height: 70px;
    height: 35px;
  }

  .menu-btn {
    position: static;
    padding: 8px;
  }

  .hamburger {
    width: 22px;
    height: 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
}
