/* ==========================================================================
   PORTAL INFORMASI & BERITA KAMPUS (IKKH-GARUT)
   Theme: Tosca Academic (#09a89e), Royal Gold (#ffb830), Soft Neutral (#f8fafc)
   Scale: Unified 85% Compact Professional Density
   Zero Layout Shift: No jarring entry animations, stable aspect ratios
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO HEADER & SEARCH BANNER
   -------------------------------------------------------------------------- */
.info-hero-banner {
  background: linear-gradient(135deg, #078f86 0%, #09a89e 60%, #056a63 100%);
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.info-banner-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.info-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.info-banner-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.info-banner-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Search Bar in Hero */
.info-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -4px rgba(10, 25, 47, 0.25);
  max-width: 620px;
}

.info-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.85rem;
}

.info-search-input-wrap svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.info-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-main);
  background: transparent;
  padding: 0.45rem 0;
  font-family: inherit;
}

.info-search-input::placeholder {
  color: #94a3b8;
}

.btn-info-search {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background var(--transition-fast);
}

.btn-info-search:hover {
  background: var(--primary-hover);
}

/* Category Filter Bar */
.info-category-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
}

.info-category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
}

.info-category-pills::-webkit-scrollbar {
  display: none;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.info-pill:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.info-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(9, 168, 158, 0.3);
}

.info-pill .pill-count {
  font-size: 0.7rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.info-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   2. CATALOG CONTENT AREA
   -------------------------------------------------------------------------- */
.info-main-section {
  padding: 2.2rem 0 3.5rem;
  background: #f8fafc;
}

.info-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* Featured Spotlight Article Card */
.info-featured-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 25, 47, 0.06);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 25, 47, 0.1);
  border-color: rgba(9, 168, 158, 0.35);
}

.info-featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #0f172a;
}

.info-featured-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.info-featured-card:hover .info-featured-thumb {
  transform: scale(1.03);
}

.info-featured-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.info-cat-badge {
  display: inline-block;
  background: rgba(9, 168, 158, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(9, 168, 158, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-featured-title {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.info-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-featured-title a:hover {
  color: var(--primary);
}

.info-featured-excerpt {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.info-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.info-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.info-btn-read:hover {
  gap: 0.65rem;
  color: var(--primary-hover);
}

/* Articles Standard Grid (3 Columns) */
.info-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.09);
  border-color: rgba(9, 168, 158, 0.4);
}

.info-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.info-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.info-article-card:hover .info-card-thumb {
  transform: scale(1.04);
}

.info-card-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card-title a {
  color: inherit;
  text-decoration: none;
}

.info-card-title a:hover {
  color: var(--primary);
}

.info-card-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Widgets */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
}

.info-widget-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}

.info-widget-title::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin-top: auto;
}

.popular-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
}

.popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-thumb-wrap {
  width: 68px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.popular-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content {
  flex: 1;
}

.popular-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.popular-item:hover .popular-title {
  color: var(--primary);
}

.popular-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Pagination */
.info-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   3. DETAIL BACA ARTIKEL (SHOW PAGE)
   -------------------------------------------------------------------------- */
.article-detail-wrap {
  padding: 2.2rem 0 4rem;
  background: #ffffff;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--primary);
}

.article-breadcrumbs span.sep {
  color: #cbd5e1;
}

.article-header {
  margin-bottom: 2rem;
  width: 100%;
}

.article-title-heading {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0.85rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.author-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #056a63 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-meta-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.article-stats-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article 2-Column Grid Layout */
.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 2.75rem;
  align-items: start;
}

.article-main-col {
  min-width: 0;
  width: 100%;
}

/* Article Hero Image */
.article-featured-image-wrap {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(10, 25, 47, 0.08);
  width: 100%;
  max-height: 480px;
  background: #0f172a;
}

.article-featured-image {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Typography (Prose) */
.article-prose {
  width: 100%;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-prose p {
  margin-bottom: 1.35rem;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  color: var(--text-main);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.article-prose h3 {
  font-size: 1.35rem;
}

.article-prose h4 {
  font-size: 1.15rem;
}

.article-prose ul,
.article-prose ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose strong {
  font-weight: 700;
  color: var(--text-main);
}

.article-prose blockquote {
  border-left: 4px solid var(--primary);
  background: #f0fdfa;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #0f766e;
  margin: 1.5rem 0;
}

/* Custom Table Styling (Word-like Academic Tables) */
.article-prose table,
.article-prose .custom-academic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.article-prose th,
.article-prose td {
  padding: 0.85rem 1.15rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.article-prose th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #cbd5e1;
}

.article-prose tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.article-prose tbody tr:hover {
  background-color: #f0fdfa;
  transition: background-color 0.15s ease;
}

.article-prose figure.table {
  margin: 2rem 0;
  overflow-x: auto;
  max-width: 100%;
}

/* Share Bar */
.article-share-bar {
  margin: 2.5rem 0 3rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.share-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #ffffff;
}

.btn-share:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-share.wa { background: #25d366; }
.btn-share.tg { background: #0088cc; }
.btn-share.tw { background: #111827; }
.btn-share.copy { background: #475569; cursor: pointer; border: none; }

/* --------------------------------------------------------------------------
   4. COMMENTS SECTION (INTERACTIVE & SECURED)
   -------------------------------------------------------------------------- */
.article-comments-section {
  width: 100%;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e2e8f0;
}

.comments-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.comments-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comments-count-pill {
  background: rgba(9, 168, 158, 0.12);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Comment Form Card */
.comment-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.05);
  margin-bottom: 2.5rem;
  position: relative;
}

.comment-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.comment-form-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-field-input,
.form-field-select,
.form-field-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.84rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 168, 158, 0.15);
}

.form-field-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot Bot Trap: Strictly Hidden from Humans */
.website-hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.btn-submit-comment {
  background: linear-gradient(135deg, var(--primary) 0%, #078f86 100%);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit-comment:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(9, 168, 158, 0.3);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e 0%, #09a89e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(9, 168, 158, 0.2);
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.commenter-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.commenter-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.civitas-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.civitas-tag.mahasiswa {
  background: #e0f2fe;
  color: #0369a1;
}

.civitas-tag.dosen {
  background: #fef3c7;
  color: #92400e;
}

.civitas-tag.nakes,
.civitas-tag.tenaga-kesehatan {
  background: #dcfce7;
  color: #166534;
}

.civitas-tag.alumni {
  background: #ede9fe;
  color: #6d28d9;
}

.civitas-tag.umum {
  background: #f1f5f9;
  color: #475569;
}

.comment-date {
  font-size: 0.72rem;
  color: #94a3b8;
}

.comment-text {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.55;
  word-break: break-word;
}

/* Empty Comments State */
.comments-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.comments-empty-state svg {
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.comments-empty-state p {
  font-size: 0.84rem;
}

/* Alert Notification */
.alert-comment-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   4.1 ARTICLE SIDEBAR & WIDGET CARDS
   -------------------------------------------------------------------------- */
.article-sidebar {
  width: 100%;
}

.article-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Widget Base Card */
.article-widget-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 2px 10px rgba(10, 25, 47, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-widget-card:hover {
  border-color: rgba(9, 168, 158, 0.35);
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.06);
}

.article-widget-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.article-widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-widget-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Widget 1: Hours & Operational Status */
.widget-hours-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  border: 1px solid rgba(9, 168, 158, 0.25);
}

.hours-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdfa;
  border: 1px solid rgba(9, 168, 158, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 0.85rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: dotPulseLive 2s infinite;
}

@keyframes dotPulseLive {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hours-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.hours-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #f1f5f9;
}

.hours-schedule-item:last-child {
  border-bottom: none;
}

.hours-schedule-item .day-label {
  font-weight: 600;
  color: #334155;
}

.hours-schedule-item .time-label {
  font-weight: 700;
  color: var(--primary);
}

.hours-schedule-item.is-off .time-label {
  color: #94a3b8;
  font-weight: 500;
}

.hours-digital-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: #64748b;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
}

.hours-digital-note svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Widget 2: Popular Articles */
.sidebar-popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-popular-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.sidebar-popular-item:hover {
  background: #f8fafc;
}

.popular-mini-thumb {
  width: 58px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.popular-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-mini-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.popular-mini-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.popular-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-mini-views {
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

/* Widget 3: Quick Navigation Links */
.sidebar-quick-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-quick-link:hover {
  background: #f0fdfa;
  border-color: rgba(9, 168, 158, 0.3);
  transform: translateX(3px);
}

.quick-link-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quick-link-icon {
  font-size: 1.1rem;
}

.quick-link-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.quick-link-desc {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.sidebar-quick-link svg {
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sidebar-quick-link:hover svg {
  color: var(--primary);
  transform: translateX(2px);
}

/* Widget 4: Category Pills */
.sidebar-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sidebar-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  background: #f1f5f9;
  color: #334155;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-cat-pill:hover,
.sidebar-cat-pill.active {
  background: var(--primary);
  color: #ffffff;
}

.cat-pill-count {
  font-size: 0.7rem;
  opacity: 0.8;
  padding: 0.05rem 0.35rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
}

.sidebar-cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Widget 5: Helpdesk & Circulation Consultation */
.widget-helpdesk-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f6 100%);
  border: 1px solid rgba(9, 168, 158, 0.25);
}

.helpdesk-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.helpdesk-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.helpdesk-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

.helpdesk-sub {
  font-size: 0.72rem;
  color: #0f766e;
}

.helpdesk-desc {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-whatsapp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #10b981;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.15s ease;
}

.btn-whatsapp-action:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZED)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .info-layout-grid,
  .article-layout-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar-sticky {
    position: static;
  }

  .info-featured-card {
    grid-template-columns: 1fr;
  }

  .info-featured-thumb-wrap {
    min-height: 220px;
  }

  .info-sidebar,
  .article-sidebar {
    margin-top: 1.5rem;
  }

  .article-title-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 640.98px) {
  .info-banner-title {
    font-size: 1.45rem;
  }

  .info-articles-grid {
    grid-template-columns: 1fr;
  }

  .comment-form-grid {
    grid-template-columns: 1fr;
  }

  .comment-form-card {
    padding: 1.25rem;
  }

  .comment-card {
    padding: 1rem;
  }

  .article-author-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
