/* ==========================================================================
   PACKAGES PAGE STYLES
   ========================================================================== */

/* Variables */
:root {
    --pkg-primary: #72C24D;
    --pkg-secondary: #F89A1C;
    --pkg-dark: #1e293b;
    --pkg-light: #f8fafc;
    --pkg-gray: #64748b;
    --pkg-border: #e2e8f0;
}

/* -----------------------------------------------------------
   PACKAGES HERO SECTION
----------------------------------------------------------- */
.packages-hero {
    position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url('https://images.unsplash.com/photo-1590523277543-a94d2e4eb00b?q=80&w=1920&auto=format&fit=crop') center/cover;
    padding: 140px 0 160px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.packages-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.packages-hero-subtitle {
    color: var(--pkg-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.packages-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.packages-hero-text {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 40px;
}

.packages-hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 40px;
}

.ph-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
}

.ph-feature svg {
    width: 20px;
    height: 20px;
    fill: var(--pkg-secondary);
}

.packages-hero-wave {
    position: absolute;
    bottom: -2px; /* Fix for sub-pixel rendering issues */
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.packages-hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* -----------------------------------------------------------
   FLOATING STATS
----------------------------------------------------------- */
.packages-stats-container {
    max-width: 1100px;
    margin: -60px auto 50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.packages-stats {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.p-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-right: 1px solid var(--pkg-border);
}

.p-stat:last-child {
    border-right: none;
}

.p-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(114, 194, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pkg-primary);
}

.p-stat-icon svg {
    width: 24px;
    height: 24px;
}

.p-stat-info {
    display: flex;
    flex-direction: column;
}

.p-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pkg-dark);
    line-height: 1.2;
}

.p-stat-text {
    font-size: 0.9rem;
    color: var(--pkg-gray);
    font-weight: 500;
}

/* -----------------------------------------------------------
   MAIN PACKAGES SECTION
----------------------------------------------------------- */
.packages-main {
    padding: 40px 0 80px;
}

.packages-header {
    margin-bottom: 40px;
}

.packages-breadcrumbs {
    font-size: 0.95rem;
    color: var(--pkg-gray);
}

.packages-breadcrumbs a {
    color: var(--pkg-primary);
    text-decoration: none;
    font-weight: 500;
}

.packages-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 30px;
    gap: 10px;
}

.packages-title-center {
    text-align: left;
}

.packages-title-center h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pkg-dark);
    margin-bottom: 8px;
}

.packages-title-center p {
    color: var(--pkg-gray);
    font-size: 1.1rem;
}

.packages-sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

.packages-sort label {
    font-weight: 600;
    color: var(--pkg-dark);
}

.packages-sort select {
    padding: 10px 15px;
    border: 1px solid var(--pkg-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pkg-dark);
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.packages-sort select:focus {
    border-color: var(--pkg-primary);
    box-shadow: 0 0 0 3px rgba(114, 194, 77, 0.1);
}

/* Layout Grid */
.packages-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* -----------------------------------------------------------
   SIDEBAR / FILTERS
----------------------------------------------------------- */

.packages-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.packages-sidebar::-webkit-scrollbar {
    display: none; /* Chrome */
}

.filter-box {
    background: #ffffff;
    border: 1px solid var(--pkg-border);
    border-radius: 12px;
    padding: 25px;

}

.filter-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pkg-border);
}

.filter-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pkg-dark);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.filter-group-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pkg-dark);
}

.filter-group-header svg {
    fill: var(--pkg-gray);
    transition: transform 0.3s ease;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Checkbox & Radio */
.custom-checkbox, .custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
}

.custom-checkbox input, .custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.check-mark, .radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.radio-mark {
    border-radius: 50%;
}

.custom-checkbox:hover input ~ .check-mark,
.custom-radio:hover input ~ .radio-mark {
    background-color: #e2e8f0;
}

.custom-checkbox input:checked ~ .check-mark,
.custom-radio input:checked ~ .radio-mark {
    background-color: var(--pkg-primary);
    border-color: var(--pkg-primary);
}

.check-mark:after, .radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .check-mark:after,
.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

.custom-checkbox .check-mark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio .radio-mark:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Price Range Slider (Styling only) */
.price-range-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pkg-primary);
    margin-bottom: 15px;
}

.range-slider {
    position: relative;
    height: 5px;
    background: #e2e8f0;
    border-radius: 5px;
    margin: 10px 0;
}

.range-track {
    position: absolute;
    left: 10%;
    right: 20%;
    height: 100%;
    background: var(--pkg-primary);
    border-radius: 5px;
}

.range-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid var(--pkg-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.range-handle.left { left: 10%; }
.range-handle.right { left: 80%; }

/* Sidebar Help Banner */
.sidebar-help-banner {
    margin-top: 30px;
    background: linear-gradient(135deg, #72C24D 0%, #5cb036 100%);
    border-radius: 12px;
    padding: 25px;
    color: #ffffff;
    text-align: center;
}

.help-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.help-icon svg {
    width: 24px;
    height: 24px;
}

.sidebar-help-banner h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sidebar-help-banner p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   PACKAGE CARDS GRID
----------------------------------------------------------- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-content: start;
}



/* -----------------------------------------------------------
   TRUST BADGES ROW
----------------------------------------------------------- */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tb-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tb-item:hover {
    border-color: rgba(114, 194, 77, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.tb-icon {
    width: 42px;
    height: 42px;
    background: rgba(114, 194, 77, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pkg-primary);
    flex-shrink: 0;
}

.tb-icon svg {
    width: 20px;
    height: 20px;
}

.tb-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pkg-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.tb-text p {
    font-size: 0.85rem;
    color: var(--pkg-gray);
    line-height: 1.5;
    margin: 0;
}

/* -----------------------------------------------------------
   BOTTOM CTA
----------------------------------------------------------- */
.packages-bottom-cta {
    position: relative;
    padding: 80px 0;
    background: var(--pkg-dark);
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 0;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516815231560-8f41ec531527?q=80&w=1920&auto=format&fit=crop') center/cover;
    opacity: 0.15;
}

.bottom-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.bottom-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.bottom-cta-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 35px;
}

.bottom-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-solid-orange {
    background: var(--pkg-secondary);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-solid-orange:hover {
    background: #e08316;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(248, 154, 28, 0.3);
}

.cta-or-text {
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.cta-call {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-call:hover {
    color: var(--pkg-secondary);
}

.cta-call svg {
    width: 24px;
    height: 24px;
    color: var(--pkg-secondary);
}

/* -----------------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------------- */
@media (max-width: 1024px) {
    .packages-layout-grid {
        grid-template-columns: 240px 1fr;
    }
    
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .packages-layout-grid {
        grid-template-columns: 1fr;
    }
    
    
.packages-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.packages-sidebar::-webkit-scrollbar {
    display: none; /* Chrome */
}

.filter-box {
        position: static;
        margin-bottom: 30px;
    }
    
    .packages-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .p-stat {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .packages-hero {
        padding: 120px 0 130px;
    }
    .packages-hero-title {
        font-size: 2.5rem;
    }
    .packages-hero-text {
        font-size: 1.05rem;
        padding: 0 15px;
    }
    .packages-hero-features {
        gap: 15px;
    }
    
    .packages-title-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .packages-sort {
        justify-content: center;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .packages-hero {
        padding: 90px 0 110px;
        background-position: 60% center;
    }
    
    .packages-hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .packages-hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    }

    .packages-hero-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    }
    
    .ph-feature {
        font-size: 0.85rem;
    }

    .packages-stats {
        grid-template-columns: 1fr;
    }
}
