/* ================= GLOBAL BASE ================= */

* {
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #0f172a;
}

/* Inputs */
input, button {
  padding: 10px;
  margin: 8px 0;
  display: block;
  font-family: inherit;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ================= PREMIUM SIDEBAR ================= */

.sidebar,
.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 60%, #020617 100%);
  backdrop-filter: blur(8px);
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 6px 0 25px rgba(0,0,0,0.35);
  color: #e5e7eb;
}

/* Logo container */
.sidebar .logo {
  background: radial-gradient(circle at center, rgba(255,255,255,0.10), transparent);
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar img {
  max-width: 120px;
}

/* Sidebar menu */
.sidebar-menu li a,
.admin-sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: #e5e7eb;
  text-decoration: none;
}

.sidebar-menu li a:hover,
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

/* Active */
.sidebar-menu li a.active,
.admin-sidebar .active a {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124,58,237,0.4);
}

/* ================= PAGE LAYOUT ================= */

.page-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-subtitle {
  color: #64748b;
  margin-bottom: 30px;
}

/* ================= CARDS ================= */

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.stat-card:hover {
  transform: translateY(-2px);
}

/* ================= PROGRESS BAR ================= */

#progressBar {
  height: 10px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ================= TABLES ================= */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 600;
}

.admin-table tr:hover {
  background: #f1f5f9;
}

/* ================= LOADER ================= */

.loader {
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= ACHIEVEMENTS ================= */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.achievement-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* Accent bar */
.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Icon */
.achievement-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 16px;
}

/* Text */
.achievement-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.achievement-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.achievement-muted {
  opacity: 0.4;
}

/* ================= LEARNING HISTORY ================= */

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.history-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.history-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}

.history-meta {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
}

.history-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}

.history-empty {
  background: #f8fafc;
  padding: 40px;
  border-radius: 14px;
  text-align: center;
  color: #64748b;
}

/* ================= VERIFY PAGE ================= */

.verify-box {
  max-width: 520px;
  margin: 80px auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.verify-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.verify-result {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
}

.verify-success {
  background: #dcfce7;
  color: #166534;
}

.verify-fail {
  background: #fee2e2;
  color: #991b1b;
}

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

@media (max-width: 768px) {
  .page-container {
    padding: 20px;
  }

  .stats,
  .stats-grid,
  .history-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FORCE SIDEBAR LOGO SIZE FIX ===== */

.sidebar .logo img,
.sidebar img {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
  margin: 6px auto !important;
  display: block !important;
}

.sidebar .logo {
  padding: 8px !important;
}

/* ===== SIDEBAR LOGO BACKGROUND SIZE FIX ===== */

.sidebar .logo {
  width: 90px !important;
  height: 90px !important;
  margin: 12px auto 18px auto;
  border-radius: 50%;
  background-size: contain !important;   /* THIS CONTROLS SIZE */
  background-repeat: no-repeat;
  background-position: center;
}

.sidebar .logo {
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.08);
}

/* ===== FORCE LOGO SIZE OVERRIDE ===== */

#sidebar .logo {
  width: 80px !important;
  height: 80px !important;
  margin: 12px auto 18px auto !important;
  background-size: 80% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 50% !important;
}

/* ================= MY COURSES GRID ================= */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.course-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-wrap {
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  width: 0%;
  transition: width 0.6s ease;
}

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

