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

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #ffa500;
  line-height: 1.5;
  padding-top: 120px;   /* শুধু header height */
}

/* ================= Scrolling Text ================= */
.scrolling-text {
  background: #ffffff;
  color: #ffa500;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;   /* height auto detect হবে JS দিয়ে */
  z-index: 1000;
}
.scrolling-text span {
  display: inline-block;
  padding: 6px 24px;
  animation: scroll-left 15s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ================= Header ================= */
header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: #ffffff;
  padding: 2px 12px;
  position: fixed;
  top: 0;   /* JS দিয়ে control হবে */
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: top 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo { height: 90px; }

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFA500;
  white-space: nowrap;
}

/* ================= Nav ================= */
nav { flex-grow: 1; }
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
nav ul li { position: relative; }
nav ul li a {
  text-decoration: none;
  color: #FFA500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
nav ul li a:hover,
nav ul li a.active {
  background: #ffffff;
  border: 2px solid #FFA500;
}

/* ================= Dropdown ================= */
.dropdown-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFA500;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 6px;
  margin-top: 10px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.dropdown-content a {
  display: block;
  padding: 10px;
  color: #FFA500;
}
.dropdown-content a:hover {
  background: #ffffff;
}

nav ul li.dropdown:hover .dropdown-content { display: block; }
nav ul li.dropdown.open .dropdown-content { display: block; }

/* ================= Hamburger ================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #FFA500;
  cursor: pointer;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: none;
    flex-direction: column;
    padding: 80px 0 20px;
    z-index: 9999;
    overflow-y: auto;
  }
  nav.open { display: flex; }

  nav ul { flex-direction: column; gap: 0; }
  nav ul li { width: 100%; text-align: left; }
  nav ul li a { display: block; width: 100%; padding: 12px 16px; }

  .dropdown-toggle {
    display: inline-block;
    margin-left: 6px;
  }

  nav ul li.dropdown:hover .dropdown-content { display: none !important; }
  nav ul li.dropdown.open .dropdown-content {
    display: block !important;
    position: relative !important;
    top: 0;
    margin-top: 0;
    box-shadow: none;
    padding-left: 20px;
  }
  nav ul li.dropdown.open .dropdown-content a {
    padding-left: 30px;
  }

  .logo { height: 60px; }
  .header-title { font-size: 18px; }
}

/* ================= Title Block ================= */
.title-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.title-block .welcome {
  font-size: 20px;
  font-weight: 600;
  color: #FFA500;
}
.title-block .renovatex {
  font-size: 28px;
  font-weight: 800;
  color: #FFA500;
  text-align: center;
}
@media (max-width: 768px) {
  .title-block .welcome { font-size: 14px; }
  .title-block .renovatex { font-size: 18px; }
}
nav ul li a {
  text-decoration: none;
  color: #FFA500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
  font-weight: 700;   /* ✅ bold */
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #FFA500;
  font-weight: 700;   /* ✅ bold */
}
/* Header height variable (default desktop) */
header {
  --header-height: 120px; /* scrolling text + header মিলিয়ে মোট height */
}

/* Mobile এ header height override */
@media (max-width: 768px) {
  header {
    --header-height: 100px; /* mobile এ কম height */
  }
}
