/* ==========================================
   Feature Section & Location Selection Styles
   REDESIGNED - Premium Modern Design
   ========================================== */

/* === Location Selection === */
.location-selection {
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 2rem auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #7ED321;
    box-shadow: 0 8px 30px rgba(74, 144, 266, 0.15);
    border-top: 6px solid #7ED321;
}

.location-selection h2 {
    font-weight: 500;
}

.location-selection select {
    padding: 5px;
    font-weight: 400;
    text-align: center;
    color: black;
}

.location-selection option {
    font-weight: 400;
}

@media screen and (max-width: 568px) {
    .location-selection {
        width: 300px;
    }
}

/* ==========================================
   Feature Section Header - Premium Animated
   ========================================== */
.feature-section-header {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 20px;
}

.feature-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #4A90E2 50%, #7ED321 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: feature-gradient-shift 4s ease-in-out infinite;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

@keyframes feature-gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.feature-title-accent {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #7ED321, #50E3C2);
    background-size: 200% 100%;
    margin: 14px auto 0;
    border-radius: 2px;
    animation: feature-accent-slide 3s ease-in-out infinite;
    position: relative;
}

.feature-title-accent::before,
.feature-title-accent::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #50E3C2);
}

.feature-title-accent::before {
    left: -16px;
    animation: feature-dot-pulse 2s ease-in-out infinite;
}

.feature-title-accent::after {
    right: -16px;
    animation: feature-dot-pulse 2s 0.5s ease-in-out infinite;
}

@keyframes feature-accent-slide {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes feature-dot-pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) scale(1.4);
        opacity: 0.6;
    }
}

/* ==========================================
   Feature Grid - Premium Layout
   ========================================== */
.feature {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin-top: 2rem;
    padding: 0 10px;
    perspective: 1200px;
}

