/*
Theme Name: Panda Design for MasterDeal
Theme URI: https://masterdeal.net
Description: Panda Design for MasterDeal
Author: Tina Flake / Panda Design
Template: customify
Version: 1.2
Text Domain: panda-design-masterdeal
*/

/* ==== Global Hero Banner Styling ==== */
.hero-banner {
    background: linear-gradient(135deg, #ffecd2 0%, #b6e3f7 100%);
    color:#00334d;
    text-align:center;
    padding:80px 20px;
}

.hero-banner h1 {
    font-size:36px;
    margin-bottom:10px;
}

.hero-banner p {
    font-size:18px;
    max-width:800px;
    margin:0 auto;
    line-height:1.55;
}

/* Responsive */
@media(max-width: 600px){
  .hero-banner h1 {
     font-size:30px;
  }
}

/***************************************
 MASTERDEAL — GLOBAL CATEGORY GRID FIX
***************************************/

/* Единство сетки */
.categories-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 60px auto !important;
    text-align: center;
}

/* Карточки — строгие по высоте */
.category-card {
    background: #fff;
    flex: 1 1 300px;
    max-width: 330px;
    padding: 40px 22px;
    border-radius: 22px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Контент всегда сверху */
.category-card .card-content {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовки — ровный нижний отступ */
.category-card h3 {
    margin-bottom: 18px !important;
}

/* Текст — одинаковая высота блока */
.category-card p {
    margin-bottom: 22px !important;
}

/* CTA всегда у нижней границы */
.category-card a {
    margin-top: auto !important;
    background: #003366 !important;
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
}

/* Hover эффект — мягкий, премиум */
.category-card:hover {
    transform: translateY(-4px);
    transition: 0.25s ease-out;
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}

/* Tablet & mobile */
@media(max-width: 900px){
  .categories-grid {
    gap: 30px !important;
  }
}
@media(max-width: 600px){
  .category-card {
    max-width: 100% !important;
    min-height: 380px;
  }
}

/* Убираем лишние абзацы, создаваемые Gutenberg вокруг карточек */
.categories-grid > p {
    display: none !important;
}

/* Равномерный вертикальный ритм */
.category-card {
    margin: 0 !important;
}
