.agents-banner {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.agents-banner h1 {
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.agents-banner-text {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.agents-divider-bar {
    background: linear-gradient(90deg, transparent 0%, #816B63 20%, #816B63 80%, transparent 100%);
    height: 4px;
    margin: 0;
    position: relative;
}

.agents-divider-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 8px;
    background: #92857A;
    border-radius: 4px;
}

.agents-page-wrapper {
    background: #fffefe;
    min-height: 60vh;
    padding: 60px 0 80px 0;
}

.agents-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content-section {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    line-height: 1.8;
    color: #333;
}

.page-content-section h2 {
    color: #816B63;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-section h3 {
    color: #92857A;
    margin-top: 25px;
    margin-bottom: 12px;
}

.page-content-section p {
    margin-bottom: 20px;
}

.agents-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.agents-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    position: relative;
    display: inline-block;
}

.agents-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #816B63;
}

.agents-count {
    color: #92857A;
    font-size: 18px;
    margin-top: 20px;
}

.agents-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: space-around;
}

.agent-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.agent-card-top {
    display: flex;
    padding: 25px;
    background: linear-gradient(135deg, #fff 0%, #E6E0DA 100%);
    border-bottom: 2px solid #E6E0DA;
}

.agent-card-photo {
    flex: 0 0 120px;
    margin-right: 20px;
}

.agent-photo-wrapper {
    width: 120px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #816B63;
    background: #fff;
    padding: 5px;
}

.agent-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.agent-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #E6E0DA;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #816B63;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.agent-card-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agent-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.agent-contact-icon {
    width: 20px;
    height: 20px;
    color: #816B63;
    flex-shrink: 0;
}

.agent-contact-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    word-break: break-all;
}

.agent-contact-link:hover {
    color: #816B63;
}

.agent-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    background: #816B63;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}

.agent-more-button:hover {
    background: #92857A;
    transform: translateX(5px);
}

.agent-card-bottom {
    padding: 20px 25px;
    text-align: center;
    background: #fff;
}

.agent-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-properties-count {
    font-size: 13px;
    color: #92857A;
    margin-top: 5px;
}

.no-agents {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-agents-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    color: #816B63;
}

.no-agents-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.no-agents-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .agents-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .agents-banner {
        height: 450px;
    }

    .agents-banner h1 {
        font-size: 35px;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .agents-banner {
        padding: 80px 0;
        height: 350px;
    }

    .agents-banner h1 {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .agents-banner-text {
        font-size: 18px;
    }

    .agents-section-title {
        font-size: 28px;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        flex-direction: column;
    }

    .agent-card-top {
        padding: 20px;
    }

    .agent-card-photo {
        flex: 0 0 100px;
    }

    .agent-photo-wrapper {
        width: 100px;
        height: 135px;
    }

    .page-content-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .agents-banner {
        padding: 60px 0;
        height: 200px;
    }

    .agents-banner h1 {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .agents-banner-text {
        font-size: 16px;
    }

    .agents-page-wrapper {
        padding: 40px 0 60px 0;
    }

    .agent-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .agent-card-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .agent-contact-item {
        justify-content: center;
    }

    .agent-card-name {
        font-size: 18px;
    }
}

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

.agent-card {
    animation: fadeInUp 0.5s ease backwards;
}

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.2s; }
.agent-card:nth-child(3) { animation-delay: 0.3s; }
.agent-card:nth-child(4) { animation-delay: 0.4s; }
.agent-card:nth-child(5) { animation-delay: 0.5s; }
.agent-card:nth-child(6) { animation-delay: 0.6s; }
