/* ============================================
   PACKAGES CSS - Knowledge Wave India (Homepage)
   Colors: #7AC74F #FDFFFC #F7B32B #FF2E00 #140F2D
   ============================================ */

.packages-section {
    padding: 60px 0 80px;
    background: #FDFFFC;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.sub-title {
    display: inline-block;
    color: #7AC74F;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    color: #140F2D;
    margin: 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== CARD ========== */
.package-card {
    position: relative;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(122, 199, 79, 0.1);
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(122, 199, 79, 0.25);
    border-color: #7AC74F;
}

/* ========== IMAGE BACKGROUND ========== */
.package-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #140F2D 0%, #1a1240 100%);
}

.package-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
    transition: transform 0.4s ease;
    padding: 20px;
    filter: drop-shadow(0 4px 12px rgba(247, 179, 43, 0.3));
}

.package-card:hover .package-bg-img {
    transform: scale(1.05);
}

.package-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(20, 15, 45, 0.97) 0%,
        rgba(20, 15, 45, 0.6) 40%,
        rgba(20, 15, 45, 0.05) 100%
    );
}

/* Shine effect */
.package-img::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(247, 179, 43, 0.06) 50%, transparent 100%);
    transition: left 0.6s ease;
    z-index: 2;
}
.package-card:hover .package-img::after { left: 100%; }

/* ========== TOP ICON ========== */
.package-icon {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(247, 179, 43, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #F7B32B;
    z-index: 3;
    transition: all 0.4s ease;
}
.package-card:hover .package-icon {
    transform: translateX(-50%) scale(1.15);
    background: rgba(247, 179, 43, 0.3);
    color: #FDFFFC;
}

/* ========== PACKAGE LABEL ========== */
.package-label {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: rgba(253, 255, 252, 0.7);
    letter-spacing: 3px;
    z-index: 3;
    white-space: nowrap;
}

/* ========== BODY ========== */
.package-body {
    position: relative;
    z-index: 3;
    padding: 30px 20px 25px;
    text-align: center;
    color: #FDFFFC;
}

.package-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FDFFFC;
    margin-bottom: 8px;
}

.package-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.old-price { 
    text-decoration: line-through; 
    color: rgba(253, 255, 252, 0.4); 
    font-size: 13px; 
}

.new-price { 
    color: #F7B32B; 
    font-weight: 800; 
    font-size: 24px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.new-price small {
    font-size: 11px;
    font-weight: 500;
    color: rgba(253, 255, 252, 0.5);
}

.package-card:hover .new-price { transform: scale(1.1); }

.price-note {
    font-size: 11px;
    color: #FF2E00;
    margin: 0 0 16px;
    font-weight: 500;
}

/* ========== BUTTON ========== */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #7AC74F;
    color: #FDFFFC;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #7AC74F;
}

.btn-buy:hover {
    background: #F7B32B;
    color: #140F2D;
    border-color: #F7B32B;
    transform: translateY(-2px);
}

.btn-buy i { font-size: 11px; transition: transform 0.3s ease; }
.btn-buy:hover i { transform: translateX(4px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1199.98px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .package-card { height: 360px; }
}

@media (max-width: 767.98px) {
    .packages-section { padding: 40px 0 60px; }
    .packages-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 18px; }
    .package-card { height: 350px; }
    .package-body { padding: 25px 16px 20px; }
    .package-body h3 { font-size: 18px; }
    .new-price { font-size: 20px; }
}

@media (max-width: 575.98px) {
    .main-title { font-size: 28px; }
    .package-card { height: 330px; }
}