/* Modern Design System - SertifikatKursusOnline */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #007B83;
  /* Teal / Deep Cyan */
  --primary-hover: #00666d;
  --secondary: #1F2E3D;
  /* Dark Slate Blue */

  /* Accents */
  --accent-gold: #F3EFE0;
  --accent-orange: #FF8FAB;
  --accent-green: #4CAF50;
  --accent-yellow: #FFD700;

  /* Neutrals */
  --bg-body: #F9FAFB;
  --bg-white: #FFFFFF;
  --text-heading: #111827;
  --text-body: #4B5563;
  --text-light: #9CA3AF;
  --border-light: #F3F4F6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  /* Special soft shadow for cards */

  --radius-pill: 50px;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 600;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* Utilities */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--text-light) !important;
}

.bg-white {
  background-color: var(--bg-white);
}

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

/* Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 123, 131, 0.3);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-white-custom {
  background-color: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white-custom:hover {
  background-color: #f8fafc;
}

/* Header */
.site-header {
  background: var(--bg-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link-custom {
  color: var(--text-heading);
  font-weight: 500;
  font-size: 15px;
}

.nav-link-custom:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(243, 239, 224, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-heading);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar-wrapper {
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.search-input {
  border: none;
  flex: 1;
  padding: 0 24px;
  font-size: 16px;
  outline: none;
  border-radius: var(--radius-pill);
  color: var(--text-heading);
}

.hero-illustration {
  margin-top: 60px;
  position: relative;
}

/* Cards */
.card-custom {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.card-thumb {
  height: 200px;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body-custom {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge-cat {
  background: var(--accent-gold);
  color: #8D7B4B;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-heading {
  color: #fff;
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-link {
  color: #9CA3AF;
  display: block;
  margin-bottom: 12px;
}

.footer-link:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .header-inner {
    flex-direction: row;
  }

  /* Keep row but maybe mobile menu later */
  .main-nav {
    display: none;
  }

  /* TODO: Mobile Menu */
  .section-padding {
    padding: 40px 0;
  }
}

/* Flash Messages */
.flashes {
  margin-top: 20px;
  margin-bottom: 20px;
}

.flash {
  padding: 15px;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
}

.flash.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Auth / Dashboard General */
.form-control {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
}

/* Admin Panel Styles */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.admin-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin-bottom: 32px;
}

.admin-card h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.admin-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 18px 24px;
  background-color: #F9FAFB;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.admin-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.95rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* Form Styles Override for Admin */
.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.form-row input,
.form-row select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 131, 0.1);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: #F9FAFB;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  align-items: end;
}

/* Status Badges */
.badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-status.paid,
.badge-status.active {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-status.failed {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-status.draft {
  color: #4b5563;
}

/* No Photo Placeholder */
.no-photo-placeholder {
  width: 100px;
  height: 133px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
}

.no-photo-text {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}