/* ─── Plan Page ──────────────────────────────────────────────────── */

.plan-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.plan-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.plan-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Title ─────────────────────────────────────────────────── */
.plan-page-title {
    text-align: center;
    padding: 28px 0 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Plan Card (horizontal) ─────────────────────────────────────── */
.plan-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.32);
    color: inherit;
    text-decoration: none;
}

/* ─── Card Image ─────────────────────────────────────────────────── */
.plan-card__img {
    width: 130px;
    min-height: 140px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plan-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    display: block;
    transition: transform .3s ease;
}

.plan-card:hover .plan-card__img img {
    transform: scale(1.04);
}

/* ─── Card Body ──────────────────────────────────────────────────── */
.plan-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.plan-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.plan-card__desc {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plan-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-card__cat {
    font-size: .72rem;
    color: #f0c040;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Latest Badge Blink ─────────────────────────────────────────── */
.badge-latest {
    background: #d62828;
    color: #fff;
    font-size: .62rem;
    padding: 1px 7px;
    border-radius: 20px;
    vertical-align: middle;
    animation: plan-blink 1.2s step-start infinite;
    display: inline-block;
    margin-left: 4px;
}

@keyframes plan-blink {
    50% { opacity: 0; }
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.plan-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.plan-widget {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.plan-widget__title {
    color: #f0c040;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Search */
.plan-search {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
}

.plan-search input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: .82rem;
    outline: none;
}

.plan-search input::placeholder {
    color: rgba(255,255,255,.5);
}

.plan-search button {
    background: #1a7a1a;
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .2s;
}

.plan-search button:hover {
    background: #145e14;
}

/* Category List */
.plan-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-cat-list li a {
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background .2s, border-color .2s, color .2s;
}

.plan-cat-list li a:hover {
    background: rgba(26,122,26,0.35);
    border-color: rgba(26,122,26,0.6);
    color: #fff;
}

.plan-cat-list li a .cat-count {
    background: #1a7a1a;
    color: #fff;
    border-radius: 20px;
    padding: 1px 10px;
    font-size: .72rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* ─── Empty State ────────────────────────────────────────────────── */
.plan-empty {
    background: rgba(220,53,69,0.18);
    border: 1px solid rgba(220,53,69,.35);
    border-radius: 10px;
    color: #fff;
    padding: 14px 18px;
    font-size: .88rem;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.plan-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.plan-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.plan-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.plan-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}