@media screen and (max-width: 768px) {
    .feature {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .feature-section-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   Feature Card - Premium Glass Design
   ========================================== */
.feature .feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    border-radius: 24px;
    padding: 32px 28px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(74, 144, 226, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
    border-top: none;
    opacity: 0;
    transform: translateY(30px);
    animation: feature-card-appear 0.7s ease forwards;
}

.feature .feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature .feature-item:nth-child(2) {
    animation-delay: 0.25s;
}

.feature .feature-item:nth-child(3) {
    animation-delay: 0.4s;
}

.feature .feature-item:nth-child(4) {
    animation-delay: 0.55s;
}

@keyframes feature-card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient top border */
.feature .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #7ED321, #50E3C2);
    border-radius: 0 0 3px 3px;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.feature .feature-item:hover::before {
    left: 0;
    right: 0;
    height: 4px;
    opacity: 1;
}

/* Hover glow effect */
.feature .feature-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            rgba(74, 144, 226, 0.15),
            rgba(126, 211, 33, 0.1),
            rgba(80, 227, 194, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.45s ease;
    filter: blur(12px);
}

.feature .feature-item:hover {
    box-shadow:
        0 20px 60px rgba(74, 144, 226, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-6px);
    border-color: rgba(74, 144, 226, 0.15);
}

.feature .feature-item:hover::after {
    opacity: 1;
}

/* ==========================================
   Badge - Frosted Glass Premium
   ========================================== */
.feature-badge {
    position: absolute;
    top: -14px;
    right: 28px;
    background: linear-gradient(135deg, #4A90E2 0%, #50E3C2 100%);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 24px;
    letter-spacing: 1.5px;
    box-shadow:
        0 4px 16px rgba(74, 144, 226, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.35s ease;
}

.feature .feature-item:hover .feature-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(74, 144, 226, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Feature Detail - Content Area
   ========================================== */
.feature-item .feature-detail {
    justify-content: flex-start;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================
   Feature Icon - Premium Styled
   ========================================== */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Decorative ring behind icon */
.feature-icon::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border: 2px dashed rgba(74, 144, 226, 0.1);
    animation: feature-icon-ring-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes feature-icon-ring-rotate {
    to {
        transform: rotate(360deg);
    }
}

.feature-icon img {
    width: 160px;
    min-height: 160px;
    object-fit: cover;
    background: linear-gradient(145deg, #f0f9f0 0%, #e8f4fd 50%, #f5f0ff 100%);
    border-radius: 20px;
    padding: 12px;
    box-shadow:
        0 6px 20px rgba(126, 211, 33, 0.12),
        0 2px 8px rgba(74, 144, 226, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.feature-item:hover .feature-icon img {
    box-shadow:
        0 12px 36px rgba(74, 144, 226, 0.18),
        0 4px 12px rgba(126, 211, 33, 0.12);
    transform: scale(1.05) translateY(-3px);
}

/* ==========================================
   Feature Typography
   ========================================== */
.feature-item h2 {
    text-align: center;
    min-height: auto;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 1rem;
    color: #1a1a1a;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.feature-item:hover h2 {
    color: #4A90E2;
}

.feature-item h3 {
    font-weight: 400;
    font-size: 1rem;
    color: #777;
    text-align: center;
    line-height: 1.8;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #555;
}

/* ==========================================
   Feature Sub-detail (expandable) - Premium
   ========================================== */
.feature-item .feature-sub-detail {
    max-height: 0;
    overflow: hidden;
    position: relative;
    padding-top: 0;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding-top 0.4s ease,
        margin-top 0.4s ease,
        opacity 0.3s ease;
    border-top: 0px solid transparent;
    opacity: 0;
}

.feature-item:hover>div.feature-sub-detail,
.feature-item .feature-sub-detail:hover {
    max-height: 500px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(74, 144, 226, 0.1);
    opacity: 1;
}

/* Show more indicator */
.feature-item .feature-sub-detail::before {
    content: "∨";
    text-align: center;
    width: 34px;
    height: 34px;
    top: -17px;
    left: calc(50% - 17px);
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #50E3C2);
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 4px 12px rgba(74, 144, 226, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    animation: feature-movedown 2s ease-in-out infinite;
    opacity: 1;
    transition: all 0.3s ease;
}

.feature-item:hover>div.feature-sub-detail::before {
    animation: none;
    opacity: 0;
    transform: scale(0.5);
}

/* ==========================================
   Check Icon - Premium
   ========================================== */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ED321, #50E3C2);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    box-shadow:
        0 3px 8px rgba(126, 211, 33, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item li:hover .check-icon {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.4);
}

/* ==========================================
   List Items - Premium
   ========================================== */
.feature-item li {
    padding: 14px 0;
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px dashed rgba(74, 144, 226, 0.08);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.feature-item li:hover {
    background: rgba(74, 144, 226, 0.03);
    padding-left: 12px;
}

.feature-item li:last-child {
    border-bottom: none;
}

.feature-item li b {
    color: #1a1a1a;
    font-weight: 600;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes feature-movedown {
    0% {
        transform: scale(1.0) translateY(0px);
        opacity: 1;
    }

    50% {
        transform: scale(1.05) translateY(4px);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.0) translateY(0px);
        opacity: 1;
    }
}

/* styling for new structure */
.li-content {
    flex: 1;
}

/* ==========================================
   Mobile Optimization
   ========================================== */
@media screen and (max-width: 768px) {

    /* Always show sub-details on mobile */
    .feature-item .feature-sub-detail {
        max-height: none !important;
        opacity: 1 !important;
        padding-top: 20px !important;
        margin-top: 20px !important;
        border-top: 1px solid rgba(74, 144, 226, 0.1) !important;
        overflow: visible !important;
    }

    /* Hide the "expand" arrow since it's already open */
    .feature-item .feature-sub-detail::before {
        display: none !important;
    }

    .feature-item {
        padding: 24px 20px;
    }

    /* Stack Title and Description */
    .li-content {
        display: flex;
        flex-direction: column;
    }

    .li-content b {
        display: block;
        margin-bottom: 6px;
        color: #1a1a1a;
    }

    .li-content span {
        display: block;
        line-height: 1.5;
        color: #555;
    }
}