/* ===================================================
   KOPMA - Koperasi Mahasiswa Style
   Modern, Clean, Responsive CSS
   =================================================== */

:root {
  --primary: #1e7e34;
  --primary-dark: #155724;
  --primary-light: #e8f5e9;
  --accent: #ffc107;
  --text-main: #2d3748;
  --text-muted: #718096;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.logo-badge {
  background: var(--primary);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2.5rem 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

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

.btn-accent:hover {
  background: #e0a800;
}

/* Grid & Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

/* Content Typography */
.content-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.content-box h2 {
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box ul, .content-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-box li {
  margin-bottom: 0.4rem;
}

/* Post single */
.post-single {
  background: var(--bg-card);
  padding: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.post-title {
  color: var(--primary-dark);
  font-size: 2rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.post-content {
  line-height: 1.8;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: #e5e7eb;
  padding: 2.5rem 0 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: #9ca3af;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: #d1d5db;
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #374151;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 650px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .site-nav ul {
    gap: 0.2rem;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
}
