﻿/*
Theme Name: Government Services Portal
Theme URI: https://example.com
Description: A comprehensive WordPress theme for government services, official profiles, resource hub, and contact directories
Version: 1.0.0
Author: Government Portal Team
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gov-portal
Domain Path: /languages
*/

:root {
  --primary-color: #003d82;
  --secondary-color: #0066cc;
  --accent-color: #ff6b35;
  --page-bg: #ffffff;
  --light-bg: #f5f5f5;
  --border-color: #ddd;
  --text-dark: #333;
  --text-light: #666;
}

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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

body {
  background-color: var(--page-bg);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 28px;
}

header p {
  margin: 5px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.primary-nav {
  background-color: var(--secondary-color);
  border-radius: 5px;
  padding: 0;
}

.primary-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  flex: 0 0 auto;
}

.primary-menu > li > a {
  display: block;
  color: #fff;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
}

.primary-menu > li > a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li.current-menu-ancestor > a {
  background-color: var(--accent-color);
}

.secondary-nav {
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.secondary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.secondary-nav li {
  flex: 0 0 auto;
}

.secondary-nav a {
  color: var(--primary-color);
  display: block;
  padding: 12px 15px;
}

.secondary-nav a:hover {
  color: var(--secondary-color);
}

main {
  margin: 40px 0;
  min-height: calc(100vh - 300px);
}

.sidebar {
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.sidebar h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.sidebar ul li a {
  display: block;
  padding: 8px 0;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.four-columns {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.profile-card {
  padding: 0;
  gap: clamp(20px, 3vw, 32px);
}

.profile-card-body {
  padding: clamp(20px, 3vw, 32px);
}

.profile-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.profile-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.profile-department {
  font-size: 13px;
  background-color: var(--light-bg);
  padding: 5px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 15px;
}

.service-item {
  background-color: #fff;
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 0 5px 5px 0;
}

.service-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 10px;
}

.resource-item {
  background-color: var(--light-bg);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
}

.resource-item h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.resource-item a {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 13px;
}

.contact-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  border-top: 3px solid var(--primary-color);
}

.contact-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.search-bar {
  margin-bottom: 30px;
}

.search-bar form {
  display: flex;
  gap: 10px;
}

.search-bar input[type="text"],
.search-bar input[type="search"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 14px;
}

.search-bar button {
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

footer ul {
  list-style: none;
  font-size: 14px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu li a {
  color: #fff;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: #fff;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  .site-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-menu {
    flex-direction: column;
    width: 100%;
  }

  .primary-menu > li {
    width: 100%;
  }

  .primary-menu > li > a {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .primary-menu > li:first-child > a {
    border-top: none;
  }

  .secondary-nav ul {
    flex-direction: column;
  }

  .secondary-nav a {
    padding: 10px 0;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .search-bar form {
    flex-direction: column;
  }
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background-color: var(--primary-color);
  color: #fff;
}

/* =====================================================
   SOCIAL SHARING & PRINT BUTTONS
   ===================================================== */

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0;
}

.share-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-dark);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.share-facebook:hover { background: #1877f2; }
.share-twitter:hover { background: #000; }
.share-whatsapp:hover { background: #25d366; }
.share-email:hover { background: #ea4335; }
.share-linkedin:hover { background: #0a66c2; }
.share-print:hover { background: #666; }

/* =====================================================
   FILTERING INTERFACE
   ===================================================== */

.filter-form-wrapper {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-form-group input,
.filter-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.filter-form-group input:focus,
.filter-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.filter-button-group {
    display: flex;
    gap: 10px;
}

.filter-button-group .btn {
    flex: 1;
}

.filter-results {
    margin-top: 30px;
}

.filter-results .loading,
.filter-results .error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

.filter-results .error {
    color: #d32f2f;
    background: #ffebee;
    border-radius: 4px;
}

/* =====================================================
   SERVICE BADGES
   ===================================================== */

.service-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 5px 5px 5px 0;
}

.service-job {
    background: #e3f2fd;
    color: #1976d2;
}

.service-tender {
    background: #f3e5f5;
    color: #7b1fa2;
}

.service-prequalification {
    background: #fce4ec;
    color: #c2185b;
}

.service-bursary {
    background: #e0f2f1;
    color: #00796b;
}

.service-participation {
    background: #fff3e0;
    color: #e65100;
}

/* =====================================================
   SHORTCODES & CARDS
   ===================================================== */

.shortcode-services {
    margin: 20px 0;
}

.service-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.service-header h3 {
    margin: 0;
    color: var(--primary-color);
    flex: 1;
}

.service-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-deadline {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.featured-services-grid {
    margin: 30px 0;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    max-width: 350px;
    margin: 20px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.contact-image {
    margin-bottom: 15px;
}

.contact-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.contact-name {
    margin: 10px 0 5px;
    color: var(--primary-color);
    font-size: 18px;
}

.contact-dept {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.contact-details p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.contact-details strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 3px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.btn:hover {
    background: var(--secondary-color);
}

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

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

.btn-secondary {
    background: var(--secondary-color);
}

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

.btn-accent {
    background: var(--accent-color);
}

.btn-accent:hover {
    background: darken(var(--accent-color), 10%);
}

/* =====================================================
   BADGE STYLES
   ===================================================== */

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-secondary {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-accent {
    background: #ffe0b2;
    color: #e65100;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
    .filter-form-group {
        grid-template-columns: 1fr;
    }

    .filter-button-group {
        flex-direction: column;
    }

    .service-header {
        flex-direction: column;
    }

    .service-header .badge {
        align-self: flex-start;
    }

    .social-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .contact-card {
        max-width: 100%;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .grid.two-columns {
        grid-template-columns: 1fr !important;
    }

    .grid.three-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.four-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .filter-form-wrapper {
        padding: 15px;
    }

    .service-item {
        padding: 15px;
    }

    .contact-image img {
        width: 120px;
        height: 120px;
    }

    .btn {
        display: block;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    .grid.three-columns {
        grid-template-columns: 1fr !important;
    }

    .grid.four-columns {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   EVERNOTE-STYLE RESOURCE HUB
   ===================================================== */

.resource-archive {
    background-color: var(--light-bg);
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--accent-color);
    min-height: 100vh;
}

/* Hero Section */
.site-hero,
.resource-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: clamp(70px, 11vw, 140px) 0 clamp(70px, 9vw, 120px);
    margin-bottom: clamp(80px, 10vw, 140px);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-hero + .container,
.site-hero + .grid,
.site-hero + section,
.site-hero + .page-section,
.resource-hero + .container,
.resource-hero + .grid,
.resource-hero + section,
.resource-hero + .page-section {
    margin-top: clamp(50px, 7vw, 96px);
}

.hero-align-left {
    text-align: left;
}

.hero-align-left .hero-content {
    align-items: flex-start;
    text-align: left;
}

.hero-align-left h1,
.hero-align-left p {
    text-align: left;
}

.site-hero h1,
.resource-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.site-hero p,
.resource-hero p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
}

.page-section {
    padding: clamp(60px, 9vw, 120px) 0;
}

.page-section--surface {
    background: color-mix(in srgb, var(--light-bg) 70%, #ffffff 30%);
}

.section-inner {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 24px);
}

.cards-grid {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
}

.cards-grid--profile {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-grid--news {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid--service {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid--dev {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.section-card {
    background: var(--page-bg);
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
    box-shadow: 0 30px 60px -40px rgba(0, 40, 90, 0.4);
    padding: clamp(24px, 3vw, 36px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -50px rgba(0, 40, 90, 0.5);
}

.section-card .button {
    align-self: flex-start;
}

.section-card-media {
    overflow: hidden;
    border-radius: 16px;
}

.section-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: color-mix(in srgb, var(--secondary-color) 12%, #ffffff 88%);
    color: var(--secondary-color);
}

.section-tag--accent {
    background: color-mix(in srgb, var(--accent-color) 18%, #ffffff 82%);
    color: var(--accent-color);
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.section-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.section-pagination .page-numbers.current,
.section-pagination .page-numbers:hover {
    background: var(--secondary-color);
    color: #fff;
}

.section-empty {
    text-align: center;
    padding: clamp(40px, 6vw, 80px);
    border-radius: 20px;
    background: color-mix(in srgb, var(--light-bg) 80%, #ffffff 20%);
    border: 1px dashed color-mix(in srgb, var(--secondary-color) 35%, transparent);
    font-size: 18px;
}

.section-intro {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 20px);
    max-width: 720px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--primary-color) 75%, #000 25%);
}

.section-heading {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--primary-color);
}

.section-summary {
    font-size: 16px;
    color: var(--text-light);
}

.section-inner--split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.section-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
}

.section-sidebar .section-card {
    box-shadow: 0 24px 50px -40px rgba(0, 40, 90, 0.4);
}

.home-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.home-hero__secondary {
    align-self: stretch;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 28px);
}

.home-hero__support {
    font-size: 16px;
    color: color-mix(in srgb, var(--text-dark) 70%, #000 30%);
}

.home-hero__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(16px, 3vw, 28px);
}

.home-hero__metric {
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px);
    background: color-mix(in srgb, var(--secondary-color) 18%, #ffffff 82%);
    border: 1px solid color-mix(in srgb, var(--secondary-color) 25%, transparent);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 40px 80px -50px rgba(0, 40, 90, 0.5);
}

.home-hero__metric-value {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: var(--primary-color);
}

.home-hero__metric-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--secondary-color) 60%, #000 40%);
}

.home-hero__links {
    gap: 12px;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.home-hero__link::after {
    content: "→";
    font-size: 16px;
}

.home-hero__link:hover {
    color: var(--accent-color);
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(20px, 4vw, 40px);
}

.home-link-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 90px -60px rgba(0, 40, 90, 0.55);
}

.home-link-icon {
    font-size: 28px;
}

.home-link-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.home-link-description {
    font-size: 14px;
    color: var(--text-light);
}

.home-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.home-link-inline::after {
    content: "→";
    font-size: 16px;
}

.home-link-inline:hover {
    color: var(--accent-color);
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 4vw, 36px);
}

.dev-card__donor {
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--accent-color) 55%, #000 45%);
}

.newsletter-card {
    gap: clamp(16px, 3vw, 28px);
}

.newsletter-card__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.newsletter-card__form input {
    flex: 1 1 240px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    background: #fff;
    font-size: 15px;
}

.newsletter-card__form button {
    flex: 0 0 auto;
}

.trust-card {
    gap: clamp(16px, 3vw, 28px);
}

.trust-card__grid {
    display: grid;
    gap: clamp(20px, 3vw, 30px);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.trust-card__item {
    background: color-mix(in srgb, var(--light-bg) 70%, #ffffff 30%);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-card__icon {
    font-size: 26px;
}

.story-card {
    height: 100%;
}

.home-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.home-sidebar-links li {
    margin: 0;
}

.home-sidebar-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.home-sidebar-links a:hover {
    color: var(--accent-color);
}

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

    .home-hero__secondary {
        order: -1;
    }
}

@media (max-width: 768px) {
    .section-inner--split {
        grid-template-columns: 1fr;
    }

    .newsletter-card__form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-card__form button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .home-hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-card {
  padding: 0;
  gap: clamp(20px, 3vw, 32px);
  text-align: left;
}

.profile-card-body {
  padding: clamp(20px, 3vw, 32px);
}

.profile-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 28px);
}

.profile-contact {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.profile-contact a {
    color: var(--secondary-color);
}

.profile-contact a:hover {
    color: var(--accent-color);
}

.news-card {
    position: relative;
}

.news-card .news-title {
    font-size: clamp(20px, 3vw, 26px);
    margin: 0;
}

.news-card .news-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-card .news-title a:hover {
    color: var(--accent-color);
}

.news-card .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.news-card .section-card-media {
    margin: -clamp(24px, 3vw, 36px) -clamp(24px, 3vw, 36px) 0;
}

.news-card .section-card-media img {
    height: 220px;
}

.news-card .section-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.section-card-footer .button {
    margin-left: auto;
}

.section-card-footer .button.secondary {
    background: color-mix(in srgb, var(--secondary-color) 15%, #ffffff 85%);
    color: var(--secondary-color);
}

.section-card-footer .button.secondary:hover {
    background: var(--secondary-color);
    color: #fff;
}

.section-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.section-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.section-pagination .page-numbers.current,
.section-pagination .page-numbers:hover {
    background: var(--secondary-color);
    color: #fff;
}

.section-empty {
    text-align: center;
    padding: clamp(40px, 6vw, 80px);
    border-radius: 20px;
    background: color-mix(in srgb, var(--light-bg) 80%, #ffffff 20%);
    border: 1px dashed color-mix(in srgb, var(--secondary-color) 35%, transparent);
    font-size: 18px;
}

.section-empty strong {
    color: var(--primary-color);
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-card {
    position: relative;
}

.service-card .service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.service-card .service-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.service-card .service-deadline {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.service-card .section-actions .button.secondary {
    background: color-mix(in srgb, var(--accent-color) 15%, #ffffff 85%);
    color: var(--accent-color);
}

.service-card .section-actions .button.secondary:hover {
    background: var(--accent-color);
    color: #fff;
}

.dev-card {
    position: relative;
}

.dev-card .dev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dev-card .dev-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.status-ongoing {
    background: #d4edda;
    color: #155724;
}

.badge.status-completed {
    background: #e2e3e5;
    color: #383d41;
}

.badge.status-planning {
    background: #cfe2ff;
    color: #084298;
}

.badge.badge-department {
    background: color-mix(in srgb, var(--secondary-color) 15%, #ffffff 85%);
    color: var(--secondary-color);
}

.sidebar-card {
    background: var(--page-bg);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
    box-shadow: 0 24px 50px -40px rgba(0, 40, 90, 0.4);
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-card h3 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-color);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sidebar-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.sidebar-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-card a:hover {
    color: var(--accent-color);
}

.search-results-info {
    background: color-mix(in srgb, var(--secondary-color) 12%, #ffffff 88%);
    border-left: 4px solid var(--secondary-color);
    border-radius: 12px;
    padding: 18px 20px;
    color: var(--text-dark);
}

.section-footer-note {
    font-size: 14px;
    color: var(--text-light);
}

.section-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.section-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.section-pagination .page-numbers.current,
.section-pagination .page-numbers:hover {
    background: var(--secondary-color);
    color: #fff;
}

.section-empty {
    text-align: center;
    padding: clamp(40px, 6vw, 80px);
    border-radius: 20px;
    background: color-mix(in srgb, var(--light-bg) 80%, #ffffff 20%);
    border: 1px dashed color-mix(in srgb, var(--secondary-color) 35%, transparent);
    font-size: 18px;
}

.section-empty strong {
    color: var(--primary-color);
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    width: 100%;
    max-width: 600px;
}

.hero-actions form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-actions input[type="search"],
.hero-actions input[type="text"],
.hero-actions input[type="email"],
.hero-actions select {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.hero-actions button,
.hero-actions .button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--accent-color);
    color: #fff;
    transition: background-color 0.3s ease;
}

.hero-actions button:hover,
.hero-actions .button:hover {
    background-color: var(--primary-color);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero-align-left .hero-badges {
    justify-content: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-align-left .hero-meta {
    justify-content: flex-start;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.15);
}

.hero-meta-label {
    font-weight: 600;
}

.resource-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--page-bg);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Main Layout */
.resource-container {
    margin-bottom: 60px;
}

.resource-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.resource-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: var(--page-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.resource-type-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-type-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.resource-type-link:hover {
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-left-color: var(--secondary-color);
}

.resource-type-link.active {
    background-color: color-mix(in srgb, var(--primary-color) 12%, var(--page-bg));
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.type-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.type-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    background-color: color-mix(in srgb, var(--light-bg) 60%, var(--page-bg));
    padding: 2px 6px;
    border-radius: 4px;
}

/* Stats Section */
.stats-section .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--page-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Main Content */
.resource-main {
    background: var(--page-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.resource-count {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.resource-card {
    background: var(--page-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.resource-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--secondary-color) 20%, transparent);
    transform: translateY(-4px);
}

.resource-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.resource-icon {
    font-size: 28px;
}

.resource-type-badge {
    font-size: 11px;
    font-weight: 700;
    background-color: color-mix(in srgb, var(--primary-color) 14%, var(--page-bg));
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.resource-card-body {
    padding: 16px;
    flex: 1;
}

.resource-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.resource-title a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.resource-title a:hover {
    color: var(--secondary-color);
}

.resource-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.file-size {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.resource-card-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.btn-download,
.btn-view {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--page-bg);
}

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

.btn-view {
    background-color: color-mix(in srgb, var(--text-light) 20%, var(--page-bg));
    color: var(--text-dark);
}

.btn-view:hover {
    background-color: color-mix(in srgb, var(--text-light) 35%, var(--page-bg));
}

.icon {
    font-size: 14px;
}

/* Pagination */
.resource-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.resource-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.resource-pagination a,
.resource-pagination span {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.resource-pagination a:hover {
    background-color: var(--primary-color);
    color: var(--page-bg);
    border-color: var(--primary-color);
}

.resource-pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--page-bg);
    border-color: var(--primary-color);
}

/* Empty State */
.no-resources {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.empty-state {
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--page-bg);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resource-layout {
        grid-template-columns: 1fr;
    }
    
    .resource-sidebar {
        position: static;
    }
    
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-hero,
    .resource-hero {
        padding: 50px 0;
        margin-bottom: 60px;
    }
    
    .site-hero h1,
    .resource-hero h1 {
        font-size: 32px;
    }
    
    .site-hero + .container,
    .site-hero + .grid,
    .site-hero + section,
    .site-hero + .page-section,
    .resource-hero + .container,
    .resource-hero + .grid,
    .resource-hero + section,
    .resource-hero + .page-section {
        margin-top: 40px;
    }
    
    .site-hero p,
    .resource-hero p {
        font-size: 16px;
    }
    
    .hero-actions form {
        flex-direction: column;
    }
    
    .hero-actions button,
    .hero-actions .button {
        width: 100%;
    }
    
    .resource-main {
        padding: 20px;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .site-hero h1,
    .resource-hero h1 {
        font-size: 24px;
    }
    
    .site-hero p,
    .resource-hero p {
        font-size: 14px;
    }
    
    .resource-sidebar {
        grid-template-columns: 1fr;
    }
    
    .resource-card-footer {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-view {
        width: 100%;
    }
}
