/*
Theme Name: Astra Child - Affiliate Program Finder
Theme URI: https://affiliateprogramfinder.com
Description: Astra Child Theme for Affiliate Program Finder
Author: APF
Template: astra
Version: 1.0.0
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --apf-primary: #ff6600;
    --apf-primary-dark: #e55b00;
    --apf-primary-light: #ff8533;
    --apf-dark: #0f0f1a;
    --apf-dark-light: #1a1a2e;
    --apf-dark-medium: #16213e;
    --apf-card-bg: #1e1e3f;
    --apf-border: #2a2a4a;
    --apf-text: #e8e8e8;
    --apf-text-muted: #9999aa;
    --apf-success: #00d26a;
    --apf-danger: #ff4757;
    --apf-warning: #ffc107;
    --apf-gradient: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #e55b00 100%);
}

body { 
    margin: 0; 
    padding: 0; 
    background: var(--apf-dark); 
    color: var(--apf-text); 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.apf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--apf-border);
    padding: 0 40px;
}

.apf-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.apf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.apf-logo .logo-icon {
    font-size: 1.8rem;
}

.apf-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.apf-logo .logo-text span {
    color: var(--apf-primary);
}

.apf-nav {
    display: flex;
    gap: 40px;
}

.apf-nav a {
    color: var(--apf-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.apf-nav a:hover {
    color: var(--apf-primary);
}

.apf-header-cta {
    background: var(--apf-gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.apf-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
    color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */
.apf-hero-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background: linear-gradient(180deg, var(--apf-dark) 0%, var(--apf-dark-light) 100%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 102, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 102, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 133, 51, 0.05) 0%, transparent 60%);
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 102, 0, 0.15);
    border: 1px solid rgba(255, 102, 0, 0.3);
    color: var(--apf-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 102, 0, 0.2); }
}

.apf-hero-full h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--apf-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--apf-text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-bottom: 50px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--apf-card-bg);
    border: 2px solid var(--apf-border);
    border-radius: 60px;
    padding: 8px 8px 8px 25px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--apf-primary);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.2);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 15px;
}

.search-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    min-width: 250px;
}

.search-wrapper input::placeholder {
    color: var(--apf-text-muted);
}

.search-btn {
    background: var(--apf-gradient);
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--apf-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--apf-border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--apf-text-muted);
    font-size: 0.85rem;
}

.scroll-arrow {
    margin-top: 10px;
    animation: scrollBounce 2s ease-in-out infinite;
    font-size: 1.5rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.apf-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.apf-program-card {
    background: var(--apf-card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--apf-border);
    transition: all 0.3s;
}

.apf-program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--apf-primary);
}

.apf-card-header { display: flex; align-items: center; margin-bottom: 20px; }

.apf-program-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    overflow: hidden;
    padding: 10px;
}

.apf-program-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.apf-program-title h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 5px 0; }

.apf-program-category {
    display: inline-block;
    background: rgba(255,102,0,0.15);
    color: var(--apf-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.apf-rating { margin-left: auto; text-align: right; }
.apf-stars { color: var(--apf-warning); font-size: 1.1rem; margin-bottom: 5px; }
.apf-rating-score { font-size: 1.5rem; font-weight: 800; color: var(--apf-primary); }

.apf-program-excerpt { color: var(--apf-text-muted); line-height: 1.6; margin-bottom: 20px; }

.apf-program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.apf-stat { text-align: center; }
.apf-stat-label { font-size: 0.75rem; color: var(--apf-text-muted); text-transform: uppercase; margin-bottom: 5px; }
.apf-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--apf-success); }

.apf-card-footer { 
    display: flex; 
    gap: 10px; 
    margin-top: 5px;
}

/* Compare Button - Stylish */
.apf-compare-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    border: 2px solid #3a3a5a;
    border-radius: 12px;
    color: #9999bb;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apf-compare-btn:hover {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #3a2a5a 0%, #2a1a4e 100%);
    color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.apf-compare-btn.selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    box-shadow: 0 5px 25px rgba(124, 58, 237, 0.4);
}

.apf-compare-btn .compare-icon {
    font-size: 1.1rem;
}

/* Details Button - Gradient Blue */
.apf-details-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apf-details-btn:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    color: #fff;
}

.apf-details-btn .arrow {
    transition: transform 0.3s;
}

.apf-details-btn:hover .arrow {
    transform: translateX(4px);
}

/* Visit Site Button - Gradient Orange */
.apf-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6600 0%, #e55b00 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apf-visit-btn:hover {
    background: linear-gradient(135deg, #ff8533 0%, #ff6600 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
    color: #fff;
}

.apf-visit-btn .external-icon {
    font-size: 1rem;
    transition: transform 0.3s;
}

.apf-visit-btn:hover .external-icon {
    transform: translate(2px, -2px);
}

/* Compare Floating Bar */
.compare-floating-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e1e3f 0%, #0f0f1a 100%);
    border: 2px solid #7c3aed;
    border-radius: 20px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    transition: bottom 0.4s ease;
}

.compare-floating-bar.visible {
    bottom: 30px;
}

