:root {
  --primary-color: #0d47a1;
  /* Deep Royal Blue */
  --secondary-color: #ff6f00;
  /* Vibrant Orange */
  --accent-color: #00b0ff;
  /* Light Blue */
  --text-color: #1a202c;
  --text-light: #4a5568;
  --bg-color: #f7fafc;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 1.5rem;
}

.p-2 {
  padding: 1.5rem;
}

.fw-bold {
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1565c0);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
}

/* Header */
header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 25px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  padding: 18px 25px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: box-shadow 0.3s;
}

.search-box:focus {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.cat-card {
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  text-align: left;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
  background: linear-gradient(to right, #ffffff, #f0f7ff);
}

.cat-icon-wrapper {
  background: #e3f2fd;
  color: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-content {
  display: flex;
  flex-direction: column;
}

.cat-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  line-height: 1.3;
}

.cat-count {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

/* Scheme Cards */
.scheme-list {
  display: grid;
  gap: 25px;
}

.scheme-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--accent-color);
  transition: transform 0.2s;
}

.scheme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scheme-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #2d3748;
}

.scheme-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.scheme-meta span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Details Page */
.scheme-details-page {
  display: grid;
  gap: 30px;
}

@media (min-width: 992px) {
  .scheme-details-page {
    grid-template-columns: 1fr 350px;
  }
}

.scheme-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.scheme-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.scheme-content h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
}

.scheme-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Footer */
footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 50px 0;
  margin-top: 60px;
  text-align: center;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--accent-color);
  border-bottom: 1px dotted;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .nav-links {
    margin-top: 10px;
  }

  .scheme-details-page {
    grid-template-columns: 1fr;
  }
}

/* New UI Elements */
.section-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.scheme-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #2d3748;
  text-align: justify;
}

.scheme-content p,
.scheme-content li {
  text-align: justify;
}

/* Custom Scrollbar for Sidebar */
.scheme-sidebar div[style*="max-height"]::-webkit-scrollbar {
  width: 6px;
}

.scheme-sidebar div[style*="max-height"]::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scheme-sidebar div[style*="max-height"]::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.scheme-sidebar div[style*="max-height"]::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}