/* ==========================================================================
   PAGE: الأسواق التي نعمل بها
   FILENAME: markets.css
   DESCRIPTION: Page-specific styles only — NOT found in global CSS
   ========================================================================== */

/* -----------------------------------------
   1. HERO ADAPTATION (matches internal page style)
   ----------------------------------------- */
.markets-hero {
    height: 40vh;
    min-height: 450px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.markets-hero .hero-bg img {
    object-position: center 40%;
}

.markets-hero .hero-content {
    margin-top: 60px;
}

.markets-hero .hero-title-ar {
    font-size: 42px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .markets-hero {
        height: 35vh;
        min-height: 350px;
    }
    .markets-hero .hero-title-ar {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .markets-hero {
        min-height: 300px;
    }
    .markets-hero .hero-title-ar {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .markets-hero .hero-title-ar {
        font-size: 26px;
    }
}

/* -----------------------------------------
   2. MAIN CONTENT LAYOUT
   ----------------------------------------- */
.markets-main-section {
    background-color: var(--white);
    padding: 90px 0 80px;
    position: relative;
}

.markets-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.markets-intro-text {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 25px;
}

.markets-intro-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* -----------------------------------------
   3. MARKETS GRID - CARDS WITH IMAGES
   ----------------------------------------- */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 50px 0 60px;
}

.market-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 36, 99, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 36, 99, 0.04);
}

.market-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(10, 36, 99, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Card Image Section */
.market-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.market-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover .market-card-image img {
    transform: scale(1.1);
}

.market-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(10, 36, 99, 0.2) 0%, 
        rgba(10, 36, 99, 0.6) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.market-card:hover .market-image-overlay {
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.2) 0%, 
        rgba(10, 36, 99, 0.7) 100%);
}

.market-icon-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--accent-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover .market-icon-badge {
    transform: rotate(10deg) scale(1.1);
    background: var(--white);
    color: var(--accent-gold);
}

/* Card Content Section */
.market-card-content {
    padding: 28px 25px 30px;
    background: white;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.market-title {
    font-family: 'Cairo', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.market-card:hover .market-title {
    color: var(--accent-gold);
}

.market-decoration {
    width: 45px;
    height: 3px;
    background: var(--accent-gold);
    margin-bottom: 18px;
    transition: width 0.4s ease;
}

.market-card:hover .market-decoration {
    width: 70px;
}

.market-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.85;
    margin-bottom: 20px;
    flex-grow: 1;
}

.market-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(10, 36, 99, 0.08);
    margin-top: auto;
}

.market-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-stat-value {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    padding: 5px 12px;
    border-radius: 30px;
}

/* -----------------------------------------
   4. CLOSING PARAGRAPH
   ----------------------------------------- */
.markets-closing-wrapper {
    max-width: 850px;
    margin: 30px auto 40px;
    padding: 0 15px;
}

.closing-paragraph-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.closing-decoration-line {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(212, 175, 55, 0.2));
}

.markets-closing-text {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--primary-dark);
    text-align: center;
    margin: 0;
    padding: 15px 0;
    position: relative;
}

@media (max-width: 768px) {
    .closing-paragraph-container {
        flex-direction: column;
        gap: 15px;
    }
    .closing-decoration-line {
        flex: 0 0 2px;
        width: 60px;
        height: 2px;
    }
    .markets-closing-text {
        font-size: 18px;
    }
}

/* -----------------------------------------
   5. ABSTRACT MAP VISUAL ELEMENT
   ----------------------------------------- */
.markets-map-visual {
    margin-top: 70px;
    margin-bottom: 20px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(10, 36, 99, 0.06);
    border-bottom: 1px solid rgba(10, 36, 99, 0.06);
}

.map-dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    padding: 20px 0;
}

.map-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.map-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite;
}

.map-dot.gulf { 
    background-color: #0A2463; 
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1); 
}
.map-dot.middle-east { 
    background-color: #D4AF37; 
}
.map-dot.freezone { 
    background-color: #2E2E2E; 
    box-shadow: 0 0 0 3px rgba(46, 46, 46, 0.1); 
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.map-line, .map-line-2 {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    width: 100%;
    max-width: 300px;
}

.map-line { top: 30px; }
.map-line-2 { bottom: 30px; }

.map-visual-text {
    display: flex;
    gap: 45px;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .map-dots-container { gap: 30px; }
    .map-visual-text { gap: 20px; font-size: 11px; }
}

/* -----------------------------------------
   6. RESPONSIVE GRID
   ----------------------------------------- */
@media (max-width: 992px) {
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .markets-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .market-card-image {
        height: 200px;
    }
    
    .market-title {
        font-size: 24px;
    }
    
    .markets-intro-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .markets-main-section {
        padding: 60px 0;
    }
    
    .markets-intro-text {
        font-size: 18px;
    }
    
    .market-card-image {
        height: 180px;
    }
    
    .market-icon-badge {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .market-title {
        font-size: 22px;
    }
}

/* -----------------------------------------
   7. ENHANCED READABILITY & WHITE SPACE
   ----------------------------------------- */
.container {
    max-width: 1200px;
}

.markets-main-section .container > *:not(:last-child) {
    margin-bottom: 30px;
}

.markets-intro,
.markets-closing-wrapper {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.nav-link.active {
    color: var(--accent-gold) !important;
    font-weight: 700;
}

.markets-main-section {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
}