/* Price Policy Section */

.price-policy-section {
    width: 100%;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 2;
}

.price-policy-container {
    max-width: 1400px;
    margin: 0 auto;
}

.price-policy-wrapper {
    text-align: center;
}

/* Header */
.price-policy-header {
    margin-bottom: 3rem;
}

.price-policy-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
}

.price-policy-title.visible {
    animation: fadeInDown 0.8s ease-out forwards;
}

.price-policy-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(21, 48, 76, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

.price-policy-subtitle.visible {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Content */
.price-policy-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.price-policy-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(21, 48, 76, 0.8);
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.price-policy-text.visible {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Price Categories Grid */
.price-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

/* Price Category Card */
.price-category {
    background: #ffffff;
    border: 2px solid rgba(21, 48, 76, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: all var(--transition-smooth);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer; /* clickable for filtering */
}

.price-category.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.price-category:hover {
    border-color: rgb(83, 202, 99);
    box-shadow: 0 12px 32px rgba(83, 202, 99, 0.15);
    transform: translateY(-8px);
}

/* Active (filter selected) */
.price-category.active {
    border-color: rgb(30, 160, 71);
    box-shadow: 0 18px 36px rgba(30, 160, 71, 0.16);
    transform: translateY(-6px);
    background: linear-gradient(135deg, #fbfff9 0%, #f0fdf4 100%);
    outline: 3px solid rgba(83,202,99,0.08);
}

/* Featured Category */
.price-category.featured {
    border-color: rgb(83, 202, 99);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    background: linear-gradient(135deg, rgb(83, 202, 99), rgb(65, 158, 77));
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(83, 202, 99, 0.3);
}

/* Category Badge */
.category-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgb(83, 202, 99), rgb(65, 158, 77));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(83, 202, 99, 0.25);
}

.category-letter {
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 0;
}

/* Category Title */
.category-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin: 0;
}

/* Category Price */
.category-price {
    font-size: 1.5rem;
    color: rgb(83, 202, 99);
    letter-spacing: 0.5px;
    padding: 0.8rem 1.5rem;
    background: rgba(83, 202, 99, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(83, 202, 99, 0.2);
}

/* Category Description */
.category-description {
    font-size: 0.9rem;
    color: rgba(21, 48, 76, 0.75);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Category Features */
.category-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 48, 76, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(21, 48, 76, 0.8);
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: rgb(83, 202, 99);
    flex-shrink: 0;
}

/* Note Section */
.price-policy-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 900px;
    padding: 1.5rem 2rem;
    background: rgba(83, 202, 99, 0.08);
    border-left: 4px solid rgb(83, 202, 99);
    border-radius: 8px;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Price-policy horizontal carousel (appears after clicking a category) */
.price-policy-carousel {
    display: none; /* shown when active */
    gap: 1rem;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
}

.price-policy-carousel[aria-hidden="false"] {
    display: flex;
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1 1 auto;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-loading, .carousel-empty {
    padding: 2rem;
    color: rgba(21,48,76,0.7);
    text-align: center;
    width: 100%;
}

.carousel-item {
    flex: 0 0 220px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    text-align: left;
    user-select: none;
    padding-bottom: 0.6rem;
    cursor: pointer; /* indicate clickability */
}

.carousel-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.carousel-item .ci-body {
    padding: 0.6rem 0.8rem;
}

.carousel-item .ci-title {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.carousel-item .ci-sub {
    font-size: 0.85rem;
    color: rgba(21,48,76,0.6);
}

.carousel-arrow {
    border: none;
    background: rgba(12,42,22,0.06);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease;
}

.carousel-arrow:hover { background: rgba(12,42,22,0.12); }

.carousel-arrow[aria-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; }

.price-policy-note.visible {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.note-icon {
    width: 24px;
    height: 24px;
    color: rgb(83, 202, 99);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-policy-note p {
    font-size: 0.9rem;
    color: rgba(21, 48, 76, 0.8);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.price-policy-note strong {
    color: rgb(83, 202, 99);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* LAPTOP (1024px - 1200px) */
@media (max-width: 1024px) {
    .price-policy-section {
        padding: 4rem 1.5rem;
    }

    .price-policy-title {
        font-size: 2.8rem;
    }

    .price-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .price-category {
        padding: 1.8rem 1.3rem;
    }

    .category-badge {
        width: 60px;
        height: 60px;
    }

    .category-letter {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .category-price {
        font-size: 1.3rem;
    }
}

/* TABLET (768px - 1024px) */
@media (max-width: 768px) {
    .price-policy-section {
        padding: 3rem 1.5rem;
    }

    .price-policy-header {
        margin-bottom: 2.5rem;
    }

    .price-policy-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .price-policy-subtitle {
        font-size: 0.9rem;
    }

    .price-policy-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .price-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .price-category {
        padding: 1.6rem 1.2rem;
    }

    .category-badge {
        width: 55px;
        height: 55px;
    }

    .category-letter {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-price {
        font-size: 1.2rem;
    }

    .category-description {
        font-size: 0.85rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .price-policy-note {
        padding: 1.2rem 1.5rem;
        gap: 0.8rem;
    }

    .price-policy-note p {
        font-size: 0.85rem;
    }
}

/* MOBILE LANDSCAPE (480px - 768px) */
@media (max-width: 480px) {
    .price-policy-section {
        padding: 2.5rem 1rem;
    }

    .price-policy-header {
        margin-bottom: 2rem;
    }

    .price-policy-title {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.6rem;
    }

    .price-policy-subtitle {
        font-size: 0.8rem;
    }

    .price-policy-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .price-categories {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 1.2rem 0;
    }

    .price-category {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 0.35rem 1rem;
    }

    .category-badge {
        width: 50px;
        height: 50px;
    }

    .category-letter {
        font-size: 1.4rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-price {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .category-description {
        font-size: 0.8rem;
    }

    .category-features {
        gap: 0.6rem;
        padding-top: 0.8rem;
    }

    .feature-item {
        font-size: 0.75rem;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
    }

    .price-policy-note {
        padding: 1rem 1.2rem;
        gap: 0.6rem;
        margin-top: 1.5rem;
    }

    .note-icon {
        width: 20px;
        height: 20px;
    }

    .price-policy-note p {
        font-size: 0.8rem;
    }
}

/* MOBILE SMALL (360px - 480px) */
@media (max-width: 360px) {
    .price-policy-section {
        padding: 2rem 0.8rem;
    }

    .price-policy-header {
        margin-bottom: 1.5rem;
    }

    .price-policy-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .price-policy-subtitle {
        font-size: 0.75rem;
    }

    .price-policy-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .price-categories {
        gap: 1rem;
        margin: 1rem 0;
    }

    .price-category {
        padding: 1.2rem 0.8rem;
        gap: 0.8rem;
    }

    .featured-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
        top: -10px;
    }

    .category-badge {
        width: 45px;
        height: 45px;
    }

    .category-letter {
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .category-price {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .category-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .category-features {
        gap: 0.5rem;
        padding-top: 0.6rem;
    }

    .feature-item {
        font-size: 0.7rem;
    }

    .feature-icon {
        width: 14px;
        height: 14px;
    }

    .price-policy-note {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
        margin-top: 1.2rem;
    }

    .note-icon {
        width: 18px;
        height: 18px;
    }

    .price-policy-note p {
        font-size: 0.75rem;
    }
}

/* 4K (2560px+) */
@media (min-width: 2560px) {
    .price-policy-section {
        padding: 8rem 4rem;
    }

    .price-policy-header {
        margin-bottom: 4rem;
    }

    .price-policy-title {
        font-size: 4.5rem;
    }

    .price-policy-subtitle {
        font-size: 1.2rem;
    }

    .price-policy-text {
        font-size: 1.1rem;
        max-width: 1000px;
    }

    .price-categories {
        gap: 2.5rem;
        margin: 2.5rem 0;
    }

    .price-category {
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }

    .featured-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.5rem;
    }

    .category-badge {
        width: 90px;
        height: 90px;
    }

    .category-letter {
        font-size: 2.5rem;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .category-price {
        font-size: 1.8rem;
        padding: 1rem 2rem;
    }

    .category-description {
        font-size: 1.05rem;
    }

    .category-features {
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .feature-item {
        font-size: 1rem;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    .price-policy-note {
        padding: 2rem 2.5rem;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .note-icon {
        width: 32px;
        height: 32px;
    }

    .price-policy-note p {
        font-size: 1.05rem;
    }
}
