body {
  background-color: #f9faef;
  color: #000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #80bf32;
}

#titleSection {
  position: sticky;
  top: 10px;
  left: 10px;
  text-align: center;
  right: 20px;
  opacity: 0.9;
  background: #80bf32;
  border-radius: 20px;
  padding: 10px;
  color: #ffffff;
  z-index: 999999;
}

#backgroundTopHeader {
  z-index: -1;
  position: relative;
  margin-top: -60px;
}

#backgroundTopHeader img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  /* crop center */
  object-position: center;
  display: block;
  /* border-radius: 10px; */
}

/* Floating Menu Container */
.floating-menu {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Logo always top-left */
.fm-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #f9faef;
  border-radius: 50%;
}

.fm-logo img {
  max-width: 65px;
  height: auto;
}

/* Menu styles */
.fm-menu {
  background: #80bf32;
  /* green */
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fm-menu a {
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.fm-menu a:hover {
  background: #b9df8aff;
  /* hover color */
}

.fm-menu a.active {
  background: #98cc58ff;
  /* active color */
}

.download-card {
  background: #ffffff;
  padding: 10px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.category-scroll,
.campaign-scroll {
  display: flex;
  gap: 15px;
  overflow-x: scroll;
  padding: 10px;
  scroll-behavior: smooth;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.category-scroll{
  justify-content: center;
}

.category-scroll::-webkit-scrollbar,
.campaign-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex: 0 0 auto;
  text-align: center;
}

.category-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  /* border: 2px solid #80bf32; */
  background-color: #ffffff;
  padding: 10px;
}

.category-title {
  color: #5d5d5d;
  font-weight: 500;
}

.campaign-card {
  flex: 0 0 auto;
  width: 260px;
  height: 320px;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.image-campaign {
  position: relative;
}

.image-campaign img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}

/* Target Badge Overlay */
.target-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  margin: 6px;
  background: rgba(255, 255, 255, 0.3);
  /* transparent */
  backdrop-filter: blur(10px);
  /* blurred background */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  text-align: left;
  color: #ffffff;
  font-size: 14px;
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 8px;
  background: silver;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4caf50;
  /* green */
  border-radius: 4px 0 0 4px;
}

#article {
  background-color: #ffffff;
}

.article-card {
  display: flex;
  gap: 15px;
  background-color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.article-content {
  padding: 6px;
}

.article-card img {
  width: 130px;
  /* max-height: 130px; */
  object-fit: cover !important;
  border-radius: 10px;
}

.article-card-first img {
  object-fit: cover;
  width: 100%;
  max-height: 500px;
  border-radius: 20px;
}

footer {
  /* background: #ffffff; */
  color: #80bf32;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #80bf32;
  font-size: 14px;
  margin: 0 10px;
  text-decoration: none;
}

.item-sosmed {
  text-align: left;
}

.content-area {
  margin-top: 0;
  margin-left: 12vw;
  margin-right: 10vw;
  margin-bottom: 0;
}

carousel-item {
  width: 100%;
  overflow: hidden;
  color: #ffffff;
}

.carousel-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  /* crop center */
  object-position: center;
  display: block;
  /* border-radius: 10px; */
}

/* Desktop → 16:9 landscape */
#category,
#head-menu-campaign,
#head-menu-campaign-detail,
#head-menu-article-detail,
#head-login-register,
#head-menu-history,
#head-menu-history-detail,
#head-menu-profile,
#head-menu-favorite-campaign,
#head-menu-my-campaign {
  background: #80bf32;
  /* border-top-left-radius: 20px;
            border-top-right-radius: 20px; */
  border-radius: 20px;
  margin-top: -50px;
}

.search-anything {
  width: 100%;
  border-radius: 20px;
  border: 1px solid #ffffff;
  padding: 10px 20px;
  background: #ffffff;
  column-gap: 10px;
  align-items: center;
}

.search-anything input {
  width: 100%;
  border: none;
}

#photo-profile {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

#slidecarousel .carousel {
    position: relative;
}

#slidecarousel .carousel-item img {
    height: 380px;
    object-fit: cover;
}

#slidecarousel .carousel-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    z-index: 1; 
    pointer-events: none;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10; 
    color: white;
    text-align: left; 
    padding: 2rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Styling untuk tombol download Google Play */
.app-download-button {
    max-width: 160px;
    height: auto;
    transition: transform 0.2s ease-in-out; 

    background-color: black;
    padding: 8px 15px; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.app-download-button:hover {
    transform: scale(1.05);
    background-color: #333;
}

.carousel-caption-custom .app-download-button {
    filter: brightness(1.2) contrast(1.1); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px; 
}

.carousel-caption-custom .app-download-button:hover {
    filter: brightness(1.3) contrast(1.2); 
}


@media (max-width: 767px) {
    #slidecarousel .carousel-item img {
        height: 250px;
    }

    .carousel-caption-custom {
        padding: 1.5rem !important; 
    }

    .carousel-caption-custom h3 {
        font-size: 1.25rem; 
    }

    .app-download-button {
        max-width: 140px; 
        padding: 6px 12px;
    }
}

#category-scroll-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#category-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}
  
.category-item img {
  width: 90px;  
  height: 90px; 
  margin-bottom: 8px; 
}

.draggable-scroll {
    cursor: grab;
    user-select: none;
}

.draggable-scroll.active-drag {
    cursor: grabbing;
}

.draggable-scroll img {
    pointer-events: none;
}