/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header */
.dalo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1a73e8;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
}

.dalo-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 10px;
}

.dalo-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.store {
  font-weight: normal;
  color: #ffdd57;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

#search-bar {
  width: 100%;
  max-width: 350px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-right .icon {
  font-size: 1.5rem;
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-right .icon:hover {
  transform: scale(1.2);
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.image-container img:not(.active) {
  opacity: 0;
}

.back-icon, .next-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(0,0,0,0.7);
  background-color: rgba(255,255,255,0.8);
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

.back-icon { left: 10px; }
.next-icon { right: 10px; }

.card-content {
  padding: 15px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content .btn {
  background-color: #ffdd57;
  color: #333;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}

.card-content p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.card-content ul {
  list-style: disc inside;
  margin-top: 5px;
}

.btn-1 {
  display: inline-block;
  background-color: #1a73e8;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 10px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.btn-1:hover {
  background-color: #155ab6;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .dalo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-center {
    margin: 10px 0;
    width: 100%;
  }

  #search-bar {
    max-width: 100%;
  }

  .header-right {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
  }
}

/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-container > div {
  flex: 1 1 200px;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  color: #33e4bd;
}

.footer p, .footer a {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer a:hover {
  color: #33e4bd;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #ccc;
  font-size: 18px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #33e4bd;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 13px;
  color: #888;
}