/* Certificates page styles aligned with site theme */

:root {
  --brand: #8b5e3c;
  --brand-strong: #a46c48;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

/* Header layout: match index */
.floating-header { backdrop-filter: blur(6px); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; /* match index */
  align-items: center;
  justify-content: space-between; /* match index */
  gap: 30px; /* match index */
}

.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links .menu-button { background: none; border: none; border-radius: 0; padding: 0; cursor: pointer; }
.nav-links a.active { color: var(--brand-strong); }

/* Main section */
.certificates-section {
  max-width: 1100px;
  margin: 170px auto 40px; /* space under fixed floating header */
  padding: 0 20px 20px;
}

.section-title {
  text-align: center;
  color: var(--brand);
  margin-bottom: 32px;
  font-family: 'Playfair Display', serif;
}

/* Grid and cards */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.certificate-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certificate-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.certificate-title { font-family: 'Playfair Display', serif; color: var(--brand); text-align: center; margin: 0; }
.certificate-price { font-size: 1.8rem; color: var(--brand-strong); font-weight: 700; text-align: center; }
.certificate-description { color: #374151; line-height: 1.6; }

.certificate-features { list-style: none; padding: 0; margin: 8px 0 0; }
.certificate-features li { padding: 6px 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; }
.certificate-features li::before { content: "✓"; color: #27ae60; margin-right: 10px; font-weight: 700; }

.btn-buy-certificate { 
  display: inline-block; 
  background: var(--brand); 
  color: #fff; 
  padding: 12px 16px; 
  border-radius: 10px; 
  text-decoration: none; 
  font-weight: 600; 
  border: none; 
  cursor: pointer; 
  text-align: center; 
  margin-top: auto; 
}
.btn-buy-certificate:hover { background: var(--brand-strong); }

/* Hover animation */
.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.certificate-card:hover .certificate-image {
  transform: scale(1.04);
}

/* Footer layout tune */
.footer .footer-content { max-width: 1100px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: left; }
.footer .footer-section h3 { color: var(--brand); margin-bottom: 8px; }
.footer .social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer .social-icon { color: var(--brand); text-decoration: none; }

@media (max-width: 768px) {
  .certificates-section { margin-top: 150px; padding: 0 16px 16px; }
}

/* === Site-wide visual consistency with the main page === */
.floating-header .header-inner {
  max-width: none !important;
  padding: 0 !important;
}

.floating-header .search-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(106, 75, 60, 0.25);
  background: transparent;
  color: #6a4b3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-header .search-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.certificate-card,
.certificates-section > div[style] {
  border: 1px solid rgba(242, 140, 61, 0.12);
  border-radius: 24px !important;
  box-shadow: 0 18px 45px rgba(42, 24, 18, 0.08);
}

.btn-buy-certificate,
.btn-buy-certificate[style] {
  background: #f28c3d !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(242, 140, 61, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-buy-certificate:hover {
  background: #cc6c20 !important;
  transform: translateY(-2px);
}
