/* Xfinity Deals Page - Exact Implementation */

/* ========================================
   MOBILE DEALS CAROUSEL SECTION
======================================== */
.mobile-deals-section {
    padding: 60px 0;
    background: #fff;
}

.mobile-deals-section .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.mobile-deals-section .section-header h2 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.mobile-deals-section .section-header p {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
}

/* Brand Filter Pills */
.brand-filter-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.brand-pill {
    padding: 10px 28px;
    background: #fff;
    border: 2px solid #d4d4d4;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.brand-pill:hover {
    border-color: #7030A0;
    color: #7030A0;
}

.brand-pill.active {
    background: #7030A0;
    border-color: #7030A0;
    color: #fff;
}

/* Carousel Container */
.device-carousel-container {
    position: relative;
    margin-bottom: 40px;
}

.device-carousel-track {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.device-carousel-wrapper {
    overflow: visible;
    position: relative;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: #f5f5f5;
    border-color: #999;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow.prev {
    left: -24px;
}

.carousel-arrow.next {
    right: -24px;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Device Card */
.device-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 320px;
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Variants */
.device-card.variant-light {
    background: #f5f5f5;
}

.device-card.variant-dark {
    background: #3d3d3d;
    color: #fff;
}

.device-card.variant-blue {
    background: #5885af;
    color: #fff;
}

.device-card.variant-purple {
    background: #e8dff5;
}

.device-card.variant-light-blue {
    background: #dfe9f3;
}

/* Device Image */
.device-card-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: transparent;
}

.device-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Content */
.device-card-content {
    padding: 24px 28px 28px;
}

.device-card-content h3 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: inherit;
}

.device-card-content p {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: inherit;
    opacity: 0.95;
}

/* Card Actions */
.device-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-card-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid;
    cursor: pointer;
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.device-card-btn.btn-outline-dark {
    background: transparent;
    border-color: #000;
    color: #000;
}

.device-card-btn.btn-outline-dark:hover {
    background: #000;
    color: #fff;
}

.device-card.variant-dark .device-card-btn.btn-outline-dark,
.device-card.variant-blue .device-card-btn.btn-outline-dark {
    border-color: #fff;
    color: #fff;
}

.device-card.variant-dark .device-card-btn.btn-outline-dark:hover,
.device-card.variant-blue .device-card-btn.btn-outline-dark:hover {
    background: #fff;
    color: #000;
}

.device-card-link {
    color: #7030A0;
    text-decoration: underline;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.device-card-link:hover {
    opacity: 0.8;
}

.device-card.variant-dark .device-card-link,
.device-card.variant-blue .device-card-link {
    color: #fff;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: #d4d4d4;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #000;
    width: 24px;
    border-radius: 4px;
}

/* Compare Phones Link */
.compare-phones-link {
    text-align: center;
    margin-top: 30px;
}

.compare-phones-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.compare-phones-link a:hover {
    background: #000;
    color: #fff;
}

/* Disclaimer */
.mobile-deals-disclaimer {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.mobile-deals-disclaimer p {
    font-size: 0.875rem;
    color: #856404;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .device-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .mobile-deals-section {
        padding: 40px 0;
    }
    
    .mobile-deals-section .section-header h2 {
        font-size: 2rem;
    }
    
    .brand-filter-pills {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .brand-pill {
        padding: 8px 20px;
        font-size: 0.9375rem;
    }
    
    .device-card {
        flex: 0 0 100%;
        min-width: 280px;
    }
    
    .device-card-image {
        height: 240px;
        padding: 20px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow.prev {
        left: -12px;
    }
    
    .carousel-arrow.next {
        right: -12px;
    }
}

@media (max-width: 480px) {
    .carousel-arrow.prev {
        left: 0;
    }
    
    .carousel-arrow.next {
        right: 0;
    }
    
    .device-carousel-track {
        gap: 16px;
    }
}

/* ========================================
   ADDITIONAL SECTIONS (from original)
======================================== */

.deals-hero {
    background: #ffffff;
    padding: 30px 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.change-location {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.change-link {
    color: #0078d7;
    text-decoration: underline;
    font-weight: 500;
}

.page-title {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.deals-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
}

.deals-nav .nav-item {
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.deals-nav .nav-item:hover {
    color: #000;
    background: #f5f5f5;
}

.deals-nav .nav-item.active {
    color: #000;
    border-bottom-color: #7030A0;
    font-weight: 600;
}

.deals-nav .nav-item-cta {
    background: #7030A0;
    color: #fff;
    border-radius: 8px 8px 0 0;
    margin-left: auto;
}

.deals-nav .nav-item-cta:hover {
    background: #5a2680;
    color: #fff;
}

/* Hero Deal Section */
.hero-deal-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.deal-label {
    margin-bottom: 20px;
}

.label-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-deal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-deal-title {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-deal-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.price-amount {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.price-unit {
    font-size: 2rem;
    font-weight: 600;
}

.price-duration {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.hero-cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-features .feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #28a745;
}

.hero-disclaimer {
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.hero-disclaimer small {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.hero-deal-visual {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #7030A0 0%, #5a2680 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-badge {
    background: #FFD700;
    color: #000;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    transform: rotate(-5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Internet Deals Section */
.internet-deals-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #7030A0;
}

.plan-featured {
    background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 100%);
    border-color: #7030A0;
    border-width: 3px;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7030A0, #5a2680);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-speed {
    text-align: center;
    margin-bottom: 20px;
}

.speed-number {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.speed-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

.plan-price {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.plan-price .price {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #000;
}

.plan-price .duration {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sports & News */
.sports-news-deal-section {
    padding: 80px 0;
    background: #fff;
}

.sports-news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sports-news-image img {
    width: 100%;
    border-radius: 12px;
}

.sports-news-content h4 {
    color: #7030A0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sports-news-content h3 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.sports-news-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sports-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 25px;
}

.sports-price .price {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.sports-price .duration {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.sports-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sports-cta .link {
    color: #7030A0;
    text-decoration: none;
    font-weight: 600;
}

.sports-cta .link:hover {
    text-decoration: underline;
}

/* NOW Products Section */
.now-products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
}

.now-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.now-logo {
    height: 60px;
    margin-bottom: 25px;
}

.now-intro h2 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.now-intro p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.now-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.now-product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.now-product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.now-product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.now-product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.now-product-card h4 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.now-product-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.now-disclaimers {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.now-disclaimers p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 8px 0;
}

/* Bottom CTA Section */
.bottom-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #7030A0 0%, #5a2680 100%);
}

.cta-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-family: 'Xfinity Standard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7030A0 0%, #5a2680 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(112, 48, 160, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #7030A0;
    border: 2px solid #7030A0;
}

.btn-secondary:hover {
    background: #7030A0;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 968px) {
    .hero-deal-content,
    .sports-news-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .deals-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .deals-nav .nav-item-cta {
        margin-left: 0;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .sports-news-card {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .deals-hero {
        padding: 20px 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-deal-section {
        padding: 40px 0;
    }
    
    .hero-deal-title {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .internet-deals-section,
    .mobile-deals-section,
    .sports-news-deal-section,
    .now-products-section,
    .bottom-cta-section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}