:root {
  --primary-color: #004080;
  --primary-hover: #002a5c;
  --secondary-color: #fdbe34;
  --secondary-dark-color: #b07c0b;
  --dark-color: #202223;

  --background-color: #ffffff;
  --text-color: #212529;
  --muted-color: #6c757d;

  --footer-bg: #212529;
  --footer-text: #f8f9fa;

  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-hover);

  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;

  --border-radius: 0.5rem;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

body {
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
}

/* Ellipsis untuk 2 baris */
.ellipsis-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ellipsis untuk 3 baris */
.ellipsis-3 {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ellipsis untuk 4 baris */
.ellipsis-4 {
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NAVBAR */
.navbar {
  background-color: var(--background-color) !important;
}

.bordered-full {
  border-radius: 50px;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

/* HERO */
.hero {
  background: url("/core/assets/images/320748312_11274280.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 100px 0;
  text-align: left;
}
.hero h1 {
  font-size: 3rem;
  font-family: "Montserrat";
  font-weight: bold;
}
.hero .lead {
  width: 100%;
  font-size: 1rem;
}
.hero-btn {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all ease 0.3s;
  color: var(--primary-hover);
}
.hero-btn:hover {
  transform: translateY(5px) !important;
  background-color: var(--secondary-dark-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
@media (min-width: 992px) {
  .hero .lead {
    width: 50%;
  }
}

/* KATALOG */
.katalog {
  padding: 50px 0;
}
.katalog-card-item {
  display: block;
}
.katalog-title {
  font-family: "Montserrat";
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}
.katalog-title::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100px;
  background-color: var(--secondary-color);
  left: 0;
  bottom: -10px;
}
.katalog-card-image img {
  width: 115px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.katalog-card-title {
  font-family: "Montserrat";
  font-weight: bold;
  color: var(--primary-color);
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.katalog-card-text {
  margin: 0;
}
@media (min-width: 992px) {
  .katalog-card-item {
    display: flex;
  }
  .katalog-card-image img {
    margin-bottom: 0rem;
  }
  .katalog-card-title {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
}

/* Search Bar */
.search-container {
  margin: 30px auto;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--footer-text);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
}
.search-box i {
  color: var(--light-text);
  margin-right: 10px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-color);
  background: transparent;
}
.search-box input::placeholder {
  color: var(--light-text);
}
.clear-search {
  background: none;
  border: none;
  color: var(--light-text);
  cursor: pointer;
  padding: 5px;
  display: none;
}
.clear-search.visible {
  display: block;
}

/* KONTAK */
.kontak {
  padding: 50px 0;
  background-color: var(--footer-bg);
  background-image: url("/core/assets/images/map-image.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--footer-text);
}
.contact-info {
  list-style: none;
  padding-left: 0;
}

.contact-info li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.contact-info li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--footer-text);
}
footer {
  font-size: small;
  background-color: var(--dark-color);
  color: var(--footer-text);
  padding: 20px 0;
}
.link-developer {
  color: var(--secondary-color);
  transition: all ease 0.3s;
}
.link-developer:hover {
  color: var(--primary-color);
}
.social-icons {
  display: flex;
  gap: 15px;
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icons li a:hover {
  transform: scale(1.1);
}

.social-icons .website a {
  background-color: #0d6efd; /* Bootstrap blue or light gray */
}

.social-icons .youtube a {
  background-color: #ff0000;
}

.social-icons .instagram a {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

/* HERO ABOUT */
.hero-about {
  background: url("/core/assets/images/320748312_11274280.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 50px 0;
  text-align: left;
}
.hero-about h1 {
  font-size: 3rem;
  font-family: "Montserrat";
  font-weight: bold;
}
.hero-about .lead {
  width: 100%;
  font-size: 1rem;
}
.content-about {
  padding: 50px 0;
}
.content-about p {
  text-align: justify;
}
.content-judul-buku {
  font-family: "Montserrat";
  font-weight: bold;
  color: var(--primary-color);
  font-size: 2rem;
}
.content-harga-buku {
  font-weight: bold;
  color: orange;
  font-size: 1.5rem;
}
