/*
 Theme Name:   Woostify Child
 Theme URI:    https://woostify.com
 Description:  Woostify Child Theme
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     woostify
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  woostify-child
*/
p{
	text-align: justify;
}
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,20,50,0.55); z-index: 9998;
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.active { display: flex; }
.popup {
  background: #fff; border-radius: 12px; width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.25s ease; overflow: hidden;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.popup-header {
  background: #1e2d6b; color: #fff; padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.popup-header h3 { font-size: 15px; font-weight: 600; }
.btn-close {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 22px; cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
.btn-close:hover { color:#fff; background:rgba(255,255,255,0.15); }
.popup-body { padding: 22px 24px 24px; }
.form-row {
  display: grid; grid-template-columns: 130px 1fr;
  align-items: start; gap: 8px; margin-bottom: 14px;
}
.form-row label { font-size:13.5px; color:#374151; padding-top:9px; text-align:right; }
.form-row .req { color:#e53e3e; }
.form-row input, .form-row textarea {
  width:100%; padding:8px 12px; border:1px solid #d1d5db;
  border-radius:6px; font-size:13.5px; color:#1f2937; font-family:inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline:none; border-color:#3b4fa8;
  box-shadow: 0 0 0 3px rgba(59,79,168,0.12);
}
.form-row textarea { resize:vertical; min-height:100px; }
.captcha-row {
  display:grid; grid-template-columns:130px 1fr;
  align-items:center; gap:8px; margin-bottom:14px;
}
.captcha-row label { font-size:13.5px; color:#374151; text-align:right; }
.captcha-inline { display:flex; align-items:center; gap:12px; }
.captcha-inline input {
  width:90px; padding:8px 12px; border:1px solid #d1d5db;
  border-radius:6px; font-size:13.5px; font-family:inherit;
}
.captcha-code {
  font-size:18px; font-weight:700; color:#1e2d6b; letter-spacing:4px;
  background:#eef1fb; padding:6px 14px; border-radius:6px;
  cursor:pointer; user-select:none;
}
.captcha-hint { font-size:11px; color:#9ca3af; margin-top:2px; }
.btn-submit {
  width:100%; padding:13px; background:#1e2d6b; color:#fff;
  border:none; border-radius:7px; font-size:14px; font-weight:700;
  cursor:pointer; margin-top:6px; transition:background 0.2s;
}
.btn-submit:hover { background:#162055; }
.btn-submit:disabled { background:#9ca3af; cursor:not-allowed; }
.err-msg { font-size:11.5px; color:#dc2626; margin-top:4px; display:none; }
.toast {
  display:none; position:fixed; bottom:28px; right:28px; z-index:9999;
  padding:14px 20px; border-radius:8px; font-size:14px;
  font-weight:500; color:#fff; box-shadow:0 4px 20px rgba(0,0,0,0.15);
  max-width:340px;
}
.toast.success { background:#16a34a; }
.toast.error   { background:#dc2626; }
.toast.active  { display:block; }
#scroll-to-top.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(0);
    border-radius: 20px;
	right: 32px;
}
.custom-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px auto;
  max-width: 1200px;
  align-items: stretch;
}

.category-card {
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Border bottom slide trái → phải */
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #1652a6;
  transition: width 0.4s ease;
  border-radius: 0 0 12px 12px;
}
.category-card:hover::after {
  width: 100%;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-text {
  padding: 28px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F2444;
  margin-bottom: 12px;
  line-height: 1.3;
}

.category-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.arrow-link {
  color: #00A651;
  font-size: 22px;
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
  transition: transform 0.3s ease;
}
.category-card:hover .arrow-link {
  transform: translateX(6px);
}

/* Vùng ảnh */
.card-image-wrap {
  padding: 0 10px;
  flex-shrink: 0;
}

.category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: border-radius 0.35s ease;
}
.category-card:hover .category-image {
  border-radius: 14px 14px 0 0;
}

/* Badge số */
.card-number {
  position: absolute;
  bottom: 22px;
  left: 28px;
  background: transparent;
  color: #00A651;
  border: 2px solid #00A651;
  font-size: 14px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 2;
}
.category-card:hover .card-number {
  background: #00A651;
  color: white;
}

@media (max-width: 900px) {
  .custom-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .custom-category-grid { grid-template-columns: 1fr; }
}