 :root {
            --primary: #1e40af;
            --secondary: #0f766e;
            --accent: #ea580c;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #059669;
            --warning: #d97706;
            --danger: #dc2626;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
            background: var(--light);
            color: var(--dark);
        }

        .malayalam {
            font-family: 'Noto Sans Malayalam', sans-serif;
        }

        /* Navigation */
        .navbar {
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            padding: 1rem 0;
        }

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

        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 0.5rem;
            transition: color 0.3s;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .lang-switch {
            background: var(--light);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 4rem 0;
            margin-bottom: 3rem;
        }

        .hero h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* User Type Selector */
        .user-type-selector {
            display: flex;
            gap: 1.5rem;
            margin: 2rem 0;
            justify-content: center;
        }

        .user-type-card {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            width: 300px;
            cursor: pointer;
            transition: all 0.3s;
            border: 3px solid transparent;
            text-align: center;
        }

        .user-type-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.1);
            border-color: var(--primary);
        }

        .user-type-card.active {
            border-color: var(--primary);
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        }

        .user-type-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        /* Search Section */
        .search-section {
            background: white;
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            margin-bottom: 2rem;
        }

        .search-input-group {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 1rem 3rem 1rem 1.5rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
        }

        .search-btn {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .search-btn:hover {
            background: #1e3a8a;
        }

        /* Filter Pills */
        .filter-pills {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }

        .filter-pill {
            padding: 0.5rem 1rem;
            background: var(--light);
            border: 2px solid #e2e8f0;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .filter-pill:hover, .filter-pill.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Advanced Filters */
        .advanced-filters {
            background: #f8fafc;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            display: none;
        }

        .advanced-filters.show {
            display: block;
        }

        .filter-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        /* Feature Cards */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .feature-card {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border: 1px solid #e2e8f0;
        }

        .feature-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .feature-card h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--dark);
        }

        .feature-card p {
            color: #64748b;
            line-height: 1.6;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            border-left: 4px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: #64748b;
            font-size: 0.9rem;
        }

        /* Case Result Card */
        .case-result {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-left: 4px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: all 0.3s;
        }

        .case-result:hover {
            box-shadow: 0 6px 16px rgba(0,0,0,0.1);
            transform: translateX(4px);
        }

        .case-number {
            font-weight: 600;
            color: var(--primary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .case-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--dark);
        }

        .case-meta {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin: 1rem 0;
            font-size: 0.875rem;
            color: #64748b;
        }

        .case-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .badge {
            padding: 0.35rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .badge-plaintiff { background: #dcfce7; color: #166534; }
        .badge-defendant { background: #fee2e2; color: #991b1b; }
        .badge-partial { background: #fef3c7; color: #92400e; }
        .badge-primary { background: #dbeafe; color: #1e40af; }

        /* Outcome Predictor */
        .predictor-panel {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        }

        .predictor-result {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-radius: 12px;
            padding: 2rem;
            margin-top: 1.5rem;
        }

        .success-rate {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .rate-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .rate-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--success);
        }

        .rate-label {
            font-size: 0.8rem;
            color: #64748b;
        }

        /* Progress Bars */
        .progress {
            height: 12px;
            border-radius: 6px;
            background: #e2e8f0;
            margin: 0.5rem 0;
        }

        .progress-bar {
            border-radius: 6px;
            transition: width 0.6s ease;
        }

        /* Lawyer Dashboard */
        .dashboard-header {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .dashboard-tabs {
            display: flex;
            gap: 1rem;
            border-bottom: 2px solid #e2e8f0;
            margin-bottom: 2rem;
        }

        .dashboard-tab {
            padding: 1rem 1.5rem;
            border: none;
            background: none;
            color: #64748b;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .dashboard-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tool-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 2px solid #e2e8f0;
            transition: all 0.3s;
        }

        .tool-card:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        /* Buttons */
        .btn-primary {
            background: var(--primary);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            background: #1e3a8a;
            transform: translateY(-1px);
        }

        .btn-outline {
            background: white;
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s;
        }

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

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1rem;
            margin-top: 4rem;
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-links h4 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: #94a3b8;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: white;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 { font-size: 1.75rem; }
            .user-type-selector { flex-direction: column; align-items: center; }
            .feature-grid { grid-template-columns: 1fr; }
            .filter-row { grid-template-columns: 1fr; }
        }

        /* Loading Animation */
        .loading {
            text-align: center;
            padding: 2rem;
        }

        .spinner {
            border: 4px solid #f3f4f6;
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .disclaimer {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 1rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            font-size: 0.9rem;
        }

        .chart-container {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1rem 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

    /*===custom css home page*/
       /* Public category pill buttons */
.bef-links ul {
  display: flex;
  flex-wrap: wrap;              /* ✅ allow 2+ lines */
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bef-links ul li {
  list-style: none;
}

.bef-links a {
  display: inline-block;
  border: 1px solid #0d6efd;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bef-links a:hover {
  background: #e7f1ff;
}

.bef-link--selected {
  background: #0d6efd;
  color: #fff !important;
}

/* Search box wrapper */
.js-form-item-field-case-summary-value {
  position: relative;
  width: 100%;
}

/* Text input styling */
#edit-field-case-summary-value {
  height: 56px;
  padding-right: 120px; /* space for Apply button */
  border-radius: 12px;
  font-size: 1rem;
}

/* Move Apply button inside input */
/*#edit-actions {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  margin: 0;
}*/

#edit-submit-similar-cases-search {
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 500;
}
.views-exposed-form .d-flex {
  flex-direction: column;
  gap: 1rem;
}
.form-item-field-public-case-category-target-id label {
  display: none;
}
#edit-field-case-summary-value:focus {
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}
#edit-field-case-summary-value::placeholder {
  color: #9ca3af;
}

    /*===custom css home page*/
/**
 * Similar Cases Search Block - Card Grid Styles
 * Matches the design from the provided screenshot
 */

/* Block Container */
.similar-cases-block {
  margin: 2rem 0;
}

.similar-cases-block .block-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

/* Grid Container */
.similar-cases-grid {
  margin: 0 -0.75rem;
}

.similar-cases-grid > .col-12,
.similar-cases-grid > .col-sm-6,
.similar-cases-grid > .col-lg-4,
.similar-cases-grid > .col-xl-3 {
  padding: 0.75rem;
}

/* Case Card */
.case-card {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.case-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.case-card-inner {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Case Number - Header */
.case-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: #3b5998;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Case Title */
.case-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 3.5rem;
}

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

.case-title a:hover {
  color: #3b5998;
}

/* Case Metadata */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.case-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.case-meta-item i {
  font-size: 1rem;
  color: #9ca3af;
}

/* Case Summary */
.case-summary {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Case Details */
.case-details {
  margin-bottom: 1rem;
}

.case-detail-item {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.case-detail-item strong {
  color: #1a1a1a;
  font-weight: 600;
  margin-right: 0.25rem;
}

.case-detail-item a {
  color: #3b5998;
  text-decoration: none;
}

.case-detail-item a:hover {
  text-decoration: underline;
}

/* Badges */
.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-badges .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.case-badges .badge-judgment {
  background-color: #d1fae5;
  color: #065f46;
}

/* Plaintiff Won - Green */
.case-badges .badge-judgment:contains("Plaintiff") {
  background-color: #d1fae5;
  color: #065f46;
}

/* Defendant Won - Red/Orange */
.case-badges .badge-judgment:contains("Defendant") {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Dismissed - Gray */
.case-badges .badge-judgment:contains("Dismissed") {
  background-color: #e5e7eb;
  color: #374151;
}

/* Case Actions */
.case-actions {
  margin-top: auto;
}

.btn-view-details {
  width: 100%;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #3b5998;
  background-color: transparent;
  color: #3b5998;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-view-details:hover {
  background-color: #3b5998;
  color: #fff;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  /* 3 columns on large screens */
  .similar-cases-grid > .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 991.98px) {
  /* 2 columns on tablets */
  .similar-cases-grid > .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  /* 1 column on mobile */
  .case-card-inner {
    padding: 1.25rem;
  }
  
  .case-title {
    font-size: 1rem;
    min-height: auto;
  }
  
  .case-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Bootstrap Icons - If not already included */
/*@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css');*/

/* Additional utility classes */
.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-truncate-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* === Case Card Base === */
.similar-cases-grid .case-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.similar-cases-grid .case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* === Case Number (Top small blue text) === */
.similar-cases-grid .views-field-field-case-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 6px;
}

/* === Case Title === */
.similar-cases-grid .views-field-title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  margin-bottom: 10px;
}

.similar-cases-grid .views-field-title a:hover {
  color: #1d4ed8;
}

/* === Meta Row === */
.views-field-field-court-location,
.views-field-field-order-date,
.views-field-field-case-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
  margin-right: 14px;
}

.views-field-field-court-location::before {
  content: "📍";
}
.views-field-field-order-date::before {
  content: "📅";
}
.views-field-field-case-duration::before {
  content: "⏱️";
}

/* Wrap meta fields nicely */
.views-field-field-court-location,
.views-field-field-order-date,
.views-field-field-case-duration {
  margin-bottom: 10px;
}

/* === Summary / Relief === */
.views-field-field-relief-granted {
  font-size: 0.95rem;
  color: #334155;
  margin: 10px 0 14px;
  line-height: 1.5;
}

/* === Badges Container === */
.views-field-field-judgment-favor,
.views-field-field-case-type-terms {
  display: inline-block;
  margin-right: 8px;
}

/* === Judgment Badge === */
.similar-cases-grid .views-field-field-judgment-favor p {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

/* === Case Type Badge === */
.views-field-field-case-type-terms a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  text-decoration: none;
}

/* === CTA Button === */
/*.similar-cases-grid .case-card::after {
  content: "View Full Details";
  margin-top: auto;
  display: inline-block;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
*/
/* Make whole card clickable via title link */
/*.case-card:hover::after {
  background: #1d4ed8;
  color: #fff;
}*/


.view-details-link a{
    display: inline-block;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.view-details-link a:hover {
  background: #1d4ed8;
  color: #fff;
}
.view-details-link {
  margin-top: auto;   /* ⭐ magic line */
}
.judgment-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }

/*. end of home page card css */
/* ===============================
   FEATURE GRID (Drupal blocks)
================================ */

.region-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Each feature card block */
.block-content-feature_card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect */
.block-content-feature_card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Remove contextual spacing issues */
.block-content-feature_card .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===============================
   ICON (auto-generated)
================================ */

.block-content-feature_card::before {
  content: "📊";
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #1e40af));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===============================
   FIELD STYLING
================================ */

/* Hide labels */
.block-content-feature_card .field__label {
  display: none;
}

/* Feature title */
.block-content-feature_card
.field--name-field-feature-title
.field__item {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

/* Feature description */
.block-content-feature_card
.field--name-field-feature-description
.field__item {
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
}

/* ===============================
   CTA BUTTON
================================ */

.block-content-feature_card
.field--name-field-feature-link {
  margin-top: 1.5rem;
}

/* Button look */
.block-content-feature_card
.field--name-field-feature-link a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover */
.block-content-feature_card
.field--name-field-feature-link a:hover {
  background: #1e40af;
  color: #ffffff;
}

/* ===============================
   MOBILE TWEAKS
================================ */

@media (max-width: 576px) {
  .block-content-feature_card {
    padding: 1.5rem;
  }
}

/**
 * Failure Reasons Block - CSS
 * File: failure-reasons.css
 */

/* Wrapper */
.failure-reasons-wrapper {
  margin-top: 2rem;
}

/* Stats Summary */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 2px solid #fee2e2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: #64748b;
  font-size: 0.875rem;
}

/* Failure Reasons Panel */
.failure-reasons-panel {
  background: #fef2f2;
  border-radius: 16px;
  padding: 2rem;
  border-left: 5px solid #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}

.failure-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #fecaca;
}

.failure-header i {
  font-size: 3rem;
  color: #dc2626;
  margin-bottom: 0.75rem;
  display: block;
}

.failure-header h2 {
  color: #991b1b;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.failure-header .subtitle {
  color: #7f1d1d;
  font-size: 1rem;
  margin: 0;
}

/* Failure Reasons List */
.failure-reasons-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.failure-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  border: 2px solid #fee2e2;
  transition: all 0.3s ease;
  position: relative;
}

.failure-item:hover {
  border-color: #fca5a5;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
  transform: translateX(6px);
}

.failure-number {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 32px;
  height: 32px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.failure-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.failure-icon i {
  font-size: 1.75rem;
  color: #dc2626;
}

.failure-content {
  flex: 1;
}

.failure-content h6 {
  color: #991b1b;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.failure-content p {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  line-height: 1.6;
}

.failure-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.stat-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stat-badge i {
  margin-right: 0.25rem;
  color: #64748b;
}

.impact-badge {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.impact-badge.high-impact {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.impact-badge.medium-impact {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.impact-badge.low-impact {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

/* Action Box */
.failure-action-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  border: 2px solid #a7f3d0;
}

.action-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.action-icon i {
  font-size: 1.75rem;
  color: #059669;
}

.action-content h6 {
  color: #065f46;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.action-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.action-checklist li {
  color: #064e3b;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1.5;
}

.action-checklist li i {
  color: #059669;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #e2e8f0;
  gap: 1rem;
}

.cta-text h6 {
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cta-text p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-outline-danger {
  background: white;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.btn-outline-danger:hover {
  background: #dc2626;
  color: white;
}

.btn i {
  margin-right: 0.5rem;
}

/* No Data Message */
.no-data-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
}

.no-data-message i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.no-data-message p {
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .failure-item {
    flex-direction: column;
    padding-left: 1rem;
  }

  .failure-action-box {
    flex-direction: column;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }

  .failure-header h2 {
    font-size: 1.5rem;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }
}

/* Loading State */
.failure-reasons-wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}

.failure-reasons-wrapper.loading::after {
  content: "Analyzing failure patterns...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: #1e293b;
}

/* =====================================
   LOGIN BUTTON - CONTEXT-AWARE DISPLAY
===================================== */

/* =====================================
   LOGIN FORM - BASIC DISPLAY
===================================== */

/* Show login form container in lawyerView */
.login-block-container {
  display: block !important;
  visibility: visible !important;
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* =====================================
   LOGIN BUTTON VISIBILITY
===================================== */

/* CRITICAL: Hide ALL login buttons by default - be very specific */
/*.user-login-form #edit-submit,
.user-login-form .form-submit,
.user-login-form input[type="submit"],
.user-login-form button[type="submit"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  position: fixed !important;
  top: -99999px !important;
  left: -99999px !important;
  z-index: -99999 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
*/
/* Show login button ONLY in lawyer-view when active */
/*
#lawyerView.lawyer-view-active .user-login-form #edit-submit,
#lawyerView.lawyer-view-active .user-login-form .form-submit,
#lawyerView.lawyer-view-active .user-login-form input[type="submit"],
#lawyerView.lawyer-view-active .user-login-form button[type="submit"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 1rem 0 0 0 !important;
  border: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  background-color: var(--primary) !important;
  color: white !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}*/
/* =====================================
   LOGIN FORM - SHOW IN LAWYER VIEW
===================================== */

/* Ensure lawyerView is properly isolated */
#lawyerView {
  position: relative;
  z-index: 100;
}

/* Show login container only in lawyerView */
#lawyerView .login-block-container {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
}

/* Show form inside lawyerView */
#lawyerView .login-block-container form {
  display: block !important;
  visibility: visible !important;
}

/* Show form items */
#lawyerView .login-block-container .form-item {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 1rem;
}

/* Show inputs */
#lawyerView .login-block-container input[type="text"],
#lawyerView .login-block-container input[type="password"] {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}