/* Google Fonts Local Import */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/google-fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/google-fonts/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/google-fonts/inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/google-fonts/sarabun-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/google-fonts/sarabun-700.ttf') format('truetype');
}

/* Base Styles */
:root {
  --primary-color: #4B5320;
  /* Army Green / Olive - Professional & Pharmacy related */
  --secondary-color: #f8f9fa;
  --accent-color: #2c3e50;
  --text-color: #333;
}

body {
  font-family: 'Sarabun', 'Inter', sans-serif;
  background-color: #f4f6f8;
  color: var(--text-color);
}

/* Formal Header */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.hero-title {
  color: var(--accent-color);
  font-weight: 700;
}

/* Card Styling */
.book-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-cover-container {
  height: 250px;
  overflow: hidden;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.book-cover {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.book-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  min-height: 4rem;
  /* Enforce height alignment */
  /*display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;*/
  overflow: hidden;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary-custom:hover {
  background-color: #3a4119;
  border-color: #3a4119;
  color: white;
}

.btn-outline-custom {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: white;
}

footer {
  background-color: white;
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: #6c757d;
  font-size: 0.9rem;
}