/* NCPA Junior Benefits Program Page Styles */

:root {
    --light-blue: #7EADED;
    --dark-blue: #4A90E2;
    --gradient-bg: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

/* General Styles */
.junior-benefits-page {
    font-family: 'Lexend Peta', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.benefits-hero {
    background: var(--hero-gradient);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.benefits-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.benefits-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* Main Benefits Section */
.main-benefits {
    padding: 80px 0;
    background: var(--gradient-bg);
}

.main-benefits h2 {
    text-align: center;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.benefits-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
}

.benefits-intro a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(126, 173, 237, 0.1);
    border: 1px solid rgba(126, 173, 237, 0.2);
}

.benefits-intro a:hover {
    background: var(--light-blue);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(126, 173, 237, 0.3);
}

/* Tier Display Container */
.tier-display-container {
    margin: 3rem 0;
}

/* Desktop Tier Table */
.desktop-tier-table {
    display: block;
}

.tier-table {
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(126, 173, 237, 0.2);
    transition: all 0.3s ease;
}

.tier-table:hover {
    border-color: var(--light-blue);
    box-shadow: 0 8px 25px rgba(126, 173, 237, 0.2);
}

.tier-header, .tier-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1px;
    transition: all 0.3s ease;
}

.tier-header {
    background: rgba(126, 173, 237, 0.3);
}

.tier-row {
    transition: all 0.3s ease;
}

.tier-row:hover {
    background: rgba(126, 173, 237, 0.05);
    transform: translateX(5px);
}

.tier-col {
    padding: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.6;
    color: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tier-col:hover {
    background: rgba(126, 173, 237, 0.1);
    transform: scale(1.02);
}

.tier-header .tier-col {
    font-weight: bold;
    color: white;
    background: var(--light-blue);
}

.tier-label {
    font-weight: bold;
    color: var(--light-blue);
    background: rgba(126, 173, 237, 0.1);
}

/* Mobile Tier Display */
.mobile-tier-display {
    display: none;
}

.tier-level-selector {
    text-align: center;
    margin-bottom: 30px;
}

.tier-level-selector h4 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.level-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.level-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(126, 173, 237, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.level-btn:hover {
    border-color: var(--light-blue);
    background: rgba(126, 173, 237, 0.1);
    transform: translateY(-2px);
}

.level-btn.active {
    border-color: var(--light-blue);
    background: var(--light-blue);
    color: #000;
    box-shadow: 0 4px 15px rgba(126, 173, 237, 0.3);
}

.level-number {
    font-size: 1.5rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(126, 173, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-btn.active .level-number {
    background: rgba(0, 0, 0, 0.2);
}

.level-desc {
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: center;
}

/* Level Content Display */
.level-content-display {
    position: relative;
    min-height: 400px;
}

.level-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.level-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

.level-header {
    text-align: center;
    margin-bottom: 25px;
}

.level-badge {
    background: var(--light-blue);
    color: #000;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
}

.level-badge.level-premium {
    background: linear-gradient(45deg, var(--light-blue), #fff);
    box-shadow: 0 2px 10px rgba(126, 173, 237, 0.4);
}

.level-requirements {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 1rem;
}

/* Tier Cards */
.tier-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tier-card {
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(126, 173, 237, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.tier-card:hover {
    transform: translateY(-3px);
    border-color: var(--light-blue);
    box-shadow: 0 8px 20px rgba(126, 173, 237, 0.2);
}

.tier-card.featured {
    border-color: var(--light-blue);
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.2), rgba(74, 144, 226, 0.2));
    box-shadow: 0 4px 15px rgba(126, 173, 237, 0.2);
}

.tier-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tier-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tier-icon {
    font-size: 1.2rem;
}

.tier-card-header h6 {
    color: var(--light-blue);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tier-rates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(126, 173, 237, 0.2);
}

.rate-item:last-child {
    border-bottom: none;
}

.rate-type {
    color: #fff;
    font-weight: 500;
}

.rate-amount {
    color: var(--light-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ambassador Requirements */
.ambassador-requirements {
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(126, 173, 237, 0.2);
}

.ambassador-requirements h3 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.ambassador-requirements ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ambassador-requirements li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #fff;
}

.ambassador-requirements li:before {
    content: "•";
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.requirements-note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(126, 173, 237, 0.2);
}

/* Registration Timeline & Discounts Section */
.additional-sections {
    padding: 80px 0;
    background: var(--gradient-bg);
}

.section-title {
    text-align: center;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 173, 237, 0.1);
}

.section-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.section-card h3 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.section-card p {
    color: #fff;
    margin-bottom: 15px;
}

.section-card ul {
    list-style: none;
    padding: 0;
}

.section-card li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #fff;
}

.section-card li:before {
    content: "•";
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.discount-note {
    background: rgba(126, 173, 237, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--light-blue);
    margin-top: 20px;
}

/* Payout Breakdown Section */
.payout-breakdown {
    padding: 80px 0;
    background: transparent;
}

.payout-breakdown h2 {
    text-align: center;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.payout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Payout Cards Enhanced */
.payout-card {
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 173, 237, 0.2);
    position: relative;
    overflow: hidden;
}

.payout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(126, 173, 237, 0.05), rgba(74, 144, 226, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payout-card:hover {
    transform: translateY(-8px);
    border-color: var(--light-blue);
    box-shadow: 0 15px 35px rgba(126, 173, 237, 0.3);
}

.payout-card:hover::before {
    opacity: 1;
}

.payout-card h3 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.payout-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.level-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px 15px;
    border: 1px solid rgba(126, 173, 237, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.level-item:hover {
    border-color: var(--light-blue);
    background: rgba(126, 173, 237, 0.1);
    transform: translateY(-2px);
}

.level-header {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}

.level-amount {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--light-blue);
    text-align: center;
    display: block;
}

/* Chart Styles */
.chart-container {
    margin-top: 40px;
    text-align: center;
}

.chart-container h3 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#payoutChart {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Roles Section */
.roles-section {
    padding: 80px 0;
    background: transparent;
}

.roles-section h2 {
    text-align: center;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 173, 237, 0.1);
}

.role-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.role-card h4 {
    color: var(--light-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.role-percentage {
    font-size: 2rem;
    color: var(--light-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Sponsorship Info */
.sponsorship-info {
    background: linear-gradient(135deg, rgba(126, 173, 237, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(126, 173, 237, 0.2);
}

.sponsorship-info h3 {
    color: var(--light-blue);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.sponsorship-info p {
    color: #fff;
    margin-bottom: 15px;
}

/* Contact CTA */
.contact-cta {
    background: var(--hero-gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--light-blue);
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 173, 237, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 173, 237, 0.4);
    background: #fff;
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .benefits-hero {
        padding: 80px 0;
    }

    .benefits-hero h1 {
        font-size: 2.5rem;
    }

    .main-benefits h2,
    .section-title,
    .payout-breakdown h2,
    .roles-section h2 {
        font-size: 2rem;
    }

    /* Mobile Tier Display */
    .desktop-tier-table {
        display: none;
    }

    .mobile-tier-display {
        display: block;
    }

    .tier-level-selector h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .level-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 350px;
    }

    .level-btn {
        padding: 12px;
    }

    .level-number {
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }

    .level-desc {
        font-size: 0.75rem;
    }

    .level-content-display {
        min-height: 350px;
    }

    .level-badge {
        font-size: 0.9rem;
        padding: 6px 16px;
    }

    .level-requirements {
        font-size: 0.9rem;
    }

    .tier-cards {
        gap: 15px;
    }

    .tier-card {
        padding: 18px;
    }

    .tier-card-header h6 {
        font-size: 1rem;
    }

    .rate-amount {
        font-size: 1rem;
    }

    .payout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: none;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .roles-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .payout-card {
        padding: 20px;
    }

    .level-item {
        padding: 12px;
    }

    .level-amount {
        font-size: 1.4rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

}

@media (max-width: 768px) {
    /* Additional mobile optimizations for smaller screens */
    .tier-level-selector h4 {
        font-size: 1.15rem;
    }

    .level-buttons {
        max-width: 320px;
        gap: 10px;
    }

    .level-btn {
        padding: 10px;
    }

    .level-number {
        font-size: 1.2rem;
        width: 26px;
        height: 26px;
    }

    .level-desc {
        font-size: 0.72rem;
    }

    .tier-card {
        padding: 16px;
    }

    .rate-amount {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .benefits-hero h1 {
        font-size: 2rem;
    }

    .benefits-hero p {
        font-size: 1rem;
    }

    .main-benefits h2,
    .section-title,
    .payout-breakdown h2,
    .roles-section h2 {
        font-size: 1.8rem;
    }

    .section-card,
    .payout-card,
    .role-card {
        padding: 20px;
    }

    /* Extra Small Mobile Tier Display */
    .tier-level-selector h4 {
        font-size: 1.1rem;
    }

    .level-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 250px;
    }

    .level-btn {
        padding: 10px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .level-number {
        font-size: 1.2rem;
        width: 25px;
        height: 25px;
    }

    .level-desc {
        font-size: 0.7rem;
        text-align: left;
    }

    .level-content-display {
        min-height: 320px;
    }

    .level-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .level-requirements {
        font-size: 0.8rem;
    }

    .tier-cards {
        gap: 12px;
    }

    .tier-card {
        padding: 15px;
    }

    .tier-icon {
        font-size: 1rem;
    }

    .tier-card-header h6 {
        font-size: 0.9rem;
    }

    .rate-type {
        font-size: 0.9rem;
    }

    .rate-amount {
        font-size: 0.95rem;
    }

    .role-percentage {
        font-size: 1.5rem;
    }

    .level-header {
        font-size: 0.8rem;
    }

    .level-amount {
        font-size: 1.3rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

}
