/* =====================================
   TOS PAGE
===================================== */
.tos-wrapper {
  max-width: 950px;
  margin: auto;
  padding: 0;
}

/* =====================================
   BODY BOX
===================================== */

.tos-body {
  line-height: 1.6;
  margin: 0;
}

.tos-topx {
  min-height: 50px;
  max-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 5px;
  border-radius: 5px;

  background:
    url("../img/icon/repeat-big.png") right center / contain no-repeat,
    linear-gradient(135deg, #00aef0, #0088ff);

  color: #14396a;
  font-size: 22px;
  text-shadow: 1px 1px 0px #7cabde;
  font-family: "Kondo", Verdana, Tahoma, sans-serif;
  font-weight: 800;
  font-style: normal;
  box-shadow: inset 1px 1px 2px 0px #bee3f9;
}

/* =====================================
   CONTENT BOX
===================================== */

.tos-content {
  position: relative;
  overflow: hidden;
  font-size: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 55, 0.5),
    rgba(0, 8, 25, 0.95)
  );
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

/* =====================================
   ITEM IKLAN
===================================== */

.tos-item {
  position: relative;
  margin-bottom: 28px;
  margin-left: 50px;
  padding-top: 22px;
  border: 1px solid #ccc;
}

.tos-item:last-child {
  margin-bottom: 0;
}

.tos-card {
  position: relative;
  margin: 20px 20px 20px 40px;
  padding: 48px 30px 5px 28px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(22, 40, 72, 0.5),
    rgba(12, 22, 42, 0.95)
  );
}

.tos-ribbon {
  width: 100%;
  max-width: 250px;
  position: absolute;
  top: 22px;
  left: -21px;
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(90deg, #5c8d09, #7aa81a);

  color: #fff;
  font-family: "Becham", Arial, Verdana;
  font-weight: 800;
  font-size: 22px;
  border-radius: 0;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.tos-ribbon::before {
  content: "";
  position: absolute;

  left: 0;
  top: 100%;

  width: 0;
  height: 0;

  border-top: 18px solid #315300;
  border-left: 22px solid transparent;
}

/* =====================
   GRID IKLAN
===================== */

.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 20px;
}

/* =====================
   CARD IKLAN
===================== */

.ad-card {
  position: relative;
  background: #1c2833;

  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  min-height: 150px;
  max-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Shine */
.ad-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* Hover */

.ad-card:hover {
  transform: translateY(-3px);
  border-color: #00e5ff;
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.15);
}

.ad-card.mini {
  background: #3a506b;
}

.ad-card.featured {
  background: #1b768e;
}

.ad-card.vip {
  background: #014750;
}

/* Content di atas shine */

.ad-body,
.ad-footer,
.ribbon-img {
  position: relative;
  z-index: 2;
}

/* =====================
   BODY
===================== */

.ad-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: left;
  padding: 10px;
}

.ad-body h3 {
  color: #ccc;
  font-family: "Becham", Verdana, sans-serif;
  letter-spacing: 0.2px;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  margin: 0 0 0 5px;
}

.ad-body p {
  color: #ccc;
  font-family: "Becham", Geneva, Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  margin: 0 0 0 5px;
}

/* =====================
   FOOTER
===================== */

.ads-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.ads-footer.micro {
  background: #409e99;
}

.ads-footer.mini {
  background: #09b54f;
}

.ads-footer.std {
  background: #012538;
}

.ads-footer.fixed {
  background: #002626;
}

.ads-footer button {
  display: block;
  padding: 8px 12px;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-family: "Arial", Verdana, Tahoma, sans-serif;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: 0.35s ease;
}

.ads-footer.std button,
.ads-footer.fixed button {
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  text-shadow: #111 0 0 2px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0 inset;
  background: #4f9c45;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: Arial;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
}

.ads-footer.std button:hover,
.ads-footer.fixed button:hover {
  background: #dd5347;
}

.ads-footer.micro button {
  color: #fff;
  background: #1e668c;
  border: 1px solid #aaa;
}

.ads-footer.micro button:hover {
  background: #0b5d99;
}