.course-percent {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.course-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.course-btn:hover {
  background: #1d4ed8;
}

/* ================= COURSE DASHBOARD CARDS ================= */

.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.course-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Accent bar */
.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.progress-wrap {
  background: #e5e7eb;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.6s ease;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.course-percent {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.course-btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.course-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Empty State */
.empty-state {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.sidebar-logout {
  display: block;
  margin-top: 30px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.sidebar-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ================= MY COURSES DASHBOARD ================= */

.my-course-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

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

.course-header h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.course-percent {
  font-weight: 700;
  color: #2563eb;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 10px;
  transition: width 0.4s ease;
}

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

.course-status {
  font-size: 13px;
  color: #475569;
}

.course-footer button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.course-footer button:hover {
  background: #1d4ed8;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* ================= BUTTON COLOR MATCHING ================= */

.card button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Blue Card */
.gradient-blue button {
  background: rgba(255,255,255,0.95);
  color: #0b5ed7;
}

.gradient-blue button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* Purple Card */
.gradient-purple button {
  background: rgba(255,255,255,0.95);
  color: #6d28d9;
}

.gradient-purple button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* Green Card */
.gradient-green button {
  background: rgba(255,255,255,0.95);
  color: #15803d;
}

.gradient-green button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* Certificate Button (slightly stronger) */
#certificateCard button,
.certificate-btn {
  background: linear-gradient(135deg, #263eb, #1d4ed8);
  color: white;
}

#certificateCard button:hover,
.certificate-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* ================= STORE CARD ================= */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  color: #475569;
  font-size: 14px;
  min-height: 38px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin: 10px 0 12px;
}

/* ================= COUPON ================= */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.coupon-box input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.coupon-box button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg,#2563eb,#4f46e5);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.coupon-msg {
  font-size: 13px;
  min-height: 18px;
}

/* ================= BUY BUTTON ================= */
.buy-btn {
  margin-top: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.buy-btn:hover {
  background: #1d4ed8;
}

/* ================= ADMIN DASHBOARD ================= */

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

.admin-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #0f172a;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.admin-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .2s ease;
}

.admin-card:hover {
  transform: translateY(-3px);
}

.admin-card h4 {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

.admin-card span {
  font-size: 26px;
  font-weight: 700;
  color: #2563eb;
}

.admin-table {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

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

.admin-table th {
  background: #2563eb;
  color: white;
  padding: 12px;
  font-size: 14px;
  text-align: left;
}

.admin-table td {
  padding: 12px;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.admin-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge.paid {
  background: #dcfce7;
  color: #166534;
}

.admin-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-logout {
  margin-top: 20px;
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* 🔔 Notification UI */

.notification-wrapper {
  position: fixed;
  top: 16px;
  left: 20px;   /* 👈 Move to left */
  z-index: 2000;
}


.notification-bell {
  font-size: 22px;
  cursor: pointer;
  position: relative;
}

.notification-bell span {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
}

.notification-panel {
  display: none;
  margin-top: 10px;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== TOP HEADER BAR ===== */

.top-header {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.menu-btn,
.bell-btn {
  background: #2563eb;
  border: none;
  color: white;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-btn:hover,
.bell-btn:hover {
  background: #1d4ed8;
}

.header-title {
  font-weight: 600;
  color: #1e293b;
}

/* Remove old floating notification positioning */
.notification-wrapper {
  position: static !important;
}

/* ===== PROFILE AVATAR ===== */

.profile-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.caret {
  font-size: 12px;
}

.profile-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}

.profile-dropdown a {
  padding: 10px 14px;
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  display: block;
}

.profile-dropdown a:hover {
  background: #f1f5f9;
}

.profile-dropdown.show {
  display: flex;
}

/* ===== Certificate Gallery ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.certificate-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.certificate-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.certificate-card p {
  margin: 4px 0;
  font-size: 13px;
  color: #555;
}

.cert-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.cert-actions button {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* ================= STORE GRID ================= */

.store-grid {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  padding: 24px;
}

/* ================= COURSE CARD ================= */

.course-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  border: 1px solid #eef2ff;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-color: #c7d2fe;
}

/* ================= TITLE ================= */

.course-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.course-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* ================= PRICE ================= */

.course-price {
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  margin: 12px 0 10px;
}

/* ================= COUPON INPUT ================= */

.coupon-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-group input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  outline: none;
}

.coupon-group button {
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.coupon-group button:hover {
  background: #4338ca;
}

/* ================= BUY BUTTON ================= */

.buy-btn {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.buy-btn:hover {
  transform: scale(1.02);
}

/* ================= HEADER ================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.header-left span {
  margin-left: 6px;
}

.store-search {
  width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* ================= CONTAINER ================= */

.store-container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

/* ================= FILTER BAR ================= */

.filters {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  cursor: pointer;
}

/* ================= GRID ================= */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

/* ================= CARD ================= */

.course-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  border: 1px solid #eef2ff;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-color: #c7d2fe;
}

.course-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.course-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.course-price {
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  margin: 12px 0 10px;
}

/* ================= COUPON ================= */

.coupon-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-group input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
}

.coupon-group button {
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.coupon-group button:hover {
  background: #4338ca;
}

/* ================= BUY BUTTON ================= */

.buy-btn {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.buy-btn:hover {
  transform: scale(1.02);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* Header layout */
  .header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }

  .store-search {
    width: 100%;
  }

  /* Container spacing */
  .store-container {
    padding: 14px;
  }

  /* Filters center */
  .filters {
    justify-content: center;
  }

  .filters select {
    width: 100%;
    max-width: 260px;
  }

  /* Grid becomes single column */
  .store-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Card padding smaller */
  .course-card {
    padding: 18px;
  }

  .course-card h3 {
    font-size: 17px;
  }

  .course-price {
    font-size: 18px;
  }

  .buy-btn {
    font-size: 14px;
  }
}

/* Extra small phones */
@media (max-width: 420px) {

  .header {
    padding: 14px;
  }

  .header-left {
    font-size: 18px;
  }

  .store-search {
    font-size: 14px;
    padding: 7px 10px;
  }

  .course-card {
    border-radius: 14px;
  }
}

.post-card {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.explore-container {
  max-width: 700px;
  margin: 40px auto;
}

.post-card {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.post-card h3 {
  margin: 0 0 8px 0;
}

.post-card a {
  text-decoration: none;
  color: #2563eb;
}

body {
  background: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
}

.explore-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.explore-title {
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 600;
}

.post-card {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.post-card p {
  margin: 6px 0;
  color: #4b5563;
}

.post-card a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.post-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.comment {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid #eee;
}

.replies {
  margin-left: 20px;
}

.comment {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid #eee;
}

.replies {
  margin-left: 20px;
}

.reply-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  margin-top: 5px;
}

.toggle-comments {
  margin-top: 10px;
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
}

.follow-btn {
  border: 1px solid #2563eb;
  background: white;
  color: #2563eb;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.follow-btn.following {
  background: #2563eb;
  color: white;
}
