:root {
  --primary: #002e5b;
  --primary-dark: #001f3f;
  --secondary: #ffb400;
  --accent: #d90429;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --white: #ffffff;

  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Government Branding */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: #f1f5f9;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}

.top-bar p {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.top-bar span {
  color: var(--primary);
  font-size: 11px;
}

.header-main {
  padding: 30px 5%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  height: 90px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.header-title h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.header-title h2 {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navigation */
nav {
  background: var(--primary);
  padding: 0 5%;
  box-shadow: 0 4px 20px rgba(0, 46, 91, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  padding: 18px 25px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

nav ul li:hover,
nav ul li.active {
  color: var(--white);
  background: var(--primary-dark);
}

nav ul li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  display: none;
  flex-direction: column;
  z-index: 1000;
  max-height: 450px;
  overflow-y: auto;
}

.dropdown.show {
  display: flex;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown li {
  padding: 12px 20px !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.dropdown li:hover {
  background: #f1f5f9 !important;
  color: var(--primary) !important;
}

/* Main Content Area */
main {
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
}

.latest-news {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

.latest-news-header {
  grid-column: 1 / -1;
  background: var(--primary);
  color: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius);
  margin-bottom: -30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-md);
}

.latest-news-header::before {
  content: '🔔';
  font-size: 20px;
}

.news-container {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 60px 40px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
}

/* Tabs */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab {
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab:hover,
.tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateX(8px);
}

/* Results List */
.results h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.results h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.results ul {
  display: grid;
  gap: 15px;
  list-style: none;
}

.results ul li {
  padding: 22px 25px 22px 65px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  color: #2563eb;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.results ul li::before {
  content: '🎓';
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  filter: grayscale(1);
  transition: var(--transition);
}

.results ul li:hover {
  border-color: var(--secondary);
  background: #fffdf5;
  box-shadow: var(--shadow-md);
  color: var(--accent);
  transform: translateY(-2px);
}

.results ul li:hover::before {
  filter: grayscale(0);
}

@media (max-width: 1024px) {
  .news-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .header-title h1 {
    font-size: 22px;
  }

  nav {
    flex-direction: column;
  }

  nav ul li {
    padding: 12px 15px;
    font-size: 13px;
  }
}