/* ===== Foreign Representatives Page - Professional Design ===== */

/* Hero Section */
.foreign-reps-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-primary, #0a1628) 0%, var(--bg-secondary, #1a2a44) 50%, var(--bg-primary, #0a1628) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.foreign-reps-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.foreign-reps-hero .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.foreign-reps-hero .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.hero-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Representatives Section */
.representatives-section {
    padding: 80px 0 100px;
    background: var(--bg-primary, #0d1b2a);
}

/* Representatives Grid */
.reps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Representative Card */
.rep-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rep-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

/* Representative Image */
.rep-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
}

.rep-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rep-card:hover .rep-image img {
    transform: scale(1.06);
}

/* Representative Flag */
.rep-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Representative Info */
.rep-info {
    padding: 18px 16px 20px;
    text-align: center;
}

.rep-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.rep-country {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.rep-phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
    font-weight: 500;
}

.rep-phone:empty {
    display: none;
}

/* Info Section */
.info-section {
    padding: 60px 0 80px;
    background: var(--bg-primary, #0d1b2a);
}

.info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 35px 45px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.info-box h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-box p {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-box a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-box a:hover {
    color: #90caf9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 900px) {
    .reps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .foreign-reps-hero {
        padding: 140px 0 70px;
    }

    .representatives-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 600px) {
    .foreign-reps-hero {
        padding: 120px 0 60px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
        letter-spacing: 2px;
    }

    .reps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .rep-info {
        padding: 14px 12px 16px;
    }

    .rep-name {
        font-size: 0.85rem;
    }

    .rep-country {
        font-size: 0.7rem;
    }

    .rep-flag {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 380px) {
    .reps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rep-image {
        aspect-ratio: 1 / 1;
    }
}

/* Filter Section */
.filter-section {
    padding: 0 0 60px;
    background: var(--bg-primary, #0d1b2a);
    position: relative;
    z-index: 10;
}

.filter-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 150px;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.filter-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.filter-card:hover::before {
    opacity: 1;
}

.filter-card.active {
    background: linear-gradient(135deg, rgba(64, 196, 255, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-color: rgba(64, 196, 255, 0.5);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25);
}

.filter-card.active .filter-name {
    color: #40c4ff;
    text-shadow: 0 0 15px rgba(64, 196, 255, 0.3);
}

.filter-icon {
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.filter-card:hover .filter-icon {
    transform: scale(1.1) rotate(5deg);
}

.filter-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations for Grid Items */
.rep-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Filter Grid */
@media (max-width: 768px) {
    .filter-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

    .filter-card {
        min-width: auto;
        padding: 12px 10px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .filter-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .filter-name {
        font-size: 0.85rem;
    }
}