* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/***navigation***/
nav {
    display: flex;
    align-items: center;
    gap: 5px;         
    padding: 10px;
}
/***logo**/
.logo {
    width: 120px;
    height: auto;
    margin-top: 5px;
    margin-left: 5px;
}
.logo:active {
  transform: scale(0.9);
  opacity: 0.7;
}
.logo:hover {
  animation: pulse 0.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
/***Main navigation**/
nav {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 1px 8px;
box-shadow: 2px;
background-image: url("images/bagpack.jpg");
}
nav .navigation ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 10px;
    gap: 10px;
   
}
nav .navigation ul li {
    list-style: none;
    margin-right: 85px;
}

nav .navigation ul li a {
    text-decoration: none;
    color: rgb(252, 249, 249);
    font-weight: 500;
    font-size: 16px;
    transition: 0.5sec;
    letter-spacing: 0.5px;
   
}
nav .navigation ul li a:hover {
color: rgb(234, 148, 83);
}
/**dropdown menu**/
.dropdown {
  position: relative;
  display: inline-block;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffa52f;
  min-width: 120px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 100;
}


.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}


.dropdown-content a:hover {
  background-color: #f1f1f1;
}


.dropdown:hover .dropdown-content {
  display: block;
}

.horizontal-box {
  position: relative;
  width: 100%;
  height: 400px;
  border: 2px solid #f4eded;
  border-radius: 150px;
  overflow: hidden;
}

.top-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.over-laytext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 400;
  color: rgb(251, 251, 251);
}

.horizontal-box1 {
  width: 100%;
  min-height: 200px;
  border: 2px solid #0f0e0e;
  border-radius: 30px;
  padding: 20px;
  margin-top: 20px;
}

.text p {
  font-size: 16px;
  line-height: 1.6;
  color: black;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}
.tooltip strong{
    text-decoration: underline;
}
/* Tooltip text */
.tooltip-text,
.tooltip-text2 {
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translateX(-30%);
  width: 280px;
  background-color: #fefefe;
  color: #050505;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: normal;
  text-align: left;
  margin-top: 4px;
}

/* Arrow for the tooltip (optional) */
.tooltip-text::before,
.tooltip-text2::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1f2937;
}

/* Show tooltip on hover and focus */
.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text,
.tooltip:hover .tooltip-text2,
.tooltip:focus .tooltip-text2 {
  visibility: visible;
  opacity: 1;
}

/* Emphasized text inside tooltips */
.tooltip-text strong,
.tooltip-text2 strong {
  color: #d1fae5;
}

/* Resize image to fit tooltip */
.tooltip .tooltip-text img {
  width: 250px;           /* Adjust this value as needed */
  height: auto;           /* Maintain aspect ratio */
  max-width: 100%;        /* Prevent overflow beyond tooltip */
  max-height: 200px;      /* Limit height if needed */
  object-fit: contain;    /* Fit image without distortion */
  display: block;
  margin: 0 auto 10px auto; /* Center image with bottom spacing */
  border-radius: 4px;
}