.ads-footer.mini button {
  color: #fff;
  background: #012538;
  border: 1px solid #aaa;
}

.ads-footer.mini button:hover {
  background: #0b5d99;
}

.btn-viewed {
  background: linear-gradient(180deg, #8b8b8b, #5c5c5c);

  color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn-viewed::before {
  display: none;
}

.ad-viewed {
  filter: grayscale(100%);
  opacity: 0.75;
}

.ad-viewed:hover {
  transform: none;
  box-shadow: none;
}

/* =====================
   RIBBON
===================== */
.ribbon {
  position: absolute;
  top: 10px;
  right: -30px;
  width: 120px;
  text-align: center;
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: bold;
  padding: 4px;
}

.ribbon-img {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 80px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.featured-ribbon {
  background: #ff9800;
  color: #000;
}

.vip-ribbon {
  background: #d16eff;
  color: #fff;
}

/* =====================
   TOP BANNER
===================== */

.data-kiri {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-kanan {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================
   INFO
===================== */

.info-box {
  background: linear-gradient(
    135deg,
    rgba(0, 20, 55, 0.5),
    rgba(0, 8, 25, 0.95)
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
  color: #eee;
  position: relative;
  justify-content: center !important;
  overflow: hidden;
  align-items: center;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

/*
.info-box::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.9),
      transparent);
}

.info-box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
}
*/
.pas-iklan {
  color: #306108;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 5px;
  border: solid 1px #268a16;
  padding: 10px 18px;
  text-shadow: 1px 1px 0px #aade7c;
  box-shadow: inset 1px 1px 2px 0px #c9efab;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: Arial;
  background: linear-gradient(180deg, #77d42a 10%, #5cb811 100%);
  display: inline-block;
  vertical-align: middle;
}

.pas-iklan:hover {
  background: linear-gradient(180deg, #5cb811 10%, #77d42a 100%);
}

.time-klix {
  -moz-box-shadow: inset 0px 1px 0px 0px #d9fbbe;
  -webkit-box-shadow: inset 0px 1px 0px 0px #d9fbbe;
  box-shadow: inset 0px 1px 0px 0px #d9fbbe;
  background-color: #c7c9c3;
  -webkit-border-top-left-radius: 0px;
  -moz-border-radius-top-left: 0px;
  border-top-left-radius: 0px;
  -webkit-border-top-right-radius: 0px;
  -moz-border-radius-top-right: 0px;
  border-top-right-radius: 0px;
  -webkit-border-bottom-right-radius: 0px;
  -moz-border-radius-bottom-right: 0px;
  border-bottom-right-radius: 0px;
  -webkit-border-bottom-left-radius: 0px;
  -moz-border-radius-bottom-left: 0px;
  border-bottom-left-radius: 0px;
  text-indent: 0;
  pointer-events: none;
  border: 1px solid #666666;
  display: inline-block;
  color: #000;
  padding: 1px 5px 1px 5px;
  font-family: Arial;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  height: 28px;
  line-height: 25px;
  width: auto;
  text-decoration: none;
  text-align: center;
}

.time-klix:active {
  position: relative;
  top: 1px;
}

.ads-footer .time-klix:first-of-type {
  margin-left: auto;
}
/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {
  .tos-header {
    top: 0;
    right: 0;
    margin: 0;
    background: #2a0b3b;
    border-radius: 0;
    position: fixed;
    z-index: 9999;
  }

  .tos-wrapper {
    max-width: 950px;
  }

  .tos-body {
    padding: 20px 0 10px 0;
    margin: 0;
  }

  .tos-card {
    position: relative;
    margin: 20px 10px 10px 20px;
    padding: 35px 10px 5px 10px;
  }

  .tos-ribbon {
    top: 20px;
    left: -11px;
    padding: 5px 11px;
    font-size: 18px;
    border-radius: 0;
  }

  .tos-ribbon::before {
    border-top: 9px solid #315300;
    border-left: 11px solid transparent;
  }

  .tos-content {
    line-height: 1.3;
    font-size: 12px;
    letter-spacing: 0.2px;
    border-radius: 0;
  }

  .banner {
    border-radius: 0;
  }

  .info-box {
    color: #fff;
    border-radius: 5px;
    margin-bottom: 5px;
  }

  .pas-iklan {
    font-size: 13px;
  }

  .tos-topx {
    display: flex;
    min-height: 40px;
    max-height: 54px;
    border-radius: 0;
    justify-content: space-between;
    background:
      url("../img/icon/repeat-small.png") right center / contain no-repeat,
      linear-gradient(135deg, #00aef0, #0088ff);
    font-size: 20px;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    font-weight: 800;
    font-style: normal;
  }

  .ads-wrapper {
    width: 100%;
    margin: 0;
  }

  .ads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .info-box {
    border-radius: 0;
  }

  .ads-section {
    margin: 10px 10px 15px 10px;
    border-radius: 6px;
  }

  .ads-container {
    border-radius: 0;
  }

  .ad-card {
    position: relative;
    background: #35134b;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    display: flex;
    border: 1px solid #ccc;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
  }

  .ad-body {
    text-align: left;
  }

  .ad-body h3 {
    font-size: 16px;
    margin: 0 0 5px;
  }

  .ad-body p {
    color: #fff;
    font-size: 13px;
    margin: 0;
  }

  .ribbon-img {
    top: -5px;
    right: -5px;
    width: 70px;
  }

  .ads-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
}

/*=========================*/

@media (max-width: 600px) {
  .ads-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding: 10px 5px;
    gap: 15px;
  }
}

/*=========================*/

@media (max-width: 480px) {
  .ads-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding: 10px 5px;
    gap: 15px;
  }

  .ads-wrapper {
    width: 100%;
    margin: 0;
  }

  .tos-topx {
    display: flex;
    min-height: 40px;
    max-height: 50px;
    padding-left: 10px;
    border-radius: 0;
    justify-content: space-between;
    background:
      url("../img/icon/repeat-small.png") right center / contain no-repeat,
      linear-gradient(135deg, #00aef0, #0088ff);
    font-size: 20px;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    font-weight: 800;
    font-style: normal;
  }

  .data-kiri {
    display: none;
  }

  .data-kanan {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .pas-iklan {
    font-size: 11px;
    border-radius: 4px;
    padding: 6px 8px;
  }

  .tos-card {
    position: relative;
    margin: 10px 5px 5px 10px;
    padding: 35px 5px 5px 10px;
  }

  .ads-container {
    padding: 0;
  }

  .ad-card {
    min-height: 130px;
    max-height: auto;
  }

  .ad-body {
    padding: 20px 5px;
    text-align: left;
  }

  .ad-body h3 {
    font-size: 14px;
    margin: 0 0 0 4px;
  }

  .ad-body p {
    font-size: 12px;
    margin: 0 0 0 4px;
  }

  .ribbon-img {
    top: -5px;
    right: -5px;
    width: 60px;
  }

  .ads-footer button {
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 10px;
  }

  .time-klix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    font-size: 10px;
    height: 26px;
  }

  .btn-viewed {
    display: flex;
    background: linear-gradient(180deg, #8b8b8b, #5c5c5c);
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    font-size: 10px;
    height: 26px;
  }

  .ads-footer {
    gap: 6px;
    padding: 6px 8px;
  }

  .ads-footer.std button,
  .ads-footer.fixed button {
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .ads-section {
    margin: 0 10px 15px 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
  }

  .ads-container {
    background: none;
  }

  .section-title {
    font-size: 15px;
    padding: 10px 20px;
    text-align: center;
  }
}

.button-big {
  padding: 10px 40px 12px;
  font:
    700 18px/20px "Open Sans",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  color: #fff;
  text-shadow: #111 0 0 2px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0 inset;
  background: #4f9c45;
  text-decoration: none;
}

.button-big:hover {
  background: #dd5347;
}

@media (max-width: 375px) {
  .ads-footer button {
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 10px;
  }

  .ads-footer.std button,
  .ads-footer.fixed button {
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .time-klix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    font-size: 10px;
    height: 26px;
  }

  .btn-viewed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    font-size: 10px;
    height: 26px;
  }

  .ads-footer {
    gap: 4px;
    padding: 5px 8px;
  }
}