/*
Theme Name: Distrik Web - Kabupaten Keerom
Theme URI: https://keeromkab.go.id/
Author: Pemerintah Kabupaten Keerom - Distrik Web
Author URI: https://keeromkab.go.id/
Description: Tema WordPress Resmi Distrik Web, Kabupaten Keerom, Papua. Mengacu pada standar portal Keerom Kab & Smart City.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: distrik-web-keerom
Tags: official, government, keerom, papua, responsive-layout, custom-menu
*/

/* CSS Reset & Base Styling */
:root {
  --primary-color: #0d5c3a;
  --primary-hover: #083e27;
  --secondary-color: #d4a017;
  --dark-bg: #1e293b;
  --light-bg: #f8fafc;
  --text-color: #334155;
  --heading-color: #0f172a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--primary-color);
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.85rem;
}

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

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

.site-branding img {
  height: 55px;
  width: auto;
}

.site-branding .site-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  text-transform: uppercase;
}

.site-branding .site-description {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Main Navigation Menu */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
  background-color: rgba(13, 92, 58, 0.08);
  color: var(--primary-color);
  text-decoration: none;
}

/* Dropdown Submenu */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 999;
}

.main-navigation ul li:hover > ul {
  display: block;
}

.main-navigation ul ul a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #083e27 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.hero-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-banner p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.motto-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: #000;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Common */
.section-padding {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Map Section */
#map {
  height: 450px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-body {
  padding: 20px;
}

.news-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: #cbd5e1;
  padding: 50px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Lapor Form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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