@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

.popup-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #5a653b;
  height: 70px;
  padding: 15px 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: none;
  display: block;
  z-index: 10000;
  
}

.popup-panel.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-panel{
  transition: top 0.3s ease-out; /* smooth slide */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.popup-panel.hide {
  top: -100px; /* move it above the viewport */
}

.popup-panel {
  transition: top 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.popup-panel:not(.show) {
  opacity: 0;
  pointer-events: none; /* so it’s not clickable when hidden */
}



/* Flex layout for menu */
.menu {
  display: flex;
  justify-content: center;

  
}
.account-icon {
  width: 30px; /* try increasing if it's too small */
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
  margin-top: -5px;
  position: absolute;
  left: 700px;  /* moves it to the right edge */
}


/* Menu item styling */
.menu-item {
  position: relative;
  padding: -4px -5px;       /* smaller padding reduces spacing */
  border-radius: 5px;
  color: #fafafa;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-family: "Trirong", serif;
  text-decoration: none;
  display: inline-block;
  font-size: large;
}
.menu-item:last-child {
  margin-right: 0;
}


/* Center-growing underline effect */
.menu-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.menu-item:hover::after {
  width: calc(100% - 40px);
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  font-family: "Trirong", serif;
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 600px;

  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  z-index: 10000;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #5a653b;
  color: white;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Flex container for logo + menu */
.menu-wrapper {
  display: flex;
  align-items: center; /* vertical alignment */
  justify-content: center; /* center everything horizontally */
  gap: 10px; /* space between logo and menu */
  margin-left: -750px;
  margin-top: -15px;
}

/* Logo styling */
.logo-container .logo {
  height: 100px; /* adjust logo size */
  margin-left: 0px;
  
}

/* Menu styling */
.menu {
  display: flex;
  gap: 50px; /* space between menu items */
}
.logo{
  margin-right: 20px;
}

/* Remove margin-left hack */
.menu {
  margin-left: 0;
}


/* Notification bell icon */
.notification-dropdown {
  position: relative;
  display: inline-block;
}

.notification-icon {
  width: 26px;
  height: 26px;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 10px;
  position: absolute;
  left: 750px; /* adjust beside account icon */
  top: 2px;
  transition: transform 0.2s ease;
  margin-top: -6px;
}

.notification-icon:hover {
  transform: scale(1.1);
}

/* Notification dropdown box */
.notification-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 530px; /* align with your current account menu layout */
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  min-width: 240px;
  padding: 12px 10px;
  z-index: 10000;
  
}

.notification-content::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 18px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
  
}

.notification-content.show {
  display: block;
  margin-top: 50px;
}

.notification-content .notif-title {
  font-weight: bold;
  color: #5a653b;
  border-bottom: 1px solid #ddd;
  margin-bottom: 8px;
  padding-bottom: 6px;
  text-align: center;
  font-family: "Trirong", serif;
  
}

#notifList p {
  font-size: 0.9em;
  margin: 6px 0;
  color: #333;
  font-family: "Poppins", sans-serif;
  
}

#notifList p:hover {
  background-color: #f3f3f3;
  border-radius: 5px;
  padding: 5px;
  
}


/* Responsive design */
@media (max-width: 768px) {
  .menu {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .menu-item {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-nav {
    gap: 20px;
  }
}

footer {
  position: relative; /* For absolute footer bottom line */
  background-color: #d8c6ab;
  font-family: 'Poppins', Arial, sans-serif;
  
  
}

/* MAIN FOOTER CONTAINER */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #dcc7a4;
  padding: 60px 170px;
  flex-wrap: wrap;
  box-sizing: border-box;
  height: auto;
  width: 100%;
 
}

/* LEFT SECTION */
.footer-left {
  max-width: 350px;
  text-align: left;
}

.footer-left p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.social-link {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-link img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.social-link img:hover {
  transform: scale(1.1);
}

/* CENTER SECTION (NAVIGATION + MENU) */
.footer-center {
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: center;
}

.nav-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-column h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.nav-column a {
  color: #444;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.nav-column a:hover {
  color: #9d7002;
}

/* RIGHT SECTION (LOGO) */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-right .logo {
  width: 400px;
  height: auto;
  margin-bottom: 15px;
}

/* COPYRIGHT + POLICY LINE (BOTTOM SINGLE LINE) */
.footer-bottom {
  position: absolute;
  bottom: 10px;
  left: 200px;
  white-space: nowrap; /* Keep in one line */
  font-size: 13px;
  color: #333;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Adds nice spacing between “All rights reserved.” and policy links */
.footer-bottom span {
  margin-right: 200px; /* ✅ space between text and links */
  margin-left: 130px;
}

.footer-bottom a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #9d7002;
}
