/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-color: #172A39;
    --secondary-color: #2D5F7C;
    --accent-color: #216E7A;
    --light-accent: #CDAF81;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #F5F0E6;
    --bg-tertiary: #FAF7F2;
    --border-color: #CDAF81;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===================================
   SERVICES GRID
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    contain: layout;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-fast);
    border: 2px solid #e3f2fd;
    position: relative;
    overflow: hidden;
    contain: layout;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--light-accent);
    transform: translateY(-2px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform var(--transition-fast);
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: transparent;
}

.service-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card ul {
    text-align: left;
    margin-top: 1rem;
    color: var(--text-secondary);
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* GCC Market Entry Page Specific Styles */

/* Hero Section */
.hero { 
    min-height: 50vh;
    contain: layout;
}

/* GCC Countries Section */
.gcc-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.country {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.country h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #1e293b;
}

.country h3 img {
    margin-right: 8px;
    vertical-align: middle;
}

.country p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.country p strong {
    color: #374151;
    font-weight: 600;
}

/* Language Selector */
.lang-dropdown {
    min-width: 80px;
    height: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gcc-countries {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .country {
        padding: 1.5rem;
    }
    
    .country h3 {
        font-size: 1.25rem;
    }
    
    .country h3 img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .gcc-countries {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .country {
        padding: 1rem;
    }
    
    .country h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .country h3 img {
        margin-right: 0;
        width: 18px;
        height: 18px;
    }
}

/* RTL Support */
[dir="rtl"] .country h3 {
    flex-direction: row-reverse;
}

[dir="rtl"] .country h3 img {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .gcc-countries {
    direction: ltr;
}

[dir="rtl"] .country {
    direction: ltr;
    text-align: right;
}

/* Call to Action Button Styling */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Section spacing optimization */
.section-light .services-grid,
.section-gray .services-grid {
    margin-top: 2rem;
}

/* Enhanced country card styling */
.country {
    position: relative;
    overflow: hidden;
}

.country::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country:hover::before {
    opacity: 1;
}
