/* ================= ROOT VARIABLES ================= */
:root {
  --cam-blue: #1e3a8a;
  --cam-green: #16a34a;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= TOP BAR ================= */
:root {
  --cam-red: #B11226;
  --cam-green: #0F9D58;
  --dark: #020617;
  --text-light: #e5e7eb;
}

/* ================= STICKY TOP BAR ================= */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #020617, #020617);
  color: var(--text-light);
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* CONTAINER */
.top-bar .container {
  max-width: 1200px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* LEFT INFO */
.top-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.top-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.top-left i {
  color: var(--cam-green);
  font-size: 13px;
}

/* RIGHT ICONS */
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-right i {
  cursor: pointer;
  color: var(--cam-red);
  font-size: 14px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.top-right i:hover {
  color: var(--cam-green);
  transform: translateY(-2px);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
    padding: 10px 16px;
  }

  .top-left,
  .top-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-left span {
    font-size: 12px;
  }

  .top-right i {
    font-size: 13px;
  }
}


/* ================= HEADER ================= */
.main-header {
  position: fixed;        /* 🔥 force fixed */
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
}


/* Header when scrolling */
.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 15px 45px rgba(0,0,0,0.14);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 90px;
  width: 50px;
}

/* ================= NAV ================= */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #B11226;
  letter-spacing: 0.2px;
  position: relative;
  padding: 6px 2px;
  transition: 0.3s;
}

/* Underline effect */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--cam-blue), #7587ad);
  transition: 0.35s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--cam-blue);
  font-weight: 600;
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown box */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 0;

  display: none;
  flex-direction: column;

  box-shadow: 0 25px 45px rgba(0,0,0,0.18);
  z-index: 1000;

  animation: dropdownFade 0.35s ease forwards;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Dropdown animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-menu a {
  padding: 12px 20px;
  font-size: 14px;
  color: #0f172a;
  transition: 0.25s;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--cam-blue);
}

/* ================= HEADER BUTTON ================= */
.header-btn a {
  background:#B11226;
  color: #fff;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
}

.header-btn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37,99,235,0.45);
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    width: 100%;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .nav.active {
    display: flex;
  }

  .nav a,
  .dropdown > a {
    padding: 16px 22px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .header-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