.compare-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid #1e1e3f;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
}

.compare-close-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.compare-floating-bar .compare-count {
    color: #a78bfa;
    font-weight: 700;
    font-size: 1rem;
}

.compare-floating-bar .compare-items {
    display: flex;
    gap: 10px;
}

.compare-floating-bar .compare-item {
    background: rgba(124, 58, 237, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-floating-bar .compare-item .remove-item {
    cursor: pointer;
    color: #f87171;
    font-weight: bold;
}

.compare-floating-bar .compare-now-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-floating-bar .compare-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.5);
}

@media (max-width: 768px) {
    .compare-floating-bar {
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
        bottom: -200px;
        padding: 44px 14px 14px 14px;
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 16px;
    }
    .compare-floating-bar.visible {
        bottom: 10px;
    }
    /* Close X — absolute inside the bar, top-right corner */
    .compare-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 50%;
    }
    .compare-floating-bar .compare-count {
        font-size: 0.9rem;
        width: 100%;
    }
    .compare-floating-bar .compare-items {
        flex-wrap: wrap;
        width: 100%;
    }
    .compare-floating-bar .compare-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .compare-floating-bar .compare-item .remove-item {
        min-width: 24px;
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    .compare-floating-bar .compare-now-btn {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

.apf-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--apf-text);
    border: 1px solid var(--apf-border);
    padding: 10px 20px;
}

.apf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--apf-primary);
    color: #fff;
}

.apf-btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border: none;
}

.apf-btn-primary {
    background: linear-gradient(135deg, var(--apf-primary) 0%, var(--apf-primary-dark) 100%);
    color: #fff;
    flex: 1;
}

.apf-btn-primary:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(255,102,0,0.4); color: #fff; }

.apf-votes { display: flex; gap: 10px; }

.apf-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--apf-border);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--apf-text-muted);
    cursor: pointer;
}

.apf-vote-btn.upvote:hover { color: var(--apf-success); border-color: var(--apf-success); }
.apf-vote-btn.downvote:hover { color: var(--apf-danger); border-color: var(--apf-danger); }

.apf-comparison {
    background: var(--apf-card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--apf-border);
    margin: 40px auto;
    max-width: 1200px;
}

.apf-comparison h2 { color: var(--apf-primary); font-size: 1.8rem; margin-bottom: 30px; text-align: center; }

.apf-comparison-selectors { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; align-items: center; }

.apf-comparison-select {
    background: #ffffff;
    border: 2px solid var(--apf-border);
    padding: 15px 25px;
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 1rem;
    min-width: 280px;
    cursor: pointer;
    appearance: menulist;
    -webkit-appearance: menulist;
}

.apf-comparison-select option {
    background: #ffffff;
    color: #1a1a2e;
    padding: 10px;
}

.apf-comparison-table { width: 100%; border-collapse: collapse; }
.apf-comparison-table th, .apf-comparison-table td { padding: 20px; text-align: left; border-bottom: 1px solid var(--apf-border); }
.apf-comparison-table th { background: var(--apf-dark); color: var(--apf-primary); }
.apf-comparison-table td { color: var(--apf-text); }

