/* 1. HERO SECTION */
.hero {
    /* REPLACE 'hero-bg.jpg' with your actual conference image path */
    background-image: url('../images/bg-cover.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh; /* 80% of screen height */
    /*min-height: 500px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dark Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Darkens image by 65% */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 2. SERVICE STRIP */
.service-strip {
    background-color: white;
    padding: 4rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Creates 4 equal columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border-radius: 8px;
    border: 1px solid #d92525;
}

.service-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    background-color: #fff;
}

.icon-box {
    font-size: 2.5rem;
    color: #d92525;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .service-container {
        grid-template-columns: 1fr;
    } /* Stack services on phone */
}

.languages-section {
    background-color: #f8f9fa; /* Light grey background for contrast */
    padding: 5rem 2rem;
    text-align: center;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Grid Layout */
.language-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    /* Responsive grid: fits as many 140px cards as possible */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.lang-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.lang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-bottom: 3px solid #d92525; /* Red accent on hover */
}

/* Flag Styling */
.fi {
    font-size: 3rem; /* Size of the flag */
    border-radius: 50%; /* Make flag circular */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    /* Fix for circular flags in the library to ensure 1:1 ratio */
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    background-position: center;
    background-size: cover;
}

/* Custom styling for the 'Map' icon (Local Languages) */
.local-icon {
    font-size: 3rem;
    color: #d92525;
    margin-bottom: 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.lang-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
    display: inline-block;
    max-width: 100%;
}

.about-section {
    padding: 5rem 2rem;
    background-color: white; /* Contrast with light gray sections */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.about-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.key-quote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 5px solid #d92525;
    background-color: #f0f0f0;
    font-style: italic;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: #d92525;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #d92525;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #d92525;
    color: white;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
}

.portfolio-section {
    background-color: #f8f9fa; /* Light grey background */
    padding: 5rem 2rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* 3-Column Grid */
.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.engagement-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.card-btn {
    color: #d92525;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}

.card-btn:hover {
    border-bottom: 2px solid #d92525;
}

.portfolio-footer {
    text-align: center;
    margin-top: 4rem;
}

/* --- REFINED CLIENTELE CSS --- */
.clientele-section {
    /* Keep padding and background the same */
    padding: 5rem 2rem;
    background-color: white;
    text-align: center;
}

.logo-grid {
    /* Use the swiper wrapper class for styling */
    max-width: 1200px;
    margin: 0 auto;
    /* Use flexbox for swiper-wrapper (Swiper usually uses this) */
    display: flex;
    align-items: center; /* Vertically center the logos */
    justify-content: space-around;
}

/* Style the container (swiper-slide/logo card) */
.swiper-slide {
    /* The crucial part: Set a uniform height for all logo containers */
    height: 100px; /* Adjust this value (e.g., 80px or 120px) to your preferred size */
    width: 150px; /* Ensure a minimum width for the slide */
    display: flex; /* To help center the logo vertically/horizontally */
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove unnecessary padding */
    box-sizing: border-box;
}

/* Style the logo link/card (a.card) */
.swiper-slide .card-body {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Apply grayscale effect to the container/link */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.swiper-slide .card-body:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item img,
.card-body img {
    /* The second crucial part: Limit the image size while maintaining aspect ratio */
    max-height: 80px; /* Image height must be less than the slide height */
    max-width: 90%;
    width: auto; /* Ensure no stretching */
    height: auto;
    object-fit: contain; /* Ensures the logo fits within the container without cropping */
}