/* ================================================
   HOME PAGE PRICING SECTION
   File: public/frontend/css/home.css
   Add this to your existing home.css file
   OR save as home-pricing.css and link in head
   ================================================ */

/* ---- Section Wrapper ---- */
.home-pricing-section {
    padding: 80px 0;
    background: #f0f2f5;
}

/* ---- Cards Grid ---- */
.home-pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 20px 15px 0;
    width: 100%;
}

/* ---- Single Home Card ---- */
.hpcard {
    background: #fff;
    border-radius: 16px;
    width: calc(16.66% - 18px);
    min-width: 170px;
    max-width: 210px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.hpcard:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
    border-color: #e53935;
}

.hpcard-popular {
    border-color: #e53935;
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(229, 57, 53, 0.2);
}

.hpcard-popular:hover {
    transform: translateY(-16px);
}

/* ---- Popular Ribbon ---- */
.hpcard-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 38px;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}

/* ---- Color Bar ---- */
.hpcard-bar {
    height: 5px;
    width: 100%;
    flex-shrink: 0;
}

/* Reuse same color classes from price.css */
/* These are already defined - no need to repeat */

/* ---- Card Body ---- */
.hpcard-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hpcard-name {
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hpcard-duration {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* ---- Price ---- */
.hpcard-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}

.hpcard-rupee {
    font-size: 16px;
    font-weight: 800;
    color: #e53935;
}

.hpcard-amount {
    font-family: "Work Sans", sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    letter-spacing: -1.5px;
}

.hpcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.hpcard-permonth {
    font-size: 10px;
    font-weight: 800;
    color: #43a047;
    background: rgba(67, 160, 71, 0.1);
    padding: 2px 7px;
    border-radius: 20px;
}

.hpcard-savings {
    font-size: 10px;
    font-weight: 800;
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
    padding: 2px 7px;
    border-radius: 20px;
}

/* ---- Divider ---- */
.hpcard-divider {
    height: 1px;
    background: #f0f2f5;
    margin-bottom: 12px;
}

/* ---- Features ---- */
.hpcard-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}

.hpcard-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
    line-height: 1.3;
}

.hpcard-features li:last-child {
    border-bottom: none;
}

.hfeat-check {
    width: 16px;
    height: 16px;
    background: rgba(67, 160, 71, 0.12);
    color: #43a047;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

.hfeat-bonus {
    color: #e53935 !important;
    font-weight: 700 !important;
}

.hfeat-star {
    width: 16px;
    height: 16px;
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Button ---- */
.hpcard-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #e53935;
    color: #e53935;
    background: transparent;
    transition: all 0.3s ease;
}

.hpcard-btn:hover,
.hpcard-btn:focus {
    background: #e53935;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
    text-decoration: none;
}

.hpcard-btn-popular {
    background: #e53935;
    color: #fff;
}

.hpcard-btn-popular:hover {
    background: #c62828;
    border-color: #c62828;
}

/* ---- View All Plans text ---- */
#fh5co-pricing p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
    .hpcard {
        width: calc(25% - 18px);
    }
}

@media (max-width: 900px) {
    .hpcard {
        width: calc(33.33% - 18px);
    }
}

@media (max-width: 600px) {
    .hpcard {
        width: calc(50% - 18px);
        min-width: 150px;
    }
}

@media (max-width: 400px) {
    .hpcard {
        width: 100%;
        max-width: 100%;
    }
}
