
@media (min-width: 781px) {
  .ad-detail-main-container {
    width: 94%;
    margin: auto;
    padding-top: 20px;
  }
  .ad-cat-main,
  .ad-cat-sub, 
  .ad-cat-home {
    color: #1a73e8 !important;
    text-decoration: underline !important;
    cursor: pointer;
    font-size: 16px;
  }
  .ad-cat-main:hover,
  .ad-cat-sub:hover, 
  .ad-cat-home {
    color: #0b59c7 !important;
  }
  .grayText {
      color: #636363;
      font-style: italic;
      font-size: 16px;
      font-family: "Concert One";
  } 
  .smallInformation {
    font-size: 12px;
  }
  .title-rating-wrap {
    display: flex;
    align-items: center;
    gap: 12px; /* space between title and rating badge */
  }
  #adName {
    font-size: 18px;
  }
  /*ad navigation arrows*/
  .ad-navigation {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  .ad-navigation button {
    background: #F5D042;
    color: #02343F;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    /* sharp shadow */
    box-shadow: 3px 3px 0 #02343F;
    transition:
      transform 0.12s ease,
      box-shadow 0.12s ease,
      background-color 0.18s ease;
  }
  .ad-navigation button:hover:not(:disabled) {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #02343F;
  }
  .ad-navigation button:active:not(:disabled) {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 #02343F;
  }
  .ad-navigation button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
  }
  #adDescription {
      word-break: break-word;
    overflow-wrap: anywhere;
  }

}



@media (max-width: 780px) {
/* Mobile Version (Max 780px) */
.ad-detail-main-container {
  width: 92%;
  margin: auto;
  padding-top: 15px;
}

.ad-cat-main,
.ad-cat-sub, 
.ad-cat-home {
  color: #1a73e8 !important;
  text-decoration: underline !important;
  cursor: pointer;
  font-size: 14px; /* Slightly smaller for mobile labels */
  display: inline-block;
  padding: 4px 0; /* Easier to tap links */
}

.ad-cat-main:hover,
.ad-cat-sub:hover, 
.ad-cat-home {
  color: #0b59c7 !important;
}

.grayText {
  color: #636363;
  font-style: italic;
  font-size: 15px;
  font-family: "Concert One";
} 

.smallInformation {
  font-size: 11px;
}

.title-rating-wrap {
  display: flex;
  flex-direction: column; /* Stacks title and rating vertically */
  align-items: flex-start;
  gap: 8px; 
}

#adName {
  font-size: 14px; /* Slightly larger for mobile readability */
}

/* ad navigation arrows */
.ad-navigation {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.ad-navigation button {
  background: #F5D042;
  color: #02343F;
  border: none;
  width: 44px; /* Increased to 44px for standard mobile touch target */
  height: 44px; /* Increased to 44px for standard mobile touch target */
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #02343F;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.18s ease;
  -webkit-tap-highlight-color: transparent; /* Removes blue flash on tap */
}

.ad-navigation button:hover:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #02343F;
}

.ad-navigation button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #02343F;
}

.ad-navigation button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

#adDescription {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 14px; /* Standard readable mobile size */
  line-height: 1.3;
}

}