/* Markets Page Specific Styles */

/* Hero Section */
.markets-hero-section {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.markets-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.markets-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.markets-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(105, 184, 70, 0.1) 0%, rgba(255, 255, 255, 0.85) 100%);
}

/* Product Section Styles */
.product-section {
    padding: 5rem 0;
    overflow: hidden;
}

.product-section:nth-child(odd) {
    background-color: #ffffff;
}

.product-section:nth-child(even) {
    background-color: #f8f9f3;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-grid.reverse {
    direction: rtl;
}

.product-grid.reverse > * {
    direction: ltr;
}

.product-content {
    max-width: 520px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Feature Boxes */
.feature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-box-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f5e2 0%, #d4edcc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.feature-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-box-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-box-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Product Image */
.product-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Learn More Button */
.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #008f36;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-learn-more:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 143, 54, 0.4);
}

/* Risk Section */
.risk-section {
    background-color: #f3f4f6;
    padding: 4rem 0;
}

.risk-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.risk-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.risk-card-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.risk-card-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-grid.reverse {
        direction: ltr;
    }
    
    .product-content {
        max-width: 100%;
    }
    
    .product-image {
        order: -1;
        max-width: 400px;
    }
    
    .risk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .markets-hero-section {
        min-height: 280px;
    }
    
    .product-section {
        padding: 3rem 0;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .feature-boxes {
        grid-template-columns: 1fr;
    }
    
    .risk-title {
        font-size: 1.5rem;
    }
}

/* Animation for product sections */
.product-section .product-content,
.product-section .product-image {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Decorative elements */
.product-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 184, 70, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.product-section:nth-child(odd)::before {
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
}

.product-section:nth-child(even)::before {
    left: -150px;
    top: 50%;
    transform: translateY(-50%);
}

