/* LMS-Inspired Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb; /* Neutral light gray background like LMS */
  color: #111827; /* Dark text */
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #3b82f6; /* Blue accent */
  transition: all 0.3s ease;
}

a:hover {
  color: #1d4ed8;
  transform: scale(1.02); /* Subtle scale for button feel */
}

a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Header - Fixed LMS-Style Top Bar */
header {
  background: #ffffff; /* White header like image */
  color: #111827;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  border-bottom: 1px solid #e5e7eb;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
}

nav ul li a {
  color: #374151;
  padding: 16px 32px; /* Rectangular padding matching image buttons */
  border-radius: 8px; /* Rounded rectangular */
  font-weight: 500;
  background-color: #f9fafb; /* Light bg for button */
  border: 1px solid #d1d5db; /* Subtle border */
  margin-left: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul li a.active,
nav ul li a:hover {
  background-color: #3b82f6; /* Blue on active/hover */
  color: white;
  border-color: #3b82f6;
  transform: scale(1.02);
}

/* Mobile Navigation - Hamburger Style */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  nav ul.active {
    display: flex;
  }
  nav ul li a {
    margin: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Main Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 80px; /* Space for header */
}

/* Hero Section - Banner Like Image Header */
.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* Gradient to simulate image banner */
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Search Bar - Rectangular Input */
.search-container {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.search-container input {
  width: 100%;
  padding: 16px 32px; /* Rectangular */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.search-container input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Cards - White Rounded Rectangles Like Image */
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 1.8rem;
  color: #111827;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h2 i {
  color: #3b82f6;
}

/* Accordion - Collapsible Buttons Matching Image */
.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  background: #f9fafb;
  padding: 16px 32px; /* Rectangular button padding */
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.accordion-header:hover {
  background: #f3f4f6;
  transform: scale(1.01);
}

.accordion-header.active {
  background: #3b82f6;
  color: white;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-content.active {
  max-height: 500px;
  padding: 1.5rem;
}

.accordion-content ul {
  list-style: none;
}

.accordion-content li {
  margin-bottom: 0.75rem;
}

.accordion-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 24px; /* Smaller rectangular for links */
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.accordion-content a:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: scale(1.02);
}

/* Grid - Dashboard Tiles Like Image */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.unit-card {
  background: white;
  padding: 2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.unit-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.unit-card i {
  font-size: 2.5rem;
  color: #3b82f6;
}

/* Sidebar - Persistent Left Panel Like Image */
.main-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  color: #111827;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px; /* Rectangular sidebar buttons */
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Footer */
footer {
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 0.5rem;
  }
  nav ul li a,
  .accordion-content a,
  .sidebar a {
    padding: 12px 20px; /* Adjust for mobile */
  }
}