﻿.plan-container {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.plan-heading {
    text-align: center;
    margin-bottom: 60px;
}

    .plan-heading h1 {
        font-size: 52px;
        font-family: 'Poppins', sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: white;
        margin-bottom: 20px;
        text-shadow: 0 5px 15px rgba(0,0,0,0.7);
    }

    .plan-heading p {
        font-size: 18px;
        line-height: 1.8;
        color: #e0e0e0;
        font-family: 'Segoe UI', sans-serif;
        max-width: 850px;
        margin: auto;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

.plan-section {
    margin-bottom: 60px;
}

.plan-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    transition: 0.4s ease;
}

    .plan-card:hover {
        transform: translateY(-8px);
    }

    .plan-card figure {
        position: relative;
        margin: 0;
        overflow: hidden;
        border-radius: 22px;
    }

    .plan-card img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
        transition: 0.5s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .plan-card:hover img {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .plan-card figure::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2), rgba(0,0,0,0.05) );
    }

    .plan-card figcaption {
        position: absolute;
        bottom: 95px;
        left: 35px;
        right: 35px;
        z-index: 2;
        font-size: 36px;
        font-family: 'Poppins', sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: white;
        text-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }

.plan-description {
    position: absolute;
    bottom: 25px;
    left: 35px;
    right: 35px;
    z-index: 2;
    color: #f1f1f1;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plan-card a {
    text-decoration: none;
    color: inherit;
}

@media screen and (max-width: 768px) {

    .plan-heading h1 {
        font-size: 36px;
    }

    .plan-heading p {
        font-size: 16px;
    }

    .plan-card img {
        height: 320px;
    }

    .plan-card figcaption {
        font-size: 24px;
        bottom: 85px;
        left: 20px;
        right: 20px;
    }

    .plan-description {
        font-size: 14px;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media screen and (max-width: 480px) {

    .plan-heading h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .plan-heading p {
        font-size: 14px;
    }

    .plan-card img {
        height: 260px;
    }

    .plan-card figcaption {
        font-size: 20px;
        text-align: center;
        left: 10px;
        right: 10px;
    }

    .plan-description {
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }
}
