/* ===== COMMON HEADER ===== */

:root {
  --brand-blue: #1677ff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
}

/* Space for fixed header */
body {
  padding-top: 90px;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
  body {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: all 0.3s ease;


  
}

@media (max-width: 1024px) {
  .header {
    padding: 0 50px;
  }
}

@media (max-width: 900px) {
  .header {
    height: 70px;
    padding: 0 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header {
    height: 60px;
    padding: 0 16px;
  }
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
}

/* Logo */
/* .header-logo img {
  height: 92px;          /* SAME LOGO SIZE EVERYWHERE */
  /* width: 170px;
  object-fit: contain;
  cursor: pointer;
} */ 

.header-logo img {
  height: 70px;  /* Reduced size */
  width: auto;   /* Maintains aspect ratio */
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .header-logo img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: 50px;
  }
}

.header-logo a {
  display: inline-block;
}

/* Hamburger Menu Toggle (Hidden by default) */
.hamburger-toggle {
  display: none;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Show hamburger menu on tablet and mobile */
@media (max-width: 900px) {
  .hamburger-btn {
    display: flex;
    order: 3;
    z-index: 1001;
  }
}

/* Hamburger animation when checked */
.hamburger-toggle:checked + .hamburger-btn span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-toggle:checked + .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle:checked + .hamburger-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation - Responsive */
.header-nav {
  display: flex;
  gap: 36px;
  transition: all 0.3s ease;
  
 
}

@media (max-width: 1024px) {
  .header-nav {
    gap: 28px;
  }
}

/* Mobile Navigation - Hidden by default, shown when toggled */
@media (max-width: 900px) {
  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  /* Show navigation when hamburger is checked */
  .hamburger-toggle:checked ~ .header-nav {
    max-height: 400px;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .header-nav {
    top: 60px;
    padding: 16px 0;
  }

  .hamburger-toggle:checked ~ .header-nav {
    max-height: 380px;
  }
}

.header-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 12px 24px;
}

@media (max-width: 900px) {
  .header-nav a {
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-nav a {
    padding: 12px 16px;
     font-size: 15px;
  }
}

.header-nav a:hover {
  color: var(--brand-blue);
  background-color: rgba(22, 119, 255, 0.05);
}

/* Buttons */
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.3s ease;
  order: 4;
}

@media (max-width: 900px) {
  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 8px;
  }
}

.btn-login {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.btn-login:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: rgba(22, 119, 255, 0.05);
}

@media (max-width: 900px) {
  .btn-login {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn-login {
    display: none;
  }
}

.btn-primary {
  padding: 9px 20px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

@media (max-width: 900px) {
  .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
  }
}
