/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff !important;
}

body {
    background-color: #ffffff !important;
    color: #333;
    line-height: 1.6;
    font-family: 'Segoe UI', Arial, sans-serif;
    /* Background Pattern Integration */
    background-image: url('images/Logo_pattern.svg'); 
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/* Members Page Styles */
.members-page-wrapper {
    padding-bottom: 60px;
}

.page-hero {
    background-color: #f8f9fa; /* Or use your specific brand background color */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.member-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.member-logo-wrapper {
    height: 160px;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.member-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #2d3748;
}

.member-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: #ebf8ff;
    color: #2b6cb0;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.member-desc {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-view-member {
    font-size: 0.9rem;
    color: #3182ce; /* Use your main brand link color */
    text-decoration: none;
    font-weight: 60px;
    transition: color 0.2s;
}

.btn-view-member:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Ensure content transparency to see the background pattern */
main, .container, section {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: #ffffff !important;
    height: 100px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid #eee;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img#company-logo {
    height: 72px !important;
    width: auto !important;
    min-width: 200px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #0C6769;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #083d3e;
}

/* Submenu Styling */
.has-dropdown { position: relative; }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    border-top: 3px solid #0C6769;
    z-index: 3000;
}

.has-dropdown:hover .submenu { display: block; }
.submenu li a { color: #333 !important; padding: 12px 20px; display: block; font-size: 0.9rem; }

/* =========================================
   3. LANGUAGE DROPDOWN
   ========================================= */
.lang-dropdown { 
    position: relative; 
    display: inline-block; 
}

.drop-btn {
    background-color: #f4f4f4;
    color: #0C6769;
    padding: 8px 16px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    min-width: 75px;
    transition: 0.3s;
}

ul.lang-menu {
    display: none; 
    position: absolute;
    background-color: #ffffff !important;
    min-width: 90px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 4000;
    top: 100%;
    right: 0;
    list-style: none !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    border: 1px solid #eee;
}

.lang-dropdown:hover ul.lang-menu { 
    display: block !important; 
}

ul.lang-menu li {
    width: 100%;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul.lang-menu li a {
    color: #333 !important;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s;
}

ul.lang-menu li a:hover {
    background-color: #f8fbfb;
    color: #0C6769 !important;
}

/* =========================================
   4. HOME PAGE NEWS SLIDER
   ========================================= */
.latest-news-section {
    padding: 60px 0;
    background-color: rgba(249, 249, 249, 0.85);
    backdrop-filter: blur(5px);
}

.news-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.news-slider-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 6%; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.news-slider-container::-webkit-scrollbar { display: none; }

.slider-item {
    flex: 0 0 320px;
    min-width: 320px;
    background: #ffffff !important;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.slider-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(12, 103, 105, 0.15);
}

/* FIXED AS A PERFECT UNIFORM CUBE FOR HOMEPAGE */
.card-img { 
    width: 100%; 
    aspect-ratio: 1 / 1 !important; /* Forces a perfect square box */
    overflow: hidden; 
}

.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center 15%; /* Perfect viewport framing for faces and bodies */
}

.card-img img[src*="Assodiq_consulting.jpg"] { object-position: top center; }
.card-img img[src*="Poytaxt_Bank.jpg"] { object-position: center center !important; }
.card-content { padding: 25px; background: white; }
.card-date { font-size: 0.8rem; color: #999; }
.card-content h3 { color: #0C6769; font-size: 1.1rem; margin: 10px 0; line-height: 1.4; }
.card-content p { font-size: 0.9rem; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.read-more-btn {
    color: #0C6769;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 10px;
    display: block;
}

.view-all-container { text-align: center; margin-top: 30px; }
.btn-secondary {
    display: inline-block;
    padding: 14px 40px;
    background-color: #0C6769;
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

/* =========================================
   5. ABOUT SECTION STYLING
   ========================================= */
main.container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto; 
    overflow: visible; 
    display: block;
    background-color: transparent !important;
}

.about-section { 
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 60px 20px;
    height: auto;
    display: block;
    position: relative;
    z-index: 10;
}

.section-title { color: #0C6769; text-align: center; margin-bottom: 40px; font-size: 2.2rem; }
.lead-text { font-size: 1.5rem; color: #0C6769; line-height: 1.4; margin: 30px 0; font-weight: 600; }

.about-main-content {
    display: block; 
    width: 100%;
    margin-bottom: 50px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

.strategy-number { font-size: 1rem; font-weight: 700; color: #0C6769; min-width: 60px; letter-spacing: 2px; }
.strategy-text h4 { font-size: 1.3rem; color: #083d3e; margin-bottom: 8px; text-transform: uppercase; }

.conclusion-box {
    background: #083d3e;
    color: #ffffff;
    padding: 50px;
    border-radius: 4px;
    border-left: 8px solid #0C6769;
    margin-top: 40px;
}

/* =========================================
   6. CINEMATIC BANNER & DIVIDER
   ========================================= */
.cinematic-banner {
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    transition: background-image 3.0s ease-in-out;
}

.cinematic-banner::after, .cinematic-divider::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(12, 103, 105, 0.4);
    z-index: 2;
}

.cinematic-divider {
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: #083d3e;
    color: white;
    padding: 60px 8%;
    position: relative;
    z-index: 10;
}

.footer-grid { display: flex; justify-content: space-between; gap: 40px; }

.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links img { width: 30px; filter: brightness(0) invert(1); transition: transform 0.3s; }
.social-links a:hover img { transform: translateY(-5px); }

.map-container {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =========================================
   8. MODAL STYLING
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(8, 61, 62, 0.95);
}

.close-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: white; font-size: 40px; cursor: pointer;
}

/* =========================================
   9. MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 768px) {
    .main-header { height: auto; flex-direction: column; padding: 20px; gap: 15px; }
    .nav-menu { gap: 20px; flex-direction: column; }
    .nav-links { gap: 15px; }
    .footer-grid { flex-direction: column; text-align: center; }
    .social-links { justify-content: center; }
    .about-main-content { flex-direction: column; gap: 20px; }
    .logo-container img#company-logo { width: 140px !important; min-width: auto; }

    .news-slider-container {
        display: flex !important;
        flex-direction: row !important;     
        overflow-x: auto !important;        
        scroll-snap-type: x mandatory !important; 
        -webkit-overflow-scrolling: touch !important; 
        gap: 15px !important;
        padding: 10px 20px 30px 20px !important;
    }

    .slider-item {
        flex: 0 0 82% !important;           
        min-width: 82% !important;
        scroll-snap-align: center !important; 
        transform: none !important; 
    }
    
    .slider-item:hover {
        transform: none !important;
    }

    .card-img img {
        object-fit: cover !important;
        object-position: center 15% !important;
    }
}

/* Hide Google Translate styles */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; position: static !important; }