/* ========================================
   Markets Page Styles
   ======================================== */

/* Hero Section */
.markets-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(12, 79, 88, 0.6), rgba(12, 79, 88, 0.6)), 
                url('../assets/images/Hero\ Section\ market.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 155px;
}

.markets-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.markets-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.markets-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.markets-breadcrumb {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.markets-breadcrumb a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.markets-breadcrumb a:hover {
    color: var(--bright-cyan-glow);
}

.markets-breadcrumb .separator {
    color: var(--pure-white);
}

.markets-breadcrumb span:last-child {
    color: var(--bright-cyan-glow);
}

/* Markets Grid Section */
.markets-grid-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.markets-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.markets-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Market Card */
.market-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.market-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.market-card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.market-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.market-card:hover .market-card-image img {
    transform: scale(1.1);
}

.market-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
}

.market-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.market-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.market-card-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    flex: 1;
}

.btn-market {
    display: inline-block;
    padding: 12px 30px;
    background: #0c4f58;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-market:hover {
    background: #094047;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .market-card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .markets-hero {
        margin-top: 120px;
        height: 40vh;
        min-height: 300px;
    }
    
    .markets-hero-title {
        font-size: 2.5rem;
    }
    
    .markets-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .markets-grid-section {
        padding: 60px 0;
    }
    
    .markets-intro {
        margin-bottom: 40px;
    }
    
    .markets-intro p {
        font-size: 1rem;
    }
    
    .markets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .market-card:last-child {
        grid-column: 1;
        max-width: 100%;
    }
    
    .market-card-image {
        height: 280px;
    }
    
    .market-card-title {
        font-size: 1.5rem;
    }
    
    .market-card-content {
        padding: 25px;
    }
    
    .market-card-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .markets-hero-title {
        font-size: 2rem;
    }
    
    .markets-hero-subtitle {
        font-size: 1rem;
    }
    
    .market-card-image {
        height: 250px;
    }
    
    .market-card-content {
        padding: 20px;
    }
}
