@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f0f2f5;
  color: #1a1a24;
}

a { color: #0000c0; text-decoration: none; }
a:hover { color: #e10101; }

/* HEADER - premium red gradient */
.site-header {
  background: linear-gradient(135deg, #d31027 0%, #ea384d 100%);
  padding: 50px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(211, 16, 39, 0.2);
}
.main-title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.main-title a { color: #fff !important; text-decoration: none; }
.site-description {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 0;
  letter-spacing: 0.5px;
}

/* NAVIGATION - glassmorphism */
.main-navigation {
  background: rgba(5, 5, 95, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nav-inner {
  max-width: 1070px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-menu li a {
  display: block;
  color: #fff;
  padding: 0 16px;
  line-height: 52px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-menu li a i {
  margin-right: 6px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-menu li a:hover,
.nav-menu li a.active,
.dropdown:hover .dropbtn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-menu li a:hover i,
.nav-menu li a.active i,
.dropdown:hover .dropbtn i {
  opacity: 1;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(5, 5, 95, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 200px;
  box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  overflow: hidden;
}
.dropdown-content a {
  display: block;
  padding: 14px 20px;
  line-height: normal;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
}
.dropdown-content a:last-child {
  border-bottom: none;
}
.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.15);
  padding-left: 24px;
}
.dropdown:hover .dropdown-content {
  display: block;
  animation: slideDown 0.2s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu li a.current {
  background: #070763;
}
.menu-toggle {
  display: none; /* HIDDEN on desktop */
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 10px 15px;
  line-height: 47px;
}

/* DESCRIPTION BAR */
.description-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
.badge-govt {
  display: inline-block;
  background: #28a745;
  color: #fff;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 5px;
  vertical-align: middle;
}
.badge-live {
  display: inline-block;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* CONTAINER */
.grid-container {
  max-width: 1070px;
  margin: 0 auto;
  padding: 0 10px;
}

/* WHATSAPP BUTTON */
.whatsapp-btn-wrapper { text-align: center; margin: 15px 0; }
.whatsapp-btn {
  display: inline-block;
  background: linear-gradient(180deg, #25d366, #128c3e);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: all 0.3s;
}
.whatsapp-btn:hover { background: linear-gradient(180deg, #00e676, #00b248); transform: translateY(-2px); }

/* TOOLS LINK */
.tools-link { text-align: center; margin: 10px 0; font-weight: 700; }
.tools-link a { color: #261be3; }
.tools-link a:hover { color: #e10101; }

/* FEATURED GRID - 2 rows x 4 cols with colored backgrounds */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.featured-item {
  padding: 14px 10px;
  text-align: center;
  border-radius: 3px;
  transition: opacity 0.2s;
}
.featured-item:hover { opacity: 0.9; }
.featured-item a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}
/* Color classes for featured items */
.feat-red { background: #d32f2f; }
.feat-blue { background: #1565c0; }
.feat-purple { background: #7b1fa2; }
.feat-green { background: #2e7d32; }
.feat-teal { background: #00838f; }
.feat-indigo { background: #283593; }
.feat-orange { background: #e65100; }
.feat-brown { background: #4e342e; }

/* LAST UPDATED */
.last-updated {
  text-align: center;
  padding: 6px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  margin: 8px 0;
  border-radius: 4px;
}

/* SECTIONS GRID -/* 6 CONTENT SECTIONS GRID */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.section-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.section-header {
  background: linear-gradient(90deg, #05055f 0%, #151590 100%);
  color: #fff;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.5px;
}
.section-body {
  flex-grow: 1;
  padding: 10px 0;
}
.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job-item {
  border-bottom: 1px solid #f0f0f0;
}
.job-item-with-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 20px;
}
.job-item-with-date a {
  padding: 0 !important;
  flex: 1 1 auto;
}
.date-badge-small {
  background: #fef2f2;
  color: #d31027;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.job-item:last-child {
  border-bottom: none;
}
.job-item a {
  display: block;
  padding: 10px 20px;
  color: #0000c0;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.2s;
}
.job-item a:hover {
  color: #e10101;
  background: #fafafa;
  padding-left: 24px;
}
.view-more-wrapper {
  background: #fafafa;
  padding: 16px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
.view-more-btn {
  display: inline-block;
  background: #05055f;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(5, 5, 95, 0.2);
}
.view-more-btn:hover {
  background: #d31027;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(211, 16, 39, 0.3);
}

/* LOADING */
.section-loading {
  text-align: center;
  padding: 40px 10px;
  color: #999;
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #eee;
  border-top-color: #05055f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SEO TABLE */
.seo-table-section {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  text-align: center;
}
.seo-table {
  width: 75%;
  margin: 10px auto;
  border-collapse: collapse;
}
.seo-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

/* SEO CONTENT */
.seo-content {
  background: #fff;
  padding: 18px 20px;
  margin: 8px 0;
}
.seo-content h2 {
  color: #0c0a8d;
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
}
.seo-content p {
  text-align: center;
  line-height: 1.8;
  font-size: 15px;
}

/* FAQ */
.faq-section {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.faq-section h2 { color: #0c0a8d; margin-top: 0; }
.faq-item { margin-bottom: 12px; }
.faq-item .question { font-weight: bold; color: #333; margin-bottom: 4px; }
.faq-item .answer { color: #555; }

/* FOOTER */
.site-footer {
  background: #2f4468;
  color: #fff;
  padding: 30px 0;
  margin-top: 15px;
}
.footer-container {
  max-width: 1070px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-heading { color: #f7f8f9; font-size: 18px; margin-bottom: 12px; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.social-grid a {
  color: #fff !important;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}
.social-grid a:hover { background: rgba(255,255,255,0.2); }
.footer-copyright {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  color: #ccc;
}
.footer-copyright a { color: #fff !important; }
.footer-links { text-align: center; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-links a {
  color: #fff !important;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-links a:hover { 
  background: #d31027; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 16, 39, 0.3);
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  max-width: 500px;
  margin: 12px auto;
}
.search-bar input {
  flex: 1;
  padding: 8px 14px;
  border: 2px solid #05055f;
  border-right: none;
  font-size: 14px;
  outline: none;
  border-radius: 4px 0 0 4px;
}
.search-bar input:focus { border-color: #cd0808; }
.search-bar button {
  background: #05055f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s;
}
.search-bar button:hover { background: #982704; }

/* POST PAGE */
.post-container {
  max-width: 1070px;
  margin: 0 auto;
  padding: 15px 10px;
}
.post-content {
  background: #fff;
  padding: 30px;
  margin: 10px 0 30px 0;
  line-height: 1.8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.post-content h1 { 
  color: #0c0a8d; 
  font-size: 32px; 
  font-weight: 800; 
  margin-bottom: 24px;
}
.post-content h2 { 
  background: linear-gradient(90deg, #d31027 0%, #ea384d 100%);
  color: #fff; 
  font-size: 20px; 
  padding: 14px 20px;
  border-radius: 8px;
  margin: 30px 0 20px 0;
  box-shadow: 0 4px 12px rgba(211, 16, 39, 0.2);
  text-align: center;
}
.post-content h3 { 
  background: linear-gradient(90deg, #05055f 0%, #151590 100%);
  color: #fff; 
  font-size: 18px; 
  padding: 12px 20px;
  border-radius: 8px;
  margin: 24px 0 16px 0;
}

/* Stunning Interactive Lists for Category Pages */
.post-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-content ul li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-content ul li:hover {
  transform: translateX(8px);
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.post-content ul li a {
  display: flex;
  align-items: center;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  flex: 1 1 auto;
}
.post-content ul li a::before {
  content: '\f054'; /* FontAwesome chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #d31027;
  margin-right: 14px;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.post-content ul li:hover a::before {
  opacity: 1;
  transform: scale(1.2);
}
.date-badge {
  background: #fef2f2;
  color: #d31027;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(211, 16, 39, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}
.post-content th, .post-content td {
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  padding: 16px;
  text-align: left;
}
.post-content th:last-child, .post-content td:last-child {
  border-right: none;
}
.post-content tr:last-child td {
  border-bottom: none;
}
.post-content th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #1f2937;
}
.post-content tr:nth-child(even) {
  background-color: #f9fafb;
}
.post-content tr:hover td {
  background-color: #f3f4f6;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}
.post-content a { color: #261be3; }
.post-content a:hover { color: #e10101; }
.post-loading {
  text-align: center;
  padding: 80px 20px;
  color: #888;
}
.post-error {
  text-align: center;
  padding: 60px 20px;
  color: #c62828;
  background: #ffebee;
  border-radius: 8px;
  margin: 20px 0;
}
.post-breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: #666;
}
.post-breadcrumb a { color: #1b78e2; }

/* UTILITIES */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-title { font-size: 26px; letter-spacing: 1px; }
  .site-description { font-size: 15px; }
  .site-header { padding: 20px 15px; }
  
  .menu-toggle { display: block; }
  .nav-inner { justify-content: flex-end; padding: 0 10px; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #05055f;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li a { line-height: 44px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 16px; }
  
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .featured-item { padding: 16px 10px; } /* larger tap target */
  
  .seo-table { width: 100%; }
  .description-bar { font-size: 12px; padding: 10px; line-height: 1.5; }
  
  .search-bar { flex-direction: column; width: 100%; max-width: 100%; padding: 0 10px; }
  .search-bar input { border-radius: 6px; border-right: 2px solid #05055f; margin-bottom: 8px; padding: 12px 14px; }
  .search-bar button { border-radius: 6px; padding: 12px 16px; width: 100%; }
  
  .job-item a { padding: 12px 0; font-size: 15px; } /* larger tap target for jobs */
  
  /* Post optimizations for mobile */
  .post-content { padding: 16px 14px; }
  .post-content img { border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
  
  /* Make tables horizontally scrollable on mobile */
  .post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  /* Advanced Mobile Cards for Useful Links Table */
  .post-content table.useful-links-table {
    white-space: normal;
    border: none;
    background: transparent;
  }
  .post-content table.useful-links-table tbody, 
  .post-content table.useful-links-table tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .post-content table.useful-links-table tr {
    background: #fff;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    overflow: hidden;
  }
  .post-content table.useful-links-table td, 
  .post-content table.useful-links-table th {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    padding: 14px;
  }
  .post-content table.useful-links-table td:first-child,
  .post-content table.useful-links-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
  }
  .post-content table.useful-links-table td a {
    display: inline-block;
    background: #1b78e2;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(27,120,226,0.3);
  }
  .post-content table.useful-links-table td a:hover {
    background: #cd0808;
    box-shadow: 0 4px 10px rgba(205,8,8,0.3);
  }
  
  .post-content h1 { font-size: 24px; line-height: 1.3; }
  .post-content h2 { font-size: 20px; }
}

@media (max-width: 600px) {
  .sections-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .seo-table td { padding: 10px 5px; font-size: 13px; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .main-title { font-size: 20px; }
  .whatsapp-btn { width: 100%; padding: 14px 20px; font-size: 15px; }
}
