/* SPY/SPX Converter Page Specific Styles */

/* Converter Section */
.converter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('../images/hero-image.jpg') no-repeat center center/cover;
    position: relative;
}

.converter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.converter-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.converter-header h1 {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.converter-subtitle {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 20px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.converter-card {
    background: transparent;
    padding: 30px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

.conversion-box {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.conversion-box:hover {
    border-color: rgba(76, 175, 80, 0.3);
}

.conversion-box h3 {
    color: #4CAF50;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.convert-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-weight: 600;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.convert-btn:hover {
    background: linear-gradient(135deg, #45a049, #409945);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.result {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: #4CAF50;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Educational Content */
.educational-section {
    padding: 80px 0;
    background: #111;
}

.educational-section h2,
.strategies-section h2,
.converter-benefits h3,
.cta-header h2 {
    font-size: clamp(1.8em, 4vw, 2.6em);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.info-grid-wrapper {
    margin-bottom: 60px;
}

.info-grid-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.info-grid-row:last-child {
    margin-bottom: 0;
}

.info-grid-row .info-box {
    flex: 1;
    width: 50%;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.info-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-box p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1em;
}

.comparison-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.comparison-table th {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 15px;
    text-align: left;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.95em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Benefits heading style is now controlled by the unified heading style above */

.benefits-wrapper {
    margin-bottom: 30px;
}

.benefits-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.benefits-row:last-child {
    margin-bottom: 0;
}

.benefits-row .benefit-item {
    flex: 1;
    width: 50%;
}

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

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

.benefit-item h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.benefit-item p {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Strategies Section */
.strategies-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.strategies-wrapper {
    margin-bottom: 60px;
}

.strategies-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.strategies-row:last-child {
    margin-bottom: 0;
}

.strategies-row .strategy-box {
    flex: 1;
    width: 50%;
}

.strategy-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.strategy-box:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.strategy-box h3 {
    color: #2196F3;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.strategy-box p {
    color: #b0b0b0;
    line-height: 1.6;
}

.cta-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(69, 160, 73, 0.1));
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cta-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 700;
}

.cta-box p {
    color: #b0b0b0;
    margin-bottom: 25px;
    font-size: 1.1em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .converter-section {
        padding: 60px 0;
    }
    
    .converter-card {
        padding: 30px 20px;
    }
    
    .converter-grid {
        grid-template-columns: 1fr;
    }
    
    .conversion-box {
        padding: 25px;
    }
    
    .info-grid-row, .benefits-row, .strategies-row {
        flex-direction: column;
    }
    
    .info-grid-row .info-box,
    .benefits-row .benefit-item,
    .strategies-row .strategy-box {
        width: 100%;
    }
    
    .comparison-table {
        overflow-x: auto;
        display: block;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .converter-header h1 {
        font-size: 1.8em;
    }
    
    .converter-subtitle {
        font-size: 1em;
    }
    
    .converter-card {
        padding: 25px 15px;
    }
    
    .conversion-box {
        padding: 20px;
    }
    
    .input-group input {
        padding: 10px;
    }
    
    .convert-btn {
        padding: 12px;
    }
    
    .result {
        padding: 12px;
        font-size: 1.1em;
    }
    
    .info-box, .strategy-box, .benefit-item {
        padding: 20px;
    }
    
    .cta-box {
        padding: 25px 15px;
    }
    
    .cta-box h3 {
        font-size: 1.3em;
    }
}
