/* MANGASSI - Main CSS File */
/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff5800;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --gray-color: #666;
    --light-gray-color: #ddd;
    --max-width: 1200px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 60px 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Header */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 150px;
    height: auto;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
    position: relative;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: var(--white-color);
    width: 200px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/styles/bcc1.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 150px 20px 100px;
    margin-top: 70px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider */
.slider-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white-color);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 5px;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--white-color);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white-color);
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

/* Featured Countries */
.featured-countries {
    background-color: #f9f9f9;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.country-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 200px;
}

.country-card:hover {
    transform: translateY(-5px);
}

.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.country-card:hover img {
    transform: scale(1.1);
}

.country-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    text-align: center;
}

/* Testimonials */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.testimonial-content {
    position: relative;
    padding-left: 40px;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -20px;
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 20px;
    text-align: right;
}

/* Partners */
.partners {
    background-color: #f9f9f9;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.partner {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.partner:hover {
    transform: scale(1.1);
}

.partner img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner:hover img {
    filter: grayscale(0%);
}

/* Call to Action */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/styles/bcc2.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 80px 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    color: var(--white-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-gray-color);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-column p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .slider-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--white-color);
        box-shadow: var(--box-shadow);
        transition: 0.4s;
        padding: 20px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
    }
    
    .hero-section {
        padding: 120px 20px 60px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .testimonial {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero-section {
        padding: 100px 15px 50px;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .service-card,
    .country-card,
    .testimonial,
    .partner {
        width: 100%;
    }
    
    .partners-grid {
        gap: 20px;
    }
    
    .partner {
        width: 120px;
        height: 80px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Currency Converter Styles */
.currency-converter {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.currency-converter h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.converter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-selects {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-selects select {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--light-gray-color);
}

#amount {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--light-gray-color);
}

.currency-selects i {
    color: var(--primary-color);
}

.conversion-result {
    margin-top: 15px;
    padding: 15px;
    background-color: #e7f3ff;
    border-radius: 5px;
    text-align: center;
    display: none; /* Initially hidden, will be displayed via JavaScript */
}

.conversion-result.active {
    display: block;
}

.converter-note {
    margin-top: 10px;
    color: var(--gray-color);
    font-style: italic;
}

/* Country Pages Specific Styles */
.country-header {
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

/* Country-specific header backgrounds */
.country-header.senegal {
    background-image: url('images/styles/bcc3.jpeg');
}

.country-header.russie {
    background-image: url('images/styles/bcc4.jpeg');
}

.country-header.maroc {
    background-image: url('images/styles/bcc5.jpeg');
}

.country-header.tunisie {
    background-image: url('images/styles/bcc6.jpeg');
}

.country-header.france {
    background-image: url('images/styles/bcc7.jpeg');
}

.country-header.ghana {
    background-image: url('images/styles/bcc8.jpg');
}

.country-header.afrique-du-sud {
    background-image: url('images/styles/bcc9.jpeg');
}

.country-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.country-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.country-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.country-flag {
    width: 80px;
    height: 50px;
    margin: 0 auto 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.country-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-gray-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 5px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.tab-content {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Page Specific Styles */
.service-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/styles/bcc10.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.service-header h1 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service-section {
    padding: 80px 20px;
}

.service-section:nth-child(even) {
    background-color: #f9f9f9;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 40px;
}

.service-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-info {
    flex: 1;
    min-width: 300px;
}

.service-info h2 {
    text-align: left;
    color: var(--primary-color);
}

.service-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* About Page Specific Styles */
.about-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/styles/bcc11.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.about-header h1 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section {
    padding: 80px 20px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-info {
    flex: 1;
    min-width: 300px;
}

.about-info h2 {
    text-align: left;
}

.stats-section {
    background-color: #f9f9f9;
    padding: 80px 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-section {
    padding: 80px 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 5px;
}

.team-position {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-style: italic;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--gray-color);
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Contact Page Specific Styles */
.contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/styles/bcc12.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.contact-header h1 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 20px;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 2;
    min-width: 350px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.5rem;
}

.contact-details h3 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--light-gray-color);
    font-family: inherit;
    font-size: inherit;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Google Map */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}