/* ==========================================================================
   Government Standard Accessible Timeline Component
   ========================================================================== */

:root {
  --timeline-line-color: #d1d5db;   /* Accessible neutral grey border */
  --timeline-marker-color: #003366; /* Government/Kerala Blue accent */
  --timeline-marker-size: 12px;
  --timeline-padding-left: 1.5rem;
}

/* Timeline Container Box */
.timeline-card {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* Timeline Vertical Line Structure */
.timeline {
  position: relative;
  padding-left: var(--timeline-padding-left);
  border-left: 3px solid var(--timeline-line-color);
  margin-top: 1rem;
}

/* Individual Timeline Items */
.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Timeline Bullet Marker (Node) */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--timeline-padding-left) - (var(--timeline-marker-size) / 2) - 1.5px);
  top: 0.25rem;
  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  border-radius: 50%;
  background-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px #ffffff; /* White separation ring for visual contrast */
}

/* Timeline Typography & Metadata */
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.timeline-date {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0;
}

/* High Contrast & Focus Mode Overrides */
*:focus-visible .timeline-item::before {
  outline: 2px solid #ffbf47;
  outline-offset: 2px;
}

/* Print Friendly Styles */
@media print {
  .timeline {
    border-left-color: #000000 !important;
  }
  .timeline-item::before {
    background-color: #000000 !important;
    box-shadow: none !important;
  }
}


/* Department Card Styling */
.dept-card {
  border: 1px solid var(--gov-border-color);
  border-top: 4px solid var(--kerala-blue);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.dept-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 51, 102, 0.1);
  color: var(--kerala-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}


/* Institution Card Styling */
.inst-card {
  border: 1px solid var(--gov-border-color);
  border-top: 4px solid var(--kerala-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Image Placeholder Styling */
.inst-img-wrapper {
  position: relative;
  background-color: #e9ecef;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gov-border-color);
}

.inst-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-placeholder-text {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.gov-link {
  color: var(--kerala-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.gov-link:hover, .gov-link:focus {
  color: var(--kerala-blue-hover);
  text-decoration: none;
}

/* Search Card Container */
.go-filter-card {
  border: 1px solid var(--gov-border-color);
  border-left: 4px solid var(--kerala-blue);
  background-color: var(--gov-bg-muted);
}

/* GO Table Styling */
.go-table-container {
  border: 1px solid var(--gov-border-color);
  border-radius: 0.375rem;
  overflow: hidden;
}

.go-table thead th {
  background-color: var(--kerala-blue);
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 0.9rem 1rem;
}

.go-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.go-table tbody tr:nth-of-type(even) {
  background-color: var(--gov-bg-muted);
}

/* Badge & Link Styling */
.go-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
}

.pdf-download-btn {
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.2s ease;
}

.pdf-download-btn:hover, .pdf-download-btn:focus {
  background-color: #bb2d3b;
  color: #ffffff;
  text-decoration: none;
}

/* Filter Card */
.notify-filter-card {
  border: 1px solid var(--gov-border-color);
  border-left: 4px solid var(--kerala-blue);
  background-color: var(--gov-bg-muted);
}

/* Card List Structure */
.notify-item {
  border: 1px solid var(--gov-border-color);
  border-left: 4px solid var(--kerala-blue);
  border-radius: 0.375rem;
  background-color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notify-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.notify-item.pinned {
  border-left-color: #dc3545; /* High-priority red highlight */
  background-color: #fffaf0;
}

.notify-date-badge {
  background-color: #e9ecef;
  color: var(--gov-text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gov-link-title {
  color: var(--gov-text-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.gov-link-title:hover, .gov-link-title:focus {
  color: var(--kerala-blue);
  text-decoration: underline;
}

.pdf-download-btn {
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.pdf-download-btn:hover, .pdf-download-btn:focus {
  background-color: #bb2d3b;
  color: #ffffff;
  text-decoration: none;
}

.minister-image{border-radius: 15%;
max-width: 150px;}

/* Hero Spotlight Header Card */
.minister-hero-card {
  background: var(--primary-color) !important;
  color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 51, 102, 0.25);
}

.minister-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--kerala-blue);
  flex-shrink: 0;
}

/* Dynamic Contact Info Cards */
.dynamic-contact-card {
  border: 1px solid var(--gov-border-color);
  border-top: 4px solid var(--timeline-marker-color);
  border-radius: 0.75rem;
  background-color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dynamic-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background-color: rgba(0, 51, 102, 0.08);
  color: var(--kerala-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Staff Grid Card Layout */
.staff-card {
  border: 1px solid var(--gov-border-color);
  border-radius: 0.75rem;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
}

.staff-card:hover {
  border-color: var(--kerala-accent);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06) !important;
}

.staff-initial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--gov-bg-muted);
  color: var(--gov-text-dark);
  border: 1px solid var(--gov-border-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.action-chip:hover {
  background-color:#0e86c74b
  color: var(--primary-color) !important
  border-color: var(--kerala-blue);
}