:root {
  --primary-blue: #2c4a8a;
  --secondary-orange: #ff7f27;
  --text-dark: #333;
  --text-muted: #666;
  --bg-light: #f4f7f6;
  --white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Fix for existing bloated PMC styles */
#page-wrapper, .navbar-fixed-top {
  position: static !important;
}

/* TOP BAR */
.top-bar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .gov-text {
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
}

.top-bar .utility-links {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar .utility-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar .utility-links a:hover {
  color: var(--secondary-orange);
}

.admin-login-btn {
  background-color: var(--secondary-orange);
  color: var(--white) !important;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: bold;
}

/* MAIN HEADER */
.main-header {
  padding: 15px 0;
  background-color: var(--white);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-titles h1 {
  font-size: 24px;
  margin: 0;
  color: var(--primary-blue);
  font-weight: 700;
}

.header-titles p {
  margin: 0;
  font-size: 16px;
  color: #444;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-right img {
  height: 60px;
}

/* NAVIGATION */
.nav-bar {
  background-color: var(--primary-blue);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar .container {
  display: flex;
  align-items: stretch;
}

.home-btn {
  background-color: var(--secondary-orange);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--white);
  padding: 15px 20px;
  display: block;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* BANNER */
.banner-wrapper {
  margin-top: 0;
  width: 100%;
}

.flexslider .slides img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* INTRO SECTION */
.intro-section {
  padding: 50px 0;
  background-color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.intro-content h2 {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--secondary-orange);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.officials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.official-card {
  text-align: center;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.official-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
}

.official-card h4 {
  font-size: 14px;
  margin: 5px 0;
  color: var(--primary-blue);
}

.official-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* E-GOVERNANCE SECTION */
.egovernance-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.egovernance-section h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.egov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.egov-card {
  background: var(--white);
  padding: 25px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.egov-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: var(--secondary-orange);
}

.egov-card i {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  transition: color 0.3s;
}

.egov-card:hover i {
  color: var(--secondary-orange);
}

.egov-card span {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

/* INFO SECTION GRID */
.info-grid-section {
  padding: 50px 0;
  background-color: var(--white);
}

.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-block-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-block-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 18px;
}

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

.info-list li {
  padding: 15px 20px;
  border-bottom: 1px solid #efefef;
  transition: background 0.3s;
}

.info-list li:hover {
  background-color: #f9f9f9;
}

.info-list a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.info-list a:hover {
  color: var(--secondary-orange);
}

.info-list p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* EXTERNAL LINKS BOXES */
.external-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.ext-link-card {
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s;
}

.ext-link-card:hover {
  transform: scale(1.02);
  background: #345bb0;
}

.ext-link-card h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

/* FOOTER */
footer {
  background: #222;
  color: #bbb;
  padding: 40px 0;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .header-right {
    display: none;
  }
  .nav-bar .container {
    padding: 0;
  }
  .nav-links {
    display: none;
  }
  .info-blocks {
    grid-template-columns: 1fr;
  }
}