.text-success { color: var(--apf-success) !important; }
.text-danger { color: var(--apf-danger) !important; }

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hamburger-btn:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.4);
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e, #0f0f1a);
    z-index: 999;
    padding: 30px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.mobile-menu-logo .logo-icon {
    font-size: 24px;
}
.mobile-menu-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.mobile-menu-logo .logo-text span {
    color: var(--apf-primary);
}
.mobile-close-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.mobile-close-btn:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.4);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.mobile-nav a:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.3);
    color: var(--apf-primary);
    transform: translateX(5px);
}
.mobile-nav a .nav-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}
.mobile-search {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-search form {
    display: flex;
    gap: 10px;
}
.mobile-search input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.mobile-search input:focus {
    border-color: rgba(255, 102, 0, 0.5);
}
.mobile-search button {
    padding: 14px 18px;
    background: var(--apf-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-search button:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .apf-nav { display: none; }
    .apf-header-cta { display: none; }
    .hamburger-btn { display: flex; }
    .mobile-menu-overlay { display: block; pointer-events: none; }
    .mobile-menu-overlay.active { pointer-events: auto; }
    .mobile-menu { display: block; }
}

@media (max-width: 768px) {
    .apf-hero-full h1 { font-size: 2.5rem; }
    .apf-programs-grid { grid-template-columns: 1fr; }
    .apf-program-stats { grid-template-columns: 1fr; }
    .apf-header-inner { padding: 0 15px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { display: none; }
}

@media (max-width: 480px) {
    .apf-logo .logo-text { font-size: 1.1rem; }
    .mobile-menu { width: 100%; max-width: 100vw; right: -100%; }
    .apf-hero-full h1 { font-size: 2rem; }
    .search-wrapper { flex-direction: column; padding: 15px; border-radius: 20px; }
    .search-wrapper input { min-width: 100%; margin-bottom: 10px; }
    .search-btn { width: 100%; }
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.apf-filters-section {
    background: var(--apf-dark-light);
    padding: 60px 20px;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.apf-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.apf-filter-btn {
    background: var(--apf-card-bg);
    border: 2px solid var(--apf-border);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--apf-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.apf-filter-btn:hover,
.apf-filter-btn.active {
    border-color: var(--apf-primary);
    background: rgba(255, 102, 0, 0.1);
    color: var(--apf-primary);
    transform: translateY(-2px);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.apf-programs-section {
    background: var(--apf-dark);
    padding: 60px 20px;
}

.programs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.no-programs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--apf-card-bg);
    border-radius: 20px;
    border: 2px dashed var(--apf-border);
}

.no-programs h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.no-programs p {
    color: var(--apf-text-muted);
    font-size: 1.1rem;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.apf-comparison-section {
    background: var(--apf-dark-light);
    padding: 80px 20px;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.comparison-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.comparison-header p {
    color: var(--apf-text-muted);
    font-size: 1.1rem;
}

.vs-badge {
    background: var(--apf-gradient);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.apf-cta-section {
    background: var(--apf-gradient);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apf-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: #fff;
    color: var(--apf-primary);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: var(--apf-primary-dark);
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.apf-footer {
    background: var(--apf-dark);
    border-top: 1px solid var(--apf-border);
}

.footer-main {
    padding: 80px 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    color: var(--apf-text-muted);
    line-height: 1.7;
    margin: 20px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.footer-logo .logo-text span {
    color: var(--apf-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--apf-card-bg);
    border: 1px solid var(--apf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apf-text);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--apf-primary);
    border-color: var(--apf-primary);
    color: #fff;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    color: var(--apf-text-muted);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--apf-primary);
}

.footer-bottom {
    border-top: 1px solid var(--apf-border);
    padding: 25px 40px;
    text-align: center;
}

.footer-bottom p {
    color: var(--apf-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ── SEO Intro Section ──────────────────────────────── */
.apf-intro-section {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    padding: 70px 20px;
}
.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.intro-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}
.intro-text p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.intro-text strong { color: #ff6600; }
.intro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.intro-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.2s;
}
.intro-feature:hover { border-color: rgba(255,102,0,0.3); }
.if-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.intro-feature strong { color: #fff; font-size: 1rem; display: block; margin-bottom: 4px; }
.intro-feature p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; line-height: 1.5; }
@media (max-width: 768px) {
    .intro-container { grid-template-columns: 1fr; gap: 30px; }
    .intro-text h2 { font-size: 1.6rem; }
}

/* ── FAQ Section ────────────────────────────────────── */
.apf-faq-section {
    background: #0f0f1a;
    padding: 80px 20px;
}
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}
.faq-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}
.faq-intro {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 40px;
}
.faq-intro strong { color: #ff6600; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(255,102,0,0.4); }
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}
.faq-question:hover { color: #ff6600; }
.faq-arrow {
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform 0.25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 24px;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}
.faq-answer p {
    color: rgba(255,255,255,0.72);
    font-size: 0.97rem;
    line-height: 1.8;
    margin: 0;
}
.faq-answer strong { color: #ff9944; }
.faq-answer em { color: rgba(255,255,255,0.9); font-style: normal; }
@media (max-width: 600px) {
    .faq-container h2 { font-size: 1.5rem; }
    .faq-question { font-size: 0.93rem; padding: 16px 18px; }
    .faq-answer, .faq-item.open .faq-answer { padding: 0 18px; }
    .faq-item.open .faq-answer { padding-bottom: 16px; }
}

/* ── Searchable Select (Compare) ───────────────────── */
.apf-comparison-selectors {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.apf-searchable-select {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 340px;
}
.apf-ss-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(124,58,237,0.4);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    user-select: none;
}
.apf-ss-trigger:hover, .apf-searchable-select.open .apf-ss-trigger {
    border-color: #7c3aed;
    background: rgba(124,58,237,0.12);
}
.apf-ss-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.apf-searchable-select.open .apf-ss-arrow {
    transform: rotate(180deg);
}
.apf-ss-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90%;
}
.apf-ss-label.chosen {
    color: #a78bfa;
    font-weight: 600;
}
.apf-ss-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1e1e3f;
    border: 2px solid #7c3aed;
    border-radius: 14px;
    z-index: 500;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.apf-searchable-select.open .apf-ss-dropdown {
    display: block;
}
.apf-ss-search {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-bottom: 1px solid rgba(124,58,237,0.3);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}
.apf-ss-search::placeholder { color: rgba(255,255,255,0.4); }
.apf-ss-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 240px;
    overflow-y: auto;
}
.apf-ss-list li {
    padding: 9px 16px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.apf-ss-list li:hover {
    background: rgba(124,58,237,0.25);
    color: #fff;
}
.apf-ss-list li.selected {
    background: rgba(124,58,237,0.35);
    color: #a78bfa;
    font-weight: 600;
}
.apf-ss-list li.hidden { display: none; }

@media (max-width: 640px) {
    .apf-searchable-select {
        max-width: 100%;
        width: 100%;
    }
    .vs-badge { width: 100%; text-align: center; }
    #compare-btn { width: 100%; }
}
